Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123891 - distcc issues? Compilation of sys-libs/glibc-2.3.6-r3 fails: cc1: error: unrecognized option `-fgcse-after-reload'
Summary: distcc issues? Compilation of sys-libs/glibc-2.3.6-r3 fails: cc1: error: unre...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 131501 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-23 23:25 UTC by Alexander Skwar
Modified: 2006-04-27 13:21 UTC (History)
2 users (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 Alexander Skwar 2006-02-23 23:25:27 UTC
I tried to compile sys-libs/glibc-2.3.6-r3 with the following flags:

[ebuild     U ] sys-libs/glibc-2.3.6-r3 [2.3.4.20041102-r1] USE="glibc-omitfp% linuxthreads-tls% nls nptl* nptlonly* -build -erandom -glibc-compat20% -hardened -pic -profile% -userlocales" 0 kB

This fails. I'm on a hardened TC, if that matters.

distcc[22584] ERROR: compile (null) on localhost failed
i686-pc-linux-gnu-gcc ../sysdeps/unix/sysv/linux/ssp.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -finline-limit=2000 -march=prescott -pipe -mpreferred-stack-boundary=4  -g0 -O2 -fgcse-after-reload -finline-functions -fomit-frame-pointer -D__USE_STRING_INLINES -fno-stack-protector   -I../include -I. -I/Gentoo/Portage/build/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/csu -I.. -I../libio -I../nptl -I/Gentoo/Portage/build/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix -I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 -I../libidn/sysdeps/unix -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/include -isystem /usr/include -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -DHAVE_INITFINI -o /Gentoo/Portage/build/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/csu/ssp.o -MD -MP -MF /Gentoo/Portage/build/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/csu/ssp.o.dt -MT /Gentoo/Portage/build/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/csu/ssp.o
cc1: error: unrecognized option `-fgcse-after-reload'
distcc[22585] ERROR: compile ../sysdeps/generic/libc-start.c on localhost failed
distcc[22602] ERROR: compile (null) on localhost failed
make[2]: *** [/Gentoo/Portage/build/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/csu/libc-start.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: error: unrecognized option `-fgcse-after-reload'
distcc[22583] ERROR: compile ../sysdeps/unix/sysv/linux/init-first.c on dewuga02.dewup.europe.delphiauto.net failed
make[2]: *** [/Gentoo/Portage/build/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/csu/init-first.o] Error 1
distcc[22593] ERROR: compile (null) on localhost failed
cc1: error: unrecognized option `-fgcse-after-reload'
distcc[22615] ERROR: compile (null) on localhost failed
distcc[22595] ERROR: compile ../sysdeps/generic/libc-tls.c on dewup-ww02.dewup.europe.delphiauto.net failed
make[2]: *** [/Gentoo/Portage/build/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/csu/libc-tls.o] Error 1
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/0a/Gentoo/Portage/build/portage/glibc-2.3.6-r3/work/glibc-2.3.6'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.6-r3 failed.
Call stack:
cc1: error: unrecognized option `-fgcse-after-reload'
  ebuild.sh, line 1894:   Called dyn_compile
  ebuild.sh, line 941:   Called src_compile
distcc[22605] ERROR: compile ../sysdeps/generic/errno-loc.c on localhost failed
  glibc-2.3.6-r3.ebuild, line 1251:   Called toolchain-glibc_src_compile
distcc[22597] ERROR: compile (null) on localhost failed

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

cc1: error: unrecognized option `-fgcse-after-reload'
distcc[22591] ERROR: compile ../sysdeps/generic/check_fds.c on localhost failed
distcc[22609] ERROR: compile (null) on localhost failed
cc1: error: unrecognized option `-fgcse-after-reload'
distcc[22589] ERROR: compile version.c on dewuga02.dewup.europe.delphiauto.net failed
Fri Feb 24 08:16:57 CET 2006: Fehler beim Bauen von "sys-libs/glibc-2.3.6-r3". Code: 1

real    0m56.497s
user    0m33.722s
sys     0m24.354s
dewuga02 ~ # cc1: error: unrecognized option `-fgcse-after-reload'
distcc[22600] ERROR: compile elf-init.c on localhost failed
distcc[22613] ERROR: compile (null) on localhost failed
cc1: error: unrecognized option `-fgcse-after-reload'
distcc[22601] ERROR: compile dso_handle.c on localhost failed
distcc[22617] ERROR: compile (null) on localhost failed
cc1: error: unrecognized option `-fgcse-after-reload'
distcc[22610] ERROR: compile (null) on localhost failed
distcc[22607] ERROR: compile ../sysdeps/unix/sysv/linux/ssp.c on dewuga02.dewup.europe.delphiauto.net failed
cc1: error: unrecognized option `-fgcse-after-reload'
distcc[22603] ERROR: compile ../sysdeps/generic/errno.c on localhost failed



dewuga02 ~ # emerge info
Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.15-gentoo-r5-enx.02 i686)
=================================================================
System uname: 2.6.15-gentoo-r5-enx.02 i686 Intel(R) Xeon(TM) CPU 2.80GHz
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10, 2.16.1-r1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/Gentoo/Portage/distfiles"
FEATURES="autoconfig buildpkg ccache collision-protect distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j11"
PKGDIR="/Gentoo/Portage/packages"
PORTAGE_TMPDIR="/Gentoo/Portage/build"
PORTDIR="/Gentoo/Portage/tree"
PORTDIR_OVERLAY="/Gentoo/Portage/local-tree/misc"
SYNC="rsync://localhost:10873/gentoo-portage"
USE="x86 7zip acl apache2 async avi bash-completion berkdb bzip2 cap caps ccache checkpath cracklib crypt discard-path ecc extensions firefox gdbm gif glep glibc-omitfp gpm hpn iconv input_devices_evdev input_devices_keyboard input_devices_mouse jikes jpeg kdeenablefinal libg++ libwww linuxthreads-tls logrotate lynxkeymap mmx motif moznoirc mozsvg mpm-threadpool multislot ncurses nis nls no-old-linux noaudio nocd nodrm nolvm1 nopop3d nptl nptlonly offensive pam pcre pdflib perl png posix python readline recode reiserfs sendfile server sftplogging sharedmem sse ssl static sysvipc szip tcpd threads underscores unicode usb utf8 video_cards_ati vim-pager xfs xinetd yp zlib elibc_glibc kernel_linux linguas_de userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL
Comment 1 Alexander Skwar 2006-02-23 23:27:47 UTC
Sorry, I'm not on a hardened TC. That's a different system.. :)
Comment 2 Alexander Skwar 2006-02-23 23:36:05 UTC
I now switched from gcc 3.3.5 to 3.4.5, and it's now failing with a different error message:

cc1: error: unrecognized option `-fno-unit-at-a-time'
cc1: error: unrecognized option `-fno-unit-at-a-time'



i686-pc-linux-gnu-gcc ../sysdeps/generic/errno.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -march=prescott -pipe -mpreferred-stack-boundary=4  -g0 -O2 -fgcse-after-reload -finline-functions -fomit-frame-pointer -D__USE_STRING_INLINES    -I../include -I. -I/Gentoo/Portage/build/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/csu -I.. -I../libio -I../nptl -I/Gentoo/Portage/build/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix -I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 -I../libidn/sysdeps/unix -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/include -isystem /usr/include -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -DHAVE_INITFINI -o /Gentoo/Portage/build/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/csu/errno.o -MD -MP -MF /Gentoo/Portage/build/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/csu/errno.o.dt -MT /Gentoo/Portage/build/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/csu/errno.o
cc1: error: unrecognized option `-fno-unit-at-a-time'
cc1: error: unrecognized option `-fno-unit-at-a-time'
distcc[23221] ERROR: compile ../sysdeps/generic/initfini.c on dewuga02.dewup.europe.delphiauto.net failed
make[2]: *** [/Gentoo/Portage/build/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/csu/initfini.s] Error 1
make[2]: *** Waiting for unfinished jobs....
distcc[23266] ERROR: compile /Gentoo/ccache/libc-start.tmp.dewuga02.23240.i on dewuga02.dewup.europe.delphiauto.net failed
cc1: error: unrecognized option `-fgcse-after-reload'
distcc[23240] ERROR: compile ../sysdeps/generic/libc-start.c on dewuga02.dewup.europe.delphiauto.net failed
make[2]: *** [/Gentoo/Portage/build/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/csu/libc-start.o] Error 1
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/0a/Gentoo/Portage/build/portage/glibc-2.3.6-r3/work/glibc-2.3.6'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.6-r3 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_compile
  ebuild.sh, line 941:   Called src_compile
  glibc-2.3.6-r3.ebuild, line 1251:   Called toolchain-glibc_src_compile

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

dewuga02 ~ # distcc[23291] ERROR: compile /Gentoo/ccache/dso_handle.tmp.dewuga02.23259.i on dewuga02.dewup.europe.delphiauto.net failed
cc1: error: unrecognized option `-fgcse-after-reload'
distcc[23259] ERROR: compile dso_handle.c on dewuga02.dewup.europe.delphiauto.net failed
distcc[23300] ERROR: compile /Gentoo/ccache/version.tmp.dewuga02.23242.i on dewuga02.dewup.europe.delphiauto.net failed
cc1: error: unrecognized option `-fgcse-after-reload'
distcc[23242] ERROR: compile version.c on dewuga02.dewup.europe.delphiauto.net failed



Hmm...

When I disable distcc, compilation seems to work.



Ah!

It seems, that I had mixed versions of gcc. On one of the 3 distcc nodes, I had 3.4.5 and on the other two 3.3.x.


Closing - UZD (User Zu Doof *G*)
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-04-27 13:21:07 UTC
*** Bug 131501 has been marked as a duplicate of this bug. ***