Gentoo Archives: gentoo-user

From: Rumen Yotov <rumen_yotov@×××.bg>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] problem compiling glibc
Date: Thu, 10 Nov 2005 17:05:04
Message-Id: 1131642337.19776.4.camel@mach.qrypto.org
In Reply to: [gentoo-user] problem compiling glibc by Vesselin Mladenov
1 On Thu, 2005-11-10 at 13:57 +0200, Vesselin Mladenov wrote:
2 > Hello,
3 >
4 > I have a problem recompiling glibc on my computer after I have changed
5 > my USE flags.
6 > Here is what emerge is going to do:
7 > root # emerge -p -v --update --deep --newuse world
8 >
9 > These are the packages that I would merge, in order:
10 >
11 > Calculating world dependencies ...done!
12 > [ebuild R ] sys-libs/glibc-2.3.5-r2 -build +erandom
13 > -glibc-compat20 +glibc-omitfp* -hardened -linuxthreads-tls (-multilib)
14 > +nls +nptl +nptlonly -pic -profile (-selinux) +userlocales* 0 kB
15 > [ebuild N ] app-i18n/man-pages-fr-1.64.0 864 kB
16 > [ebuild N ] app-i18n/man-pages-de-0.4 475 kB
17 > [ebuild U ] sys-fs/sysfsutils-1.3.0 [1.2.0-r2] 272 kB
18 > [ebuild U ] app-arch/rar-3.5.1 [3.4.0] 661 kB
19 > [ebuild U ] net-ftp/ftpd-0.17-r3 [0.17-r1] +ssl 35 kB
20 >
21 >
22 >
23 > The problem is with glibc. When it starts to compile, gcc quits with
24 > the following error:
25 >
26 >
27 > cc1: error: unrecognized option `-fno-stack-protector'
28 > make[2]: *** [/var/tmp/portage/glibc-2.3.5-r2/work/build-default-i686-pc-linux-gnu-nptl/csu/ssp.o]
29 > Error 1
30 > make[2]: *** Waiting for unfinished jobs....
31 > make[2]: Leaving directory
32 > `/var/tmp/portage/glibc-2.3.5-r2/work/glibc-2.3.5/csu'
33 > make[1]: *** [csu/subdir_lib] Error 2
34 > make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.5-r2/work/glibc-2.3.5'
35 > make: *** [all] Error 2
36 >
37 >
38 >
39 > Here are the details about my computer and the compilation:
40 > -----
41 > Gentoo Base System version 1.6.13
42 >
43 > Linux igdrazil 2.6.13-gentoo-r3 #6 Tue Oct 11 23:44:21 EEST 2005 i686
44 > Intel(R) Pentium(R) M processor 1.60GHz GenuineIntel GNU/Linux
45 >
46 > gcc (GCC) 3.3.6 (Gentoo 3.3.6)
47 >
48 > Configuring GLIBC for nptl with:
49 > --enable-omitfp
50 > --with-tls
51 > --with-__thread
52 > --enable-add-ons=nptl,c_stubs,libidn
53 > --enable-kernel=2.6.6
54 > --without-selinux
55 > --without-cvs
56 > --enable-bind-now
57 > --build=i686-pc-linux-gnu
58 > --host=i686-pc-linux-gnu
59 > --disable-profile
60 > --without-gd
61 > --with-headers=//usr/include
62 > --prefix=/usr
63 > --mandir=/usr/share/man
64 > --infodir=/usr/share/info
65 > --libexecdir=/usr/lib/misc/glibc
66 >
67 > ----
68 >
69 >
70 > I would appreciate if someone can give mi a hint about what to do.
71 > Thank you for your time in advance.
72 >
73 Hi,
74 You don't need "-fno-stack-protector" as a flag, it's only used in all
75 hardened sources (grsec2,RSBAC,SELinux).
76 Take it out of your /etc/make.conf (must be there as i don't see a
77 hardened profile being used).
78 HTH.Rumen

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] problem compiling glibc Vesselin Mladenov <veselinm@×××××.com>