View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0009071 | CMake | CMake | public | 2009-05-26 17:56 | 2009-06-01 11:08 | ||||
Reporter | Torsten Rohlfing | ||||||||
Assigned To | Brad King | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | CMake-2-6 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0009071: gcc4 on cygwin may need extra link options, otherwise exception | ||||||||
Description | When building under Cygwin using gcc4 (tested using gcc-4.3.2beta), some applications require an additional linker flag to work: CMAKE_EXE_LINKER_FLAGS=-Wl,--enable-auto-import It would be nice if CMake could auto-detect this combination of OS/compiler and pre-set this flag. Some generated binaries run without using this flag during the build, but others generate "exception c0000005" (as displayed when running binary through "strace") before even entering main(). Sorry, but I can't provide a small test example. The technical background seems to be related to this issue though: http://www.cygwin.com/ml/cygwin/2004-09/msg01101.html [^] Noteworthy also: - No problems using gcc-3.x.x, but eventually gcc-4 will probably supersede gcc-3 on cygwin (plus, gcc-4 provides OpenMP). - The linker using gcc-4 actually provides a warning message saying that it auto-enabled "auto-importing", and it says under what circumstances that doesn't work. Probably applies here. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0016581) Brad King (manager) 2009-05-27 11:34 |
It should be safe to just always put --enable-auto-import on exe link lines for Cygwin. It works with the older compiler too. We already do it when linking shared libraries. ENH: Auto-import symbols for cygwin executables /cvsroot/CMake/CMake/Modules/Platform/CYGWIN.cmake,v <-- Modules/Platform/CYGWIN.cmake new revision: 1.21; previous revision: 1.20 /cvsroot/CMake/CMake/bootstrap,v <-- bootstrap new revision: 1.118; previous revision: 1.117 |
(0016599) Brad King (manager) 2009-06-01 11:08 |
I've scheduled this for inclusion in CMake 2.6.5. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2009-05-26 17:56 | Torsten Rohlfing | New Issue | |
2009-05-27 09:00 | Bill Hoffman | Status | new => assigned |
2009-05-27 09:00 | Bill Hoffman | Assigned To | => Brad King |
2009-05-27 11:34 | Brad King | Note Added: 0016581 | |
2009-06-01 11:08 | Brad King | Note Added: 0016599 | |
2009-06-01 11:08 | Brad King | Status | assigned => closed |
2009-06-01 11:08 | Brad King | Resolution | open => fixed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |