cmake fails to detect compiler
|Reported by:||pulkomandy||Owned by:||waddlesplash|
hrev53481. I cannot compile anything using cmake. Tried building an older cmake 3.9 from haikuports recipe, bootstrap went fine but after that it failed with the same error running the bootstrap cmake.
CMake Error at /boot/system/data/cmake/Modules/CMakeDetermineCompilerId.cmake:219 (file): file write failed (Bad address): /Git/haiku/renga/build/CMakeFiles/3.15.3/CompilerIdC/CMakeCCompilerId.c Call Stack (most recent call first): /boot/system/data/cmake/Modules/CMakeDetermineCompilerId.cmake:230 (CMAKE_DETERMINE_COMPILER_ID_WRITE) /boot/system/data/cmake/Modules/CMakeDetermineCompilerId.cmake:32 (CMAKE_DETERMINE_COMPILER_ID_BUILD) /boot/system/data/cmake/Modules/CMakeDetermineCCompiler.cmake:116 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:4 (project)
Running gcc works just fine. I looked at the cmake scripts and it's trying to write something to a .c file there, but the file ends up empty. The "bad address" error looks like it could be some of the new security checks preventing it to map the file or something?