[haiku-bugs] [Haiku] #15356: cmake fails to detect compiler

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Sun, 15 Sep 2019 13:51:10 -0000

#15356: cmake fails to detect compiler
------------------------+------------------------------
 Reporter:  pulkomandy  |        Owner:  nobody
     Type:  bug         |       Status:  new
 Priority:  normal      |    Milestone:  Unscheduled
Component:  - General   |      Version:  R1/Development
 Keywords:              |   Blocked By:
 Blocking:              |  Has a Patch:  0
 Platform:  All         |
------------------------+------------------------------
 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?
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/15356>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: