Gentoo Archives: gentoo-hardened

From: brant williams <brant@×××××.net>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] error building glibc on amd64
Date: Fri, 14 Dec 2007 17:14:40
Message-Id: Pine.LNX.4.64.0712141103160.3856@nerv.tnarb.net
In Reply to: [gentoo-hardened] error building glibc on amd64 by Marcel Meyer
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4
5 The USE flags for "hardened" and "nls" appear now to be turned off
6 somewhere (and have been disabled since the last time you compiled gcc --
7 note the asterisk after the flags).
8
9 Can you paste the output of `emerge --info`?
10
11 Also, what steps have you taken so far? You said that you just chrooted
12 into this system; are you just now doing this from the install disc? You
13 might want to compile a kernel and make sure the box will boot without the
14 install disc before emerging other packages or changing the profile.
15
16 brant williams
17 FCAA CDCA 20BC 3925 D634 F5C4 7420 6784 4DEB 6002
18
19
20
21 On Fri, 14 Dec 2007, Marcel Meyer wrote:
22
23 > Date: Fri, 14 Dec 2007 17:29:04 +0100
24 > From: Marcel Meyer <meyerm@××××××.de>
25 > Reply-To: gentoo-hardened@l.g.o
26 > To: gentoo-hardened@l.g.o
27 > Subject: [gentoo-hardened] error building glibc on amd64
28 >
29 > Hello,
30 >
31 > I just wanted to build my first hardened AMD64 system and ran into the
32 > following problem after chrooting into the unpacked tarball:
33 > (2007-0 AMD64 multilib - keywords: amd64)
34 >
35 >
36 > $ emerge --sync
37 > [..]
38 >
39 > $ ls -l /etc/make.profile
40 > lrwxrwxrwx 1 root root 47 Dec 14
41 > 00:34 /etc/make.profile -> ../usr/portage/profiles/hardened/amd64/multilib
42 >
43 > $ emerge -p binutils gcc glibc
44 >
45 > These are the packages that would be merged, in order:
46 >
47 > Calculating dependencies... done!
48 > [ebuild U ] sys-devel/binutils-2.18-r1 [2.16.1-r3] USE="-nls*"
49 > [ebuild R ] sys-devel/gcc-3.4.6-r2 USE="-d% -hardened* -nls*"
50 > [ebuild U ] sys-libs/glibc-2.6.1 [2.3.6-r5]
51 > USE="-debug% -gd% -hardened* -nls* -vanilla%"
52 >
53 > $ gcc-config -l
54 > [1] x86_64-pc-linux-gnu-3.4.6 *
55 > [2] x86_64-pc-linux-gnu-3.4.6-hardenednopie
56 > [3] x86_64-pc-linux-gnu-3.4.6-hardenednopiessp
57 > [4] x86_64-pc-linux-gnu-3.4.6-hardenednossp
58 > [5] x86_64-pc-linux-gnu-3.4.6-vanilla
59 >
60 > $ emerge -Du world
61 > [..]
62 >>>> Source unpacked.
63 >>>> Compiling source
64 > in /var/tmp/portage/sys-libs/glibc-2.6.1/work/glibc-2.6.1 ...
65 > * Building multilib glibc for ABIs: x86 amd64
66 >
67 > * ABI: x86
68 > * CBUILD: x86_64-pc-linux-gnu
69 > * CHOST: x86_64-pc-linux-gnu
70 > * CTARGET: x86_64-pc-linux-gnu
71 > * CBUILD_OPT: i686-pc-linux-gnu
72 > * CTARGET_OPT: i686-pc-linux-gnu
73 > * CC:
74 > * CFLAGS: -O2 -fno-strict-aliasing -fno-stack-protector -nopie
75 > [..]
76 > checking for -z nodelete option... configure: error: linker with -z nodelete
77 > support required
78 > [..]
79 >
80 >
81 > The log file says nothing more than the message above. I already tried to
82 > reemerge binutils to be sure the linker was ok. That didn't help.
83 >
84 > This is my first AMD64 system so I'm not yet into the multilib stuff -
85 > perhaps I made an error by not specifying "hardened" and/or "multilib" as
86 > USE-flag? But after reading through the archives, I thought they are both
87 > not used as long as I take the right profile.
88 >
89 > Below you find my make.conf and the output of emerge --info. Thank you for
90 > reading!
91 >
92 > Marcel
93 >
94 >
95 >
96 > $ emerge --info
97 > emerge --info
98 > Portage 2.1.3.19 (hardened/amd64/multilib, gcc-3.4.6, glibc-2.3.6-r5,
99 > 2.6.19-gentoo-r5 x86_64)
100 > =================================================================
101 > System uname: 2.6.19-gentoo-r5 x86_64 AMD Opteron(tm) Processor 850
102 > Timestamp of tree: Fri, 14 Dec 2007 14:16:01 +0000
103 > app-shells/bash: 3.2_p17
104 > dev-lang/python: 2.4.4-r6
105 > dev-python/pycrypto: 2.0.1-r6
106 > sys-apps/baselayout: 1.12.9
107 > sys-apps/sandbox: 1.2.18.1-r2
108 > sys-devel/autoconf: 2.61-r1
109 > sys-devel/automake: 1.10
110 > sys-devel/binutils: 2.18-r1
111 > sys-devel/gcc-config: 1.3.16
112 > sys-devel/libtool: 1.5.24
113 > virtual/os-headers: 2.6.22-r2
114 > ACCEPT_KEYWORDS="amd64"
115 > CBUILD="x86_64-pc-linux-gnu"
116 > CFLAGS="-march=k8 -O2 -pipe -fforce-addr"
117 > CHOST="x86_64-pc-linux-gnu"
118 > CONFIG_PROTECT="/etc"
119 > CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/splash /etc/terminfo"
120 > CXXFLAGS="-march=k8 -O2 -pipe -fforce-addr"
121 > DISTDIR="/usr/portage/distfiles"
122 > FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox
123 > sfperms strict unmerge-orphans userfetch"
124 > GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/
125 > http://distfiles.gentoo.org
126 > http://www.ibiblio.org/pub/Linux/distributions/gentoo"
127 > MAKEOPTS="-j5"
128 > PKGDIR="/usr/portage/packages"
129 > PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
130 > PORTAGE_TMPDIR="/var/tmp"
131 > PORTDIR="/usr/portage"
132 > PORTDIR_OVERLAY="/usr/local/portage"
133 > SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
134 > USE="amd64 bash-completion berkdb caps crypt memlimit ncurses nptl pam
135 > readline skey snmp ssl unicode vim-syntax xattr xinetd zlib" ELIBC="glibc"
136 > INPUT_DEVICES="mouse keyboard" KERNEL="linux" USERLAND="GNU"
137 > Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL,
138 > LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
139 > PORTAGE_RSYNC_EXTRA_OPTS
140 >
141 > $ cat /etc/make.conf
142 > USE="-* \
143 > bash-completion berkdb \
144 > caps crypt \
145 > memlimit \
146 > ncurses nptl \
147 > pam \
148 > readline \
149 > skey snmp ssl \
150 > unicode \
151 > vim-syntax \
152 > xattr xinetd \
153 > zlib \
154 > "
155 >
156 > CHOST="x86_64-pc-linux-gnu"
157 >
158 > CFLAGS="-march=k8 -O2 -pipe -fforce-addr"
159 > CXXFLAGS="${CFLAGS}"
160 >
161 > # ACCEPT_KEYWORDS="~amd64"
162 >
163 > PORT_LOGDIR="/var/log/portage"
164 > PORT_ENOTICE_DIR="/var/log/portage/enotice"
165 > PORTDIR_OVERLAY="/usr/local/portage"
166 >
167 > GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/
168 > http://distfiles.gentoo.org
169 > http://www.ibiblio.org/pub/Linux/distributions/gentoo"
170 >
171 > SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
172 >
173 > MAKEOPTS="-j5"
174 >
175 > FEATURES="parallel-fetch sandbox strict"
176 >
177 > PORTAGE_NICENESS="5"
178 > PORTAGE_TMPFS="/dev/shm"
179 > PORTAGE_ELOG_CLASSES="info warn error log"
180 > PORTAGE_ELOG_SYSTEM="save"
181 >
182 > ALSA_CARDS=""
183 > ALSA_PCM_PLUGINS=""
184 > APACHE2_MODULES=""
185 > LCD_DEVICES=""
186 > VIDEO_CARDS=""
187 >
188 -----BEGIN PGP SIGNATURE-----
189 Version: GnuPG v1.4.7 (GNU/Linux)
190
191 iD8DBQFHYrlXdCBnhE3rYAIRCLF5AJ46rqM5mR08x/S/rR3mFAfNOwGlBgCfS6WO
192 pX54I2tSV+w3qlvaas8OmWc=
193 =eN+G
194 -----END PGP SIGNATURE-----
195 --
196 gentoo-hardened@g.o mailing list

Replies

Subject Author
Re: [gentoo-hardened] error building glibc on amd64 Marcel Meyer <meyerm@××××××.de>