In my case, cmake was simply picking up the old version of compilers at /usr/bin/cc and /usr/bin/c++ during the cmake .. step of the installation procedure. The solution was to define and export the CC and CXX environment variables as follows
export CC=$(which gcc)
export CC=$(which g++)
# continue installation procedure
cmake ..
make
make install
I hope that helps future users.
Thanks for bustools!
An open-and-close issue, just to document it.
Following the instruction to install
bustools
, I ran into the following error:which is a fairly frequently reported error associated with out-of-date
gcc
(e.g. https://stackoverflow.com/questions/14674597/cc1plus-error-unrecognized-command-line-option-std-c11-with-g).In my case,
cmake
was simply picking up the old version of compilers at/usr/bin/cc
and/usr/bin/c++
during thecmake ..
step of the installation procedure. The solution was to define and export theCC
andCXX
environment variables as followsI hope that helps future users. Thanks for
bustools
!