public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/46812] New: Linux libgo compilation fails when a "libnet" is already installed
@ 2010-12-05 22:12 andi-gcc at firstfloor dot org
2010-12-05 22:58 ` [Bug bootstrap/46812] " andi-gcc at firstfloor dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: andi-gcc at firstfloor dot org @ 2010-12-05 22:12 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46812
Summary: Linux libgo compilation fails when a "libnet" is
already installed
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: andi-gcc@firstfloor.org
I tried to bootstrap a trunk gcc with go enabled on a OpenSUSE system.
This failed with:
set -e; rm -f crypto/rsa.gox.o; /home/andi/gcc/git/obj/./gcc/xgcc
-B/home/andi/gcc/git/obj/./gcc/
-B/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/bin/
-B/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/lib/ -isystem
/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/include -isystem
/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/sys-include -r -nostdlib -o
crypto/rsa.gox.o -Wl,--whole-archive crypto/librsa.a; objcopy -j .go_export
crypto/rsa.gox.o crypto/rsa.gox.tmp; mv -f crypto/rsa.gox.tmp crypto/rsa.gox;
rm -f crypto/rsa.gox.o
rm -f `echo crypto/libx509.a | sed -e 's|/lib|/|' -e 's/\.a/.gox/'`; test -d
crypto || /bin/mkdir -p crypto; rm -f crypto/libx509.a; files=`echo
../../../gcc/libgo/go/crypto/x509/x509.go asn1.gox big.gox container/vector.gox
crypto/rsa.gox crypto/sha1.gox hash.gox os.gox strings.gox time.gox | sed -e
's/[^ ]*\.gox//g'`; if /bin/sh ./libtool --tag GO --mode=compile
/home/src/gcc/git/obj/./gcc/gccgo -B/home/src/gcc/git/obj/./gcc/
-B/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/bin/
-B/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/lib/ -isystem
/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/include -isystem
/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/sys-include
-minline-all-stringops -O2 -g -c -fgo-prefix="libgo_crypto" -o
crypto/libx509.a.o $files; then ar rc crypto/libx509.a crypto/libx509.a.o; else
exit 1; fi
libtool: compile: /home/src/gcc/git/obj/./gcc/gccgo
-B/home/src/gcc/git/obj/./gcc/
-B/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/bin/
-B/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/lib/ -isystem
/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/include -isystem
/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/sys-include -minline-all-stringops
-O2 -g -c -fgo-prefix=libgo_crypto ../../../gcc/libgo/go/crypto/x509/x509.go
-fPIC -o crypto/.libs/libx509.a.o
libtool: compile: /home/src/gcc/git/obj/./gcc/gccgo
-B/home/src/gcc/git/obj/./gcc/
-B/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/bin/
-B/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/lib/ -isystem
/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/include -isystem
/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/sys-include -minline-all-stringops
-O2 -g -c -fgo-prefix=libgo_crypto ../../../gcc/libgo/go/crypto/x509/x509.go -o
crypto/libx509.a.o >/dev/null 2>&1
set -e; rm -f crypto/x509.gox.o; /home/andi/gcc/git/obj/./gcc/xgcc
-B/home/andi/gcc/git/obj/./gcc/
-B/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/bin/
-B/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/lib/ -isystem
/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/include -isystem
/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/sys-include -r -nostdlib -o
crypto/x509.gox.o -Wl,--whole-archive crypto/libx509.a; objcopy -j .go_export
crypto/x509.gox.o crypto/x509.gox.tmp; mv -f crypto/x509.gox.tmp
crypto/x509.gox; rm -f crypto/x509.gox.o
rm -f `echo crypto/libtls.a | sed -e 's|/lib|/|' -e 's/\.a/.gox/'`; test -d
crypto || /bin/mkdir -p crypto; rm -f crypto/libtls.a; files=`echo
../../../gcc/libgo/go/crypto/tls/alert.go
../../../gcc/libgo/go/crypto/tls/ca_set.go
../../../gcc/libgo/go/crypto/tls/common.go
../../../gcc/libgo/go/crypto/tls/conn.go
../../../gcc/libgo/go/crypto/tls/handshake_client.go
../../../gcc/libgo/go/crypto/tls/handshake_messages.go
../../../gcc/libgo/go/crypto/tls/handshake_server.go
../../../gcc/libgo/go/crypto/tls/prf.go ../../../gcc/libgo/go/crypto/tls/tls.go
bufio.gox bytes.gox container/list.gox crypto/hmac.gox crypto/md5.gox
crypto/rc4.gox crypto/rand.gox crypto/rsa.gox crypto/sha1.gox crypto/subtle.gox
crypto/x509.gox encoding/pem.gox fmt.gox hash.gox io.gox io/ioutil.gox net.gox
os.gox strings.gox sync.gox time.gox | sed -e 's/[^ ]*\.gox//g'`; if /bin/sh
./libtool --tag GO --mode=compile /home/src/gcc/git/obj/./gcc/gccgo
-B/home/src/gcc/git/obj/./gcc/
-B/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/bin/
-B/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/lib/ -isystem
/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/include -isystem
/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/sys-include
-minline-all-stringops -O2 -g -c -fgo-prefix="libgo_crypto" -o
crypto/libtls.a.o $files; then ar rc crypto/libtls.a crypto/libtls.a.o; else
exit 1; fi
libtool: compile: /home/src/gcc/git/obj/./gcc/gccgo
-B/home/src/gcc/git/obj/./gcc/
-B/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/bin/
-B/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/lib/ -isystem
/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/include -isystem
/pkg/gcc-4.6-101205/x86_64-unknown-linux-gnu/sys-include -minline-all-stringops
-O2 -g -c -fgo-prefix=libgo_crypto ../../../gcc/libgo/go/crypto/tls/alert.go
../../../gcc/libgo/go/crypto/tls/ca_set.go
../../../gcc/libgo/go/crypto/tls/common.go
../../../gcc/libgo/go/crypto/tls/conn.go
../../../gcc/libgo/go/crypto/tls/handshake_client.go
../../../gcc/libgo/go/crypto/tls/handshake_messages.go
../../../gcc/libgo/go/crypto/tls/handshake_server.go
../../../gcc/libgo/go/crypto/tls/prf.go ../../../gcc/libgo/go/crypto/tls/tls.go
-fPIC -o crypto/.libs/libtls.a.o
../../../gcc/libgo/go/crypto/tls/conn.go:11:5: error:
/usr/lib/../lib64/libnet.so exists but does not contain any Go export data
make[2]: *** [crypto/libtls.a] Error 1
make[2]: Leaving directory
`/home/src/gcc/git/obj/x86_64-unknown-linux-gnu/libgo'
/usr/lib64/libnet comes from a suse rpm and is a semipopular library.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug bootstrap/46812] Linux libgo compilation fails when a "libnet" is already installed
2010-12-05 22:12 [Bug bootstrap/46812] New: Linux libgo compilation fails when a "libnet" is already installed andi-gcc at firstfloor dot org
@ 2010-12-05 22:58 ` andi-gcc at firstfloor dot org
2010-12-07 14:19 ` ian at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: andi-gcc at firstfloor dot org @ 2010-12-05 22:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46812
--- Comment #1 from Andi Kleen <andi-gcc at firstfloor dot org> 2010-12-05 22:58:12 UTC ---
BTW I specified a different prefix than /usr, so libtool looked into the wrong
directory anyways here.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug bootstrap/46812] Linux libgo compilation fails when a "libnet" is already installed
2010-12-05 22:12 [Bug bootstrap/46812] New: Linux libgo compilation fails when a "libnet" is already installed andi-gcc at firstfloor dot org
2010-12-05 22:58 ` [Bug bootstrap/46812] " andi-gcc at firstfloor dot org
@ 2010-12-07 14:19 ` ian at gcc dot gnu.org
2010-12-07 14:22 ` ian at airs dot com
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: ian at gcc dot gnu.org @ 2010-12-07 14:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46812
--- Comment #2 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> 2010-12-07 14:18:40 UTC ---
Author: ian
Date: Tue Dec 7 14:18:35 2010
New Revision: 167537
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167537
Log:
PR other/46789
PR bootstrap/46812
* go-lang.c (go_char_p): Define type and vectors.
(go_search_dirs): New static variable.
(go_langhook_handle_option): Use version and version/machine
directories for -L.
(go_langhook_post_options): Add non-specific -L paths.
* Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
DEFAULT_TARGET_MACHINE when compiling.
* gccgo.texi (Invoking gccgo): Only document -L for linking.
(Import and Export): Don't mention -L for finding import files.
libgo: Install .gox files in version and target specific directory.
Modified:
trunk/gcc/go/ChangeLog
trunk/gcc/go/Make-lang.in
trunk/gcc/go/gccgo.texi
trunk/gcc/go/go-lang.c
trunk/libgo/Makefile.am
trunk/libgo/Makefile.in
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug bootstrap/46812] Linux libgo compilation fails when a "libnet" is already installed
2010-12-05 22:12 [Bug bootstrap/46812] New: Linux libgo compilation fails when a "libnet" is already installed andi-gcc at firstfloor dot org
2010-12-05 22:58 ` [Bug bootstrap/46812] " andi-gcc at firstfloor dot org
2010-12-07 14:19 ` ian at gcc dot gnu.org
@ 2010-12-07 14:22 ` ian at airs dot com
2010-12-09 17:06 ` andi-gcc at firstfloor dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: ian at airs dot com @ 2010-12-07 14:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46812
Ian Lance Taylor <ian at airs dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |ian at airs dot com
Resolution| |FIXED
--- Comment #3 from Ian Lance Taylor <ian at airs dot com> 2010-12-07 14:21:49 UTC ---
Thanks for the bug report. This should be fixed now.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug bootstrap/46812] Linux libgo compilation fails when a "libnet" is already installed
2010-12-05 22:12 [Bug bootstrap/46812] New: Linux libgo compilation fails when a "libnet" is already installed andi-gcc at firstfloor dot org
` (2 preceding siblings ...)
2010-12-07 14:22 ` ian at airs dot com
@ 2010-12-09 17:06 ` andi-gcc at firstfloor dot org
2010-12-09 22:17 ` ian at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: andi-gcc at firstfloor dot org @ 2010-12-09 17:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46812
Andi Kleen <andi-gcc at firstfloor dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|FIXED |
--- Comment #4 from Andi Kleen <andi-gcc at firstfloor dot org> 2010-12-09 17:05:51 UTC ---
The problem is still there as of trunk Dec9. I verified the patch
below is in the Changelog.
libtool: compile: /home/src/gcc/git/obj/./gcc/gccgo
-B/home/src/gcc/git/obj/./gcc/
-B/pkg/gcc-4.6-101209/x86_64-unknown-linux-gnu/bin/
-B/pkg/gcc-4.6-101209/x86_64-unknown-linux-gnu/lib/ -isystem
/pkg/gcc-4.6-101209/x86_64-unknown-linux-gnu/include -isystem
/pkg/gcc-4.6-101209/x86_64-unknown-linux-gnu/sys-include -minline-all-stringops
-O2 -g -c -fgo-prefix=libgo_crypto ../../../gcc/libgo/go/crypto/tls/alert.go
../../../gcc/libgo/go/crypto/tls/ca_set.go
../../../gcc/libgo/go/crypto/tls/common.go
../../../gcc/libgo/go/crypto/tls/conn.go
../../../gcc/libgo/go/crypto/tls/handshake_client.go
../../../gcc/libgo/go/crypto/tls/handshake_messages.go
../../../gcc/libgo/go/crypto/tls/handshake_server.go
../../../gcc/libgo/go/crypto/tls/prf.go ../../../gcc/libgo/go/crypto/tls/tls.go
-fPIC -o crypto/.libs/libtls.a.o
../../../gcc/libgo/go/crypto/tls/conn.go:11:5: error:
/usr/lib/../lib64/libnet.so exists but does not contain any Go export data
Can someone please reopen the bug?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug bootstrap/46812] Linux libgo compilation fails when a "libnet" is already installed
2010-12-05 22:12 [Bug bootstrap/46812] New: Linux libgo compilation fails when a "libnet" is already installed andi-gcc at firstfloor dot org
` (3 preceding siblings ...)
2010-12-09 17:06 ` andi-gcc at firstfloor dot org
@ 2010-12-09 22:17 ` ian at gcc dot gnu.org
2010-12-09 22:18 ` ian at airs dot com
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: ian at gcc dot gnu.org @ 2010-12-09 22:17 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46812
--- Comment #5 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> 2010-12-09 22:17:33 UTC ---
Author: ian
Date: Thu Dec 9 22:17:25 2010
New Revision: 167668
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167668
Log:
PR bootstrap/46812
Add explicit -I . when building libgo.
Modified:
trunk/libgo/Makefile.am
trunk/libgo/Makefile.in
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug bootstrap/46812] Linux libgo compilation fails when a "libnet" is already installed
2010-12-05 22:12 [Bug bootstrap/46812] New: Linux libgo compilation fails when a "libnet" is already installed andi-gcc at firstfloor dot org
` (4 preceding siblings ...)
2010-12-09 22:17 ` ian at gcc dot gnu.org
@ 2010-12-09 22:18 ` ian at airs dot com
2010-12-10 13:23 ` andi-gcc at firstfloor dot org
2010-12-10 15:30 ` ian at airs dot com
7 siblings, 0 replies; 9+ messages in thread
From: ian at airs dot com @ 2010-12-09 22:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46812
Ian Lance Taylor <ian at airs dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
--- Comment #6 from Ian Lance Taylor <ian at airs dot com> 2010-12-09 22:18:21 UTC ---
I committed another attempted patch. Please let me know if it still fails for
you.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug bootstrap/46812] Linux libgo compilation fails when a "libnet" is already installed
2010-12-05 22:12 [Bug bootstrap/46812] New: Linux libgo compilation fails when a "libnet" is already installed andi-gcc at firstfloor dot org
` (5 preceding siblings ...)
2010-12-09 22:18 ` ian at airs dot com
@ 2010-12-10 13:23 ` andi-gcc at firstfloor dot org
2010-12-10 15:30 ` ian at airs dot com
7 siblings, 0 replies; 9+ messages in thread
From: andi-gcc at firstfloor dot org @ 2010-12-10 13:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46812
Andi Kleen <andi-gcc at firstfloor dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |VERIFIED
--- Comment #7 from Andi Kleen <andi-gcc at firstfloor dot org> 2010-12-10 13:23:08 UTC ---
Yes works now. Thanks.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug bootstrap/46812] Linux libgo compilation fails when a "libnet" is already installed
2010-12-05 22:12 [Bug bootstrap/46812] New: Linux libgo compilation fails when a "libnet" is already installed andi-gcc at firstfloor dot org
` (6 preceding siblings ...)
2010-12-10 13:23 ` andi-gcc at firstfloor dot org
@ 2010-12-10 15:30 ` ian at airs dot com
7 siblings, 0 replies; 9+ messages in thread
From: ian at airs dot com @ 2010-12-10 15:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46812
Ian Lance Taylor <ian at airs dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |3dw4rd at verizon dot net
--- Comment #8 from Ian Lance Taylor <ian at airs dot com> 2010-12-10 15:29:29 UTC ---
*** Bug 46876 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-12-10 15:30 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-05 22:12 [Bug bootstrap/46812] New: Linux libgo compilation fails when a "libnet" is already installed andi-gcc at firstfloor dot org
2010-12-05 22:58 ` [Bug bootstrap/46812] " andi-gcc at firstfloor dot org
2010-12-07 14:19 ` ian at gcc dot gnu.org
2010-12-07 14:22 ` ian at airs dot com
2010-12-09 17:06 ` andi-gcc at firstfloor dot org
2010-12-09 22:17 ` ian at gcc dot gnu.org
2010-12-09 22:18 ` ian at airs dot com
2010-12-10 13:23 ` andi-gcc at firstfloor dot org
2010-12-10 15:30 ` ian at airs dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).