When building a cross toolchain for armeb-softfloat-linux-uclibc, uclibc's merge (with USE="-nls -iconv" and LC_ALL=C set!) fails with multiple error messages like armeb-softfloat-linux-uclibc-ld: ERROR: /usr/lib/gcc/armeb-softfloat-linux-uclibc/4.1.2/libgcc.a(_divsi3.o) uses VFP instructions, whereas libuClibc-0.9.28.so does not I get exactly the same errors when building uclibc directly on my NSLU2. Reproducible: Always Steps to Reproduce:
Created attachment 208200 [details] build.log
Here's my emerge --info: Portage 2.1.6.13 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r0, 2.6.30.5 x86_64) ================================================================= System uname: Linux-2.6.30.5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.1 Timestamp of tree: Sat, 24 Oct 2009 08:00:01 +0000 distcc 3.1 x86_64-pc-linux-gnu [disabled] app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.6.2-r1, 3.1.1-r1 dev-util/cmake: 2.6.4 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r4 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe -msse4.1" 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" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=core2 -O2 -pipe -msse4.1" DISTDIR="/usr/src/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS=" http://ftp.uni-erlangen.de/pub/mirrors/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ " LANG="de_DE.utf8" LC_ALL="de_DE.utf8" LDFLAGS="-Wl,-O1" LINGUAS="de" 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="/var/portage/tree" PORTDIR_OVERLAY="/var/portage/local /var/portage/layman/sunrise /var/portage/layman/kde-testing" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups dbus dri dts dvd dvdr eds emboss encode evo fam firefox flac fortran gdbm gif gpm gtk hal iconv ipv6 isdnlog jpeg kde ldap libnotify lm_sensors mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support qt4 quicktime readline reflection sdl semantic-desktop session spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd theora thunar tiff truetype unicode usb vim-syntax vorbis wmf x264 xine 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="intel" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I still get exactly the same error with uclibc-0.9.30.1-r1 when I'm trying to build a cross toolchain on my amd64 machine or when I try to build uclibc directly on my NSLU2 ...
Could you attach all cross-armeb-softfloat-linux-uclibc log files, please?
Created attachment 224759 [details] cross-armeb-softfloat-linux-uclibc-info.log
Created attachment 224761 [details] cross-armeb-softfloat-linux-uclibc-uclibc.log
please do also attach /var/log/portage/cross-armeb-vfp-linux-uclibc-gcc-stage1.log
Created attachment 224923 [details] cross-armeb-softfloat-linux-uclibc-gcc-stage1.log That's the only gcc-stage1 logfile I have, there's no cross-armeb-vfp-linux-uclibc-gcc-stage1.log ...
that was indeed the right file, sry for my typo. which version of gcc do you use for uclibc on xscale?
On my NSLU2, I have sys-devel/gcc-4.1.2 (because I could not build any version after this one, it hangs at isnattrtab.o or so), on my Desktop sys-devel/gcc-4.3.4. But both versions produce exactly the same error.
This works for me when I use the proper CHOST value armv5teb-softfloat-linux-uclibceabi sys-devel/binutils-2.20:0 sys-devel/gcc-4.3.4:4.3 (nocxx) sys-libs/uclibc-0.9.30.1-r1:0 (elibc_uclibc minimal) I also force the following CFLAGS -march=armv5t -mtune=xscale -mbig-endian
Will this be compatible with the NSLU2? That's the important thing (for me).
Re: NSLU2 compat of course it is (as long as the kernel you are using supports EABI). I also set UCLIBC_CPU="ARM_XSCALE" If you want me to post a generic stage3 for uclibceabi or gnueabi just yell.
works for me, also with gcc 4.4.3
(In reply to comment #13) > If you want me to post a generic stage3 for uclibceabi or gnueabi just yell. It would be really cool if you posted a armv5teb-softfloat-linux-uclibceabi stage-3, as I didn't manage to get it to work till now ... (only crashed my server several times ;-)