View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007819CMakeCMakepublic2008-10-16 02:582009-01-29 12:17
ReporterFederico Carminati 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionnot fixable 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0007819: Xcode generation breaks when specifying CC environmental variable
DescriptionIt happens when invoking CMake on Mac OS X 10.5.5 (2.6 GHz Intel Core 2 Duo).

CC=gcc cmake . -G "Unix Makefiles"

works, while

CC=gcc cmake . -G Xcode

fails with the attached log, while

CC=/usr/bin/gcc cmake -G [Xcode | "Unix Makefiles"]

works in both cases.
TagsNo tags attached.
Attached Fileslog file icon cmake.log [^] (7,673 bytes) 2008-10-16 02:58

 Relationships

  Notes
(0014712)
Bill Hoffman (manager)
2009-01-29 12:17

This is not a CMake issue. If you have a perfectly good Xcode project, and you run xcodebuild with CC=gcc, it fails with the same error:


    gcc -x c -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -g -O0 -DCMAKE_INTDIR=\"Debug\" -Dtestc2_EXPORTS -fmessage-length=0 -mmacosx-version-min=10.4 -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/kitware/Dashboards/My\ Tests/CMake/Tests/COnly/b/Debug -I/Users/kitware/Dashboards/My\ Tests/CMake/Tests/COnly/b/Debug/include -I/Users/kitware/Dashboards/My\ Tests/CMake/Tests/COnly/b/COnly.build/Debug/libtestc2.dylib.build/DerivedSources -fPIC -c /Users/kitware/Dashboards/My\ Tests/CMake/Tests/COnly/libc2.c -o /Users/kitware/Dashboards/My\ Tests/CMake/Tests/COnly/b/COnly.build/Debug/libtestc2.dylib.build/Objects-normal/i386/libc2.o
error: couldn't exec gcc: No such file or directory

 Issue History
Date Modified Username Field Change
2008-10-16 02:58 Federico Carminati New Issue
2008-10-16 02:58 Federico Carminati File Added: cmake.log
2009-01-29 12:17 Bill Hoffman Note Added: 0014712
2009-01-29 12:17 Bill Hoffman Status new => closed
2009-01-29 12:17 Bill Hoffman Resolution open => not fixable


Copyright © 2000 - 2018 MantisBT Team