Bug 6572 - [PowerPC] Buildroot uses wrong external toolchain libraries for non-generic architecture variants
Summary: [PowerPC] Buildroot uses wrong external toolchain libraries for non-generic a...
Status: RESOLVED INVALID
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2013.08
Hardware: PC All
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-21 06:20 UTC by Aleksander
Modified: 2013-10-21 06:33 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.