zezer3 / cmaked2

Automatically exported from code.google.com/p/cmaked2
0 stars 0 forks source link

Error when trying to test my installation on Mac OS X #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install cmaked2 as per the "Getting Started" page.
2. Follow the steps from the "Test your installation" section.

What is the expected output? What do you see instead?
It's said on the "Getting started" page that the 3 last commands should run 
without any error but when I run "cmake ..", it actually prints out an error 
log as seen below.

What version of the product are you using? On what operating system?
I've cloned the latest version of the cmaked2 repository, which is 
52:69bc27535fd7.
As per the other packages, I'm on Mac OS X Mountain Lion (10.8), CMake is 
version 2.8.9, and I'm using the dmd compiler version 2.060.

Please provide any additional information below.
Here's the error log:

< christopher ~/lib/cmaked2/trunk/tests/build > cmake ..
-- The C compiler identification is GNU 4.2.1
-- The D compiler identification is unknown
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
**** Debug Info: Enter CMakeDInformation.cmake
**** Debug Info: CMAKE_SYSTEM_NAME = Darwin
**** Debug Info: CMAKE_D_COMPILER_ID = 
**** Debug Info: CMAKE_BASE_NAME = dmd
**** Debug Info: Exit CMakeDInformation.cmake
-- Check for working D compiler: /usr/bin/dmd
**** Debug Info: Enter CMakeDInformation.cmake
**** Debug Info: CMAKE_SYSTEM_NAME = Darwin
**** Debug Info: CMAKE_D_COMPILER_ID = 
**** Debug Info: CMAKE_BASE_NAME = dmd
**** Debug Info: Exit CMakeDInformation.cmake
-- Check for working D compiler: /usr/bin/dmd -- broken
-- To force a specific D compiler set the DC environment variable
--     ie - export DC="/usr/bin/dmd"
CMake Error at /Applications/CMake 
2.8-9.app/Contents/share/cmake-2.8/Modules/CMakeTestDCompiler.cmake:44 
(MESSAGE):
  The D compiler "/usr/bin/dmd" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: /Users/christopher/lib/cmaked2/trunk/tests/build/CMakeFiles/CMakeTmp

  Run Build Command:/usr/bin/make "cmTryCompileExec3536821104/fast"

  /usr/bin/make -f CMakeFiles/cmTryCompileExec3536821104.dir/build.make
  CMakeFiles/cmTryCompileExec3536821104.dir/build

  "/Applications/CMake 2.8-9.app/Contents/bin/cmake" -E cmake_progress_report
  /Users/christopher/lib/cmaked2/trunk/tests/build/CMakeFiles/CMakeTmp/CMakeFiles
  1

  Building D object CMakeFiles/cmTryCompileExec3536821104.dir/testDCompiler

  /usr/bin/dmd CMakeFiles/cmTryCompileExec3536821104.dir/testDCompiler -c
  /Users/christopher/lib/cmaked2/trunk/tests/build/CMakeFiles/CMakeTmp/testDCompiler.d

  Error: cannot read file
  CMakeFiles/cmTryCompileExec3536821104.dir/testDCompiler.d

  make[1]: *** [CMakeFiles/cmTryCompileExec3536821104.dir/testDCompiler]
  Error 1

  make: *** [cmTryCompileExec3536821104/fast] Error 2

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:7 (PROJECT)

-- Configuring incomplete, errors occurred!

Original issue reported on code.google.com by christop...@gmail.com on 29 Aug 2012 at 9:10

GoogleCodeExporter commented 9 years ago
Btw, I saw on another issue that you don't seem to have access to any Mac OS X 
machine, and I unfortunately don't know anything about how CMake and building 
systems in general works so I can't really debug it on my own but I'm happy to 
help if you want me to try some stuff out or something.

Original comment by christop...@gmail.com on 29 Aug 2012 at 9:16