Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
CMake
CMake
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,226
    • Issues 3,226
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 17
    • Merge Requests 17
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMake
  • CMakeCMake
  • Issues
  • #18919

Closed
Open
Opened Feb 13, 2019 by Robert Maynard@robertmaynardDeveloper

PGI Compiler Feature Support Regression [3.14.0-RC1]

Starting in 3.14.0-RC1 the C++ language feature detection for the PGI compiler is failing. Also tried out the IBM xlC compiler which has the same pattern of only meta language features and it works.

Test code:

cmake_minimum_required(VERSION 3.9)
project(scorch)
add_library(foo main.cxx)
target_compile_features(foo PUBLIC cxx_std_11)

CMake Build Output:

[atkins3@gcc2-power8 build]$ rm -rf CMakeFiles/
[atkins3@gcc2-power8 build]$ rm CMakeCache.txt 
[atkins3@gcc2-power8 build]$ CXX=/opt/cfarm/pgi/linuxpower/18.10/bin/pgc++  ~/users/robert.maynard/cmake/build/bin/cmake ../
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is PGI 18.10.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /opt/cfarm/pgi/linuxpower/18.10/bin/pgc++
-- Check for working CXX compiler: /opt/cfarm/pgi/linuxpower/18.10/bin/pgc++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - failed
CMake Error at CMakeLists.txt:4 (target_compile_features):
  target_compile_features no known features for CXX compiler

  "PGI"

  version 18.10.1.


-- Configuring incomplete, errors occurred!
See also "/home/atkins3/users/robert.maynard/scorch/build/CMakeFiles/CMakeOutput.log".
See also "/home/atkins3/users/robert.maynard/scorch/build/CMakeFiles/CMakeError.log".
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
3.14.0
Milestone
3.14.0 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: cmake/cmake#18919