[cmake-developers] [CMake 0013798]: CMake Fails to build makefiles
Mantis Bug Tracker
mantis at public.kitware.com
Sun Dec 16 00:24:53 EST 2012
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13798
======================================================================
Reported By: CharlesH
Assigned To:
======================================================================
Project: CMake
Issue ID: 13798
Category: CMake
Reproducibility: always
Severity: major
Priority: urgent
Status: new
======================================================================
Date Submitted: 2012-12-16 00:24 EST
Last Modified: 2012-12-16 00:24 EST
======================================================================
Summary: CMake Fails to build makefiles
Description:
I was attempting to build Allegro 5 and got this error message:
It fails with the following output:
Change Dir: /Users/hardnett/Downloads/allegro/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec1015337934/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1015337934.dir/build.make
CMakeFiles/cmTryCompileExec1015337934.dir/build
"/Applications/CMake 2.8-10.app/Contents/bin/cmake" -E
cmake_progress_report
/Users/hardnett/Downloads/allegro/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object
CMakeFiles/cmTryCompileExec1015337934.dir/testCCompiler.c.o
/usr/bin/gcc -isysroot /Developer/SDKs/MacOSX10.6.sdk -o
CMakeFiles/cmTryCompileExec1015337934.dir/testCCompiler.c.o -c
/Users/hardnett/Downloads/allegro/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTryCompileExec1015337934
"/Applications/CMake 2.8-10.app/Contents/bin/cmake" -E cmake_link_script
CMakeFiles/cmTryCompileExec1015337934.dir/link.txt --verbose=1
/usr/bin/gcc -isysroot /Developer/SDKs/MacOSX10.6.sdk
-Wl,-search_paths_first -Wl,-headerpad_max_install_names
CMakeFiles/cmTryCompileExec1015337934.dir/testCCompiler.c.o -o
cmTryCompileExec1015337934
ld: library not found for -lcrt1.10.6.o
collect2: ld returned 1 exit status
make[1]: *** [cmTryCompileExec1015337934] Error 1
make: *** [cmTryCompileExec1015337934/fast] Error 2
I then tried a stripped down version of CMakeLists.txt and got the same error:
/usr/bin/make -f CMakeFiles/cmTryCompileExec4200036634.dir/build.make
CMakeFiles/cmTryCompileExec4200036634.dir/build
"/Applications/CMake 2.8-10.app/Contents/bin/cmake" -E
cmake_progress_report
/Users/hardnett/Downloads/cmake/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object
CMakeFiles/cmTryCompileExec4200036634.dir/testCCompiler.c.o
/usr/bin/gcc -isysroot /Developer/SDKs/MacOSX10.6.sdk -o
CMakeFiles/cmTryCompileExec4200036634.dir/testCCompiler.c.o -c
/Users/hardnett/Downloads/cmake/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTryCompileExec4200036634
"/Applications/CMake 2.8-10.app/Contents/bin/cmake" -E cmake_link_script
CMakeFiles/cmTryCompileExec4200036634.dir/link.txt --verbose=1
/usr/bin/gcc -isysroot /Developer/SDKs/MacOSX10.6.sdk
-Wl,-search_paths_first -Wl,-headerpad_max_install_names
CMakeFiles/cmTryCompileExec4200036634.dir/testCCompiler.c.o -o
cmTryCompileExec4200036634
ld: library not found for -lcrt1.10.6.o
collect2: ld returned 1 exit status
make[1]: *** [cmTryCompileExec4200036634] Error 1
make: *** [cmTryCompileExec4200036634/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (PROJECT)
-- Configuring incomplete, errors occurred!
Steps to Reproduce:
You can reproduce this with the attached CMakeLists.txt file and main.c file:
1. unzip into a folder
2. type "cmake ."
or you can:
1. unzip into a folder
2. cd build
3. cmake ..
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-12-16 00:24 CharlesH New Issue
2012-12-16 00:24 CharlesH File Added: cmake.zip
======================================================================
More information about the cmake-developers
mailing list