MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0015026 | CMake | CMake | public | 2014-07-16 10:09 | 2015-01-05 08:39 |
Reporter | Chuck Atkins | ||||
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Cray XE6 and Cray XE7 | OS | Linux | OS Version | CNL |
Product Version | CMake 3.0 | ||||
Target Version | CMake 3.1 | Fixed in Version | CMake 3.1 | ||
Summary | 0015026: Build fails with Cray compiler on Linux | ||||
Description | When building with the Cray compiler on Linux (on an XE6 or XE7 such as Titan or Garnet, for example), the CMake curl library fails to build. | ||||
Steps To Reproduce | 1. Checkout current master on a Cray XE6 or XE7 2. Configure the programming environment to use the cray compilers: # module purge # module load PrgEnv-cray # module load cce 3. Configure and build. The result will fail with: CC-20 craycc: ERROR File = /dev/shm/atkins3/cmake/master/Utilities/cmcurl/hostip.c, Line = 616 The identifier "SIZEOF_in_addr" is undefined. memcpy(addrentry, &num, SIZEOF_in_addr); ^ Total errors detected in /dev/shm/atkins3/cmake/master/Utilities/cmcurl/hostip.c: 1 | ||||
Additional Information | The error is caused by a workaround for UNICOS. The workaround incorrectly uses the _CRAYC macro to determine if building for UNICOS. This macro will always be defined for the Cray C and C++ compiler regardless of the target platform, even when building for Linux. The correct macro should be _CRAY, which as per Cray documentation is only defined for UNICOS targeted builds. Attached is a patch with a fix. | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://public.kitware.com/Bug/file/5193/0001-Fix-a-build-failure-with-the-Cray-compiler-on-Linux.patch | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2014-07-16 10:09 | Chuck Atkins | New Issue | |||
2014-07-16 10:09 | Chuck Atkins | File Added: 0001-Fix-a-build-failure-with-the-Cray-compiler-on-Linux.patch | |||
2014-07-16 12:50 | Brad King | Note Added: 0036403 | |||
2014-07-16 12:50 | Brad King | Status | new => resolved | ||
2014-07-16 12:50 | Brad King | Resolution | open => fixed | ||
2014-07-16 12:50 | Brad King | Fixed in Version | => CMake 3.1 | ||
2014-07-16 12:50 | Brad King | Target Version | => CMake 3.1 | ||
2014-07-17 09:47 | Brad King | Note Edited: 0036403 | bug_revision_view_page.php?bugnote_id=36403#r1523 | ||
2015-01-05 08:39 | Robert Maynard | Note Added: 0037588 | |||
2015-01-05 08:39 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|