[CMake] Problem with CMake 2.8.12.2 on Mac OS X

Robert Bielik robert.bielik at dirac.se
Tue May 27 09:08:21 EDT 2014


*Bump*

Does anyone use CMake on Mac with Xcode 5 (LLVM) ? I cannot get rid of the -s option to the linker (Release), so presumably no one else can either, hence
no one should be able to use CMake with LLVM ? ;)

To build today for Release I use "Unix Makefiles", then remove -s from linker settings files (Link.txt) with sed, but it seems a suboptimal solution.

Regards
/Robert

Robert Bielik skrev 2014-05-21 10:22:
> c++ --version:
> Apple LLVM version 5.1
> 
> Problem description:
> 
> Linking always fails in Release build:
> 
> Warning: Option -s is obsolete and being ignored
> 
> with the following error:
> 
> Internal error: atom not found in symbolIndex(<symbol>) for architecture ...
> 
> If I remove the -s option from linking (tried it with Makefile), the linking succeeds ! (even though ld explicitly says -s option
> is being ignored, it obviously is NOT ignored)
> 
> BUT, on Mac OS X, CMake ALWAYS adds the -s option for linking, despite me removing it via CMake-GUI/ccmake or by editing
> the CMakeCache.txt file. 
> 
> How should I make sure that CMake does NOT add the -s option for Release ??
> 
> Regards
> /Robert
> 


More information about the CMake mailing list