Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Edison build fails during config due to host linker being invoked instead of cross linker #71

Closed
challinan opened this issue Dec 14, 2016 · 3 comments
Assignees
Labels

Comments

@challinan
Copy link

challinan commented Dec 14, 2016

Using the Intel Edison toolchain and build corresponding script in "tools" subdirectory fails with
cannot find crt1.o: No such file or directory
On analysis, during the CMake config steps where it tries to validate the C compiler, it correctly uses the Edison cross-compiler, but then the link step uses the host's linker (/usr/bin/ld)

That is obviously not correct behavior, and leads to the above error early in the build.

Adding this "hack" to the inteledision_c.sh script works around the problem:
-DCMAKE_LINKER=/opt/poky-edison/1.7.2/sysroots/core2-32-poky-linux/usr/bin/i586-poky-linux-ld

But CMake should behave when CMAKE_C_COMPILER and CMAKE_CXX_COMPILER are properly set to point to the compilers, which they are.

I have verified this behavior on a clean clone, and made sure all the cmake cache files were deleted, etc.

Anyone know the "right" way to fix this?

@darobs
Copy link
Contributor

darobs commented Jan 9, 2017

Hello @challinan, I'm looking at this issue, among other cross-compile issues. I'm hoping to get back to you soon.

@damonbarry
Copy link
Member

899eb5b

@damonbarry
Copy link
Member

Fix is in master

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants