[pkg-go] Bug#837480: gb: FTBFS with bindnow and PIE enabled

Balint Reczey balint at balintreczey.hu
Sun Sep 11 22:30:11 UTC 2016


Source: gb
Version: 0.4.2-1
Severity: important
User: balint at balintreczey.hu
Usertags: pie-bindnow-20160906
Justification: FTBFS on amd64 with extra hardening

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64 with patched GCC and dpkg.

The rebuild tested if packages are ready for a transition
enabling PIE and bindnow for amd64.

For more information about the changes to sid's dpkg and GCC please
visit:
 https://wiki.debian.org/Hardening/PIEByDefaultTransition

Relevant part (hopefully):
...
=== RUN   TestReadFailuresIgnored
--- PASS: TestReadFailuresIgnored (0.00s)
PASS
ok      github.com/constabulary/gb/importer     0.004s
=== RUN   TestTest
a
a
b
a
d.v1
c
f
e
cmd/f
extest
extest
external_only_test
notestfiles
/usr/bin/ld: -r and -pie may not be used together
collect2: error: ld returned 1 exit status
# cgoonlynotest
testonly
extestonly
g
g
ldflags
/usr/bin/ld: -r and -pie may not be used together
collect2: error: ld returned 1 exit status
# cgotest
testflags
main
--- FAIL: TestTest (3.16s)
        test_test.go:96: Test(cgoonlynotest): want <nil>, got exit status 1
        test_test.go:84: skipping test, goversion 1.600000 is above
maxgoversion 1.500000
        test_test.go:96: Test(cgotest): want <nil>, got exit status 1
=== RUN   TestTestPackage
--- PASS: TestTestPackage (0.09s)

...

The full build log is available from:
 https://people.debian.org/~rbalint/build-logs/pie-bindnow-20160906/gb_0.4.2-1_amd64.build.gz

Thanks,
Balint



More information about the Pkg-go-maintainers mailing list