Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290454 - armeb-softfloat-linux-uclibc: uclibc-0.9.28.3-r7 and gcc-4.1.2 fails to build with VFP mismatch
Summary: armeb-softfloat-linux-uclibc: uclibc-0.9.28.3-r7 and gcc-4.1.2 fails to build...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-25 12:21 UTC by Tobias Leupold
Modified: 2013-01-26 18:13 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,608.76 KB, text/plain)
2009-10-25 12:24 UTC, Tobias Leupold
Details
cross-armeb-softfloat-linux-uclibc-info.log (cross-armeb-softfloat-linux-uclibc-info.log,12.31 KB, text/plain)
2010-03-22 19:21 UTC, Tobias Leupold
Details
cross-armeb-softfloat-linux-uclibc-uclibc.log (cross-armeb-softfloat-linux-uclibc-uclibc.log,84.46 KB, text/plain)
2010-03-22 19:21 UTC, Tobias Leupold
Details
cross-armeb-softfloat-linux-uclibc-gcc-stage1.log (cross-armeb-softfloat-linux-uclibc-gcc-stage1.log,963.46 KB, text/plain)
2010-03-23 17:54 UTC, Tobias Leupold
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Leupold 2009-10-25 12:21:44 UTC
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:
Comment 1 Tobias Leupold 2009-10-25 12:24:44 UTC
Created attachment 208200 [details]
build.log
Comment 2 Tobias Leupold 2009-10-25 12:26:13 UTC
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
Comment 3 Tobias Leupold 2009-12-29 17:34:05 UTC
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 ...
Comment 4 johnnyg 2010-03-22 14:32:00 UTC
Could you attach all cross-armeb-softfloat-linux-uclibc log files, please?
Comment 5 Tobias Leupold 2010-03-22 19:21:32 UTC
Created attachment 224759 [details]
cross-armeb-softfloat-linux-uclibc-info.log
Comment 6 Tobias Leupold 2010-03-22 19:21:51 UTC
Created attachment 224761 [details]
cross-armeb-softfloat-linux-uclibc-uclibc.log
Comment 7 johnnyg 2010-03-22 23:13:00 UTC
please do also attach /var/log/portage/cross-armeb-vfp-linux-uclibc-gcc-stage1.log
Comment 8 Tobias Leupold 2010-03-23 17:54:17 UTC
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 ...
Comment 9 johnnyg 2010-03-24 23:33:45 UTC
that was indeed the right file, sry for my typo.

which version of gcc do you use for uclibc on xscale?
Comment 10 Tobias Leupold 2010-03-25 12:31:49 UTC
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.
Comment 11 solar (RETIRED) gentoo-dev 2010-03-25 16:43:08 UTC
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
Comment 12 Tobias Leupold 2010-03-25 17:50:19 UTC
Will this be compatible with the NSLU2? That's the important thing (for me).
Comment 13 solar (RETIRED) gentoo-dev 2010-03-25 18:20:57 UTC
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.
Comment 14 johnnyg 2010-03-29 19:00:07 UTC
works for me, also with gcc 4.4.3
Comment 15 Tobias Leupold 2010-05-15 07:05:33 UTC
(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 ;-)