Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libbacktrace does not inherit the CMAKE_C_COMPILER and CMAKE_CXX_COMPILER values of the top level project #7916

Closed
mherkazandjian opened this issue Apr 24, 2021 · 1 comment · Fixed by #7917

Comments

@mherkazandjian
Copy link
Contributor

This issue is a followup of the discussion in the following thread:
https://discuss.tvm.apache.org/t/cross-compile-the-runtime-only-for-aarch64/9800

basically (just to minimize duplication of the forum discussion)
when cross compiling the runtime only on a x86 host, libbacktrace is causing a link-time issue

mkdir build 
cd build  
cp ../cmake/config.cmake .

 cmake ..
    -DCMAKE_SYSTEM_NAME=Linux
    -DCMAKE_SYSTEM_VERSION=1
    -DCMAKE_C_COMPILER=/usr/bin/aarch64-linux-gnu-gcc-8
    -DCMAKE_CXX_COMPILER=/usr/bin/aarch64-linux-gnu-g+±8
    -DCMAKE_FIND_ROOT_PATH=/usr/aarch64-linux-gnu
    -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER
    -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY

The cleanest current solution (i think) is to turn off using libbacktrace

@junrushao
Copy link
Member

A related issue: #7705

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

Successfully merging a pull request may close this issue.

2 participants