View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016078CMakeCMakepublic2016-04-24 04:282016-06-10 14:21
ReporterThomas Nilsson 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformPCOSWindowsOS Version10
Product VersionCMake 3.3.2 
Target VersionCMake 3.6Fixed in VersionCMake 3.6 
Summary0016078: CMake on Cygwin with clang not creating expected dll.a
DescriptionI'm building a shared library and an application using that lib on Cygwin. With GCC CMake creates a .dll.a to use when linking. Switching to clang I get

[ 34%] Built target xyz_shared
make[2]: *** No rule to make target 'src/libxyz_shared.dll.a', needed by 'xyz.exe'. Stop.
Steps To ReproduceOn Cygwin, use the attached CMakeLists.txt and see it produce 'cygxyz_shared.dll' and 'libxyz_shared.dll.a'.

Clear the build directory and do

  $ CC=clang cmake ..; make

and it will not create 'libxyz_shared.dll.a'.
Additional InformationAs described in this Stackoverflow question (http://stackoverflow.com/questions/36294199 [^]) the culprit seems to be the lack of the flags '-Wl,--enable-auto-import' when using clang.
TagsClang, cygwin
Attached Filestxt file icon CMakeLists.txt [^] (132 bytes) 2016-04-24 04:28 [Show Content]

 Relationships

  Notes
(0040925)
Brad King (manager)
2016-04-25 09:03

I think this was fixed in post-3.5 development by this commit:

 Cygwin: Add support for Clang compiler
 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=517cef8c [^]

(0041184)
Kitware Robot (administrator)
2016-06-10 14:21

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-04-24 04:28 Thomas Nilsson New Issue
2016-04-24 04:28 Thomas Nilsson File Added: CMakeLists.txt
2016-04-24 16:56 Thomas Nilsson Tag Attached: Clang
2016-04-24 16:56 Thomas Nilsson Tag Attached: cygwin
2016-04-25 09:03 Brad King Note Added: 0040925
2016-04-25 09:03 Brad King Assigned To => Brad King
2016-04-25 09:03 Brad King Status new => resolved
2016-04-25 09:03 Brad King Resolution open => fixed
2016-04-25 09:03 Brad King Fixed in Version => CMake 3.6
2016-04-25 09:03 Brad King Target Version => CMake 3.6
2016-06-10 14:21 Kitware Robot Note Added: 0041184
2016-06-10 14:21 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team