I am having trouble building dotnet/runtime master branch (8483e9edc809c6d9799600d062abca8ab6c61e46) using an older CMake (cmake version 3.6.2) on RHEL 7:
Building CXX object debug/debug-pal/CMakeFiles/debug-pal_obj.dir/runtime/src/native/eventpipe/ds-ipc-posix.c.o
cd runtime/artifacts/obj/coreclr/Linux.x64.Release/debug/debug-pal && clang++-10 -DDISABLE_CONTRACTS -DFEATURE_CORECLR -DFEATURE_PERFTRACING -DFEATURE_PERFTRACING_STANDALONE_PAL -DHOST_64BIT -DHOST_AMD64 -DHOST_UNIX -DNDEBUG -DPAL_IMPLEMENTATION -DPAL_STDCPP_COMPAT -DTARGET_64BIT -DTARGET_AMD64 -DTARGET_LINUX -DTARGET_UNIX -DURTBLDENV_FRIENDLY=Retail -D_POSIX_C_SOURCE=200809L -Iruntime/src/coreclr/debug/debug-pal/../inc -Iruntime/src/coreclr/debug/debug-pal/../../pal/inc -Iruntime/src/native/eventpipe -O2 -DNDEBUG -fPIC -O3 -g -Wall -Wno-null-conversion -fno-omit-frame-pointer -fms-extensions -fwrapv -fstack-protector-strong -Werror -Wno-unused-variable -Wno-unused-value -Wno-unused-function -Wno-tautological-compare -Wimplicit-fallthrough -Wno-invalid-offsetof -ferror-limit=4096 -Wno-unused-private-field -Wno-microsoft -Wno-constant-logical-operand -Wno-pragma-pack -Wno-unknown-warning-option -Wno-incompatible-ms-struct -fsigned-char -fvisibility=hidden -std=gnu++11 -o CMakeFiles/debug-pal_obj.dir/runtime/src/native/eventpipe/ds-ipc-posix.c.o -c runtime/src/native/eventpipe/ds-ipc-posix.c
clang-10: error: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Werror,-Wdeprecated]
gmake[2]: Leaving directory `runtime/artifacts/obj/coreclr/Linux.x64.Release'
The command line here does not use the -xc++ flag set here:
|
set (EVENTPIPE_PAL_SOURCES "${SHARED_EVENTPIPE_DIR}/ds-ipc-posix.c") |
|
set_source_files_properties(${EVENTPIPE_PAL_SOURCES} PROPERTIES LANGUAGE CXX) |
|
set_source_files_properties(${EVENTPIPE_PAL_SOURCES} PROPERTIES COMPILE_OPTIONS -xc++) |
This makes me suspect that this is being caused by an older version of CMake.
I am not seeing this error on any other platform, all of which have newer cmake versions.
Is there a workaround for this possible? Or is runtime implicitly requiring a newer version of cmake now?
cc @dleeapho @tmds
I am having trouble building dotnet/runtime
masterbranch (8483e9edc809c6d9799600d062abca8ab6c61e46) using an older CMake (cmake version 3.6.2) on RHEL 7:The command line here does not use the
-xc++flag set here:runtime/src/coreclr/debug/debug-pal/CMakeLists.txt
Lines 39 to 41 in 8483e9e
This makes me suspect that this is being caused by an older version of CMake.
I am not seeing this error on any other platform, all of which have newer cmake versions.
Is there a workaround for this possible? Or is runtime implicitly requiring a newer version of cmake now?
cc @dleeapho @tmds