[Bug 1586872] [NEW] gccgo: -buildmode=shared and cgo don't work together
Michael Hudson-Doyle
michael.hudson+lp at canonical.com
Mon May 30 00:52:35 UTC 2016
Public bug reported:
As seen at
https://launchpad.net/~mwhudson/+archive/ubuntu/devirt/+build/9828197,
this combination fails to build:
/usr/bin/gccgo-6 -o $WORK/libgithub.com-gosexy-gettext.so -shared -nostdlib -zdefs -Wl,--whole-archive /«PKGBUILDDIR»/obj-powerpc-linux-gnu/pkg/gccgo_linux_ppc_fPIC/github.com/gosexy/libgettext.a -Wl,--no-whole-archive -shared -nostdlib -lgo -lgcc_s -lgcc -lc -Wl,-soname=libgolang-github-gosexy-gettext.so.1 -Wl,-znow -fPIC
# /tmp/go-build671164651/libgithub.com-gosexy-gettext.so
/«PKGBUILDDIR»/obj-powerpc-linux-gnu/pkg/gccgo_linux_ppc_fPIC/github.com/gosexy/libgettext.a: member /«PKGBUILDDIR»/obj-powerpc-linux-gnu/pkg/gccgo_linux_ppc_fPIC/github.com/gosexy/libgettext.a(_cgo_flags) in archive is not an object
collect2: error: ld returned 1 exit status
I've reported this upstream (https://github.com/golang/go/issues/15885)
and hacked up a fix while I'll attach in a moment.
** Affects: gcc-6 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-6 in Ubuntu.
https://bugs.launchpad.net/bugs/1586872
Title:
gccgo: -buildmode=shared and cgo don't work together
Status in gcc-6 package in Ubuntu:
New
Bug description:
As seen at
https://launchpad.net/~mwhudson/+archive/ubuntu/devirt/+build/9828197,
this combination fails to build:
/usr/bin/gccgo-6 -o $WORK/libgithub.com-gosexy-gettext.so -shared -nostdlib -zdefs -Wl,--whole-archive /«PKGBUILDDIR»/obj-powerpc-linux-gnu/pkg/gccgo_linux_ppc_fPIC/github.com/gosexy/libgettext.a -Wl,--no-whole-archive -shared -nostdlib -lgo -lgcc_s -lgcc -lc -Wl,-soname=libgolang-github-gosexy-gettext.so.1 -Wl,-znow -fPIC
# /tmp/go-build671164651/libgithub.com-gosexy-gettext.so
/«PKGBUILDDIR»/obj-powerpc-linux-gnu/pkg/gccgo_linux_ppc_fPIC/github.com/gosexy/libgettext.a: member /«PKGBUILDDIR»/obj-powerpc-linux-gnu/pkg/gccgo_linux_ppc_fPIC/github.com/gosexy/libgettext.a(_cgo_flags) in archive is not an object
collect2: error: ld returned 1 exit status
I've reported this upstream
(https://github.com/golang/go/issues/15885) and hacked up a fix while
I'll attach in a moment.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-6/+bug/1586872/+subscriptions
More information about the foundations-bugs
mailing list