Public bug reported:
First problem (need to report, so you know how to reproduce it):
ioe@laforge:~/sources/github/go/play$ go build -compiler gccgo
go build github.com/nightlyone/play: exec: "gccgo": executable file not found
in $PATH
Easily worked around with installing this small script called "gccgo" in the
$PATH or a manual symlink.
#!/bin/sh
exec /usr/bin/gccgo-4.7 $@
Next problem (the one to be actually reported):
ioe@laforge:~/sources/github/go/play$ go build -compiler gccgo
# github.com/nightlyone/play
/usr/bin/ld: cannot find -lgcc_s
collect2: error: ld returned 1 exit status
This can be fixed with extending the script "gccgo" in the $PATH like this:
#!/bin/sh
exec /usr/bin/gccgo-4.7 -static-libgcc -B/usr/bin/ld.gold $@
After this change I can compile binaries and libraries.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: gccgo-4.7 4.7.2-0ubuntu3
ProcVersionSignature: Ubuntu 3.5.0-19.30~precise1-generic 3.5.7
Uname: Linux 3.5.0-19-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.1
Architecture: amd64
Date: Mon Jan 21 10:55:51 2013
MarkForUpload: True
ProcEnviron:
LANGUAGE=en_GB
TERM=xterm
PATH=(custom, no user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: gccgo-4.7
UpgradeStatus: Upgraded to precise on 2012-05-05 (260 days ago)
** Affects: gccgo-4.7 (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug precise
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1102340
Title:
go build -compiler gccgo misses libgcc_s on the the final link
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gccgo-4.7/+bug/1102340/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs