[odb-users] bad value ('/dev/null') for '-mtune=' switch

Javier Gutierrez javier.gutierrez at web.de
Sun Mar 22 16:19:26 EDT 2020

Hello there,

I am having this problem running following command:

# /usr/bin/odb --std c++14  -d sqlite ../inc/database/ApiOrgView.hxx

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

The ODB Version I have is 2.4.0 and the OS is Ubuntu. Some days ago I had no
problem running this command. In between I had an Ubuntu update and I
uninstalled the package cpprestsdk. I tried reinstalling the odb
binaries/libraries but the problem still remains.

Following the output of the command "g++ -v -x c++ -E -P -". I noticed for
cc1plus there is "- -mtune=generic" (two times dash) but no idea what might
be causing this. Any ideas ?




Target: x86_64-linux-gnu

Configured with: ../src/configure -v --with-pkgversion='Ubuntu
7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr
--with-gcc-major-version-only --program-suffix=-7
--program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie
--with-system-zlib --with-target-system-zlib --enable-objc-gc=auto
--enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic
--enable-offload-targets=nvptx-none --without-cuda-driver
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu

Thread model: posix

gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)

COLLECT_GCC_OPTIONS='-v' '-E' '-P' '-shared-libgcc' '-mtune=generic'

/usr/lib/gcc/x86_64-linux-gnu/7/cc1plus -E -quiet -v -P -imultiarch
x86_64-linux-gnu -D_GNU_SOURCE - -mtune=generic -march=x86-64
-fstack-protector-strong -Wformat -Wformat-security

ignoring duplicate directory "/usr/include/x86_64-linux-gnu/c++/7"

ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"

ignoring nonexistent directory

#include "..." search starts here:

#include <...> search starts here:









End of search list.

Thanks a lot,


More information about the odb-users mailing list