[pkg-golang-devel] Bug#807136: Bug#807136: golang: FTBFS due to new binutils relocations

Michael Hudson-Doyle michael.hudson at canonical.com
Sun Dec 6 08:14:59 UTC 2015


This is fixed in 1.5.2 which got released the other day, so a simple
fix would be to just upload that :-)

On 6 December 2015 at 11:12, Eric Cooper <ecc at cooper-siegel.org> wrote:
> Package: golang
> Version: 2:1.5.1-4
> Severity: normal
> Tags: upstream patch
>
> Building golang fails with these errors:
>
>     ...
>     # cmd/trace
>     /build/golang-1.5.1/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic?
>     /build/golang-1.5.1/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic?
>     /build/golang-1.5.1/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic?
>     runtime/cgo(.text): unexpected relocation type 298
>     runtime/cgo(.text): unexpected relocation type 298
>     runtime/cgo(.text): unexpected relocation type 298
>     # cmd/pprof
>     /build/golang-1.5.1/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic?
>     /build/golang-1.5.1/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic?
>     /build/golang-1.5.1/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic?
>     runtime/cgo(.text): unexpected relocation type 298
>     runtime/cgo(.text): unexpected relocation type 298
>     runtime/cgo(.text): unexpected relocation type 298
>     # cmd/go
>     /build/golang-1.5.1/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic?
>     /build/golang-1.5.1/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic?
>     /build/golang-1.5.1/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic?
>     runtime/cgo(.text): unexpected relocation type 298
>     runtime/cgo(.text): unexpected relocation type 298
>     runtime/cgo(.text): unexpected relocation type 298
>     debian/rules:62: recipe for target 'override_dh_auto_build-arch' failed
>     make[1]: *** [override_dh_auto_build-arch] Error 2
>     make[1]: Leaving directory '/build/golang-1.5.1'
>     debian/rules:15: recipe for target 'build' failed
>     make: *** [build] Error 2
>     dpkg-buildpackage: error: debian/rules build gave error exit status 2
>
> The problem is fixed upstream here:
>
>     https://github.com/golang/go/commit/914db9f060b1fd3eb1f74d48f3bd46a73d4ae9c7
>
> but that commit does not apply cleanly to the current Debian version.
> I've attached an equivalent patch that does, but I didn't manage to
> preserve the original author, date, etc.  Please use the original
> metadata from the github commit if you decide to apply this.
>
> -- System Information:
> Debian Release: stretch/sid
>   APT prefers testing
>   APT policy: (500, 'testing'), (400, 'unstable'), (1, 'experimental')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 4.2.0-1-amd64 (SMP w/8 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
>
> Versions of packages golang depends on:
> ii  golang-doc  2:1.5.1-4
> ii  golang-go   2:1.5.1-4
> ii  golang-src  2:1.5.1-4
>
> golang recommends no packages.
>
> golang suggests no packages.
>
> -- no debconf information
>
> _______________________________________________
> pkg-golang-devel mailing list
> pkg-golang-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-golang-devel



More information about the pkg-golang-devel mailing list