MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0002871 | CMake | CMake | public | 2006-02-10 10:58 | 2006-03-09 16:40 |
Reporter | Sean McBride | ||||
Assigned To | Bill Hoffman | ||||
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0002871: cmake can't build itself as a universal binary on Mac OS X | ||||
Description | cmake is almost able to build itself as a universal binary! But not quite... http://www.cmake.org/Testing/Sites/RogueResearchPPC/MacOSX10.4.3-gcc4.0.1-universal/20060210-0518-Experimental/BuildWarning.html [^] http://www.cmake.org/Testing/Sites/RogueResearchPPC/MacOSX10.4.3-gcc4.0.1-universal/20060210-0518-Experimental/BuildError.html [^] The problem is this: Building CXX object Source/CMakeFiles/ccmake.dir/CursesDialog/cmCursesPathWidget.o Building CXX object Source/CMakeFiles/ccmake.dir/CursesDialog/cmCursesStringWidget.o Building CXX object Source/CMakeFiles/ccmake.dir/CursesDialog/cmCursesWidget.o Building CXX object Source/CMakeFiles/ccmake.dir/CursesDialog/ccmake.o Linking CXX executable ../bin/ccmake /usr/bin/ld: for architecture i386 /usr/bin/ld: warning /usr/local/lib/libcurses.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded) For some reason its using libcurses.dylib from /usr/local/lib/ instead of /Developer/SDKs/MacOSX10.4u.sdk/usr/lib. The former is PPC only, the latter is the Universal Apple-supplied one. CMake correctly links everything against libs in the 10.4u SDK, but not this one lib. I don't know why. You can see here: http://www.cmake.org/Testing/Sites/RogueResearchPPC/MacOSX10.4.3-gcc4.0.1-universal/20060210-0518-Experimental/Notes.html [^] That the flags I give are correct: "CFLAGS=-Wall -Wextra -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" "CXXFLAGS=-Wall -Wextra -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" If I remove the "-arch i386" part everything builds, though I suspect it is still using the wrong curses lib, though for ppc only it would of course link. I am using cmake version 2.3-20060207 in my nightly builds. See also 2492. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|