Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131871 - crossdev fails to compile glibc with nptl
Summary: crossdev fails to compile glibc with nptl
Status: RESOLVED DUPLICATE of bug 131765
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-01 01:08 UTC by redbaron
Modified: 2006-05-02 17:58 UTC (History)
2 users (show)

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


Attachments
cross-i686-pc-linux-gnu-info.log and cross-i686-pc-linux-gnu.glibc.log (glibc_fail_logs.tgz,3.02 KB, application/x-tgz)
2006-05-01 01:24 UTC, redbaron
Details

Note You need to log in before you can comment on or make changes to this bug.
Description redbaron 2006-05-01 01:08:23 UTC
when crossdev tries to compile glibc with nptlonly support it fails, because it cannot find linux-headers
Comment 1 redbaron 2006-05-01 01:24:40 UTC
Created attachment 85898 [details]
cross-i686-pc-linux-gnu-info.log and cross-i686-pc-linux-gnu.glibc.log
Comment 2 redbaron 2006-05-01 02:32:10 UTC
found the problem. It tries to fine kernel headers in /usr/i686-pc-linux-gnu/include but they are located in /usr/i686-pc-linux-gnu/usr/include.
Making the symling solves the problem
Comment 3 Nathan Goldstick 2006-05-01 12:25:58 UTC
(In reply to comment #2)
> found the problem. It tries to fine kernel headers in
> /usr/i686-pc-linux-gnu/include but they are located in
> /usr/i686-pc-linux-gnu/usr/include.
> Making the symling solves the problem
> 

I was able to reproduce this bug on a computer with ARCH=AMD64 when running "crossdev --g 3.4.5-r1 --target i586" and "crossdev --g 3.4.5-r1 --target i686", and creating the symlinks as described above allowed me to compile glibc.

It seems to me that this might be related to the line in /usr/local/portage/cross-i586-pc-linux-gnu/glibc/glibc-2.4-r1.ebuild within the function alt_headers():
ALT_HEADERS="/usr/${CTARGET}/include" on line 602.
It seems to me like it should be "/usr/${CTARGET}/usr/include".

Also... when crossdev goes through stage4, it looks for the resulting libc.so.6 in /usr/${CTARGET}/usr/${CTARGET}/lib/libc.so.6 instead of in /usr/${CTARGET}/usr/${CTARGET}/lib/libc.so.6 , and linking /usr/${CTARGET}/usr/${CTARGET} to /usr/${CTARGET} fixes it. Don't know if this is related, though it seems likely, as both seem to be do to crossdev not knowing which directories it should point to.

emerge --info yeilds:
Portage 2.0.54 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.14
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
dev-lang/python:     2.4.2
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
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=athlon64 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="rsync://gentoo.mirrors.easynews.com/linux/gentoo http://gentoo.mirrors.easynews.com/linux/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.ucf.ics.uci.edu/gentoo-portage"
USE="amd64 X acl acpi aim alsa audiofile avi bcj berkdb bidi bitmap-fonts bzip2 caps cdr cjk cli crypt cups curl curlwrappers doc dri dvd eds emboss emul-linux-x86 encode esd ethereal examples exif expat fam foomaticdb fortran ftp gd gif glut gnome gpm gstreamer gtk gtk2 gtkhtml hal imagemagick imap imlib ipv6 isdnlog java joystick jpeg junit kerberos lcms ldap libwww lm_sensors lzw lzw-tiff maildir mime mmap mng motif mp3 mpeg mule nas ncurses nls nptl nptlonly ogg openal opengl oss pam pcntl pcre pda pdflib perl plotutils png posix ppds pppd python qt qticktime quicktime readline reflection samba sasl scanner sdl session sockets spell spl ssl svg tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis xine xinerama xml xml2 xmlrpc xmms xorg xpm xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 4 SpanKY gentoo-dev 2006-05-02 17:58:34 UTC

*** This bug has been marked as a duplicate of 131765 ***