View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0016078 | CMake | CMake | public | 2016-04-24 04:28 | 2016-06-10 14:21 | ||||
Reporter | Thomas Nilsson | ||||||||
Assigned To | Brad King | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | PC | OS | Windows | OS Version | 10 | ||||
Product Version | CMake 3.3.2 | ||||||||
Target Version | CMake 3.6 | Fixed in Version | CMake 3.6 | ||||||
Summary | 0016078: CMake on Cygwin with clang not creating expected dll.a | ||||||||
Description | I'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 Reproduce | On 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 Information | As 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. | ||||||||
Tags | Clang, cygwin | ||||||||
Attached Files | ![]() | ||||||||
Relationships | |
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. |
Notes |
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 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |