Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 448126 - armv6j & armv7a: default profiles use -mfloat-abi=softfp
Summary: armv6j & armv7a: default profiles use -mfloat-abi=softfp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Gentoo ARM Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-21 22:36 UTC by Michal Privoznik
Modified: 2012-12-24 01:37 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Privoznik 2012-12-21 22:36:12 UTC
Since it might be not a gentoo but gcc bug, I don't hesitate to be closed right away.

rpi ~ # emerge --info '=sys-devel/gcc-4.7.2'
Portage 2.1.11.31 (default/linux/arm/10.0/armv6j, gcc-4.5.4, glibc-2.15-r3, 3.2.27-cutdown+ armv6l)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.2.27-cutdown+-armv6l-ARMv6-compatible_processor_rev_7_-v6l-with-gentoo-2.1
Timestamp of tree: Thu, 20 Dec 2012 21:30:02 +0000
ld GNU ld (GNU Binutils) 2.22
distcc 3.1 armv6j-hardfloat-linux-gnueabi [enabled]
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv6j-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
CHOST="armv6j-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=softfp"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"                                                                                                                                                                                                    
FFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=softfp"                                                                                                                                                          
GENTOO_MIRRORS="http://gentoo.mirror.dkm.cz/pub/gentoo/"                                                                                                                                                               
LANG="en_US.UTF-8"                                                                                                                                                                                                     
LDFLAGS="-Wl,-O1 -Wl,--as-needed"                                                                                                                                                                                      
PKGDIR="/usr/portage/packages"                                                                                                                                                                                         
PORTAGE_CONFIGROOT="/"                                                                                                                                                                                                 
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"        
PORTAGE_TMPDIR="/var/tmp"                                                                                                                                                                                              
PORTDIR="/usr/portage"                                                                                                                                                                                                 
PORTDIR_OVERLAY="/usr/local/portage"                                                                                                                                                                                   
SYNC="rsync://rsync.gentoo.org/gentoo-portage"                                                                                                                                                                         
USE="acl arm bash-completion berkdb bzip2 cli cracklib crypt cups curl cxx embedded fortran ftp gdbm gmp gpm gzip iconv ipv6 modules mudflap ncurses nls nptl openmp pam pcre posix pppd readline session shared-mem ssl tcpd threads unicode usb zlib" 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="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap omapfb dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON



rpi ~ # emerge -pqv '=sys-devel/gcc-4.7.2'
[ebuild  NS   ] sys-devel/gcc-4.7.2 [4.5.4] USE="cxx fortran mudflap nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -go -graphite -gtk (-hardened) (-libssp) (-multilib) -multislot -nopie -nossp -objc -objc++ -objc-gc {-test} -vanilla" 

The full debug log can be obtained here:
http://mprivozn.fedorapeople.org/gentoo/build.log
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2012-12-22 11:19:15 UTC
These are hard.

> CBUILD="armv6j-hardfloat-linux-gnueabi"
> CFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
> CHOST="armv6j-hardfloat-linux-gnueabi"

There are soft.

> FCFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=softfp"
> FFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=softfp"

Which is why you get errors like:

> /usr/armv6j-hardfloat-linux-gnueabi/bin/ld: error: .libs/libgfortran.so.3.0.0 uses VFP register arguments, .libs/f2c_specifics.o does not
> /usr/armv6j-hardfloat-linux-gnueabi/bin/ld: failed to merge target specific data of file .libs/f2c_specifics.o


I suppose that correcting the FCFLAGS and FFLAGS will fix your problem.
Comment 2 Michal Privoznik 2012-12-22 12:30:46 UTC
(In reply to comment #1)
> These are hard.
> 
> > CBUILD="armv6j-hardfloat-linux-gnueabi"
> > CFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
> > CHOST="armv6j-hardfloat-linux-gnueabi"
> 
> There are soft.
> 
> > FCFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=softfp"
> > FFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=softfp"
> 
> Which is why you get errors like:
> 
> > /usr/armv6j-hardfloat-linux-gnueabi/bin/ld: error: .libs/libgfortran.so.3.0.0 uses VFP register arguments, .libs/f2c_specifics.o does not
> > /usr/armv6j-hardfloat-linux-gnueabi/bin/ld: failed to merge target specific data of file .libs/f2c_specifics.o
> 
> 
> I suppose that correcting the FCFLAGS and FFLAGS will fix your problem.

I am not aware I've changed FCFLAGS. Moreover, from my understanding, they are inherited from CFLAGS which does contain '-mfloat-abi=hard'. Can you give me a pointer where it got overwritten?
Comment 3 SpanKY gentoo-dev 2012-12-24 01:34:53 UTC
since we set default float abi in gcc itself, there should be no need to set any flags in our arm profiles