Compiling sample code with native_posix target on windows #41512
Unanswered
VineetaNarkhede-eaton
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Compiling hello_world sample code with native_posix target on windows is giving below errors,
Find complete logs in this file Native_Logs.txt
How to fix this error?
Command
(.venv) C:\Users\user1\zephyrproject\zephyr>west -v build -c -p auto -b native_posix samples\hello_world
Compiler:
C:\Program Files (x86)\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin\gcc.exe
Environment variables:
ZEPHYR_BASE = C:\Users\user1\zephyrproject\zephyr
ZEPHYR_TOOLCHAIN_VARIANT = cross-compile
CROSS_COMPILE = C:\Program Files (x86)\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin
CMAKE_CXX_COMPILER and CMAKE_C_COMPILER are set to C:\Program Files (x86)\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin\gcc.exe
what should be ZEPHYR_TOOLCHAIN_VARIANT, it is set to "cross-compile" in environment variables but terminal logs shows "host". how the ZEPHYR_TOOLCHAIN_VARIANT is detected for native_posix target
Beta Was this translation helpful? Give feedback.
All reactions