MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0013274 | CMake | CMake | public | 2012-06-06 13:33 | 2012-11-05 14:33 |
Reporter | Daniel Richard G. | ||||
Assigned To | Brad King | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | PowerPC | OS | AIX | OS Version | 4.3 |
Product Version | CMake 2.8.8 | ||||
Target Version | CMake 2.8.9 | Fixed in Version | CMake 2.8.9 | ||
Summary | 0013274: test_INT_C.c and test_INT_CXX.cxx fail to compile due to broken PRIxNN macros | ||||
Description | Building CMake git nightly on AIX 4.3 yields these errors: In file included from .../CMake/Utilities/KWIML/test/test_INT_C.c:14: .../CMake-build/Utilities/KWIML/test/test_INT_format.h: In function `test_INT_format': .../CMake-build/Utilities/KWIML/test/test_INT_format.h:106: `hi' undeclared (first use in this function) .../CMake-build/Utilities/KWIML/test/test_INT_format.h:106: (Each undeclared identifier is reported only once .../CMake-build/Utilities/KWIML/test/test_INT_format.h:106: for each function it appears in.) .../CMake-build/Utilities/KWIML/test/test_INT_format.h:108: parse error before string constant .../CMake-build/Utilities/KWIML/test/test_INT_format.h:110: `hd' undeclared (first use in this function) .../CMake-build/Utilities/KWIML/test/test_INT_format.h:112: parse error before string constant [...] (Refer to http://open.cdash.org/viewBuildError.php?buildid=2337121 [^] for the full list) This platform has a long-standing issue with broken PRIxNN format macros in /usr/include/inttypes.h. An excerpt: #define PRId8 %hd #define PRId16 %hd #define PRId32 %d #if defined(__64BIT__) #define PRId64 %ld #else #if defined(_LONG_LONG) #define PRId64 %lld #endif #endif On the Autoconf side, Gettext has an m4 macro gt_INTTYPES_PRI that checks for this: https://gnunet.org/svn/Extractor/m4/inttypes-pri.m4 [^] CMake could probably avoid the use of inttypes.h on this system altogether; the above files compile correctly with -DcmIML_INT_NO_INTTYPES_H. Either that, or it needs to know to use its own format-string macros instead of the system's. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | kwiml-aix43.patch (14,513) 2012-06-07 08:20 https://public.kitware.com/Bug/file/4345/kwiml-aix43.patch inttypes.h (15,292) 2012-06-07 14:10 https://public.kitware.com/Bug/file/4347/inttypes.h kwiml-aix43-2.patch (19,697) 2012-06-07 14:17 https://public.kitware.com/Bug/file/4348/kwiml-aix43-2.patch | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-06-06 13:33 | Daniel Richard G. | New Issue | |||
2012-06-06 14:06 | Brad King | Note Added: 0029620 | |||
2012-06-06 15:17 | Daniel Richard G. | Note Added: 0029621 | |||
2012-06-06 15:40 | Brad King | Note Added: 0029623 | |||
2012-06-06 16:22 | Daniel Richard G. | Note Added: 0029624 | |||
2012-06-07 08:20 | Brad King | File Added: kwiml-aix43.patch | |||
2012-06-07 08:21 | Brad King | Note Added: 0029625 | |||
2012-06-07 14:10 | Daniel Richard G. | File Added: inttypes.h | |||
2012-06-07 14:10 | Daniel Richard G. | Note Added: 0029630 | |||
2012-06-07 14:17 | Brad King | File Added: kwiml-aix43-2.patch | |||
2012-06-07 14:18 | Brad King | Note Added: 0029631 | |||
2012-06-07 14:41 | Daniel Richard G. | Note Added: 0029632 | |||
2012-06-07 15:14 | Brad King | Note Added: 0029635 | |||
2012-06-07 15:23 | Brad King | Note Added: 0029637 | |||
2012-06-07 15:23 | Daniel Richard G. | Note Added: 0029638 | |||
2012-06-07 15:23 | Brad King | Assigned To | => Brad King | ||
2012-06-07 15:23 | Brad King | Status | new => resolved | ||
2012-06-07 15:23 | Brad King | Resolution | open => fixed | ||
2012-06-07 15:23 | Brad King | Fixed in Version | => CMake 2.8.9 | ||
2012-06-07 15:23 | Brad King | Target Version | => CMake 2.8.9 | ||
2012-11-05 14:33 | David Cole | Note Added: 0031445 | |||
2012-11-05 14:33 | David Cole | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|