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

Cross-compile issue #5

Open
mike-2020 opened this issue May 24, 2022 · 0 comments
Open

Cross-compile issue #5

mike-2020 opened this issue May 24, 2022 · 0 comments

Comments

@mike-2020
Copy link

Looks like the build system does not respect toolchain/arch setting in menuconfig. Even I set it to arm, it still tries to use x86 toolchain (host system toolchain).

[ 53%] Building C object asr_lib/CMakeFiles/asr_lib.dir/src/asr.c.o
cc1: error: bad value (‘armv7-a’) for ‘-march=’ switch
cc1: note: valid arguments to ‘-march=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client rocketlake icelake-server cascadelake tigerlake cooperlake sapphirerapids alderlake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm x86-64 x86-64-v2 x86-64-v3 x86-64-v4 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 znver3 btver1 btver2 native
make[2]: *** [asr_lib/CMakeFiles/asr_lib.dir/build.make:76: asr_lib/CMakeFiles/asr_lib.dir/src/asr.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:246: asr_lib/CMakeFiles/asr_lib.dir/all] Error 2

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

No branches or pull requests

1 participant