View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016010CMakeCMakepublic2016-03-10 10:332016-06-10 14:31
ReporterKlaus R 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformApple MacOSOS XOS Version10.4.10
Product VersionCMake 3.5 
Target VersionFixed in Version 
Summary0016010: cmake with clang sanitizers fails
DescriptionI tried to rebuild XCode projects with cmake 3.5.0. Failed to work if clang sanitizers were enabled, most likely because the optiones necessary for linking sanitized binaries were not passed to the linker.
Steps To Reproduceif( WITH_SANITIZER )
    ## http://clang.llvm.org/docs/AddressSanitizer.html [^]
    set(SANITIZERS "-fsanitize=address -fno-omit-frame-pointer")
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${SANITIZERS}")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SANITIZERS}")
    set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${SANITIZERS}" )
    set(CMAKE_MODULE_LINKER_FLAGS_INIT "${CMAKE_MODULE_LINKER_FLAGS_INIT} ${SANITIZERS}" )
    set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${SANITIZERS}" )
endif()
Additional InformationWorkaround was to revert to previous 3.4 version
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0040658)
Brad King (manager)
2016-03-10 11:17

I cannot reproduce this failure. Please provide a complete minimal source tarball that shows the problem.
(0040659)
Klaus R (reporter)
2016-03-11 02:44

ok, proved not to be soo easy, but I work on it.
(0042961)
Kitware Robot (administrator)
2016-06-10 14:29

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2016-03-10 10:33 Klaus R New Issue
2016-03-10 11:17 Brad King Note Added: 0040658
2016-03-11 02:44 Klaus R Note Added: 0040659
2016-06-10 14:29 Kitware Robot Note Added: 0042961
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team