MantisBT - CMake | |||||
View Issue Details | |||||
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. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
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 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|