Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 516870 - sys-devel/gcc-4.7.3-r1 - checking for suffix of object files... configure: error: in `.../work/build/armv7a-hardfloat-linux-gnueabi/libgcc': configure: error: cannot compute suffix of object files: cannot compile
Summary: sys-devel/gcc-4.7.3-r1 - checking for suffix of object files... configure: er...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-11 06:26 UTC by mateusz
Modified: 2015-10-22 14:20 UTC (History)
2 users (show)

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


Attachments
gcc-build-logs.tar.bz2 (gcc-build-logs.tar.bz2,173.04 KB, application/x-bzip-compressed-tar)
2014-07-11 06:33 UTC, mateusz
Details
/var/tmp/portage/cross-arm-hardfloat-linux-gnueabi/gcc-4.9.3/work/build/arm-float-linux-gnueabi/config.log (config.log,15.08 KB, text/plain)
2015-10-13 05:23 UTC, Wallance
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mateusz 2014-07-11 06:26:53 UTC
I am trying to install Gentoo Linux on CompuLab's Utilite Standard [1] machine (which is Freescale i.MX6 dual-core Cortex-A9 with 2GB RAM)

On fresh install of Gentoo Linux (stage3-armv7a_hardfp-20140603.tar.bz2) I was doing `emerge -e world'.  All went smoothly until compilation of gcc (version 4.7.3-r1).

[1] http://utilite-computer.com/web/utilite-standard-specifications

Reproducible: Always

Steps to Reproduce:
1. create microSC card with Gentoo Linux:
    * prepare boot partition (vfat)
    * prepare rootfs partition (ext4)
    * extract stage1 and portage tree on rootfs (as explained in Handbook)
2. boot machine
3. do `emerge --sync'
3. do `emerge -eav @world'
Actual Results:  
197 packages out of 216 are compiling without any problems.  It's sys-devel/gcc-4.7.3-r1 that's failing.

Expected Results:  
completed emerge (198 of 216) sys-devel/gcc-4.7.3-r1 to /
Comment 1 mateusz 2014-07-11 06:29:25 UTC
# emerge --info
Portage 2.2.8-r1 (default/linux/arm/13.0/armv7a, gcc-4.7.3, glibc-2.17, 3.0.35-cm-fx6-6.1 armv7l)
=================================================================
System uname: Linux-3.0.35-cm-fx6-6.1-armv7l-ARMv7_Processor_rev_10_-v7l-with-gentoo-2.2
KiB Mem:     2007000 total,    203760 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Thu, 10 Jul 2014 09:30:01 +0000
ld GNU ld (Gentoo 2.23.2 p1.0) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.6, 3.3.5
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x-overlay
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
DISTDIR="/var/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/var/overlay"
USE="acl arm bash-completion berkdb bindist bluetooth bzip2 cli cracklib crypt cxx dri fam fbcon fortran gdbm gnutls gpm iconv idn imap ipv6 modules ncurses neon nls nptl openmp pam pcre png readline session smp snmp ssl syslog tcpd udev unicode vim-syntax wifi xattr zlib" 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 author" 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 ublox ubx" INPUT_DEVICES="evdev synaptics mutouch" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" 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, SYNC, USE_PYTHON
Comment 2 mateusz 2014-07-11 06:30:35 UTC
# emerge --info '=sys-devel/gcc-4.7.3-r1::gentoo'
Portage 2.2.8-r1 (default/linux/arm/13.0/armv7a, gcc-4.7.3, glibc-2.17, 3.0.35-cm-fx6-6.1 armv7l)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.0.35-cm-fx6-6.1-armv7l-ARMv7_Processor_rev_10_-v7l-with-gentoo-2.2
KiB Mem:     2007000 total,    203580 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Thu, 10 Jul 2014 09:30:01 +0000
ld GNU ld (Gentoo 2.23.2 p1.0) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.6, 3.3.5
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x-overlay
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
DISTDIR="/var/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/var/overlay"
USE="acl arm bash-completion berkdb bindist bluetooth bzip2 cli cracklib crypt cxx dri fam fbcon fortran gdbm gnutls gpm iconv idn imap ipv6 modules ncurses neon nls nptl openmp pam pcre png readline session smp snmp ssl syslog tcpd udev unicode vim-syntax wifi xattr zlib" 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 author" 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 ublox ubx" INPUT_DEVICES="evdev synaptics mutouch" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" 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, SYNC, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sys-devel/gcc-4.7.3-r1 was built with the following:
USE="cxx fortran nls nptl openmp (-altivec) -awt -doc (-fixed-point) -gcj -go -graphite (-hardened) (-libssp) -mudflap (-multilib) (-multislot) -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla"
Comment 3 mateusz 2014-07-11 06:32:06 UTC
# emerge -pqv '=sys-devel/gcc-4.7.3-r1::gentoo'
[ebuild   R   ] sys-devel/gcc-4.7.3-r1  USE="cxx fortran nls nptl openmp (-altivec) -awt -doc (-fixed-point) -gcj -go -graphite (-hardened) (-libssp) -mudflap (-multilib) (-multislot) -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla"
Comment 4 mateusz 2014-07-11 06:33:05 UTC
Created attachment 380556 [details]
gcc-build-logs.tar.bz2
Comment 5 mateusz 2014-07-11 07:46:27 UTC
Still investigating a little on my own.  Here is what I have found:

  # find /var/tmp/portage/sys-devel/gcc-4.7.3-r1/ -name config.log -exec grep "internal compiler error" {} +
  /var/tmp/portage/sys-devel/gcc-4.7.3-r1/work/build/armv7a-hardfloat-linux-gnueabi/libgcc/config.log:conftest.c:11:1: internal compiler error: Illegal instruction
  /var/tmp/portage/sys-devel/gcc-4.7.3-r1/work/build/armv7a-hardfloat-linux-gnueabi/libgcc/config.log:conftest.c:16:1: internal compiler error: Segmentation fault

Which basically means we have a bug in the compiler [1].

I will try compiling sys-devel/gcc-4.8.3 and see what happens there.
Comment 6 mateusz 2014-07-11 10:44:06 UTC
Same happens when trying to compile gcc-4.8.3

# emerge --info '=sys-devel/gcc-4.8.3::gentoo'
Portage 2.2.8-r1 (default/linux/arm/13.0/armv7a, gcc-4.7.3, glibc-2.17, 3.0.35-cm-fx6-6.1 armv7l)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.0.35-cm-fx6-6.1-armv7l-ARMv7_Processor_rev_10_-v7l-with-gentoo-2.2
KiB Mem:     2007000 total,    100660 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Thu, 10 Jul 2014 09:30:01 +0000
ld GNU ld (Gentoo 2.23.2 p1.0) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.6, 3.3.3
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x-overlay
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
DISTDIR="/var/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/var/overlay"
USE="acl arm bash-completion berkdb bluetooth bzip2 cli cracklib crypt cxx dri fam fbcon fortran gdbm gnutls gpm iconv idn imap ipv6 modules ncurses neon nls nptl openmp pam pcre png readline session smp snmp ssl syslog tcpd udev unicode vim-syntax wifi xattr zlib" 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 author" 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 ublox ubx" INPUT_DEVICES="evdev synaptics mutouch" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" 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, SYNC, USE_PYTHON

# emerge -pqv '=sys-devel/gcc-4.8.3::gentoo'
[ebuild  NS   ] sys-devel/gcc-4.8.3 [4.7.3-r1] USE="cxx fortran nls nptl openmp (-altivec) -awt -doc (-fixed-point) -gcj -go -graphite (-hardened) (-libssp) -mudflap (-multilib) (-multislot) -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla"

# find /var/tmp/portage/sys-devel/gcc-4.8.3/ -type f -name \*.log -exec grep "internal compiler error" {} +
/var/tmp/portage/sys-devel/gcc-4.8.3/work/build/libcpp/config.log:| cc1plus: internal compiler error: Segmentation fault
Comment 7 Wallance 2015-10-13 05:19:25 UTC
I have the same issue.I have tried to add arm-*-binutils library for path in ld.so.conf.d and env-update,source /etc/profile, but I cannot solve the problem.I also refer to Gentoo's Raspberry wiki page which add CFLAGS but it didn't work.Is there any wrong?
Thanks for any help.
Comment 8 Wallance 2015-10-13 05:23:32 UTC
Created attachment 414482 [details]
/var/tmp/portage/cross-arm-hardfloat-linux-gnueabi/gcc-4.9.3/work/build/arm-float-linux-gnueabi/config.log

The config.log shows the wrong "elf32-littlearm unknown".
Comment 9 SpanKY gentoo-dev 2015-10-13 19:04:47 UTC
Comment on attachment 414482 [details]
/var/tmp/portage/cross-arm-hardfloat-linux-gnueabi/gcc-4.9.3/work/build/arm-float-linux-gnueabi/config.log

this is not the same bug.  please open a new report.
Comment 10 SpanKY gentoo-dev 2015-10-13 19:05:29 UTC
mateusz: 4.9 is stable now for arm.  is this still a problem for you ?
Comment 11 SpanKY gentoo-dev 2015-10-22 14:20:18 UTC
gcc-4.9 is stable now, so throwing away older bugs we don't plan on doing backports for as this should be fixed w/4.9+.  please re-open if it's still an issue with 4.9.3+ though.