Gentoo Archives: gentoo-embedded

From: Christopher Dixon <Chris.Dixon@××××.ch>
To: gentoo-embedded@l.g.o
Subject: RE: [gentoo-embedded] vim and less segfaulting
Date: Thu, 02 Jun 2005 10:14:54
Message-Id: 94D4A3F713BB394DBC2E06EE4A1F6D640A554C@cernxchg16.cern.ch
1 Hi,
2
3 -----Original Message-----
4 From: Natanael Copa [mailto:mlists@××××××.org]
5 Sent: 02 June 2005 11:53
6 To: gentoo-embedded@l.g.o
7 Subject: [gentoo-embedded] vim and less segfaulting
8
9 Looks like my uclibc hardened environment is broken.
10
11 <snip>
12
13 Also gcc fails to compile.
14
15 /work/build/gcc/xgcc
16 -B/var/tmp/portage/gcc-3.4.3.20050110-r2/work/build/gcc/
17 -B/usr/i386-pc-linux-uclibc/bin/ -B/usr/i386-pc-linux-uclibc/lib/
18 -isystem /usr/i386-pc-linux-uclibc/include -isystem
19 /usr/i386-pc-linux-uclibc/sys-include -E checking for egrep... grep -E
20 checking for ANSI C header files... yes checking for sys/types.h... yes
21 checking for sys/stat.h... yes checking for stdlib.h... yes checking for
22 string.h... yes checking for memory.h... yes checking for strings.h...
23 yes checking for inttypes.h... yes checking for stdint.h... yes checking
24 for unistd.h... yes checking for C locale to use... configure: error:
25 Unknown argument to enable/disable clocale
26 make[1]: *** [configure-target-libstdc++-v3] Error 1
27 make[1]: Leaving directory
28 `/var/tmp/portage/gcc-3.4.3.20050110-r2/work/build'
29 make: *** [profiledbootstrap] Error 2
30
31 I had a problem with my gentoo due to hardened a little while ago and it
32 took me a while to find the problem. I had problems to run X11 and to
33 build grub. In the end I read http://lwn.net/Articles/106214/ and
34 discovered that X was a known issue for hardened. Following their advice
35 I did:
36
37 USE="-hardened -pie -pic" emerge glibc
38 USE="-hardened -pie -pic" emerge gcc
39 USE="-hardened -pie -pic" emerge binutils
40 USE="-hardened -pie -pic" emerge xorg-x11
41
42 This fixed the problem with X and also allowed to compile grub again (I
43 think you can safely build binutils hardened). Maybe glibc / gcc is your
44 issue here?
45
46 Hope that proves to be some help. If not, I hope you find someone with
47 more idea who can help you
48 Good luck
49 Chris
50
51 --
52 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] vim and less segfaulting Natanael Copa <mlists@××××××.org>