Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132979 - ld: cannot find /usr/lib64/libc_nonshared.a after glibc-2.3.6-r4 upgrade on amd64/hardened non-multilib
Summary: ld: cannot find /usr/lib64/libc_nonshared.a after glibc-2.3.6-r4 upgrade on a...
Status: RESOLVED DUPLICATE of bug 125034
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High major
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
: 134370 138423 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-11 00:27 UTC by Laurento Frittella (mrfree)
Modified: 2006-06-29 15:09 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/db/pkg/sys-libs/glibc-2.3.6-r4/CONTENTS (CONTENTS,98.50 KB, text/plain)
2006-05-12 00:52 UTC, Laurento Frittella (mrfree)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurento Frittella (mrfree) 2006-05-11 00:27:31 UTC
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
Comment 1 SpanKY gentoo-dev 2006-05-11 14:12:52 UTC
post the CONTENTS file as an attachment
/var/db/pkg/sys-libs/glibc-2.3.6-r4/CONTENTS
Comment 2 Laurento Frittella (mrfree) 2006-05-12 00:52:58 UTC
Created attachment 86634 [details]
/var/db/pkg/sys-libs/glibc-2.3.6-r4/CONTENTS
Comment 3 Laurento Frittella (mrfree) 2006-05-12 01:57:58 UTC
Reopen because I attached the required infos :)
Comment 4 Laurento Frittella (mrfree) 2006-05-12 01:58:16 UTC
Reopen because I attached the required infos :)
Comment 5 SpanKY gentoo-dev 2006-05-12 21:50:44 UTC
hrm ... what does `ls -l /usr/` look like on your machine ?  i guess you have a non-multilib amd64 install huh
Comment 6 Laurento Frittella (mrfree) 2006-05-15 05:16:47 UTC
(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
Comment 7 SpanKY gentoo-dev 2006-05-15 19:36:22 UTC
not a glibc bug, that stage tarball is broken

/usr/lib/ is a directory instead of a symlink to /usr/lib64/
Comment 8 Laurento Frittella (mrfree) 2006-05-25 03:28:19 UTC
(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 ;)
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-05-25 16:39:21 UTC
*** Bug 134370 has been marked as a duplicate of this bug. ***
Comment 10 solar (RETIRED) gentoo-dev 2006-05-25 18:39:17 UTC
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.
Comment 11 Laurento Frittella (mrfree) 2006-05-26 00:55:34 UTC
(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
Comment 12 Simon Stelling (RETIRED) gentoo-dev 2006-06-22 12:31:47 UTC
*** This bug has been marked as a duplicate of 125034 ***
Comment 13 SpanKY gentoo-dev 2006-06-29 15:09:12 UTC
*** Bug 138423 has been marked as a duplicate of this bug. ***