Bug#1077724: adequate: FTBFS with gccgo
Hello, On Thu, 2024-08-01 at 21:19 +0200, Serafeim Zanikolas wrote: > > src/salsa.debian.org/debian/adequate/binfmt.go:7:2: cannot find package > > "cmp" in any of: > > /home/glaubitz/adequate/adequate-0.16.5/_build/src/slices (from > > $GOPATH) > > that should be fixable on my end, by adding a version constraint on the > golang-go build dependency. Please build-depend on golang-any, not golang-go. The latter enforces the use of the Google Go compiler and blocks the use of golang-gccgo on targets where golang-go is not available. golang-any defaults to the Google Go compiler where available and on gccgo for the other platforms. > slices and cmp have been introduced in 1.21, and presumably gccgo is on 1.20 > (current version of gcc-defaults is 1.203) gccgo is on Go 1.18 with gcc-14: (sid_sparc64-dchroot)glaubitz@stadler:~/adequate/adequate-0.16.5$ go version go version go1.18 gccgo (Debian 14.1.0-5) 14.1.0 linux/sparc64 (sid_sparc64-dchroot)glaubitz@stadler:~/adequate/adequate-0.16.5$ Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Bug#1077724: adequate: FTBFS with gccgo
John Paul, thanks for the report! On Thu Aug 1, 2024 at 9:27 AM CEST, John Paul Adrian Glaubitz wrote: > Source: adequate > Version: 0.16.5 > Severity: normal [..] > src/salsa.debian.org/debian/adequate/binfmt.go:7:2: cannot find package "cmp" > in any of: > /home/glaubitz/adequate/adequate-0.16.5/_build/src/slices (from > $GOPATH) that should be fixable on my end, by adding a version constraint on the golang-go build dependency. slices and cmp have been introduced in 1.21, and presumably gccgo is on 1.20 (current version of gcc-defaults is 1.203) signature.asc Description: PGP signature
Bug#1077724: adequate: FTBFS with gccgo
Source: adequate Version: 0.16.5 Severity: normal Hello, I tried to build adequate with gccgo in order to make it available to more architectures but unfortunately the code isn't portable enough at the moment: CGO_CFLAGS="-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/glaubitz/adequate/adequate-0.16.5=. -Wformat -Werror=format-security" CGO_CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" CGO_CXXFLAGS="-g -O2 -ffile-prefix-map=/home/glaubitz/adequate/adequate-0.16.5=. -Wformat -Werror=format-security" CGO_FFLAGS="-g -O2 -ffile-prefix-map=/home/glaubitz/adequate/adequate-0.16.5=." CGO_LDFLAGS="-Wl,-z,relro" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2873516682=/tmp/go-build -gno-record-gcc-switches -funwind-tables" cd _build && go install -trimpath -v -p 48 salsa.debian.org/debian/adequate salsa.debian.org/debian/adequate/private src/salsa.debian.org/debian/adequate/binfmt.go:7:2: cannot find package "cmp" in any of: /usr/src/cmp (from $GOROOT) /home/glaubitz/adequate/adequate-0.16.5/_build/src/cmp (from $GOPATH) src/salsa.debian.org/debian/adequate/adequate.go:13:2: cannot find package "slices" in any of: /usr/src/slices (from $GOROOT) /home/glaubitz/adequate/adequate-0.16.5/_build/src/slices (from $GOPATH) dh_auto_build: error: cd _build && go install -trimpath -v -p 48 salsa.debian.org/debian/adequate salsa.debian.org/debian/adequate/private returned exit code 1 make: *** [debian/rules:8: binary-arch] Error 1 dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit status 2 Not sure whether this is an issue that should be reported with gccgo upstream or here. Thanks, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913