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

Bug 626740

Summary: crossdev set/reset some wrong use flags causing cross-avr/gcc to fail to compile
Product: Gentoo Linux Reporter: thephantom1492
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description thephantom1492 2017-08-01 07:12:23 UTC
By default, crossdev set the use for cross-avr/gcc to "-fortran -go -selinux -boundschecking -d -gcj -gtk -libffi -mudflap -objc -objc++ -objc-gc multilib".

This is not enought.
gcc for avr fail to compile due to +jit and +vtv, they need to be set to -jit and -vtv. Also, you get some warning due to pie not being supported for avr target, so ideally you want to silence them with -pie (and probably speed up the compilation time a bit)

Also, it is not normal or expected that crossdev change the config file without the user aproval.

Reproducible: Always

Steps to Reproduce:
1. emerge crossdev
2. crossdev -s4 --stable --portage --verbose --target avr -v
3. watch it fail
Actual Results:  
The cross-avr/gcc fail to compile with "avr-devices.o:(.data.rel.ro.local+0x0): multiple definition of `avr_arch_types'"

Expected Results:  
Successfull compile

There is no change between gcc 4.whatever, 6.whatever and gcc-7.1.0-r1. (sorry, I did not noted the other gcc versions, I don't think it is relevant anyway).
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2017-08-26 09:27:34 UTC

*** This bug has been marked as a duplicate of bug 594572 ***