Gentoo Archives: gentoo-hardened

From: Nicolas MASSE <nicolas27.masse@×××××××.net>
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] multilib profile on amd64 ?
Date: Sun, 27 Nov 2005 17:39:48
Message-Id: 200511271837.54009.nicolas27.masse@laposte.net
1 Hello,
2
3 I have an amd64 system using the hardened profile
4 (../var/portage/profiles/hardened/amd64) and I tried to compile gcc with the
5 multilib use falg but it failed with :
6
7 /usr/x86_64-pc-linux-gnu/bin/ld: skipping
8 incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/../../libc.so when searching
9 for -lc
10 /usr/x86_64-pc-linux-gnu/bin/ld: skipping
11 incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/../../libc.a when searching for
12 -lc
13 /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.so when
14 searching for -lc
15 /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.a when
16 searching for -lc
17 /usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lc
18 collect2: ld returned 1 exit status
19 make[3]: *** [32/libgcc_s_32.so] Error 1
20 make[3]: Leaving directory `/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
21 make[2]: *** [stmp-multilib] Error 2
22 make[2]: Leaving directory `/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
23 make[1]: *** [stage1_build] Error 2
24 make[1]: Leaving directory `/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
25 make: *** [profiledbootstrap] Error 2
26
27 !!! ERROR: sys-devel/gcc-3.4.4-r1 failed.
28 !!! Function gcc_do_make, Line 1311, Exitcode 2
29
30 After further investigations, it seems that I need to compile my libc for two
31 abi : 32 and 64 bits. But in my make.default I only have :
32
33 MULTILIB_ABIS="amd64"
34 DEFAULT_ABI="amd64"
35 ABI="amd64"
36
37 I searched for help and I found :
38 http://thread.gmane.org/gmane.linux.gentoo.hardened/1525
39 http://dev.gentoo.org/~plasmaroo/devmanual/archs/amd64/
40
41 I wonder how I could build the 32 bits version of the libraries of my system.
42
43 Any idea ?
44 --
45 gentoo-hardened@g.o mailing list

Replies

Subject Author
Re: [gentoo-hardened] multilib profile on amd64 ? Ned Ludd <solar@g.o>