Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 229669 - sys-libs/newlib fails to install headers-only
Summary: sys-libs/newlib fails to install headers-only
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
: 235489 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-27 05:29 UTC by Geoff Lywood
Modified: 2010-02-24 20:19 UTC (History)
2 users (show)

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


Attachments
Log file that shows the break (cross-i686-elf-newlib-headers.log,88.45 KB, text/plain)
2008-06-27 05:32 UTC, Geoff Lywood
Details
cross-arm-elf-info.log (cross-arm-elf-info.log,11.46 KB, text/plain)
2010-02-24 05:59 UTC, Anatoly Yakovenko
Details
cross-arm-elf-newlib.log (cross-arm-elf-newlib.log,1.59 MB, text/plain)
2010-02-24 06:00 UTC, Anatoly Yakovenko
Details
cross-arm-elf-newlib-headers.log (cross-arm-elf-newlib-headers.log,1.59 MB, text/plain)
2010-02-24 19:25 UTC, Anatoly Yakovenko
Details
newlib-1.18.0 (newlib-1.18.0.ebuild,1.89 KB, text/plain)
2010-02-24 19:50 UTC, Anatoly Yakovenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Geoff Lywood 2008-06-27 05:29:03 UTC
I am trying to set up a cross-compile environment for i686 and Newlib. Crossdev tries to install Newlib during the "headers" step (before gcc is installed), but compilation fails because Newlib requires a working gcc cross-compiler. It's trying to install *all* of Newlib during the headers step.

Reproducible: Always

Steps to Reproduce:
1. emerge crossdev
2. crossdev --target i686-elf

Actual Results:  
Compilation fails.

Expected Results:  
Working toolchain with Newlib for i686.

This bug might be caused by the fix to bug 227065. After the compilation failed (so my system was not really clean), I altered the crossdev script to use --without-headers. After that, everything installed fine.
Comment 1 Geoff Lywood 2008-06-27 05:32:59 UTC
Created attachment 158579 [details]
Log file that shows the break

This log is similar to one found in bug 228969, where they were trying to compile uclibc-headers.
Comment 2 SpanKY gentoo-dev 2008-06-28 18:10:07 UTC
there's no need to alter the crossdev script.  just add --without-headers when running crossdev.
Comment 3 SpanKY gentoo-dev 2008-08-25 19:58:17 UTC
*** Bug 235489 has been marked as a duplicate of this bug. ***
Comment 5 Anatoly Yakovenko 2010-02-24 05:59:31 UTC
Created attachment 220925 [details]
cross-arm-elf-info.log
Comment 6 Anatoly Yakovenko 2010-02-24 06:00:02 UTC
Created attachment 220927 [details]
cross-arm-elf-newlib.log
Comment 7 Anatoly Yakovenko 2010-02-24 06:01:56 UTC
i still cant emerge arm-elf, i've tried both, with and without the headers option, and it always dies when emerging newlib.  dunno if th emerge --info is usefull, but here it is:


anatolyy-linux ~ # emerge --info
--- Invalid atom in /etc/portage/package.keywords: cross-armv5te-softfloat-linux-eglibc/[latest]
--- Invalid atom in /etc/portage/package.keywords: cross-arm-softfloat-elf-eabi/[latest]
--- Invalid atom in /etc/portage/package.keywords: cross-arm-softfloat-none-eabi/[latest]
Portage 2.1.7.16 (default/linux/amd64/10.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.32-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r6-x86_64-Intel-R-_Xeon-R-_CPU_E5440_@_2.83GHz-with-gentoo-1.12.11.1
Timestamp of tree: Tue, 23 Feb 2010 10:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.9
dev-lang/python:     2.6.4, 3.1.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.20
sys-devel/gcc:       4.3.2-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-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 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/shared/gentoo/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/local/portage /usr/local/portage/layman/java-overlay /usr/local/portage/layman/haskell /usr/local/portage/layman/kde-sunset /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl afterimage alsa amd64 bash-completion berkdb bindist bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups custom-optimization cxx dbus dri dts dvd dvdr embedded emboss encode evo fam firefox flac fortran gdbm gif gkt glitz gmp gpm graphviz gtk hal haskell hybrid-auth iconv imap ipv6 iso14755 java java5 java6 jpeg ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nodrm nptl nptlonly nvidia ogg opengl openmp pam pch pcre pdf perl png ppds pppd profile python qt3 qt3support qt4 quicktime readline reflection resolvconf samba sdl session sidebar smtp spl sqlite sse sse2 ssl startup-notification svg symlink sysfs syslog tcpd thunar tiff truetype unicode usb vim vim-syntax vim-with-x vorbis winbind x264 xcomposite xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 mmap_emul 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 8 Luca Barbato gentoo-dev 2010-02-24 09:19:09 UTC
please try with a -j1 as makeopts, it might be the problem
Comment 9 Anatoly Yakovenko 2010-02-24 19:25:52 UTC
Created attachment 221015 [details]
cross-arm-elf-newlib-headers.log

So i got a little farther with newlib, now it fails with newlib-headers with or without the --with-headers option
Comment 10 Anatoly Yakovenko 2010-02-24 19:50:02 UTC
Created attachment 221019 [details]
newlib-1.18.0

i found this post

http://old.nabble.com/libgloss-ARM-compile-error-td25698531.html

so newlib-1.16 had some bugs in it, and its fixed in the latest.  I simply version bumped the ebuild and it seems to get through to stage2 now, but its failing there because i ran out of space on that drive :).
Comment 11 Luca Barbato gentoo-dev 2010-02-24 20:19:58 UTC
I'll bump the newlib version forcing for now -j1 if you really need that, otherwise I'd like to take some more time to fix the build system