therecipe / qt

Qt binding for Go (Golang) with support for Windows / macOS / Linux / FreeBSD / Android / iOS / Sailfish OS / Raspberry Pi / AsteroidOS / Ubuntu Touch / JavaScript / WebAssembly
GNU Lesser General Public License v3.0
10.31k stars 737 forks source link

Build/installation issues on Ubuntu 20, with gollvm #1174

Open advancedwebdeveloper opened 3 years ago

advancedwebdeveloper commented 3 years ago

Hi.

$ go get -ldflags="-w" github.com/therecipe/examples/basic/widgets && ~/go/bin/widgets go: found github.com/therecipe/examples/basic/widgets in github.com/therecipe/examples v0.0.0-20200701200025-1b5d8d146c95 go get: github.com/therecipe/examples@v0.0.0-20200701200025-1b5d8d146c95: parsing go.mod: go.mod:3: require github.com/therecipe/qt: version "master" invalid: must be of the form v1.2.3 go.mod:5: require github.com/therecipe/qt/internal/binding/files/docs/5.13.0: version "master" invalid: must be of the form v1.2.3

I am using this release build of gollvm .

$ export GO111MODULE=off; go get -v github.com/therecipe/qt/cmd/... && ~/go/bin/qtsetup test && ~/go/bin/qtsetup -test=false github.com/therecipe/qt (download) github.com/therecipe/env_linux_amd64_513 (download) github.com/sirupsen/logrus (download) get "golang.org/x/sys/unix": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at //golang.org/x/sys/unix?go-get=1 get "golang.org/x/sys/unix": verifying non-authoritative meta tag golang.org/x/sys (download) get "golang.org/x/tools/imports": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at //golang.org/x/tools/imports?go-get=1 get "golang.org/x/tools/imports": verifying non-authoritative meta tag golang.org/x/tools (download) get "golang.org/x/mod/semver": found meta tag get.metaImport{Prefix:"golang.org/x/mod", VCS:"git", RepoRoot:"https://go.googlesource.com/mod"} at //golang.org/x/mod/semver?go-get=1 get "golang.org/x/mod/semver": verifying non-authoritative meta tag golang.org/x/mod (download) get "golang.org/x/mod/module": found meta tag get.metaImport{Prefix:"golang.org/x/mod", VCS:"git", RepoRoot:"https://go.googlesource.com/mod"} at //golang.org/x/mod/module?go-get=1 get "golang.org/x/mod/module": verifying non-authoritative meta tag get "golang.org/x/xerrors": found meta tag get.metaImport{Prefix:"golang.org/x/xerrors", VCS:"git", RepoRoot:"https://go.googlesource.com/xerrors"} at //golang.org/x/xerrors?go-get=1 golang.org/x/xerrors (download) github.com/therecipe/env_linux_amd64_513 golang.org/x/sys/internal/unsafeheader github.com/therecipe/qt/cmd/env golang.org/x/sys/unix github.com/therecipe/qt/internal/binding/files/docs/5.12.0 github.com/therecipe/qt/internal/binding/files/docs/5.13.0 github.com/therecipe/qt/internal/binding/files/docs golang.org/x/mod/semver golang.org/x/tools/internal/event/label golang.org/x/tools/internal/event/keys golang.org/x/tools/internal/event/core golang.org/x/tools/internal/event golang.org/x/tools/internal/gocommand golang.org/x/xerrors/internal golang.org/x/xerrors github.com/sirupsen/logrus golang.org/x/mod/module golang.org/x/tools/go/ast/astutil github.com/therecipe/qt/internal/utils golang.org/x/tools/internal/fastwalk github.com/therecipe/qt/internal/cmd golang.org/x/tools/internal/gopathwalk golang.org/x/tools/internal/imports github.com/therecipe/qt/internal/binding/parser golang.org/x/tools/imports github.com/therecipe/qt/internal/binding/converter github.com/therecipe/qt/internal/binding/templater github.com/therecipe/qt/internal/cmd/rcc github.com/therecipe/qt/internal/cmd/moc github.com/therecipe/qt/internal/cmd/minimal github.com/therecipe/qt/cmd/qtmoc github.com/therecipe/qt/internal/cmd/deploy github.com/therecipe/qt/cmd/qtminimal github.com/therecipe/qt/cmd/qtrcc github.com/therecipe/qt/cmd/qtdeploy github.com/therecipe/qt/internal/cmd/setup github.com/therecipe/qt/cmd/qtsetup INFO[0003] running: 'qtsetup test linux' [docker=false] [vagrant=false] INFO[0003] testing showcases/wallet
ERRO[0019] failed to read dir error="open /home/oceanfish81/gollvm_dist/src/path/filepath: no such file or directory" ERRO[0019] failed to read dir error="open /home/oceanfish81/gollvm_dist/src/io: no such file or directory" ERRO[0019] failed to read dir error="open /home/oceanfish81/gollvm_dist/src/archive/zip: no such file or directory" ERRO[0019] failed to read dir error="open /home/oceanfish81/gollvm_dist/src/net/http: no such file or directory" ERRO[0019] failed to read dir error="open /home/oceanfish81/gollvm_dist/src/runtime: no such file or directory" ERRO[0019] failed to read dir error="open /home/oceanfish81/gollvm_dist/src/time: no such file or directory" ERRO[0019] failed to read dir error="open /home/oceanfish81/gollvm_dist/src/os: no such file or directory" ERRO[0019] failed to read dir error="open /home/oceanfish81/gollvm_dist/src/os/exec: no such file or directory" ERRO[0019] failed to read dir error="open /home/oceanfish81/gollvm_dist/src/reflect: no such file or directory" ERRO[0019] failed to read dir error="open /home/oceanfish81/gollvm_dist/src/unsafe: no such file or directory" ERRO[0019] failed to read dir error="open /home/oceanfish81/gollvm_dist/src/math/big: no such file or directory" ERRO[0019] failed to read dir error="open /home/oceanfish81/gollvm_dist/src/bufio: no such file or directory" ERRO[0019] failed to read dir error="open /home/oceanfish81/gollvm_dist/src/sync: no such file or directory" ERRO[0019] failed to read dir error="open /home/oceanfish81/gollvm_dist/src/fmt: no such file or directory" ERRO[0019] failed to read dir error="open /home/oceanfish81/gollvm_dist/src/log: no such file or directory" ERRO[0019] failed to read dir error="open /home/oceanfish81/gollvm_dist/src/math: no such file or directory" ERRO[0019] failed to read dir error="open /home/oceanfish81/gollvm_dist/src/encoding/json: no such file or directory" ERRO[0019] failed to read dir error="open /home/oceanfish81/gollvm_dist/src/errors: no such file or directory" ERRO[0019] failed to read dir error="open /home/oceanfish81/gollvm_dist/src/bytes: no such file or directory" ERRO[0019] failed to read dir error="open /home/oceanfish81/gollvm_dist/src/strconv: no such file or directory" ERRO[0019] failed to read dir error="open /home/oceanfish81/gollvm_dist/src/strings: no such file or directory" ERRO[0032] failed to run command _func=RunCmd cmd="go list -tags= -e -f {{join .TestImports \"|\"}}|{{join .XTestImports \"|\"}}|{{join .Imports \"|\"}}" dir=/home/oceanfish81/gollvm_dist/src/net/http env="SHELL=/bin/bash SESSION_MANAGER=local/oceanfis81-VirtualBox:@/tmp/.ICE-unix/1116,unix/oceanfis81-VirtualBox:/tmp/.ICE-unix/1116 QT_ACCESSIBILITY=1 COLORTERM=truecolor XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg XDG_MENU_PREFIX=gnome- GNOME_DESKTOP_SESSION_ID=this-is-deprecated LC_ADDRESS=uk_UA.UTF-8 GNOME_SHELL_SESSION_MODE=ubuntu LC_NAME=uk_UA.UTF-8 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh XMODIFIERS=@im=ibus DESKTOP_SESSION=ubuntu LC_MONETARY=uk_UA.UTF-8 SSH_AGENT_PID=1088 GTK_MODULES=gail:atk-bridge DBUS_STARTER_BUS_TYPE=session PWD=/home/oceanfis81/go_projects/VictoriaMetrics/qt LOGNAME=oceanfis81 XDG_SESSION_DESKTOP=ubuntu XDG_SESSION_TYPE=x11 GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 XAUTHORITY=/run/user/1000/gdm/Xauthority WINDOWPATH=2 HOME=/home/oceanfis81 USERNAME=oceanfis81 IM_CONFIG_PHASE=1 LC_PAPER=uk_UA.UTF-8 LANG=en_US.UTF-8 LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arc=01;31:.arj=01;31:.taz=01;31:.lha=01;31:.lz4=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.tzo=01;31:.t7z=01;31:.zip=01;31:.z=01;31:.dz=01;31:.gz=01;31:.lrz=01;31:.lz=01;31:.lzo=01;31:.xz=01;31:.zst=01;31:.tzst=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.alz=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.cab=01;31:.wim=01;31:.swm=01;31:.dwm=01;31:.esd=01;31:.jpg=01;35:.jpeg=01;35:.mjpg=01;35:.mjpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.m4a=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.oga=00;36:.opus=00;36:.spx=00;36:.xspf=00;36: XDG_CURRENT_DESKTOP=ubuntu:GNOME VTE_VERSION=6003 GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/554f9e08_29fc_4b51_a513_cfdd0c2d5992 INVOCATION_ID=8dba2e64380047658eb3f4b74beddb05 MANAGERPID=840 LESSCLOSE=/usr/bin/lesspipe %s %s XDG_SESSION_CLASS=user TERM=xterm-256color LC_IDENTIFICATION=uk_UA.UTF-8 LESSOPEN=| /usr/bin/lesspipe %s USER=oceanfis81 GNOME_TERMINAL_SERVICE=:1.111 DISPLAY=:0 SHLVL=1 LC_TELEPHONE=uk_UA.UTF-8 QT_IM_MODULE=ibus LC_MEASUREMENT=uk_UA.UTF-8 DBUS_STARTER_ADDRESS=unix:path=/run/user/1000/bus,guid=9ac0954be8d13001320baa0c5f7492c6 XDG_RUNTIME_DIR=/run/user/1000 GO111MODULE=off LC_TIME=uk_UA.UTF-8 JOURNAL_STREAM=9:25174 XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin GDMSESSION=ubuntu DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus,guid=9ac0954be8d13001320baa0c5f7492c6 LC_NUMERIC=uk_UA.UTF-8 OLDPWD=/home/oceanfis81/goprojects/VictoriaMetrics =/home/oceanfis81/go/bin/qtsetup QT_DIR=/home/oceanfis81/go/src/github.com/therecipe/env_linux_amd64_513 CGO_ENABLED=0 XDG_MENU_PREFIX=gnome- LC_MONETARY=uk_UA.UTF-8 XDG_CURRENT_DESKTOP=ubuntu:GNOME LC_NUMERIC=uk_UA.UTF-8 XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg VTE_VERSION=6003 USER=oceanfis81 LC_MEASUREMENT=uk_UA.UTF-8 XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop CGO_LDFLAGS=-Wl,-rpath,$ORIGIN/lib -Wl,--disable-new-dtags LC_ADDRESS=uk_UA.UTF-8 LC_NAME=uk_UA.UTF-8 IM_CONFIG_PHASE=1 TERM=xterm-256color SSH_AUTH_SOCK=/run/user/1000/keyring/ssh XMODIFIERS=@im=ibus LC_PAPER=uk_UA.UTF-8 SHLVL=1 GOPATH=/home/oceanfis81/go DISPLAY=:0 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin SHELL=/bin/bash GTK_MODULES=gail:atk-bridge QT_DIR=/home/oceanfis81/go/src/github.com/therecipe/env_linux_amd64_513 USERNAME=oceanfis81 MANAGERPID=840 OLDPWD=/home/oceanfis81/go_projects/VictoriaMetrics COLORTERM=truecolor GNOME_SHELL_SESSION_MODE=ubuntu DBUS_STARTER_BUS_TYPE=session LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arc=01;31:.arj=01;31:.taz=01;31:.lha=01;31:.lz4=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.tzo=01;31:.t7z=01;31:.zip=01;31:.z=01;31:.dz=01;31:.gz=01;31:.lrz=01;31:.lz=01;31:.lzo=01;31:.xz=01;31:.zst=01;31:.tzst=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.alz=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.cab=01;31:.wim=01;31:.swm=01;31:.dwm=01;31:.esd=01;31:.jpg=01;35:.jpeg=01;35:.mjpg=01;35:.mjpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.m4a=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.oga=00;36:.opus=00;36:.spx=00;36:.xspf=00;36: CGO_ENABLED=1 SESSION_MANAGER=local/oceanfis81-VirtualBox:@/tmp/.ICE-unix/1116,unix/oceanfis81-VirtualBox:/tmp/.ICE-unix/1116 LESSCLOSE=/usr/bin/lesspipe %s %s GO111MODULE=off QT_ACCESSIBILITY=1 SSH_AGENT_PID=1088 GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GDMSESSION=ubuntu GOARCH=amd64 GNOME_DESKTOP_SESSION_ID=this-is-deprecated WINDOWPATH=2 JOURNAL_STREAM=9:25174 LC_TIME=uk_UA.UTF-8 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus,guid=9ac0954be8d13001320baa0c5f7492c6 DESKTOP_SESSION=ubuntu HOME=/home/oceanfis81 INVOCATION_ID=8dba2e64380047658eb3f4b74beddb05 XDG_SESSION_CLASS=user LC_TELEPHONE=uk_UA.UTF-8 DBUS_STARTER_ADDRESS=unix:path=/run/user/1000/bus,guid=9ac0954be8d13001320baa0c5f7492c6 PWD=/home/oceanfis81/go_projects/VictoriaMetrics/qt LOGNAME=oceanfis81 LANG=en_US.UTF-8 GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/554f9e08_29fc_4b51_a513_cfdd0c2d5992 XDG_SESSION_TYPE=x11 LESSOPEN=| /usr/bin/lesspipe %s XDG_RUNTIMEDIR=/run/user/1000 =/home/oceanfis81/go/bin/qtsetup LC_IDENTIFICATION=uk_UA.UTF-8 GNOME_TERMINAL_SERVICE=:1.111 GOROOT=/home/oceanfish81/gollvm_dist GOOS=linux XDG_SESSION_DESKTOP=ubuntu XAUTHORITY=/run/user/1000/gdm/Xauthority QT_IM_MODULE=ibus" error="chdir /home/oceanfish81/gollvm_dist/src/net/http: no such file or directory" name="go list deps"

$ go env && go version GO111MODULE="off" GOARCH="amd64" GOBIN="" GOCACHE="/home/oceanfis81/.cache/go-build" GOENV="/home/oceanfis81/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="/home/oceanfis81/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/home/oceanfis81/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/home/oceanfish81/gollvm_dist" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/home/oceanfish81/gollvm_dist/tools" GCCGO="/home/oceanfish81/gollvm_dist/bin/llvm-goc" AR="ar" CC="/usr/bin/clang" CXX="/usr/bin/clang++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build543404928=/tmp/go-build -gno-record-gcc-switches -funwind-tables" go version go1.15.2 gollvm LLVM 12.0.0git linux/amd64

ahtremblay commented 3 years ago

Having the same issued on MacOS. Have you been able to solve this?

advancedwebdeveloper commented 3 years ago

CC @thanm @ianlancetaylor

advancedwebdeveloper commented 3 years ago

Having the same issued on MacOS. Have you been able to solve this?

@ahtremblay , are you using gollvm? Hence that there is no working port, for MacOS, currently.