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

Bug 334225

Summary: cross-i686-pc-linux-gnu/glibc - conftest.c:1: error: CPU you selected does not support x86-64 instruction set
Product: Gentoo Linux Reporter: Piotr Karbowski (RETIRED) <slashbeast>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED NEEDINFO    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: log
log
build-default-i686-pc-linux-gnu-nptl/config.log

Description Piotr Karbowski (RETIRED) gentoo-dev 2010-08-24 07:59:16 UTC
crossdev failing with latest glibc and 2.10.1-r1.


Reproducible: Always

Steps to Reproduce:
1. emerge crossdev
2. crossdev -t i686-pc-linux-gnu

Actual Results:  

configure: loading site script /usr/share/config.site
configure: loading site script /usr/share/crossdev/include/site/linux
checking for i686-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for suffix of object files... configure: error: in `/root/tmp/cross/i686-pc-linux-gnu/portage/cross-i686-pc-linux-gnu/glibc-2.10.1-r1/work/build-default-i686-pc-linux-gnu-nptl':
configure: error: cannot compute suffix of object files: cannot compile


Expected Results:  
'Done.'

There is a thread on forums gentoo about it - http://forums.gentoo.org/viewtopic-p-6398787.html
Comment 1 SpanKY gentoo-dev 2010-08-24 08:39:30 UTC
all information must be in the bug.  you cannot refer to random forums postings.

you certainly need to post all the info that crossdev told you to as well as the config.log files the log message told you to
Comment 2 Piotr Karbowski (RETIRED) gentoo-dev 2010-08-24 10:23:44 UTC
Well you are right.

ragnarok ~ # crossdev -t i686-pc-linux-gnu                                               
------------------------------------------------------------------------------------------
* crossdev version:      20100814
* Host Portage ARCH:     amd64
* Target Portage ARCH:   x86
* Target System:         i686-pc-linux-gnu
* Stage:                 4 (C/C++ compiler)

* binutils:              binutils-[latest]
* gcc:                   gcc-[latest]
* headers:               linux-headers-[latest]
* libc:                  glibc-[latest]

* PORTDIR_OVERLAY:       /var/lib/layman/foo-overlay
* PORT_LOGDIR:           /var/log/portage
* PKGDIR:                /usr/portage/packages/cross/i686-pc-linux-gnu
* PORTAGE_TMPDIR:        /root/tmp/cross/i686-pc-linux-gnu
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -
* Forcing the latest versions of {binutils,gcc}-config/gnuconfig...                                                                                        [ok]
* 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...                                                                                                                             [ok]
* Log: /var/log/portage/cross-i686-pc-linux-gnu-linux-headers.log
* Emerging cross-linux-headers...                                                                                                                          [ok]
* Log: /var/log/portage/cross-i686-pc-linux-gnu-glibc.log
* Emerging cross-glibc...

* glibc 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-glibc.log

I will attach to this bug both glibc.log and info.log. You can see there 'from foo-overlay' but its just first overlay in my $PORTDIR_OVERLAY, looks like crossdev using it to merge non-portage-tree packages like cross-gcc etc.
Comment 3 Piotr Karbowski (RETIRED) gentoo-dev 2010-08-24 10:24:19 UTC
Created attachment 244381 [details]
log
Comment 4 Piotr Karbowski (RETIRED) gentoo-dev 2010-08-24 10:24:29 UTC
Created attachment 244383 [details]
log
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2010-08-26 22:50:11 UTC
(In reply to comment #0)
> configure: error: cannot compute suffix of object files: cannot compile

After that followed:
See `config.log' for more details.

Please attach that file too.
Comment 6 Piotr Karbowski (RETIRED) gentoo-dev 2010-09-08 12:39:34 UTC
Created attachment 246452 [details]
build-default-i686-pc-linux-gnu-nptl/config.log
Comment 7 SpanKY gentoo-dev 2010-09-11 19:08:47 UTC
try glibc-2.12.1.  it works fine for me.

do you have app-admin/eselect-compiler installed ?
Comment 8 SpanKY gentoo-dev 2010-09-12 06:21:28 UTC
scratch eselect-compiler question; i read the logic wrong.

the glibc ebuild specifically sets CC based on the CTARGET which should be i686-pc-linux-gnu-gcc.  do you not have this in your /usr/bin/ ?  you should since your gcc-stage1 was emerged.