Skip to content

GitLab

  • Menu
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 3,802
    • Issues 3,802
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 18
    • Merge requests 18
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & 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
  • CMake
  • CMakeCMake
  • Issues
  • #16959

Closed
Open
Created Jun 11, 2017 by Ghost User@ghostContributor

Building cmake-3.9.0-rc2 with MinGW fails

cmake-3.9.0-rc2 builds with Visual Studio 2017 but with the current MinGW I had a few problems summarised below.

  1. Source/bindexplib.cxx
    #include <initguid.h> needed for CLSID definition.

  2. Source/kwsys/SystemInformation.cxx
    The following enums (and derived pointer types) are not declared in the MinGW headers:
    enum LOGICAL_PROCESSOR_RELATIONSHIP
    enum PROCESSOR_CACHE_TYPE
    enum CACHE_DESCRIPTOR

  3. Utilities/cmlibarchive/libarchive/archive_entry.c
    Changed ssize_t to la_ssize_t in two function headers to match the header file: archive_entry_acl_to_text_w(struct archive_entry *entry, la_ssize_t *len, ...
    archive_entry_acl_to_text(struct archive_entry *entry, la_ssize_t *len, ...

  4. Utilities/cmlibarchive/libarchive/archive_read.c
    Changed ssize_t to la_ssize_t in function header to match the header file:
    la_ssize_t archive_read_data(struct archive *_a, void *buff, size_t s)

  5. Utilities/cmlibarchive/libarchive/archive_virtual.c
    Changed ssize_t to la_ssize_t in two function headers to match the header file:
    la_ssize_t archive_write_data(struct archive *a, const void *buff, size_t s)
    la_ssize_t archive_write_data_block(struct archive *a, const void *buff, size_t s, int64_t o)

  6. Utilities/cmlibarchive/libarchive/archive_write.c
    Changed ssize_t to la_ssize_t in two function headers to match the header file:
    static la_ssize_t _archive_write_data(struct archive *, const void *, size_t);
    static la_ssize_t _archive_write_data(struct archive *_a, const void *buff, size_t s)

  7. Utilities/cmlibuv/src/win/tty.c
    Added definition for InterlockedOr (not in MinGW).

  8. Utilities/cmvssetup/Setup.Configuration.h
    #include <oleauto.h> for SysAllocStringByteLen and SysStringByteLen (required in Source/cmVSSetuphelper.h).

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking