View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015026CMakeCMakepublic2014-07-16 10:092015-01-05 08:39
ReporterChuck Atkins 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformCray XE6 and Cray XE7OSLinuxOS VersionCNL
Product VersionCMake 3.0 
Target VersionCMake 3.1Fixed in VersionCMake 3.1 
Summary0015026: Build fails with Cray compiler on Linux
DescriptionWhen 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 Reproduce1. 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 InformationThe 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.
TagsNo tags attached.
Attached Filespatch file icon 0001-Fix-a-build-failure-with-the-Cray-compiler-on-Linux.patch [^] (1,244 bytes) 2014-07-16 10:09 [Show Content]

 Relationships

  Notes
(0036403)
Brad King (manager)
2014-07-16 12:50
edited on: 2014-07-17 09:47

Applied, thanks:

cmcurl: Fix a build failure with the Cray compiler on Linux
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=fd63722d [^]

(0037588)
Robert Maynard (manager)
2015-01-05 08:39

Closing resolved issues that have not been updated in more than 4 months

 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
2015-01-05 08:39 Robert Maynard Note Added: 0037588
2015-01-05 08:39 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team