Skip to content

CMake Error "Expression did not evaluate to a known generator expression" #31748

@pmajchrzak

Description

@pmajchrzak

Since PR: 41e9ecf
Paddle stops build at the CMake stage

CMake command and few first lines after run:

+ cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_GPU=OFF -DWITH_MKLDNN=ON -DWITH_TESTING=ON -DWITH_PROFILER=ON -DWITH_STYLE_CHECK=OFF -DON_INFER=ON -DWITH_INFERENCE_API_TEST=ON
-- Found Paddle host system: ubuntu, version: 18.04.4
-- Found Paddle host system's CPU: 192 cores
-- The CXX compiler identification is GNU 4.8.5
-- The C compiler identification is GNU 4.8.5

then series of errors occurs such as:

CMake Error at /usr/share/cmake-3.13/Modules/ExternalProject.cmake:1949 (file):
  Error evaluating generator expression:

    $<FILTER:,EXCLUDE,/Zc:inline>

  Expression did not evaluate to a known generator expression

Call Stack (most recent call first):

  /usr/share/cmake-3.13/Modules/ExternalProject.cmake:2111 (_ep_write_log_script)
  /usr/share/cmake-3.13/Modules/ExternalProject.cmake:2885 (ExternalProject_Add_Step)
  /usr/share/cmake-3.13/Modules/ExternalProject.cmake:3108 (_ep_add_configure_command)
  cmake/external/warpctc.cmake:40 (ExternalProject_Add)
  cmake/third_party.cmake:206 (include)
  CMakeLists.txt:274 (include)

CMake Error at /usr/share/cmake-3.13/Modules/ExternalProject.cmake:1949 (file):
  Error evaluating generator expression:

    $<FILTER:,EXCLUDE,/Zc:inline>

  Expression did not evaluate to a known generator expression

Call Stack (most recent call first):
  /usr/share/cmake-3.13/Modules/ExternalProject.cmake:2111 (_ep_write_log_script)
  /usr/share/cmake-3.13/Modules/ExternalProject.cmake:2885 (ExternalProject_Add_Step)
  /usr/share/cmake-3.13/Modules/ExternalProject.cmake:3108 (_ep_add_configure_command)
  cmake/external/warpctc.cmake:40 (ExternalProject_Add)
  cmake/third_party.cmake:206 (include)
  CMakeLists.txt:274 (include)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions