dfeneyrou / palanteer

Visual Python and C++ nanosecond profiler, logger, tests enabler
Other
2.1k stars 88 forks source link

make errors #38

Closed bsburns closed 2 months ago

bsburns commented 2 years ago

Getting the following errors when trying to build on: Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-1160.71.1.el7.x86_64 Architecture: x86-64 cmake version: 3.24.2 make: GNU Make 3.82 gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)

The error I'm seeing is: /home/jupyterhub3/baburn/curr_sandboxes/open_src_tools/palanteer/server/base/bsOsLinux.cpp:840:93: error: no matching function for call to ‘bsDate::bsDate(<brace-e nclosed initializer list>)’ return bsDate{1900+t->tm_year, 1+t->tm_mon, t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec}; ^ /home/jupyterhub3/baburn/curr_sandboxes/open_src_tools/palanteer/server/base/bsOsLinux.cpp:840:93: note: candidates are: In file included from /home/jupyterhub3/baburn/curr_sandboxes/open_src_tools/palanteer/server/base/bsOsLinux.cpp:41:0: /home/jupyterhub3/baburn/curr_sandboxes/open_src_tools/palanteer/server/base/bs.h:101:8: note: constexpr bsDate::bsDate() struct bsDate { ^ /home/jupyterhub3/baburn/curr_sandboxes/open_src_tools/palanteer/server/base/bs.h:101:8: note: candidate expects 0 arguments, 6 provided /home/jupyterhub3/baburn/curr_sandboxes/open_src_tools/palanteer/server/base/bs.h:101:8: note: constexpr bsDate::bsDate(const bsDate&) /home/jupyterhub3/baburn/curr_sandboxes/open_src_tools/palanteer/server/base/bs.h:101:8: note: candidate expects 1 argument, 6 provided /home/jupyterhub3/baburn/curr_sandboxes/open_src_tools/palanteer/server/base/bs.h:101:8: note: constexpr bsDate::bsDate(bsDate&&) /home/jupyterhub3/baburn/curr_sandboxes/open_src_tools/palanteer/server/base/bs.h:101:8: note: candidate expects 1 argument, 6 provided /home/jupyterhub3/baburn/curr_sandboxes/open_src_tools/palanteer/server/base/bsOsLinux.cpp: In function ‘bsDate osGetCreationDate(const bsString&)’:

dfeneyrou commented 2 years ago

My guess is the support of C++14 by your version of gcc (4.8 is quite old). Do you have the possiblity to use a more recent one? You can also try clang, if the version is more recent or support C++14. For instance, with cmake, you can override the default compiler (gcc) by your clang installation if any with:

cd build                         (note: a fresh 'build' repository is required by cmake to change the compiler)
export CXX=/usr/bin/clang++      (to adapt with your setup's path and name) 
export CC=/usr/bin/clang
cmake .. 
make
FabianSchurig commented 1 year ago

Same issue here on main.

On Ubuntu 20.04 focal using Clang 10.0.1

cmake .. -DCMAKE_BUILD_TYPE=Release -DPALANTEER_BUILD_PYTHON_INSTRUMENTATION=0
-- The C compiler identification is Clang 10.0.1
-- The CXX compiler identification is Clang 10.0.1
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Build type: Release   (change with -DCMAKE_BUILD_TYPE=<Debug|Release|RelWithDebInfo|MinSizeRel|Asan>)
Custom configuration flags can be passed with -DCUSTOM_FLAGS="-D<name1>=value1 -D<name2>=value2 ..."
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so   
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found LIBUNWIND: /usr/lib/x86_64-linux-gnu/libunwind.so  
-- Found LIBDW: /usr/lib/x86_64-linux-gnu/libdw.so  
Palanteer feature 'stacktrace' enabled for viewer
Palanteer feature 'stacktrace' enabled for testprogram
-- Found Python3: /usr/bin/python3.8 (found version "3.8.10") found components: Interpreter 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/fabi/palanteer/build
make -j$(nproc)

Scanning dependencies of target testprogram
Scanning dependencies of target scripting
Scanning dependencies of target palanteer
[  1%] Generating scripting_install
[  3%] Building CXX object c++/testprogram/CMakeFiles/testprogram.dir/testProgram.cpp.o
[  4%] Building CXX object c++/testprogram/CMakeFiles/testprogram.dir/testPart.cpp.o
[  9%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/__/base/bsGlHelper.cpp.o
[  9%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/__/common/cmCompress.cpp.o
[  9%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/__/common/cmCnx.cpp.o
[ 10%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/__/common/cmRecordIterator.cpp.o
[ 13%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/__/common/cmPrintf.cpp.o
[ 13%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/__/base/bsString.cpp.o
[ 15%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/vwConfig.cpp.o
[ 16%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/__/base/bsOsWindows.cpp.o
[ 18%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/vwGfxBackendGL.cpp.o
[ 23%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/vwFontData.cpp.o
[ 23%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/__/common/cmLiveControl.cpp.o
[ 24%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/__/base/bsOsLinux.cpp.o
[ 26%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/vwConst.cpp.o
[ 27%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/vwFileDialog.cpp.o
[ 27%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/__/common/cmRecord.cpp.o
[ 29%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/vwMain.cpp.o
[ 30%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/vwMainExport.cpp.o
[ 32%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/__/common/cmRecording.cpp.o
[ 33%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/vwMainCommon.cpp.o
[ 35%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/vwMainHistogram.cpp.o
[ 36%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/vwMainBaseWindows.cpp.o
[ 38%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/vwMainLog.cpp.o
[ 40%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/vwMainMemory.cpp.o
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/palanteer_scripting
copying /home/fabi/palanteer/server/scripting/palanteer_scripting/__init__.py -> build/lib.linux-x86_64-3.8/palanteer_scripting
copying /home/fabi/palanteer/server/scripting/palanteer_scripting/_scripting.py -> build/lib.linux-x86_64-3.8/palanteer_scripting
running build_ext
building 'palanteer_scripting._cextension' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/home
creating build/temp.linux-x86_64-3.8/home/fabi
creating build/temp.linux-x86_64-3.8/home/fabi/palanteer
creating build/temp.linux-x86_64-3.8/home/fabi/palanteer/server
creating build/temp.linux-x86_64-3.8/home/fabi/palanteer/server/base
creating build/temp.linux-x86_64-3.8/home/fabi/palanteer/server/common
creating build/temp.linux-x86_64-3.8/home/fabi/palanteer/server/external
creating build/temp.linux-x86_64-3.8/home/fabi/palanteer/server/external/zstd
creating build/temp.linux-x86_64-3.8/home/fabi/palanteer/server/external/zstd/common
creating build/temp.linux-x86_64-3.8/home/fabi/palanteer/server/external/zstd/compress
creating build/temp.linux-x86_64-3.8/home/fabi/palanteer/server/external/zstd/decompress
creating build/temp.linux-x86_64-3.8/home/fabi/palanteer/server/scripting
creating build/temp.linux-x86_64-3.8/home/fabi/palanteer/server/scripting/palanteer_scripting
creating build/temp.linux-x86_64-3.8/home/fabi/palanteer/server/scripting/palanteer_scripting/_cextension
/usr/bin/clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c /home/fabi/palanteer/server/base/bsString.cpp -o build/temp.linux-x86_64-3.8/home/fabi/palanteer/server/base/bsString.o -DUSE_PL=1 -DPL_EXPORT=1 -DBS_NO_GRAPHIC -DPL_NOCONTROL=1 -DPL_NOEVENT=1 -std=c++14 -I /home/fabi/palanteer/c++ -I /home/fabi/palanteer/server/base -I /home/fabi/palanteer/server/common -I /home/fabi/palanteer/server/external/zstd -I /home/fabi/palanteer/server/external/zstd/common -I /home/fabi/palanteer/server/external/zstd/compress -I /home/fabi/palanteer/server/external/zstd/decompress -DPL_GROUP_BSVEC=0
[ 41%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/vwMainPlot.cpp.o
[ 43%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/vwMainProfile.cpp.o
[ 44%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/vwMainRecordCatalog.cpp.o
[ 46%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/vwMainSearch.cpp.o
[ 47%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/vwMainText.cpp.o
[ 49%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/vwMainTimeline.cpp.o
[ 50%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/vwPlatform.cpp.o
[ 52%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/vwReplayAlloc.cpp.o
[ 53%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/common/debug.c.o
[ 55%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/common/entropy_common.c.o
[ 56%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/common/error_private.c.o
[ 58%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/common/fse_decompress.c.o
/usr/bin/clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c /home/fabi/palanteer/server/base/bsOsLinux.cpp -o build/temp.linux-x86_64-3.8/home/fabi/palanteer/server/base/bsOsLinux.o -DUSE_PL=1 -DPL_EXPORT=1 -DBS_NO_GRAPHIC -DPL_NOCONTROL=1 -DPL_NOEVENT=1 -std=c++14 -I /home/fabi/palanteer/c++ -I /home/fabi/palanteer/server/base -I /home/fabi/palanteer/server/common -I /home/fabi/palanteer/server/external/zstd -I /home/fabi/palanteer/server/external/zstd/common -I /home/fabi/palanteer/server/external/zstd/compress -I /home/fabi/palanteer/server/external/zstd/decompress -DPL_GROUP_BSVEC=0
[ 60%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/common/pool.c.o
[ 61%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/common/threading.c.o
[ 63%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/common/xxhash.c.o
[ 64%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/common/zstd_common.c.o
[ 66%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/compress/fse_compress.c.o
[ 67%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/compress/hist.c.o
[ 69%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/compress/huf_compress.c.o
[ 70%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/compress/zstd_compress.c.o
[ 72%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/compress/zstd_compress_literals.c.o
[ 73%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/compress/zstd_compress_sequences.c.o
[ 75%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/compress/zstd_compress_superblock.c.o
[ 76%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/compress/zstd_double_fast.c.o
[ 78%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/compress/zstd_fast.c.o
[ 80%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/compress/zstd_lazy.c.o
[ 81%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/compress/zstd_ldm.c.o
[ 83%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/compress/zstd_opt.c.o
[ 84%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/compress/zstdmt_compress.c.o
[ 86%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/decompress/huf_decompress.c.o
/usr/bin/clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c /home/fabi/palanteer/server/base/bsOsWindows.cpp -o build/temp.linux-x86_64-3.8/home/fabi/palanteer/server/base/bsOsWindows.o -DUSE_PL=1 -DPL_EXPORT=1 -DBS_NO_GRAPHIC -DPL_NOCONTROL=1 -DPL_NOEVENT=1 -std=c++14 -I /home/fabi/palanteer/c++ -I /home/fabi/palanteer/server/base -I /home/fabi/palanteer/server/common -I /home/fabi/palanteer/server/external/zstd -I /home/fabi/palanteer/server/external/zstd/common -I /home/fabi/palanteer/server/external/zstd/compress -I /home/fabi/palanteer/server/external/zstd/decompress -DPL_GROUP_BSVEC=0
[ 87%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/decompress/zstd_ddict.c.o
[ 89%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/decompress/zstd_decompress.c.o
/usr/bin/clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c /home/fabi/palanteer/server/common/cmPrintf.cpp -o build/temp.linux-x86_64-3.8/home/fabi/palanteer/server/common/cmPrintf.o -DUSE_PL=1 -DPL_EXPORT=1 -DBS_NO_GRAPHIC -DPL_NOCONTROL=1 -DPL_NOEVENT=1 -std=c++14 -I /home/fabi/palanteer/c++ -I /home/fabi/palanteer/server/base -I /home/fabi/palanteer/server/common -I /home/fabi/palanteer/server/external/zstd -I /home/fabi/palanteer/server/external/zstd/common -I /home/fabi/palanteer/server/external/zstd/compress -I /home/fabi/palanteer/server/external/zstd/decompress -DPL_GROUP_BSVEC=0
[ 90%] Building C object server/viewer/CMakeFiles/palanteer.dir/__/external/zstd/decompress/zstd_decompress_block.c.o
[ 92%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/__/external/imgui/imgui.cpp.o
[ 93%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/__/external/imgui/imgui_draw.cpp.o
[ 95%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/__/external/imgui/imgui_tables.cpp.o
[ 96%] Building CXX object server/viewer/CMakeFiles/palanteer.dir/__/external/imgui/imgui_widgets.cpp.o
/home/fabi/palanteer/server/common/cmPrintf.cpp:366:1: warning: unused function 'getParamFloat' [-Wunused-function]
genGetParam(Float, float);
^
/home/fabi/palanteer/server/common/cmPrintf.cpp:348:5: note: expanded from macro 'genGetParam'
    getParam ## name(const bsVec<cmLogParam>& va, int& paramIdx) {      \
    ^
<scratch space>:126:1: note: expanded from here
getParamFloat
^
[ 98%] Linking CXX executable ../../bin/testprogram
Generating the string lookup...
[ 98%] Built target testprogram
1 warning generated.
/usr/bin/clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c /home/fabi/palanteer/server/common/cmRecord.cpp -o build/temp.linux-x86_64-3.8/home/fabi/palanteer/server/common/cmRecord.o -DUSE_PL=1 -DPL_EXPORT=1 -DBS_NO_GRAPHIC -DPL_NOCONTROL=1 -DPL_NOEVENT=1 -std=c++14 -I /home/fabi/palanteer/c++ -I /home/fabi/palanteer/server/base -I /home/fabi/palanteer/server/common -I /home/fabi/palanteer/server/external/zstd -I /home/fabi/palanteer/server/external/zstd/common -I /home/fabi/palanteer/server/external/zstd/compress -I /home/fabi/palanteer/server/external/zstd/decompress -DPL_GROUP_BSVEC=0
/usr/bin/clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c /home/fabi/palanteer/server/common/cmRecording.cpp -o build/temp.linux-x86_64-3.8/home/fabi/palanteer/server/common/cmRecording.o -DUSE_PL=1 -DPL_EXPORT=1 -DBS_NO_GRAPHIC -DPL_NOCONTROL=1 -DPL_NOEVENT=1 -std=c++14 -I /home/fabi/palanteer/c++ -I /home/fabi/palanteer/server/base -I /home/fabi/palanteer/server/common -I /home/fabi/palanteer/server/external/zstd -I /home/fabi/palanteer/server/external/zstd/common -I /home/fabi/palanteer/server/external/zstd/compress -I /home/fabi/palanteer/server/external/zstd/decompress -DPL_GROUP_BSVEC=0
/usr/bin/clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c /home/fabi/palanteer/server/common/cmLiveControl.cpp -o build/temp.linux-x86_64-3.8/home/fabi/palanteer/server/common/cmLiveControl.o -DUSE_PL=1 -DPL_EXPORT=1 -DBS_NO_GRAPHIC -DPL_NOCONTROL=1 -DPL_NOEVENT=1 -std=c++14 -I /home/fabi/palanteer/c++ -I /home/fabi/palanteer/server/base -I /home/fabi/palanteer/server/common -I /home/fabi/palanteer/server/external/zstd -I /home/fabi/palanteer/server/external/zstd/common -I /home/fabi/palanteer/server/external/zstd/compress -I /home/fabi/palanteer/server/external/zstd/decompress -DPL_GROUP_BSVEC=0
/usr/bin/clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c /home/fabi/palanteer/server/common/cmRecordIterator.cpp -o build/temp.linux-x86_64-3.8/home/fabi/palanteer/server/common/cmRecordIterator.o -DUSE_PL=1 -DPL_EXPORT=1 -DBS_NO_GRAPHIC -DPL_NOCONTROL=1 -DPL_NOEVENT=1 -std=c++14 -I /home/fabi/palanteer/c++ -I /home/fabi/palanteer/server/base -I /home/fabi/palanteer/server/common -I /home/fabi/palanteer/server/external/zstd -I /home/fabi/palanteer/server/external/zstd/common -I /home/fabi/palanteer/server/external/zstd/compress -I /home/fabi/palanteer/server/external/zstd/decompress -DPL_GROUP_BSVEC=0
/usr/bin/clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c /home/fabi/palanteer/server/common/cmCompress.cpp -o build/temp.linux-x86_64-3.8/home/fabi/palanteer/server/common/cmCompress.o -DUSE_PL=1 -DPL_EXPORT=1 -DBS_NO_GRAPHIC -DPL_NOCONTROL=1 -DPL_NOEVENT=1 -std=c++14 -I /home/fabi/palanteer/c++ -I /home/fabi/palanteer/server/base -I /home/fabi/palanteer/server/common -I /home/fabi/palanteer/server/external/zstd -I /home/fabi/palanteer/server/external/zstd/common -I /home/fabi/palanteer/server/external/zstd/compress -I /home/fabi/palanteer/server/external/zstd/decompress -DPL_GROUP_BSVEC=0
/usr/bin/clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c /home/fabi/palanteer/server/common/cmCnx.cpp -o build/temp.linux-x86_64-3.8/home/fabi/palanteer/server/common/cmCnx.o -DUSE_PL=1 -DPL_EXPORT=1 -DBS_NO_GRAPHIC -DPL_NOCONTROL=1 -DPL_NOEVENT=1 -std=c++14 -I /home/fabi/palanteer/c++ -I /home/fabi/palanteer/server/base -I /home/fabi/palanteer/server/common -I /home/fabi/palanteer/server/external/zstd -I /home/fabi/palanteer/server/external/zstd/common -I /home/fabi/palanteer/server/external/zstd/compress -I /home/fabi/palanteer/server/external/zstd/decompress -DPL_GROUP_BSVEC=0
/usr/bin/clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c /home/fabi/palanteer/server/external/zstd/common/fse_decompress.c -o build/temp.linux-x86_64-3.8/home/fabi/palanteer/server/external/zstd/common/fse_decompress.o -DUSE_PL=1 -DPL_EXPORT=1 -DBS_NO_GRAPHIC -DPL_NOCONTROL=1 -DPL_NOEVENT=1 -std=c++14 -I /home/fabi/palanteer/c++ -I /home/fabi/palanteer/server/base -I /home/fabi/palanteer/server/common -I /home/fabi/palanteer/server/external/zstd -I /home/fabi/palanteer/server/external/zstd/common -I /home/fabi/palanteer/server/external/zstd/compress -I /home/fabi/palanteer/server/external/zstd/decompress -DPL_GROUP_BSVEC=0
error: invalid argument '-std=c++14' not allowed with 'C'
error: command '/usr/bin/clang' failed with exit status 1
make[2]: *** [server/scripting/CMakeFiles/scripting.dir/build.make:100: server/scripting/scripting_install] Error 1
make[1]: *** [CMakeFiles/Makefile2:211: server/scripting/CMakeFiles/scripting.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Linking CXX executable ../../bin/palanteer
[100%] Built target palanteer
make: *** [Makefile:130: all] Error 2

The relevant part is that zstd/common/fse_decompress.c are compiled with clang but CXX flags are provided.

/home/fabi/palanteer/server/external/zstd/common/fse_decompress.c -o build/temp.linux-x86_64-3.8/home/fabi/palanteer/server/external/zstd/common/fse_decompress.o -DUSE_PL=1 -DPL_EXPORT=1 -DBS_NO_GRAPHIC -DPL_NOCONTROL=1 -DPL_NOEVENT=1 -std=c++14 -I /home/fabi/palanteer/c++ -I /home/fabi/palanteer/server/base -I /home/fabi/palanteer/server/common -I /home/fabi/palanteer/server/external/zstd -I /home/fabi/palanteer/server/external/zstd/common -I /home/fabi/palanteer/server/external/zstd/compress -I /home/fabi/palanteer/server/external/zstd/decompress -DPL_GROUP_BSVEC=0
error: invalid argument '-std=c++14' not allowed with 'C'

So as you can see your CMake configuration is adding the CXX flag -std=c++14 to a C compilation.

dfeneyrou commented 2 months ago

Thanks for your detailed analysis (and sorry for the delay...). The extra parameter has been removed in #0e4a78d