MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0015741 | CMake | CMake | public | 2015-09-13 14:14 | 2016-02-01 09:10 |
Reporter | Raphael Kubo da Costa | ||||
Assigned To | Brad King | ||||
Priority | normal | Severity | major | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Platform | OS | FreeBSD | OS Version | ||
Product Version | CMake 3.3.1 | ||||
Target Version | CMake 3.4 | Fixed in Version | CMake 3.4 | ||
Summary | 0015741: GCC < 4.9 does not have full C11 support | ||||
Description | As of version 3.3.1, CMake sets CMAKE_C11_{STANDARD,EXTENSION}_COMPILE_OPTION for GCC >= 4.7, and checks for C11 features for GCC >= 4.6. Additionally, it means CMake itself will be built with -std=gnu11 if GCC >= 4.7 is used. However, GCC only has full C11 support with the 4.9 release (https://gcc.gnu.org/wiki/C11Status [^]). Specifically, support for C11's _Thread_local is only present on GCC >= 4.9. This combination makes CMake fail to build with GCC 4.7 and 4.8 on FreeBSD, as runetype.h uses _Thread_local and the fact that -std=gnu11 is passed makes it not be a typedef or define for something else that would work. In https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203066, [^] it was argued that this is GCC's fault for advertising C11 support in 4.7 and 4.8 before it was fully ready. Before sending a patch to GNU-C.cmake, I'd like to check if it makes sense or what the best approach would be. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2015-09-13 14:14 | Raphael Kubo da Costa | New Issue | |||
2015-09-14 08:57 | Brad King | Note Added: 0039411 | |||
2015-09-14 09:57 | Raphael Kubo da Costa | Note Added: 0039417 | |||
2015-09-14 13:19 | Brad King | Note Added: 0039421 | |||
2015-09-15 10:54 | Brad King | Note Added: 0039426 | |||
2015-09-15 16:06 | Brad King | Note Added: 0039427 | |||
2015-09-15 16:06 | Brad King | Assigned To | => Brad King | ||
2015-09-15 16:06 | Brad King | Status | new => resolved | ||
2015-09-15 16:06 | Brad King | Resolution | open => fixed | ||
2015-09-15 16:06 | Brad King | Fixed in Version | => CMake 3.4 | ||
2015-09-15 16:06 | Brad King | Target Version | => CMake 3.4 | ||
2016-02-01 09:10 | Robert Maynard | Note Added: 0040405 | |||
2016-02-01 09:10 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|