Gentoo Archives: gentoo-hardened

From: Magnus Granberg <zorry@g.o>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] gcc-4.4.6 - says "arch is not supported" "hope you know what you are doing"?
Date: Tue, 13 Dec 2011 16:30:12
Message-Id: 1332922.5GXIbOZsAm@laptop1.gw.ume.nu
In Reply to: Re: [gentoo-hardened] gcc-4.4.6 - says "arch is not supported" "hope you know what you are doing"? by DeadManMoving
1 tisdag 13 december 2011 08.39.20 skrev DeadManMoving:
2 > Did you tried to override ARCH in your chroot :
3 >
4 > export ARCH=x86
5 >
6 >
7 > Useful in an x86 chroot located on a x86_64 platform.
8 >
9 >
10 >
11 > Cheers,
12 >
13 > Tony Lapointe
14 >
15 > On Tue, 2011-12-13 at 12:39 +0000, Ed W wrote:
16 > > On 13/12/2011 00:29, Matthew Thode (prometheanfire) wrote:
17 > > > On Tue, 13 Dec 2011 00:08:51 +0000
18 > > >
19 > > > Ed W <lists@××××××××××.com> wrote:
20 > > >> So I am building in a chroot an x86 system:
21 > > >>
22 > > >> CFLAGS="-march=k6-2 -Os -pipe -fomit-frame-pointer"
23 > > >> CXXFLAGS="${CFLAGS}"
24 > > >> LDFLAGS="-Wl,-z,relro"
25 > > >> CHOST="i486-gentoo-linux-uclibc"
26 > > >>
27 > > >> And emerge gcc-4.4.6-1 warns:
28 > > >>
29 > > >> * Your x86 arch is not supported.
30 > > >>
31 > > >> * Hope you know what you are doing. Hardened will not work.
32 > > >>
33 > > >> What might I be missing...? Seems like it was working ok some
34 > > >> weeks
35 > > >> back...?
36 > > >>
37 > > >> Thanks
38 > > >>
39 > > >> Ed W
40 > > >
41 > > > Is this within kvm? If so, what is the output of 'cat
42 > > > /proc/cpuinfo'?
43 > >
44 > > No. Although perhaps more background is useful:
45 > >
46 > > uclibc-0.9.33(git)
47 > > host is an amd64 gentoo system
48 > > chroot is an i486/32bit gentoo system, used as a compile base for my
49 > > embedded Alix board
50 > >
51 > > At the end of the install I see:
52 > > * Messages for package sys-devel/gcc-4.4.6-r1:
53 > >
54 > > * Your x86 arch is not supported.
55 > > * Hope you know what you are doing. Hardened will not work.
56 > > * SSP has not been enabled by default
57 > > * Your x86 arch is not supported.
58 > > * Hope you know what you are doing. Hardened will not work.
59 > > * Skipping libstdc++ manpage generation since you don't have doxygen
60 > >
61 > > installed
62 > >
63 > > * Your x86 arch is not supported.
64 > > * Hope you know what you are doing. Hardened will not work.
65 > > * If you have issues with packages unable to locate libstdc++.la,
66 > > * then try running 'fix_libtool_files.sh' on the old gcc versions.
67 > >
68 > > I am thinking it's the uclibc which is the issue? What else might I
69 > > worry about though...?
70 > >
71
72 The error is in toolchain.eclass Revision 1.498
73 http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?r1=1.497&r2=1.498
74
75 We have clean some code in the eclass for gcc
76 Will fix the eclass
77 sorry for the bug
78 /Magnus (Zorry)