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

Bug 493752

Summary: sys-devel/gcc-4.8.2: cross-compiling a native compiler fails - ./build-x86_64-pc-linux-gnu/fixincludes/configure: gcc-config: error: could not run/locate 'gcc'
Product: Gentoo Linux Reporter: fkhp <fkhp101>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: esigra
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 627914    
Attachments: crossdev-emerge-info
gcc-build.log
gcc-build-configure-logs.tar.bz2

Description fkhp 2013-12-09 11:32:55 UTC
--host=  for configure changed middle way.

the package level configure ran with:  --build=x86_64-pc-linux-gnu --host=armv7a-hardfloat-linux-gnueabi --target=armv7a-hardfloat-linux-gnueabi

the failed 2 components configure ran with:
 --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=armv7a-hardfloat-linux-gnueabi

Reproducible: Always

Steps to Reproduce:
all package is the ~ latest as of Dec 9.

1.emerge crossdev
2.USE="-fortran nossp" crossdev -t armv7a-hardfloat-linux-gnueabi
3.emerge-wrapper --init
4.USE="cxx nls nossp nptl openmp" CBUILD=x86_64-pc-linux-gnu CHOST=armv7a-hardfloat-linux-gnueabi ARCH=arm armv7a-hardfloat-linux-gnueabi-emerge -av sys-devel/gcc
Comment 1 fkhp 2013-12-09 11:35:20 UTC
Created attachment 365004 [details]
crossdev-emerge-info
Comment 2 fkhp 2013-12-09 11:35:47 UTC
Created attachment 365006 [details]
gcc-build.log
Comment 3 fkhp 2013-12-09 11:37:06 UTC
Created attachment 365008 [details]
gcc-build-configure-logs.tar.bz2
Comment 4 fkhp 2013-12-09 11:40:50 UTC
ARCH=arm set in /usr/armv7a-hardfloat-linux-gnueabi/etc/portage/make.conf

seems not have effect for the armv7a-hardfloat-linux-gnueabi-emerge wrapper.
Comment 5 SpanKY gentoo-dev 2013-12-11 08:16:28 UTC
err, what is failing exactly ?  the `crossdev` is working, but when you try to run the `$CTARGET-emerge sys-devel/gcc`, it fails ?
Comment 6 fkhp 2013-12-11 13:56:29 UTC
it is probobly the crossdev wrapper for emerge not work as expected:

1. it seem the wrapper does not use the setting of ARCH,HOST,BUILD defined in the the crossdev default make.conf file.
2. it seem the wrapper does not use the setting of ARCH,HOST,BUILD defined in the  the command line for some components' configure running.
Comment 7 fkhp 2013-12-11 14:03:05 UTC
(In reply to SpanKY from comment #5)
> err, what is failing exactly ?  the `crossdev` is working, but when you try
> to run the `$CTARGET-emerge sys-devel/gcc`, it fails ?

maybe the crossdev wrapper armv7a-hardfloat-linux-gnueabi-emerge not work as expected
Comment 8 SpanKY gentoo-dev 2013-12-11 19:14:39 UTC
(In reply to fkhp from comment #6)

you didn't answer my question.  what is failing ?  is it `crossdev` or the `emerge sys-devel/gcc` ?
Comment 9 fkhp 2013-12-12 08:56:43 UTC
(In reply to SpanKY from comment #8)
> (In reply to fkhp from comment #6)
> 
> you didn't answer my question.  what is failing ?  is it `crossdev` or the
> `emerge sys-devel/gcc` ?

the following command failed:

USE="cxx nls nossp nptl openmp" CBUILD=x86_64-pc-linux-gnu CHOST=armv7a-hardfloat-linux-gnueabi ARCH=arm armv7a-hardfloat-linux-gnueabi-emerge -av sys-devel/gcc
Comment 10 fkhp 2013-12-12 09:00:59 UTC
"armv7a-hardfloat-linux-gnueabi-emerge -av sys-devel/gcc" failed but no problem with "emerge -av sys-devel/gcc" .
Comment 11 Andreas K. Hüttel archtester gentoo-dev 2017-10-03 20:32:14 UTC
Do you still have this problem with current gcc ?
Comment 12 fkhp 2017-10-21 11:58:51 UTC
no problem now
Comment 13 Andreas K. Hüttel archtester gentoo-dev 2017-12-09 22:36:02 UTC
(In reply to Andreas K. Hüttel from comment #11)
> Do you still have this problem with current gcc ?

(In reply to fkhp from comment #12)
> no problem now

OK closing then. Thanks!