I use ODB Library in my programm. By compiling I get the following message:
[ 1%] Generating ../odb_gen/XXX_odb.cpp
cc1plus: error: bad value (‘/dev/null’) for ‘-mtune=’ switch
cc1plus: error: bad value (‘/dev/null’) 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 bonnell atom silvermont slm knl 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 btver1 btver2 generic
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 bonnell atom silvermont slm knl 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 btver1 btver2 generic
XXXX/build.make:249: recipe for target 'odb_gen/XXX_odb.cpp' failed
make[2]: *** [odb_gen/XXX_odb.cpp] Error 1
I don't know what is the reason for this error message, therefore I don't understand how I can fix it. I would appreciate if someone can give a start point or explanation what can cause such behaviour. Thank you in advance!
PS: why was the 'mtune' option set to /dev/null?
cmake(I'm guessing you're using that) — until you can see what command is being run, there is nothing you or we can do to help. Apparently, it was set by the CMake configuration incorrectly. You're likely to have to debug that, therefore.