macos 12.6.4 wrong mana.o CFLAGS -std=gnu++11

Issue #365 new
dd1 created an issue

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -I/Users/olchansk/git/midas/include -I/Users/olchansk/git/midas/mxml -I/Users/olchansk/git/midas/mscb/include -I/Users/olchansk/git/midas/mjson -I/Users/olchansk/git/midas/mvodb -I/Users/olchansk/git/midas/midasio -I/Users/olchansk/packages/root_v6.28.04.macos-12.6-x86_64-clang140/include -O2 -g -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=12.6 -Wall -Wformat=2 -Wno-format-nonliteral -Wno-strict-aliasing -Wuninitialized -Wno-unused-function -DHAVE_ROOT -std=c++14 -m64 -pipe -fsigned-char -fno-common -Qunused-arguments -pthread -stdlib=libc++ -std=gnu++11 -MD -MT CMakeFiles/rmana.dir/src/mana.cxx.o -MF CMakeFiles/rmana.dir/src/mana.cxx.o.d -o CMakeFiles/rmana.dir/src/mana.cxx.o -c /Users/olchansk/git/midas/src/mana.cxx

notice collision between -std=c++14 from ROOT and -std=gnu++11 from ???. build against root_v6.28.04.macos-12.6-x86_64-clang140 bombc. I remember fixing this in other places, probably in manalyzer. hopefully same fix can be done here.

In file included from /Users/olchansk/git/midas/src/mana.cxx:58:

In file included from /Users/olchansk/packages/root_v6.28.04.macos-12.6-x86_64-clang140/include/TApplication.h:28:

In file included from /Users/olchansk/packages/root_v6.28.04.macos-12.6-x86_64-clang140/include/TObject.h:17:

In file included from /Users/olchansk/packages/root_v6.28.04.macos-12.6-x86_64-clang140/include/Rtypes.h:23:

In file included from /Users/olchansk/packages/root_v6.28.04.macos-12.6-x86_64-clang140/include/RtypesCore.h:23:

/Users/olchansk/packages/root_v6.28.04.macos-12.6-x86_64-clang140/include/ROOT/RConfig.hxx:48:4: error: "ROOT requires support for C++14 or higher."

#  error "ROOT requires support for C++14 or higher."

^

/Users/olchansk/packages/root_v6.28.04.macos-12.6-x86_64-clang140/include/ROOT/RConfig.hxx:50:5: error: "Pass `-std=c++14` as compiler argument."

#   error "Pass `-std=c++14` as compiler argument."

(set as blocker because I have to fix it before I can build midas on my home laptop to work on any other midas things).

Comments (2)

  1. dd1 reporter

    note that midas cannot be moved to c++14 as we still require support for vanilla CentOS-7 where there is no c++14 and which runs many experiments. (we are generally migrating to ubuntu LTS 22.04 which has c++14). K.O.

  2. Log in to comment