Gentoo Archives: gentoo-hardened

From: Marcel Meyer <meyerm@××××××.de>
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] error building glibc on amd64
Date: Fri, 14 Dec 2007 16:32:02
Message-Id: 200712141729.11653.meyerm@fs.tum.de
1 Hello,
2
3 I just wanted to build my first hardened AMD64 system and ran into the
4 following problem after chrooting into the unpacked tarball:
5 (2007-0 AMD64 multilib - keywords: amd64)
6
7
8 $ emerge --sync
9 [..]
10
11 $ ls -l /etc/make.profile
12 lrwxrwxrwx 1 root root 47 Dec 14
13 00:34 /etc/make.profile -> ../usr/portage/profiles/hardened/amd64/multilib
14
15 $ emerge -p binutils gcc glibc
16
17 These are the packages that would be merged, in order:
18
19 Calculating dependencies... done!
20 [ebuild U ] sys-devel/binutils-2.18-r1 [2.16.1-r3] USE="-nls*"
21 [ebuild R ] sys-devel/gcc-3.4.6-r2 USE="-d% -hardened* -nls*"
22 [ebuild U ] sys-libs/glibc-2.6.1 [2.3.6-r5]
23 USE="-debug% -gd% -hardened* -nls* -vanilla%"
24
25 $ gcc-config -l
26 [1] x86_64-pc-linux-gnu-3.4.6 *
27 [2] x86_64-pc-linux-gnu-3.4.6-hardenednopie
28 [3] x86_64-pc-linux-gnu-3.4.6-hardenednopiessp
29 [4] x86_64-pc-linux-gnu-3.4.6-hardenednossp
30 [5] x86_64-pc-linux-gnu-3.4.6-vanilla
31
32 $ emerge -Du world
33 [..]
34 >>> Source unpacked.
35 >>> Compiling source
36 in /var/tmp/portage/sys-libs/glibc-2.6.1/work/glibc-2.6.1 ...
37 * Building multilib glibc for ABIs: x86 amd64
38
39 * ABI: x86
40 * CBUILD: x86_64-pc-linux-gnu
41 * CHOST: x86_64-pc-linux-gnu
42 * CTARGET: x86_64-pc-linux-gnu
43 * CBUILD_OPT: i686-pc-linux-gnu
44 * CTARGET_OPT: i686-pc-linux-gnu
45 * CC:
46 * CFLAGS: -O2 -fno-strict-aliasing -fno-stack-protector -nopie
47 [..]
48 checking for -z nodelete option... configure: error: linker with -z nodelete
49 support required
50 [..]
51
52
53 The log file says nothing more than the message above. I already tried to
54 reemerge binutils to be sure the linker was ok. That didn't help.
55
56 This is my first AMD64 system so I'm not yet into the multilib stuff -
57 perhaps I made an error by not specifying "hardened" and/or "multilib" as
58 USE-flag? But after reading through the archives, I thought they are both
59 not used as long as I take the right profile.
60
61 Below you find my make.conf and the output of emerge --info. Thank you for
62 reading!
63
64 Marcel
65
66
67
68 $ emerge --info
69 emerge --info
70 Portage 2.1.3.19 (hardened/amd64/multilib, gcc-3.4.6, glibc-2.3.6-r5,
71 2.6.19-gentoo-r5 x86_64)
72 =================================================================
73 System uname: 2.6.19-gentoo-r5 x86_64 AMD Opteron(tm) Processor 850
74 Timestamp of tree: Fri, 14 Dec 2007 14:16:01 +0000
75 app-shells/bash: 3.2_p17
76 dev-lang/python: 2.4.4-r6
77 dev-python/pycrypto: 2.0.1-r6
78 sys-apps/baselayout: 1.12.9
79 sys-apps/sandbox: 1.2.18.1-r2
80 sys-devel/autoconf: 2.61-r1
81 sys-devel/automake: 1.10
82 sys-devel/binutils: 2.18-r1
83 sys-devel/gcc-config: 1.3.16
84 sys-devel/libtool: 1.5.24
85 virtual/os-headers: 2.6.22-r2
86 ACCEPT_KEYWORDS="amd64"
87 CBUILD="x86_64-pc-linux-gnu"
88 CFLAGS="-march=k8 -O2 -pipe -fforce-addr"
89 CHOST="x86_64-pc-linux-gnu"
90 CONFIG_PROTECT="/etc"
91 CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/splash /etc/terminfo"
92 CXXFLAGS="-march=k8 -O2 -pipe -fforce-addr"
93 DISTDIR="/usr/portage/distfiles"
94 FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox
95 sfperms strict unmerge-orphans userfetch"
96 GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/
97 http://distfiles.gentoo.org
98 http://www.ibiblio.org/pub/Linux/distributions/gentoo"
99 MAKEOPTS="-j5"
100 PKGDIR="/usr/portage/packages"
101 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-*"
102 PORTAGE_TMPDIR="/var/tmp"
103 PORTDIR="/usr/portage"
104 PORTDIR_OVERLAY="/usr/local/portage"
105 SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
106 USE="amd64 bash-completion berkdb caps crypt memlimit ncurses nptl pam
107 readline skey snmp ssl unicode vim-syntax xattr xinetd zlib" ELIBC="glibc"
108 INPUT_DEVICES="mouse keyboard" KERNEL="linux" USERLAND="GNU"
109 Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL,
110 LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
111 PORTAGE_RSYNC_EXTRA_OPTS
112
113 $ cat /etc/make.conf
114 USE="-* \
115 bash-completion berkdb \
116 caps crypt \
117 memlimit \
118 ncurses nptl \
119 pam \
120 readline \
121 skey snmp ssl \
122 unicode \
123 vim-syntax \
124 xattr xinetd \
125 zlib \
126 "
127
128 CHOST="x86_64-pc-linux-gnu"
129
130 CFLAGS="-march=k8 -O2 -pipe -fforce-addr"
131 CXXFLAGS="${CFLAGS}"
132
133 # ACCEPT_KEYWORDS="~amd64"
134
135 PORT_LOGDIR="/var/log/portage"
136 PORT_ENOTICE_DIR="/var/log/portage/enotice"
137 PORTDIR_OVERLAY="/usr/local/portage"
138
139 GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/
140 http://distfiles.gentoo.org
141 http://www.ibiblio.org/pub/Linux/distributions/gentoo"
142
143 SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
144
145 MAKEOPTS="-j5"
146
147 FEATURES="parallel-fetch sandbox strict"
148
149 PORTAGE_NICENESS="5"
150 PORTAGE_TMPFS="/dev/shm"
151 PORTAGE_ELOG_CLASSES="info warn error log"
152 PORTAGE_ELOG_SYSTEM="save"
153
154 ALSA_CARDS=""
155 ALSA_PCM_PLUGINS=""
156 APACHE2_MODULES=""
157 LCD_DEVICES=""
158 VIDEO_CARDS=""

Attachments

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

Replies

Subject Author
Re: [gentoo-hardened] error building glibc on amd64 brant williams <brant@×××××.net>