Bug 699 - Buildroot fails to copy libstdc++ to target when using external toolchain
Summary: Buildroot fails to copy libstdc++ to target when using external toolchain
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 normal
Target Milestone: 2010.05
Assignee: Thomas Petazzoni
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-09 23:37 UTC by Maksim Rayskiy
Modified: 2010-05-21 23:03 UTC (History)
1 user (show)

See Also:
Host: x86
Target: arm926t
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim Rayskiy 2009-11-09 23:37:10 UTC
When buildroot builds arm-linux-uclibcgnueabi toolchain, some libraries get installed into <sysroot>/lib, others - including libstdc++ - into <sysroot>/usr/arm-linux-uclibcgnueabi/lib. 
If I use such a toolchain as an external toolchain for another buildroot build, buildroot does not find libraries in <sysroot>/usr/arm-linux-uclibcgnueabi/lib. Previous versions of buildroot used -print-file-name option of gcc to locate a library. Current version only checks in <sysroot>/lib folder.
Comment 1 Thomas Petazzoni 2010-02-21 19:02:31 UTC
This will be fixed by http://git.buildroot.net/~tpetazzoni/git/buildroot/commit/?h=codesourcery-toolchain-support&id=8f610d63122c205b921408bd3d28af9e64f5d8e6, but I am not going to push this change before 2010.02. It should be part of the next release, 2010.05, where other improvements to external toolchain supports are scheduled.
Comment 2 Thomas Petazzoni 2010-05-21 23:03:59 UTC
Fixed by ea2505ee567f716f6b2aeae45ccfe2555c0bcb97 : we now look for libraries in both lib/ and usr/lib in the external toolchain sysroot.