-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error building debug-pal's ds-ipc-posix.c with older cmake #48764
Comments
Tagging subscribers to this area: @tommcdon Issue DetailsI am having trouble building dotnet/runtime
The command line here does not use the 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?
|
Looking at my build history, this error seems to have started happening just after #47665 (at least the same day) was merged, which makes sense, because that's when |
Disabling warnings makes the build work. |
Yes, this is indeed an issue on the CMake file that were added as part of the shared EP. I believe the version of CMake used by source-build for RHEL can't use PROPERTIES COMPILE_OPTIONS afaik. You'd probably need to use
|
I am also not 100% sure about |
https://github.com/dotnet/runtime/blob/master/docs/workflow/requirements/linux-requirements.md#toolchain-setup, says we need CMake 3.14.5 or newer, but looks like we did a downgrade just for coreclr directory, #39044
|
add_compile_options(-xc++) could probably be used on older cmake versions, but it will then be applied to potentially more sources then expected. The same semantics is also used for EventPipe Sources
FEATURE_PERFTRACING ?
|
Guess we potentially could add:
|
Will fix this, running a test with above fix on CMake 3.6.2 using our CentOS 7 (build for RHEL 7) docker image https://github.com/dotnet/runtime/blob/master/docs/workflow/building/coreclr/linux-instructions.md#docker-images, our docker images all run on later CMake versions though, so needed to make a manual downgrade to 3.6.2. |
Successfully build using that docker image and CMake 3.6.2. |
Thanks for fixing this so quickly! |
I am having trouble building dotnet/runtime
master
branch (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
The text was updated successfully, but these errors were encountered: