Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 433056

Summary: sys-devel/gcc-4.7.1 fails to crosscompile with cross-powerpc64-unknown-linux-gnu/gcc-4.6.3: cc1: error: unrecognized command line option '-fbuilding-libgcc'
Product: Gentoo Linux Reporter: Dennis Schridde <dschridde+gentoobugs>
Component: Current packagesAssignee: Gentoo Crossdev team <crossdev>
Status: RESOLVED OBSOLETE    
Severity: normal CC: steev
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 627914    
Attachments: build.log (xz compressed)

Description Dennis Schridde 2012-08-28 12:41:43 UTC
powerpc64-unknown-linux-gnu-gcc   -g -pipe -O2 -mcpu=cell -O2 -O2  -g -pipe -O2 -mcpu=cell -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -W
strict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fPIC -mlong-double-128 -mno-minimal-toc -g -DIN_LIBGCC2 -fbu
ilding-libgcc -fno-stack-protector   -fPIC -mlong-double-128 -mno-minimal-toc -I. -I. -I../.././gcc -I/var/tmp/cross-powerpc64-unknown-linux-gnu/
portage/sys-devel/gcc-4.7.1/work/gcc-4.7.1/libgcc -I/var/tmp/cross-powerpc64-unknown-linux-gnu/portage/sys-devel/gcc-4.7.1/work/gcc-4.7.1/libgcc/
. -I/var/tmp/cross-powerpc64-unknown-linux-gnu/portage/sys-devel/gcc-4.7.1/work/gcc-4.7.1/libgcc/../gcc -I/var/tmp/cross-powerpc64-unknown-linux-
gnu/portage/sys-devel/gcc-4.7.1/work/gcc-4.7.1/libgcc/../include -I/var/tmp/cross-powerpc64-unknown-linux-gnu/portage/sys-devel/gcc-4.7.1/work/gc
c-4.7.1/libgcc/../libdecnumber/dpd -I/var/tmp/cross-powerpc64-unknown-linux-gnu/portage/sys-devel/gcc-4.7.1/work/gcc-4.7.1/libgcc/../libdecnumber
 -DHAVE_CC_TLS  -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c /var/tmp/cross-powerpc64-unknown-linux-gnu/portage/sys-devel/gcc
-4.7.1/work/gcc-4.7.1/libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS
cc1: error: unrecognized command line option '-fbuilding-libgcc'
make[2]: *** [_muldi3.o] Error 1


Reproducible: Always




ROOT=/:
Portage 2.2.0_alpha123 (default/linux/amd64/10.0, gcc-4.5.4, glibc-2.15-r2, 2.6.18-308.11.1.el5 x86_64)
=================================================================
System uname: Linux-2.6.18-308.11.1.el5-x86_64-Quad-Core_AMD_Opteron-tm-_Processor_2352-with-gentoo-2.1
Timestamp of tree: Tue, 28 Aug 2012 07:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
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-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo local sunrise
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=opteron-sse3"
CHOST="x86_64-pc-linux-gnu"
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="-pipe -O2 -march=opteron-sse3"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--usepkg --binpkg-respect-use --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parallel-install parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--hash-style=gnu"
PKGDIR="/var/cache/portage/packages"
PORTAGE_COMPRESS="xz"
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="/var/cache/portage/gentoo"
PORTDIR_OVERLAY="/var/cache/portage/local /var/cache/portage/overlays/sunrise"
[...]
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

ROOT=/usr/powerpc64-unknown-linux-gnu:
Portage 2.2.0_alpha123 (default/linux/powerpc/ppc64/10.0/64bit-userland, gcc-4.6.3, glibc-2.16.0, 2.6.18-308.11.1.el5 x86_64)
=================================================================
System uname: Linux-2.6.18-308.11.1.el5-x86_64-Quad-Core_AMD_Opteron-tm-_Processor_2352-with-gentoo-2.1
Timestamp of tree: Tue, 28 Aug 2012 07:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
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-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo local sunrise
ACCEPT_KEYWORDS="ppc64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -mcpu=cell -mabi=altivec"
CHOST="powerpc64-unknown-linux-gnu"
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="-pipe -O2 -mcpu=cell -mabi=altivec"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--usepkg --binpkg-respect-use --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parallel-install parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
PKGDIR="/usr/powerpc64-unknown-linux-gnu/packages/"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/usr/powerpc64-unknown-linux-gnu/"
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/cross-powerpc64-unknown-linux-gnu"
PORTDIR="/var/cache/portage/gentoo"
PORTDIR_OVERLAY="/var/cache/portage/local /var/cache/portage/overlays/sunrise"
[...]
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Dennis Schridde 2012-08-28 12:42:26 UTC
Created attachment 322426 [details]
build.log (xz compressed)
Comment 2 Steev Klimaszewski (RETIRED) gentoo-dev 2012-10-03 01:27:04 UTC
This also occurs with arm, exact same error message.  Hardfloat, softfp was untested.

armv7a-hardfloat-linux-gnueabi-gcc   -g -O2 -pipe -march=armv7-a -mfpu=vfp -O2  -g -O2 -pipe -march=armv7-a -mfpu=vfp -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fPIC -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -fPIC -fno-inline -I. -I. -I../.././gcc -I/var/tmp/portage/sys-devel/gcc-4.7.2/work/gcc-4.7.2/libgcc -I/var/tmp/portage/sys-devel/gcc-4.7.2/work/gcc-4.7.2/libgcc/. -I/var/tmp/portage/sys-devel/gcc-4.7.2/work/gcc-4.7.2/libgcc/../gcc -I/var/tmp/portage/sys-devel/gcc-4.7.2/work/gcc-4.7.2/libgcc/../include  -DHAVE_CC_TLS  -o _divsi3_s.o -MT _divsi3_s.o -MD -MP -MF _divsi3_s.dep -DSHARED -DL_divsi3 -xassembler-with-cpp -c /var/tmp/portage/sys-devel/gcc-4.7.2/work/gcc-4.7.2/libgcc/config/arm/lib1funcs.S
cc1: error: unrecognized command line option ‘-fbuilding-libgcc’
cc1: error: unrecognized command line option ‘-fbuilding-libgcc’
cc1: error: unrecognized command line option ‘-fbuilding-libgcc’
cc1: error: unrecognized command line option ‘-fbuilding-libgcc’cc1: error: unrecognized command line option ‘-fbuilding-libgcc’
make[2]: *** [_thumb1_case_sqi_s.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: error: unrecognized command line option ‘-fbuilding-libgcc’

make[2]: *** [_thumb1_case_uqi_s.o] Error 1
make[2]: *** [_udivsi3_s.o] Error 1
cc1: error: unrecognized command line option ‘-fbuilding-libgcc’
make[2]: *** [_thumb1_case_shi_s.o] Error 1
make[2]: *** [_thumb1_case_uhi_s.o] Error 1
make[2]: *** [_thumb1_case_si_s.o] Error 1
make[2]: *** [_divsi3_s.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.7.2/work/build/armv7a-hardfloat-linux-gnueabi/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.7.2/work/build'
make: *** [all] Error 2
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2018-04-07 12:37:19 UTC
Is this still relevant or modern toolchains Just Work nowadays?