Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 229923 - sys-libs/glibc-2.6.1 fails on emerging cross-glibc-headers
Summary: sys-libs/glibc-2.6.1 fails on emerging cross-glibc-headers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-28 17:35 UTC by Jabari R. Roberts
Modified: 2008-06-29 16:38 UTC (History)
0 users

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


Attachments
cross-i586-pc-linux-gnu-info.log (cross-i586-pc-linux-gnu-info.log,14.01 KB, text/plain)
2008-06-28 17:36 UTC, Jabari R. Roberts
Details
cross-i586-pc-linux-gnu-glibc-headers.log (cross-i586-pc-linux-gnu-glibc-headers.log,16.01 KB, text/plain)
2008-06-28 17:37 UTC, Jabari R. Roberts
Details
Build environment for the cross-glibc-headers portion of the ebuild (environment,139.48 KB, text/plain)
2008-06-28 17:39 UTC, Jabari R. Roberts
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jabari R. Roberts 2008-06-28 17:35:10 UTC
Hello all.
I am trying to emerge a i586 toolchain using stable packages (on a i686 stable system); therefore I executed "crossdev -S -t i586-pc-linux-gnu".

However, the crossdev toolchain emerge fails on the glibc-headers portion:

****

Chaos-X3 ~ # crossdev -S -t i586-pc-linux-gnu
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 * Host Portage ARCH:     x86
 * Target Portage ARCH:   x86
 * Target System:         i586-pc-linux-gnu
 * Stage:                 4 (C/C++ compiler)

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

 * PORTDIR_OVERLAY:       /usr/portage/local/layman/sunrise
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/i586-pc-linux-gnu
 * PORTAGE_TMPDIR:        /var/tmp/cross/i586-pc-linux-gnu
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -
 * Forcing the latest versions of {binutils,gcc}-config/gnuconfig ...                                                                                                                                                   [ ok ]
 * Log: /var/log/portage/cross-i586-pc-linux-gnu-binutils.log
 * Emerging cross-binutils ...                                                                                                                                                                                          [ ok ]
 * Log: /var/log/portage/cross-i586-pc-linux-gnu-linux-headers-quick.log
 * Emerging cross-linux-headers-quick ...                                                                                                                                                                               [ ok ]
 * Log: /var/log/portage/cross-i586-pc-linux-gnu-glibc-headers.log
 * Emerging cross-glibc-headers ...

 * glibc failed :(
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-i586-pc-linux-gnu-info.log
 * /var/log/portage/cross-i586-pc-linux-gnu-glibc-headers.log

****

This seems to be due to an error in directory handling in the glibc ebuild.
From /var/log/portage/cross-i586-pc-linux-gnu-glibc-headers.log:

****

configure: creating ./config.status
config.status: creating config.make
config.status: creating Makefile
config.status: creating config.h
config.status: executing default commands
>>> Source compiled.
>>> Test phase [not enabled]: cross-i586-pc-linux-gnu/glibc-2.6.1

>>> Install glibc-2.6.1 into /var/tmp/cross/i586-pc-linux-gnu/portage/cross-i586-pc-linux-gnu/glibc-2.6.1/image/ category cross-i586-pc-linux-gnu
/usr/local/portage/cross-i586-pc-linux-gnu/glibc/files/eblits/src_install-2.6.eblit: line 188: cd: /var/tmp/cross/i586-pc-linux-gnu/portage/cross-i586-pc-linux-gnu/glibc-2.6.1/work/build-default-i586-pc-linux-gnu-headers:
No such file or directory
Makeconfig:84: x86/config.make: No such file or directory
/bin/sh: line 0: cd: x86: No such file or directory
The GNU C library has not been configured.
Run `configure' to configure it before building.
Try `configure --help' for more details.
make: Failed to remake makefile `x86/config.make'.
./scripts/mkinstalldirs /var/tmp/cross/i586-pc-linux-gnu/portage/cross-i586-pc-linux-gnu/glibc-2.6.1/image//usr/i586-pc-linux-gnu/usr/local/include
mkdir /var/tmp/cross/i586-pc-linux-gnu/portage/cross-i586-pc-linux-gnu/glibc-2.6.1/image/usr
mkdir /var/tmp/cross/i586-pc-linux-gnu/portage/cross-i586-pc-linux-gnu/glibc-2.6.1/image/usr/i586-pc-linux-gnu
mkdir /var/tmp/cross/i586-pc-linux-gnu/portage/cross-i586-pc-linux-gnu/glibc-2.6.1/image/usr/i586-pc-linux-gnu/usr

****

From "ls /var/tmp/cross/i586-pc-linux-gnu/portage/cross-i586-pc-linux-gnu/glibc-2.6.1/work/":

****

Chaos-X3 ~ # ls /var/tmp/cross/i586-pc-linux-gnu/portage/cross-i586-pc-linux-gnu/glibc-2.6.1/work/
build-pos-i586-pc-linux-gnu-headers  extra  glibc-2.6.1  patches

****

Obviously, the "build-default-i586-pc-linux-gnu-headers" directory glibc is looking for is not there.

For the record, crossdev -t i586-pc-linux-gnu works, but as my AMD K6-2 box is on stable, I don't want to use the unstable libs for distcc.

Reproducible: Always

Steps to Reproduce:
1. crossdev -S -t i586-pc-linux-gnu (on a system running on stable)

Actual Results:  
crossdev fails on cross-glibc-headers

Expected Results:  
A i586-pc-linux-gnu toolchain ready to use

emerge --info from my system running crossdev:

Chaos-X3 ~ # emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: 2.6.24-gentoo-r8 i686 AMD Athlon(tm) XP 3000+
Timestamp of tree: Fri, 27 Jun 2008 22:15:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en en_US ja"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip R X Xaw3d a52 aac aalib accessibility acl acpi activefilter ada addbookmarks additions adplug aio akode alisp allegro alsa amr amrnb amrwb anthy ao arts artswrappersuid artworkextra asterisk asyncns audiofile autoipd autoreplace avahi bash-completion bcp bdf beagle berkdb bidi bjam bl blender-game bluetooth branding bzip2 cairo caps cdda cddb cdio cdparanoia cdr charconv chardet chicken chm chroot cjk clearcase cli clisp connectionstatus consolekit contactnotes cracklib crypt cscope css cups curl cvs cxx d daap dar64 dbus dc1394 device-mapper devil dga dhcp dia disk-partition diskio divx djbfft djvu doc dts dv dvd dvdr dvdread dvi eap-tls eds elf emboss emf emovix enca encode escreen esd etwin evo examples exif expat extra-cardsets fam fame fat ffmpeg fftw fidonet flac fontconfig foomaticdb fortran fpx freetts ftp galago gd gdbm gecko gif gimp glib glitz gmedia gmp gnokii gnome gnome-keyring gnutls gphoto2 gpm grammar graphviz gs gsl gstreamer gtk gtkhtml guile gzip hal hdri hfs highlight history howl-compat hpn ical iconv icu id3tag idn ieee1394 imagemagick imlib immqt-bc inkjar insecure-savers ipod ipv6 irc isdnlog jabber jack jai java javascript jbig jce jingle jmf joystick jpeg jpeg2k jsapi justify kde kdehiddenvisibility kerberos keyring kig-scripting kipi kpathsea ladspa lame lapack latex lcms ldap libcaca libgda libnotify libsamplerate live lm_sensors logitech-mouse loop-aes lua lzo m17n-lib mad math matroska mbrola md5sum mdnsresponder-compat meanwhile mfd-rewrites midi mikmod mime mjpeg mmap mmx mmxext mng modplug mono motif mp2 mp3 mp4 mpeg mplayer mtp mudflap musepack musicbrainz mzscheme nas ncurses nemesi nethack netjack netmeeting network network-cron networking networkmanager new-clx nfs nls nntp nowlistening npp nptl nptlonly nsplugin ntfs objc objc++ objc-gc ocaml offensive ogg ole openal openexr opengl openmp oss ots overlays pam pango parse-clocks pascal pccts pch pcre pda pdf perforce perl physfs pike plotutils png pnm portaudio postscript povray ppds pppd prediction prime pth pulseaudio pyste python qt3 qt3support qt4 quicktime rar rdesktop readline real realmedia reflection regex reiser4 reiserfs remote replytolist rle rpm rrdcgi rtc rtsp ruby samba sametime sasl scanner sdk sdl sdl-image sdlaudio sensord serial session shout sid silc skins slang slp sms sndfile snmp solver soundex source speex spell spl sql sqlite sqlite3 srt sse ssl statistics stream subtitles subversion svg svm swat swig symlink sysfs syslog t1lib talkfilters tcl tcpd teletext test-programs tetex texteffect tga theora thesaurus threads threadsafe tiff timidity tivo tk toolbar tools translator truetype tta unicode usb utempter utils v4l v4l2 vboxwebsrv vcd vidix vim-pager vim-syntax vim-with-x vlm vorbis vorbis-psy wavpack webpresence win32codecs winpopup wma wmf wmp wordperfect wxwindows x264 x86 xanim xattr xcomposite xerces-c xext xft xine xinerama xml xmp xorg xosd xpm xscreensaver xulrunner xv xvid xvmc yahoo yp yv12 zeroconf zippy zlib zoran zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard joystick mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US ja" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jabari R. Roberts 2008-06-28 17:36:53 UTC
Created attachment 158785 [details]
cross-i586-pc-linux-gnu-info.log
Comment 2 Jabari R. Roberts 2008-06-28 17:37:31 UTC
Created attachment 158787 [details]
cross-i586-pc-linux-gnu-glibc-headers.log
Comment 3 Jabari R. Roberts 2008-06-28 17:39:13 UTC
Created attachment 158789 [details]
Build environment for the cross-glibc-headers portion of the ebuild
Comment 4 SpanKY gentoo-dev 2008-06-29 16:38:55 UTC
i fixed this already on newer versions

http://sources.gentoo.org/sys-libs/glibc/files/eblits/src_install-2.6.eblit?r1=1.1&r2=1.2