golang 打包莫名其妙的报错退出了

没看到明显的错误,突然报错了。最后信息如下:

[   79s] packagefile sort=$WORK/b045/_pkg_.a
[   79s] packagefile strconv=$WORK/b023/_pkg_.a
[   79s] packagefile strings=$WORK/b050/_pkg_.a
[   79s] packagefile sync=$WORK/b006/_pkg_.a
[   79s] packagefile sync/atomic=$WORK/b014/_pkg_.a
[   79s] packagefile time=$WORK/b019/_pkg_.a
[   79s] packagefile unicode/utf8=$WORK/b025/_pkg_.a
[   79s] EOF
[   79s] cd /usr/lib64/go/1.11/src/net/http
[   79s] /usr/lib64/go/1.11/pkg/tool/linux_amd64/compile -o $WORK/b143/_pkg_.a -trimpath $WORK/b143 -shared -p net/http -std -complete -installsuffix shared -buildid H6uULgGY5iwunHfp-BNL/H6uULgGY5iwunHfp-BNL -goversion go1.11.5 -D "" -importcfg $WORK/b143/importcfg -pack ./client.go ./cookie.go ./doc.go ./filetransport.go ./fs.go ./h2_bundle.go ./header.go ./http.go ./jar.go ./method.go ./request.go ./response.go ./roundtrip.go ./server.go ./sniff.go ./socks_bundle.go ./status.go ./transfer.go ./transport.go
[   80s] /usr/lib64/go/1.11/pkg/tool/linux_amd64/buildid -w $WORK/b095/exe/a.out # internal
[   80s] mv $WORK/b095/exe/a.out /home/abuild/rpmbuild/BUILD/go/bin/gomobile
[   80s] rm -r $WORK/b095/
[   83s] /usr/lib64/go/1.11/pkg/tool/linux_amd64/buildid -w $WORK/b143/_pkg_.a # internal
[   83s] cp $WORK/b143/_pkg_.a /home/abuild/.cache/go-build/55/55ee39ba0abbe7ee1968886da1aff9d2bc47e4a3cf8a4b11774bbfb1fc2718a7-d # internal
[   83s] error: Bad exit status from /var/tmp/rpm-tmp.3kTte9 (%build)

https://build.opensuse.org/public/build/home:hillwood:branches:X11:Deepin:Go/openSUSE_Tumbleweed/x86_64/golang-org-x-mobile/_log

openal-soft-devel 没装,搜一下 fatal error

装了还是一样的错误。

那就是有别的错误呗…golang-packaing 是 bash 写的,不能在出错的地方直接退出。你得自己搜 “error” 去看,它的错误提示完全无用

第一时间就搜过“error”,没找到有价值的提示。你有空看一下这个包,golang 我不是太熟。

[ 150s] # golang.org/x/mobile/gl
[ 150s] In file included from …/go/src/golang.org/x/mobile/gl/work.go:29:
[ 150s] ./work.h:12:10: fatal error: GLES3/gl3.h: No such file or directory
[ 150s] #include <GLES3/gl3.h> // install on Ubuntu with: sudo apt-get install libegl1-mesa-dev libgles2-mesa-dev libx11-dev
[ 150s] ^~~~~~~~~~~~~
[ 150s] compilation terminated.

:sweat::sweat::sweat::sweat:
一直没搜到这个。。。。

没事,主要我是 golang-packaging 的原作者,他们怎么改也是我的思想,找起来就容易些 :nerd_face:

我看到 devel:languages:go 里面炸了一大堆包,是我见过维护得最烂的一个开发源,也不知道他们是怎么想的。

本主题在最后一个回复创建后60分钟后自动锁定。不再允许添加新回复。