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

Build Error (error: bad value (‘tigerlake’) for ‘-march=’ switch) #142

Open
nnagururu opened this issue Oct 13, 2021 · 3 comments
Open

Comments

@nnagururu
Copy link

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
@adnanmunawar
Copy link
Member

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.

@nnagururu
Copy link
Author

Sorry! Should have googled it, but that worked, thanks!

@adnanmunawar
Copy link
Member

Great, I would say that let's keep this issue open for people that stumble upon this issue.

@adnanmunawar adnanmunawar changed the title Build Error Build Error (error: bad value (‘tigerlake’) for ‘-march=’ switch) Jan 5, 2022
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

2 participants