[odb-users] RE: bad value ('/dev/null') for '-mtune=' switch
Javier Gutierrez
javier.gutierrez at web.de
Mon Mar 23 08:15:36 EDT 2020
I hope this mail finds everybody fine and safe.
Just an update on previous mail. It seems my system upgraded automatically
from gcc 7.4.0 to gcc 7.5.0 some months ago. This seems to have broken the
compilation with ODB. Does that help ?
From: Javier Gutierrez <javier.gutierrez at web.de>
Sent: Sunday, March 22, 2020 9:19 PM
To: 'odb-users at codesynthesis.com' <odb-users at codesynthesis.com>
Subject: bad value ('/dev/null') for '-mtune=' switch
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 ?
COLLECT_GCC=g++
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
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
--target=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'
'-march=x86-64'
/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
"/usr/lib/gcc/x86_64-linux-gnu/7/../../../../x86_64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/include/c++/7
/usr/include/x86_64-linux-gnu/c++/7
/usr/include/c++/7/backward
/usr/lib/gcc/x86_64-linux-gnu/7/include
/usr/local/include
/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed
/usr/include/x86_64-linux-gnu
/usr/include
End of search list.
Thanks a lot,
Javier
More information about the odb-users
mailing list