Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4,101
    • Issues 4,101
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMakeCMake
  • CMakeCMake
  • Issues
  • #17233
Closed
Open
Issue created Aug 29, 2017 by fuhlig1@fuhlig1

Compilation errors when compiling CMake on Mac OSX 10.12.6 with gcc 7.1

Hi,

I tried to compile CMake 3.9.1 with gcc 7.1 on the latest Mac OSX release (10.12.6). During compilation I got the following errors

[ 10%] Building C object Utilities/cmcurl/lib/CMakeFiles/cmcurl.dir/file.c.o
In file included from /System/Library/Frameworks/Security.framework/Headers/AuthSession.h:32:0,
                 from /System/Library/Frameworks/Security.framework/Headers/Security.h:43,
                 from /opt/alibuild/sw/SOURCES/CMake/v3.9.1/v3.9.1/Utilities/cmcurl/lib/urldata.h:148,
                 from /opt/alibuild/sw/SOURCES/CMake/v3.9.1/v3.9.1/Utilities/cmcurl/lib/file.c:52:
/System/Library/Frameworks/Security.framework/Headers/Authorization.h:192:7: error: variably modified 'bytes' at file scope
  char bytes[kAuthorizationExternalFormLength];
       ^~~~~

Since the problem is related to the native SSL/TLS implementation the problem could be solved by changing excluding Apple OS native SSL/TLS implementation. Please find the change in the respective CMakeLists.txt in the attached patch.

The second error is due to a missing header file which is probably included implicitly when using clang. The needed correction is also in the attached patch.

When running the tests the same tests fail as for the normal compilation with the clang compiler.

The following tests FAILED:
	 78 - Architecture (Failed)
	174 - BundleTest (Failed)
	183 - TestsWorkingDirectory (Failed)
	431 - CMake.GetFilenameComponentRealpath (Failed)

Best regards

Florian Uhlig

gcc71_osx10126.patch

Edited Aug 29, 2017 by Brad King
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking