Wind River Support Network

HomeDefectsLIN5-17474
Fixed

LIN5-17474 : wrlinux-5.0: Missing sysroot path in the linker option when using shared library project in Workbench

Created: Dec 20, 2013    Updated: Dec 19, 2017
Resolved Date: Jan 21, 2014
Found In Version: 5.0.1
Fix Version: 5.0.1.13
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Workbench Integration

Description

Using shared library project in Workbench, the build is failed by default:

c:/windriver/wrlinux-5/layers/wr-toolchain/4.6a-105-other/bin/../lib/gcc/i686-wrs-linux-gnu/4.6.3/../../../../i686-wrs-linux-gnu/bin/ld.exe: cannot find crti.o: No such file or directory

c:/windriver/wrlinux-5/layers/wr-toolchain/4.6a-105-other/bin/../lib/gcc/i686-wrs-linux-gnu/4.6.3/../../../../i686-wrs-linux-gnu/bin/ld.exe: cannot find -lc

c:/windriver/wrlinux-5/layers/wr-toolchain/4.6a-105-other/bin/../lib/gcc/i686-wrs-linux-gnu/4.6.3/../../../../i686-wrs-linux-gnu/bin/ld.exe: cannot find crtn.o: No such file or directory

It turned out to be missing sysroot path in the shared library linker option.
Adding the sysroot path in there, the build can be completed without problem.
 

Workaround

1.       Right mouse click on your project and select Properties.
2.       Select Build Properties on the left
3.       Select the Tools Tab in the main Build Properties section
4.       In the Build Tool pulldown select Shared Library Linker
5.       Add the sysroot specification to the Tools Flag field.

Steps to Reproduce

1. Export SDK from a Linux platform project.
2. Bring the generated win32 tarball over to a Windows PC and extract it
3. Start Workbench on Windows and import the SDK (File->import->Wind River Linux->Wind River Linux SDK)
4. Create a shared library project, select the build spec provided by the imported SDK and select the build tool as "Shared Library linker"
5. include some dummy source.
6. Build the project

Other Downloads


Live chat
Online