MantisBT - CMake |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0015349 | CMake | CMake | public | 2015-01-14 09:14 | 2015-07-08 08:57 |
|
Reporter | Rodney Dowdall | |
Assigned To | Brad King | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | Linux | OS | Arch Linux x64 | OS Version | |
Product Version | CMake 3.1 | |
Target Version | CMake 3.1.1 | Fixed in Version | CMake 3.1.1 | |
|
Summary | 0015349: The regular expression in CMakeDetermineCompilerID.cmake strips out qnxnto |
Description | The regular expression that is used to determine compiler info on line 425 of CMakeDetermineCompilerID.cmake fails to match qnxnto. This means that you cannot use cmake to generate Makefiles for qcc anymore. What happens is that it fails to set the COMPILER_QNXNTO variable and then further on down the process it adds compiler flags for a GNU compiler that are not supported by the qcc compiler. If this regular expression is removed, then cmake correctly identifies qcc and sets the COMPILER_QNXNTO variable. |
Steps To Reproduce | Set the CMAKE_C_COMPILER to "qcc" and the DCMAKE_CXX_COMPILER="qcc" and try and build something like webkit. It will pass in the -isystem flag to the qcc compiler. This flag is not supported. You will also see a message about failing to determine compiler settings while cmake is generating the cmake files. If you remove the regular expression from the CMakeDetermineCompilerID.cmake file, then that message disappears. |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | 0001-QNX-Fix-detection-of-QCC-compiler-id-15349.patch (2,283) 2015-01-14 10:31 https://public.kitware.com/Bug/file/5344/0001-QNX-Fix-detection-of-QCC-compiler-id-15349.patch |
|
Issue History |
Date Modified | Username | Field | Change |
2015-01-14 09:14 | Rodney Dowdall | New Issue | |
2015-01-14 10:12 | Brad King | Note Added: 0037686 | |
2015-01-14 10:13 | Brad King | Target Version | => CMake 3.2 |
2015-01-14 10:18 | Rodney Dowdall | Note Added: 0037687 | |
2015-01-14 10:26 | Brad King | Note Added: 0037688 | |
2015-01-14 10:31 | Brad King | File Added: 0001-QNX-Fix-detection-of-QCC-compiler-id-15349.patch | |
2015-01-14 10:31 | Brad King | Note Added: 0037689 | |
2015-01-14 10:32 | Brad King | Assigned To | => Brad King |
2015-01-14 10:32 | Brad King | Status | new => assigned |
2015-01-14 10:32 | Brad King | Target Version | CMake 3.2 => CMake 3.1.1 |
2015-01-15 09:58 | Brad King | Note Added: 0037697 | |
2015-01-15 10:07 | Rodney Dowdall | Note Added: 0037698 | |
2015-01-15 10:27 | Brad King | Note Added: 0037699 | |
2015-01-15 10:27 | Brad King | Note Edited: 0037699 | bug_revision_view_page.php?bugnote_id=37699#r1674 |
2015-01-15 11:47 | Brad King | Note Added: 0037701 | |
2015-01-16 09:43 | Brad King | Note Added: 0037712 | |
2015-01-16 09:44 | Brad King | Note Added: 0037713 | |
2015-01-16 09:44 | Brad King | Status | assigned => resolved |
2015-01-16 09:44 | Brad King | Resolution | open => fixed |
2015-01-16 09:44 | Brad King | Fixed in Version | => CMake 3.1.1 |
2015-07-08 08:57 | Robert Maynard | Note Added: 0039034 | |
2015-07-08 08:57 | Robert Maynard | Status | resolved => closed |
Notes |
|
(0037686)
|
Brad King
|
2015-01-14 10:12
|
|
|
|
(0037687)
|
Rodney Dowdall
|
2015-01-14 10:18
|
|
It worked in 3.0. That was how I was able to determine that it was the regular expression that had changed. The regular expression was added in the 3.1 version of the CMakeDetermineCompilerID.cmake file, whereas in the 3.0 version of the file, that regular expression is not there.
I may be able to submit nightly tests. Let me check out that link and see what I can do. |
|
|
(0037688)
|
Brad King
|
2015-01-14 10:26
|
|
|
|
(0037689)
|
Brad King
|
2015-01-14 10:31
|
|
Please test "0001-QNX-Fix-detection-of-QCC-compiler-id-15349.patch". |
|
|
(0037697)
|
Brad King
|
2015-01-15 09:58
|
|
|
|
(0037698)
|
Rodney Dowdall
|
2015-01-15 10:07
|
|
I can test the fix if you point me at how I check out the branch with the applied patch.
Thanks |
|
|
(0037699)
|
Brad King
|
2015-01-15 10:27
|
|
|
|
(0037701)
|
Brad King
|
2015-01-15 11:47
|
|
Re 0015349:0037699: You can also apply the changes in "0001-QNX-Fix-detection-of-QCC-compiler-id-15349.patch" directly to your local 3.1.0 install. If you're not comfortable with patch tools the change is pretty small and could be applied by hand. |
|
|
(0037712)
|
Brad King
|
2015-01-16 09:43
|
|
Re 0015349:0037697: I hacked the code locally with:
-#ifdef __QNXNTO__
+#if 1
char const* qnxnto = "INFO" ":" "qnxnto[]";
#endif
and built with a GNU compiler to confirm that the regex now matches. |
|
|
(0037713)
|
Brad King
|
2015-01-16 09:44
|
|
I've queued this for 3.1.1.
|
|
|
(0039034)
|
Robert Maynard
|
2015-07-08 08:57
|
|
Closing resolved issues that have not been updated in more than 4 months. |
|