crossdev-20110819 always fails to compile gcc stage1 Reproducible: Always Steps to Reproduce: 1. crossdev -t i686-pc-linux-gnu --b 2.21.1-r1 --g 4.5.3-r1 --k 2.6.39 --l 2.12.2 2. 3. Actual Results: # crossdev -t i686-pc-linux-gnu --b 2.21.1-r1 --g 4.5.3-r1 --k 2.6.39 -- l 2.12.2 -------------------------------------------------------------------------------- * crossdev version: 20110819 * Host Portage ARCH: amd64 * Target Portage ARCH: x86 * Target System: i686-pc-linux-gnu * Stage: 4 (C/C++ compiler) * ABIs: default * binutils: binutils-2.21.1-r1 * gcc: gcc-4.5.3-r1 * headers: linux-headers-2.6.39 * libc: glibc-2.12.2 * CROSSDEV_OVERLAY: /usr/local/portage * PORT_LOGDIR: /var/log/portage * PORTAGE_CONFIGROOT: _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - * leaving sys-devel/binutils in /usr/local/portage * leaving sys-devel/gcc in /usr/local/portage * leaving sys-kernel/linux-headers in /usr/local/portage * leaving sys-libs/glibc in /usr/local/portage * leaving sys-devel/gdb in /usr/local/portage * leaving dev-util/insight in /usr/local/portage _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - * Log: /var/log/portage/cross-i686-pc-linux-gnu-binutils.log * Emerging cross-binutils ... [ ok ] * Log: /var/log/portage/cross-i686-pc-linux-gnu-linux-headers-quick.log * Emerging cross-linux-headers-quick ... [ ok ] * Log: /var/log/portage/cross-i686-pc-linux-gnu-glibc-headers.log * Emerging cross-glibc-headers ... [ ok ] * Log: /var/log/portage/cross-i686-pc-linux-gnu-gcc-stage1.log * Emerging cross-gcc-stage1 ... * gcc failed :( * If you file a bug, please attach the following logfiles: * /var/log/portage/cross-i686-pc-linux-gnu-info.log * /var/log/portage/cross-i686-pc-linux-gnu-gcc-stage1.log
Created attachment 293147 [details] cross-i686-pc-linux-gnu-gcc-stage1.log
Created attachment 293149 [details] cross-i686-pc-linux-gnu-info.log
I have the same problem, however it looks to be caused by: >>> Compiling source in /home/tmp/portage/portage/cross-avr/gcc-4.5.3-r1/work/gcc-4.5.3 ... * CFLAGS="-O2 -pipe" * CXXFLAGS="" * Configuring gcc ... * We are migrating USE=nocxx to USE=cxx, but your USE settings do not make * sense. Please make sure these two flags line up logically in your setup. * ERROR: cross-avr/gcc-4.5.3-r1 failed (compile phase): * USE='cxx nocxx' and USE='-cxx -nocxx' make no sense crossdev rewrites the lines in /etc/portage/package.use to always include "nocxx", which causes the compile to die e.g., cross-avr/gdb sys-devel gdb cross-avr/insight dev-util insight cross-avr/binutils -openmp -selinux -multilib cross-avr/gcc -fortran -openmp -selinux -boundschecking -d -gtk -gcj -libffi -mudflap -objc -objc++ -objc-gc -fortran nocxx -openmp -multilib If I manually remove/edit "nocxx", crossdev changes it back :(
(In reply to comment #3) > I have the same problem, however it looks to be caused by: > > >>> Compiling source in /home/tmp/portage/portage/cross-avr/gcc-4.5.3-r1/work/gcc-4.5.3 ... > * CFLAGS="-O2 -pipe" > * CXXFLAGS="" > * Configuring gcc ... > * We are migrating USE=nocxx to USE=cxx, but your USE settings do not make > * sense. Please make sure these two flags line up logically in your setup. > * ERROR: cross-avr/gcc-4.5.3-r1 failed (compile phase): > * USE='cxx nocxx' and USE='-cxx -nocxx' make no sense > > crossdev rewrites the lines in /etc/portage/package.use to always include > "nocxx", which causes the compile to die > > e.g., > cross-avr/gdb sys-devel gdb > cross-avr/insight dev-util insight > cross-avr/binutils -openmp -selinux -multilib > cross-avr/gcc -fortran -openmp -selinux -boundschecking -d -gtk -gcj -libffi > -mudflap -objc -objc++ -objc-gc -fortran nocxx -openmp -multilib > > If I manually remove/edit "nocxx", crossdev changes it back :( I look at cross-i686-pc-linux-gnu-gcc-stage1.log attachment you'll that I'm not having that error, in my case is this: * Messages for package cross-i686-pc-linux-gnu/gcc-4.5.3-r1: * ERROR: cross-i686-pc-linux-gnu/gcc-4.5.3-r1 failed (setup phase): * Your ebuild needs to set the ETYPE variable
i don't know where your toolchain.eclass is coming from, but it's wrong. delete whatever local version you have. the one in the main tree doesn't have ETYPE anymore
I did "rm /usr/local/portage/eclass/toolchain.eclass", and I solved this. Thanks for your help. I can't remember why I put this there... Maybe it's related to a non official gentoo package or something. Thank very much anyways!!
(In reply to comment #3) > I have the same problem, however it looks to be caused by: > > >>> Compiling source in /home/tmp/portage/portage/cross-avr/gcc-4.5.3-r1/work/gcc-4.5.3 ... > * CFLAGS="-O2 -pipe" > * CXXFLAGS="" > * Configuring gcc ... > * We are migrating USE=nocxx to USE=cxx, but your USE settings do not make > * sense. Please make sure these two flags line up logically in your setup. > * ERROR: cross-avr/gcc-4.5.3-r1 failed (compile phase): > * USE='cxx nocxx' and USE='-cxx -nocxx' make no sense > > crossdev rewrites the lines in /etc/portage/package.use to always include > "nocxx", which causes the compile to die > > e.g., > cross-avr/gdb sys-devel gdb > cross-avr/insight dev-util insight > cross-avr/binutils -openmp -selinux -multilib > cross-avr/gcc -fortran -openmp -selinux -boundschecking -d -gtk -gcj -libffi > -mudflap -objc -objc++ -objc-gc -fortran nocxx -openmp -multilib > > If I manually remove/edit "nocxx", crossdev changes it back :( Hi, I solved my problem, but now I'm gettin the same error than you, you can follow in this link https://bugs.gentoo.org/show_bug.cgi?id=391453