Gentoo Archives: gentoo-user

From: Todd Goodman <tsg@×××××××××.net>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Can't Emerge gcc-4.7.3 on Multilib x86_64 Machine
Date: Wed, 03 Jul 2013 20:12:07
Message-Id: 20130703201159.GP26738@ns1.bonedaddy.net
1 I seem to have managed to fubar an amd64 multiboot machine I have as it fails
2 building gcc-4.7.3 and virtualbox.
3
4 Other amd64 machines are fine.
5
6 It looks like building anything with the -m 32 switch doesn't work
7 because ld doesn't like the libraries /lib/libc.so.6 and
8 /usr/lib/libc_nonshared.a.
9
10 I'm not sure why it's looking in those directories instead of /lib32 and
11 /usr/lib32 though since /lib is a symlink to /lib64 and /usr/lib is a
12 symlink to /usr/lib64.
13
14 The errors are the same:
15
16 /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /lib/libc.so.6
17 when searching for /lib/libc.so.6
18 /usr/x86_64-pc-linux-gnu/bin/ld: cannot find /lib/libc.so.6
19 /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible
20 /usr/lib/libc_nonshared.a when searching for /usr/lib/libc_nonshared.a
21 /usr/x86_64-pc-linux-gnu/bin/ld: cannot find /usr/lib/libc_nonshared.a
22
23 # gcc-config -l
24 [1] x86_64-pc-linux-gnu-4.7.3 *
25 #
26
27 Anyone seen this before?
28
29 Or have any suggestions?
30
31 Thanks,
32
33 Todd