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

Bug 349405

Summary: sys-devel/gcc does not build with --enable-targets=all on x86_32
Product: Gentoo Linux Reporter: Denis Kaganovich <mahatma>
Component: EclassesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: enhancement CC: amd64, binki, dang, ppc64, ppc, x86
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=291992
https://bugs.gentoo.org/show_bug.cgi?id=228115
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 187140    

Description Denis Kaganovich 2010-12-22 18:32:25 UTC
gcc may be built with "--enable-targets=all" on x86_32 target to support "-m64" option, but no native way to set it. This feature introduced in gcc 2006-10-29. Now it implemented only for sparc+multilib. This is useful, for example, to build 64bit kernel from 32bit userspace without crossdev.

Reproducible: Always



Expected Results:  
"multitarget" useflag in toolchain.eclass for x86 to "--enable-targets=all" for suitable gcc's. Or another way to native use this option (I see no too serious reasons to not make it "always" on new gcc's exclude size of gcc code).
Comment 1 SpanKY gentoo-dev 2011-12-03 02:04:54 UTC
looks like ppc could benefit from this as well, and would obsolete the need for a dedicated kgcc64 package ...

for the respective targets, it looks like support was added:
  ppc: gcc-3.4
sparc: gcc-4.4
  x86: gcc-4.3
Comment 3 SpanKY gentoo-dev 2012-04-09 20:10:13 UTC
*** Bug 266564 has been marked as a duplicate of this bug. ***