I installed a 2006.0-stage3-hardened amd64 on my processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 4 model name : Intel(R) Xeon(TM) CPU 3.20GHz stepping : 1 and I'm trying to recompile all the system with emerge -e world using my new cflags (I'm not sure they are correct, but I found them on gentoo-wiki) # emerge --info Portage 2.0.54 (hardened/amd64, gcc-3.4.5, glibc-2.3.6-r4, 2.6.15-gentoo-r5 x86_64) ================================================================= System uname: 2.6.15-gentoo-r5 x86_64 Intel(R) Xeon(TM) CPU 3.20GHz Gentoo Base System version 1.6.14 dev-lang/python: 2.4.2 dev-python/pycrypto: [Not Present] dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="amd64 berkdb bzip2 crypt expat hardened justify ncurses nls nptl pam perl pic python readline ssl tcpd udev unicode userlocales zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS, PORTDIR_OVERLAY But after the glibc compilation I can't emerge anything! configure:1655: x86_64-pc-linux-gnu-gcc -march=nocona -O2 -pipe -DLINUX -D_XOPEN_SOURCE=500 conftest.c >&5 /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find /usr/lib64/libc_nonshared.a collect2: ld returned 1 exit status I tryed with hostname ~ # fix_libtool_files.sh 3.4.5 * Scanning libtool files for hardcoded gcc library paths... hostname ~ # but without luck (and it doesn't output anything at all) :( [ebuild R ] sys-devel/gcc-3.4.5 (-altivec) -bootstrap -boundschecking -build -doc -fortran -gcj -gtk +hardened -ip28 -multilib -multislot -n32 -n64 +nls -nocxx -nopie -nossp -objc -vanilla 0 kB
post the CONTENTS file as an attachment /var/db/pkg/sys-libs/glibc-2.3.6-r4/CONTENTS
Created attachment 86634 [details] /var/db/pkg/sys-libs/glibc-2.3.6-r4/CONTENTS
Reopen because I attached the required infos :)
hrm ... what does `ls -l /usr/` look like on your machine ? i guess you have a non-multilib amd64 install huh
(In reply to comment #5) > hrm ... what does `ls -l /usr/` look like on your machine ? i guess you have a > non-multilib amd64 install huh > # ls -l /usr/ total 72 drwxr-xr-x 2 root root 16384 May 9 17:27 bin drwxr-xr-x 41 root root 4096 May 9 17:27 include drwxr-xr-x 12 root root 4096 May 9 17:27 lib drwxr-xr-x 9 root root 4096 May 9 17:27 lib64 drwxr-xr-x 4 root root 4096 Feb 21 22:38 libexec drwxr-xr-x 8 root root 4096 Feb 21 21:53 local drwx------ 2 root root 16384 May 4 15:01 lost+found drwxr-xr-x 155 portage portage 4096 May 9 15:36 portage drwxr-xr-x 2 root root 4096 May 9 17:27 sbin drwxr-xr-x 46 root root 4096 Feb 22 01:17 share drwxr-xr-x 2 root root 4096 Feb 21 21:53 src lrwxrwxrwx 1 root root 8 May 4 15:05 tmp -> /var/tmp drwxr-xr-x 6 root root 4096 Feb 21 23:39 x86_64-pc-linux-gnu I installed usign stage3-amd64-hardened-non-multilib-2006.0.tar.bz2
not a glibc bug, that stage tarball is broken /usr/lib/ is a directory instead of a symlink to /usr/lib64/
(In reply to comment #7) > /usr/lib/ is a directory instead of a symlink to /usr/lib64/ So I copied all /usr/lib contents in /usr/lib64 and today I've started an "emerge -e world && emerge -e world" to be sure that all works well. For now all seems to work properly, but I need to wait for emerge to finish ;)
*** Bug 134370 has been marked as a duplicate of this bug. ***
Can somebody from the amd64 team kindly look over the hardened-non-multilib profile. I've heard reports of people having errors when going from stage1-3 and the symlink handling being funky. As far as I can tell the profile is right and matches the normal amd64 non multilib profile with all the funky variables set.
(In reply to comment #8) > So I copied all /usr/lib contents in /usr/lib64 and today I've started an > "emerge -e world && emerge -e world" to be sure that all works well. Ok emerge finished and all seems to work well
*** This bug has been marked as a duplicate of 125034 ***
*** Bug 138423 has been marked as a duplicate of this bug. ***