Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267719 - dev-libs/libx86-1.1-r1 stabling: (latest stable version) fails to build with distcc on amd64
Summary: dev-libs/libx86-1.1-r1 stabling: (latest stable version) fails to build with ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: STABLEREQ
Depends on:
Blocks:
 
Reported: 2009-04-28 02:34 UTC by Anarkakari
Modified: 2009-07-01 20:30 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anarkakari 2009-04-28 02:34:36 UTC
dev-libs/libx86-0.99 (latest "stable version") fails to build with distcc on amd64, apparently because it uses gcc without specifying an architecture... this seems to be fixed in 1.1-r1 per http://bugs.gentoo.org/show_bug.cgi?id=237383, but that isn't marked stable yet.  Can we get a patch to fix the "stable" ebuild, or mark the 1.1-r1 stable please?

Reproducible: Always

Steps to Reproduce:
1. emerge =dev-libs/libx86-0.99 with distcc enabled, and a helping distcc system  who's cc isn't symlinked to the right chost version of gcc.

Actual Results:  
Failure to compile.   In particular:

cc -march=k8 -msse3 -O2 -pipe -fPIC -o libx86.so.1 -shared -Wl,-soname,libx86.so.1 x86-common.o thunk.o x86emu/decode.o x86emu/debug.o x86emu/fpu.o x86emu/ops.o x86emu/ops2.o x86emu/prim_ops.o x86emu/sys.o                                                                                                                                 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `thunk.o' is incompatible with i386:x86-64 output       
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `x86emu/fpu.o' is incompatible with i386:x86-64 output  
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `x86emu/prim_ops.o' is incompatible with i386:x86-64 output                                                                                                                                                                    
x86emu/prim_ops.o: In function `div_long':                                                                                                                             
prim_ops.c:(.text+0x4d8e): undefined reference to `__umoddi3'                                                                                                          
prim_ops.c:(.text+0x4def): undefined reference to `__udivdi3'                                                                                                          
x86emu/prim_ops.o: In function `idiv_long':                                                                                                                            
prim_ops.c:(.text+0x4fde): undefined reference to `__moddi3'                                                                                                           
prim_ops.c:(.text+0x503e): undefined reference to `__divdi3'                                                                                                           
collect2: ld returned 1 exit status                                                                                                                                    
distcc[6695] ERROR: compile (null) on localhost failed                                                                                                                 
make[1]: *** [shared] Error 1                                                                                                                                          
make[1]: Leaving directory `/var/tmp/portage/dev-libs/libx86-0.99/work/libx86-0.99'                                                                                    
                                                                                                           
 *                                                                                                                                                                     
 * ERROR: dev-libs/libx86-0.99 failed.

Expected Results:  
The libx86 ebuild should have called the proper version of the c compiler with an explicit chost

I know distcc, and particularly cross compilation with distcc isn't exactly standard, but it should work on stable amd64 without having to disable distcc or emerge libx86 with ~amd64.
Comment 1 Patrick Lauer gentoo-dev 2009-06-28 18:06:28 UTC
Arch teams, please magic!
Comment 2 Christian Faulhammer (RETIRED) gentoo-dev 2009-06-30 08:34:52 UTC
x86 stable
Comment 3 Markus Meier gentoo-dev 2009-07-01 20:30:14 UTC
amd64 stable, all arches done.