Bug 6572

Summary: [PowerPC] Buildroot uses wrong external toolchain libraries for non-generic architecture variants
Product: buildroot Reporter: Aleksander <aleek998>
Component: OtherAssignee: unassigned
Status: RESOLVED INVALID    
Severity: normal CC: buildroot
Priority: P5    
Version: 2013.08   
Target Milestone: ---   
Hardware: PC   
OS: All   
Host: Target:
Build:

Description Aleksander 2013-10-21 06:20:40 UTC
Using Codesoucery external toolchain, and architecture variant 8548 / e500v2, toolchain libraries are copied from powerpc-linux-gnu/libc/nof but should be copied from powerpc-linux-gnu/libc/te500v2. 

Library powerpc-linux-gnu/libc/nof/usr/lib/libstdc++.so contains 'lwsync' instruction which is invalid on e500v2 and causes Invalid Instruction fault for every c++ based application.

I tested the temporaty workaround (copying te500v2 dir to nof dir) and it solved the bug.

I suppose that this bug might involve all PowerPC architecture variants.
Comment 1 Thomas De Schampheleire 2013-10-21 06:33:01 UTC
Did you set BR2_TARGET_OPTIMIZATION ("Target optimizations") correctly in the toolchain menu? The help text of the CodeSourcery toolchains mention this:

-------
- e500v2 glibc, 32 bits
  Set BR2_TARGET_OPTIMIZATION to -te500v2
-------

If this does not work for you, feel free to discuss this problem on the mailing list, IRC, or reopen this bug.