Gentoo Archives: gentoo-hardened

From: Ned Ludd <solar@g.o>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] multilib profile on amd64 ?
Date: Sun, 27 Nov 2005 17:57:52
Message-Id: 1133114155.5317.491.camel@localhost
In Reply to: [gentoo-hardened] multilib profile on amd64 ? by Nicolas MASSE
1 On Sun, 2005-11-27 at 18:37 +0100, Nicolas MASSE wrote:
2 > Hello,
3 >
4 > I have an amd64 system using the hardened profile
5 > (../var/portage/profiles/hardened/amd64) and I tried to compile gcc with the
6 > multilib use falg but it failed with :
7 >
8 > /usr/x86_64-pc-linux-gnu/bin/ld: skipping
9 > incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/../../libc.so when searching
10 > for -lc
11 > /usr/x86_64-pc-linux-gnu/bin/ld: skipping
12 > incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/../../libc.a when searching for
13 > -lc
14 > /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.so when
15 > searching for -lc
16 > /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.a when
17 > searching for -lc
18 > /usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lc
19 > collect2: ld returned 1 exit status
20 > make[3]: *** [32/libgcc_s_32.so] Error 1
21 > make[3]: Leaving directory `/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
22 > make[2]: *** [stmp-multilib] Error 2
23 > make[2]: Leaving directory `/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
24 > make[1]: *** [stage1_build] Error 2
25 > make[1]: Leaving directory `/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
26 > make: *** [profiledbootstrap] Error 2
27 >
28 > !!! ERROR: sys-devel/gcc-3.4.4-r1 failed.
29 > !!! Function gcc_do_make, Line 1311, Exitcode 2
30 >
31 > After further investigations, it seems that I need to compile my libc for two
32 > abi : 32 and 64 bits. But in my make.default I only have :
33 >
34 > MULTILIB_ABIS="amd64"
35 > DEFAULT_ABI="amd64"
36 > ABI="amd64"
37 >
38 > I searched for help and I found :
39 > http://thread.gmane.org/gmane.linux.gentoo.hardened/1525
40 > http://dev.gentoo.org/~plasmaroo/devmanual/archs/amd64/
41 >
42 > I wonder how I could build the 32 bits version of the libraries of my system.
43 >
44 > Any idea ?
45
46
47 For now use the amd64 multilib profile thats not located under the
48 hardened subtree. sync up USE flags with the hardened profile. emerge
49 gcc ; emerge -e world.
50 Start from an amd64 multilib stage[1-3] also.
51 use >=hardened-sources-2.6.13
52
53 When >=hardened-sources-2.6.13 hits stable a mutlib amd64 profile will
54 be created and we will probably include stages[1-3] in experimental on
55 the mirrors (but no promises).
56
57 --
58 Ned Ludd <solar@g.o>
59 Gentoo Linux
60
61 --
62 gentoo-hardened@g.o mailing list

Replies

Subject Author
Re: [gentoo-hardened] multilib profile on amd64 ? Nicolas MASSE <nicolas27.masse@×××××××.net>