Yocto Warrior Bitbake Recipe for PyTorch for NVIDIA Jetson Nano
root-cause of the problem is
if (NOT INTERN_BUILD_MOBILE) # ---[ Check that our programs run. This is different from the native CMake # compiler check, which just tests if the program compiles and links. This is # important because with ASAN you might need to help the compiled library find # some dynamic libraries. cmake_push_check_state(RESET) CHECK_C_SOURCE_RUNS(" int main() { return 0; } " COMPILER_WORKS) if (NOT COMPILER_WORKS) # Force cmake to retest next time around unset(COMPILER_WORKS CACHE) message(FATAL_ERROR "Could not run a simple program built with your compiler. " "If you are trying to use -fsanitize=address, make sure " "libasan is properly installed on your system (you can confirm " "if the problem is this by attempting to build and run a " "small program.)") endif() cmake_pop_check_state()endif()
this is running program compiled.but we are cross compiling here.can you try setting INTERN_BUILD_MOBILE
set(INTERN_BUILD_MOBILE ON)
I don't have direct source which will build on jetson-nanobut following is close may help progressing.you can refer to this pull request for cross-compiling for android.
Happy to answer anything else you may need.