[Docker-maint] Bug#807136: golang: FTBFS due to new binutils	relocations
    Eric Cooper 
    ecc at cooper-siegel.org
       
    Sat Dec  5 22:12:44 UTC 2015
    
    
  
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bintuils.patch
Type: text/x-diff
Size: 8331 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/docker-maint/attachments/20151205/dbf12f8b/attachment.patch>
    
    
More information about the Docker-maint
mailing list