Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 391055 - cross-i686-pc-linux-gnu/gcc-4.5.3-r1 failed (setup phase): * Your ebuild needs to set the ETYPE variable
Summary: cross-i686-pc-linux-gnu/gcc-4.5.3-r1 failed (setup phase): * Your ebuild n...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-19 23:45 UTC by Juanlu Pérez
Modified: 2011-11-22 23:43 UTC (History)
0 users

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


Attachments
cross-i686-pc-linux-gnu-gcc-stage1.log (cross-i686-pc-linux-gnu-gcc-stage1.log,3.22 KB, text/plain)
2011-11-19 23:46 UTC, Juanlu Pérez
Details
cross-i686-pc-linux-gnu-info.log (cross-i686-pc-linux-gnu-info.log,15.70 KB, text/plain)
2011-11-19 23:46 UTC, Juanlu Pérez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juanlu Pérez 2011-11-19 23:45:35 UTC
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
Comment 1 Juanlu Pérez 2011-11-19 23:46:08 UTC
Created attachment 293147 [details]
cross-i686-pc-linux-gnu-gcc-stage1.log
Comment 2 Juanlu Pérez 2011-11-19 23:46:24 UTC
Created attachment 293149 [details]
cross-i686-pc-linux-gnu-info.log
Comment 3 Bill Kenworthy 2011-11-21 03:47:28 UTC
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 :(
Comment 4 Juanlu Pérez 2011-11-21 09:09:39 UTC
(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
Comment 5 SpanKY gentoo-dev 2011-11-22 22:09:31 UTC
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
Comment 6 Juanlu Pérez 2011-11-22 23:20:34 UTC
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!!
Comment 7 Juanlu Pérez 2011-11-22 23:43:35 UTC
(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