Build Error (error: bad value (‘tigerlake’) for ‘-march=’ switch)
Hi Adnan,
Getting an error when running the make command. I'm running Ubuntu 20.4 which I believe you said should be supproted. Let me know if that's the source of this error:
[ 12%] Building CXX object CMakeFiles/ambf_framework.dir/ambf_framework/afFramework.cpp.o
cc1plus: error: bad value (‘tigerlake’) for ‘-march=’ switch
cc1plus: 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 icelake-server cascadelake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm x86-64 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 btver1 btver2 native
cc1plus: error: bad value (‘tigerlake’) for ‘-mtune=’ switch
cc1plus: note: valid arguments to ‘-mtune=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server cascadelake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm intel x86-64 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 btver1 btver2 generic native
make[2]: *** [CMakeFiles/ambf_framework.dir/build.make:63: CMakeFiles/ambf_framework.dir/ambf_framework/afFramework.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:471: CMakeFiles/ambf_framework.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Yes, Ubuntu 20.04 should work just fine. Never seen this error before, but based on a quick google search I found this:
https://stackoverflow.com/questions/64493692/cc1plus-error-bad-value-tigerlake-for-march-switch-compilation-error
Can you try out the solution and report if that solves it.
Sorry! Should have googled it, but that worked, thanks!
Great, I would say that let's keep this issue open for people that stumble upon this issue.