Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126166 - crossdev fails to build gcc stage2 with sysroot-ed binutils
Summary: crossdev fails to build gcc stage2 with sysroot-ed binutils
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 129070 129445 130429 131765 132195 135391 135767 140313 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-03-14 09:05 UTC by REdOG
Modified: 2006-07-15 13:21 UTC (History)
15 users (show)

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


Attachments
gcc stage2 build log (gcc-stage2.log,485.10 KB, text/plain)
2006-03-14 09:14 UTC, REdOG
Details

Note You need to log in before you can comment on or make changes to this bug.
Description REdOG 2006-03-14 09:05:18 UTC
crossdev -t powerpc-creole-linux-gnu
...

ld: cannot find /usr/powerpc-creole-linux-gnu/lib/libc.so.6 inside /usr/powerpc-creole-linux-gnu/binutils-bin/2.16.1/../../../powerpc-creole-linux-gnu


But:
libc.so.6 does exist in /usr/powerpc-creole-linux-gnu/lib as a link to /usr/powerpc-creole-linux-gnu/lib/libc-2.3.6.so
Comment 1 REdOG 2006-03-14 09:14:52 UTC
Created attachment 82107 [details]
gcc stage2 build log

Exact same results on 2 different machines.

 * Host Portage ARCH:     x86
 * Target Portage ARCH:   ppc
 * Target System:         powerpc-creole-linux-gnu
 * Stage:                 4 (C/C++ compiler)

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * headers:               linux-headers-[latest]
 * libc:                  glibc-[latest]

 * PORTDIR_OVERLAY:       /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/powerpc-creole-linux-gnu
 * PORTAGE_TMPDIR:        /var/tmp/cross/powerpc-creole-linux-gnu
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  
Gentoo Base System version 1.6.14
Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.5-hardened, glibc-2.3.5-r2, 2.6.13-gentoo-r5-redpepper i686)
=================================================================
System uname: 2.6.13-gentoo-r5-redpepper i686 Intel(R) Pentium(R) III CPU - S         1400MHz
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
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="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays"
CHOST="i686-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/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages/cross/powerpc-creole-linux-gnu"
PORTAGE_TMPDIR="/var/tmp/cross/powerpc-creole-linux-gnu"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://redpepper/gentoo-portage"
USE="x86 3dnow alsa apache2 apm avi berkdb bitmap-fonts bzip2 cgi chroot cli crypt cups dba dri eds emboss encode expat fam fbcon foomaticdb fortran gd gdbm gif gpm gstreamer gtk2 imagemagick im
ap imlib jpeg kerberos ldap libg++ libwww mad maildir mailwrapper mikmod mmx motif mp3 mpeg mysql ncurses nls no-htdocs oav ogg oggvorbis opengl oss pam pcre pdflib pear perl php png python quic
ktime readline samba sasl sdl session spell sse ssl tcpd tiff truetype truetype-fonts type1-fonts udev vhosts vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 2 REdOG 2006-03-14 09:22:35 UTC
oops: removing embedded, not uclibc related
Comment 3 Oliver Walter 2006-03-15 15:30:42 UTC
(In reply to comment #0)

Same Problem here.

crossdev --b 2.16.1 --g 3.4.5 --k 2.6.11-r2 --l 2.3.5-r2 -t i686-pc-linux-gnu
on a amd64 gives:
/usr/i686-pc-linux-gnu/bin/ld: cannot find /usr/i686-pc-linux-gnu/lib/libc.so.6 inside /usr/i686-pc-linux-gnu/binutils-bin/2.16.1/../../../i686-pc-linux-gnu
though libc.so.6 is there.
Comment 4 Anthony 2006-03-17 05:54:09 UTC
Yep.  Same problem here independent of which gcc version specified.  

http://forums.gentoo.org/viewtopic-t-384664-highlight-.html

Comment 5 Josu López Fernández 2006-03-18 08:05:41 UTC
Same problem here, on amd64 doing a crossdev -t i686-pc-linux-gnu.

Good bye!
Comment 6 Oliver Walter 2006-03-21 08:01:33 UTC
(In reply to comment #3)

Ok, here is a temporary fix for the problem:
http://forums.gentoo.org/viewtopic-t-384664-highlight-.html#3189981

at least it helped me.
Comment 7 Alex Tarkovsky 2006-03-28 14:31:49 UTC
There's an alternate workaround here:

http://permalink.gmane.org/gmane.linux.gentoo.embedded/530
Comment 8 SpanKY gentoo-dev 2006-04-07 08:23:07 UTC
*** Bug 129070 has been marked as a duplicate of this bug. ***
Comment 9 SpanKY gentoo-dev 2006-04-09 21:20:55 UTC
glibc-2.4-r2 should work correctly now

i'll back port the fixes once they stabilize
Comment 10 SpanKY gentoo-dev 2006-04-10 05:48:54 UTC
*** Bug 129445 has been marked as a duplicate of this bug. ***
Comment 11 SpanKY gentoo-dev 2006-04-19 06:19:38 UTC
*** Bug 130429 has been marked as a duplicate of this bug. ***
Comment 12 SpanKY gentoo-dev 2006-04-30 01:13:01 UTC
*** Bug 131765 has been marked as a duplicate of this bug. ***
Comment 13 SpanKY gentoo-dev 2006-05-04 12:50:16 UTC
*** Bug 132195 has been marked as a duplicate of this bug. ***
Comment 14 SpanKY gentoo-dev 2006-06-04 02:17:27 UTC
*** Bug 135391 has been marked as a duplicate of this bug. ***
Comment 15 SpanKY gentoo-dev 2006-06-07 04:02:28 UTC
*** Bug 135767 has been marked as a duplicate of this bug. ***
Comment 16 SpanKY gentoo-dev 2006-07-15 13:21:40 UTC
*** Bug 140313 has been marked as a duplicate of this bug. ***