【MindSpore】编译faltbuffers子模块时,找不到CMAKE_CXX_COMPILER

MindSpore master 分支,commit 15619e1843f8418f7cb699233614896bd1144ded,编译faltbuffers子模块时,找不到CMAKE_CXX_COMPILER

【操作步骤&问题现象】

  1. bash build.sh

【截图信息】

found /home/guoruiming/workspace/mindspore/build/mindspore/.mslib/libevent_2.1.12_80c889d3241ffad0c67b8a163e41478f/lib/libevent_openssl.so
Could not find 'Python 3.8' or 'Python 3.7' or 'Python 3.9'
go to link flatbuffers
pkg name:flatbuffers,flatbuffers
flatbuffers config hash: 36976bea3c99c6316f13dfe096bdf9b4
_FIND:/home/guoruiming/workspace/mindspore/build/mindspore/.mslib/flatbuffers_2.0.0_36976bea3c99c6316f13dfe096bdf9b4
download:  , flatbuffers , https://gitee.com/mirrors/flatbuffers/repository/archive/v2.0.0.tar.gz
-- Populating flatbuffers
-- Configuring done
-- Generating done
-- Build files have been written to: /home/guoruiming/workspace/mindspore/build/mindspore/_deps/flatbuffers-subbuild
[ 11%] Creating directories for 'flatbuffers-populate'
[ 22%] Performing download step (download, verify and extract) for 'flatbuffers-populate'
-- Downloading...
   dst='/home/guoruiming/workspace/mindspore/build/mindspore/_deps/flatbuffers-subbuild/flatbuffers-populate-prefix/src/v2.0.0.tar.gz'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://gitee.com/mirrors/flatbuffers/repository/archive/v2.0.0.tar.gz'
-- verifying file...
       file='/home/guoruiming/workspace/mindspore/build/mindspore/_deps/flatbuffers-subbuild/flatbuffers-populate-prefix/src/v2.0.0.tar.gz'
-- Downloading... done
-- extracting...
     src='/home/guoruiming/workspace/mindspore/build/mindspore/_deps/flatbuffers-subbuild/flatbuffers-populate-prefix/src/v2.0.0.tar.gz'
     dst='/home/guoruiming/workspace/mindspore/build/mindspore/_deps/flatbuffers-src'
-- extracting... [tar xfz]
-- extracting... [**ysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 33%] No update step for 'flatbuffers-populate'
[ 44%] No patch step for 'flatbuffers-populate'
[ 55%] No configure step for 'flatbuffers-populate'
[ 66%] No build step for 'flatbuffers-populate'
[ 77%] No install step for 'flatbuffers-populate'
[ 88%] No test step for 'flatbuffers-populate'
[100%] Completed 'flatbuffers-populate'
[100%] Built target flatbuffers-populate
flatbuffers_SOURCE_DIR : /home/guoruiming/workspace/mindspore/build/mindspore/_deps/flatbuffers-src
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:6 (project):
  No CMAKE_C_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:6 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "/home/guoruiming/workspace/mindspore/build/mindspore/_deps/flatbuffers-src/_build/CMakeFiles/CMakeOutput.log".
See also "/home/guoruiming/workspace/mindspore/build/mindspore/_deps/flatbuffers-src/_build/CMakeFiles/CMakeError.log".
CMake Error at cmake/utils.cmake:179 (message):
  error! when
  /home/guoruiming/.local/lib/python3.6/site-packages/cmake/data/bin/cmake;-DCMAKE_C_COMPILER=;-DCMAKE_CXX_COMPILER=;-DFLATBUFFERS_BUILD_TESTS=OFF;-DCMAKE_INSTALL_LIBDIR=lib;-DCMAKE_BUILD_TYPE=Release;-G;Unix
  Makefiles;-DCMAKE_C_FLAGS=-fPIC -fPIE -D_FORTIFY_SOURCE=2 -O2
  -fstack-protector-strong;-DCMAKE_CXX_FLAGS=-fPIC -fPIE -D_FORTIFY_SOURCE=2
  -O2
  -fstack-protector-strong;-DCMAKE_INSTALL_PREFIX=/home/guoruiming/workspace/mindspore/build/mindspore/.mslib/flatbuffers_2.0.0_36976bea3c99c6316f13dfe096bdf9b4;/home/guoruiming/workspace/mindspore/build/mindspore/_deps/flatbuffers-src/
  in
  /home/guoruiming/workspace/mindspore/build/mindspore/_deps/flatbuffers-src/_build
Call Stack (most recent call first):
  cmake/utils.cmake:369 (__exec_cmd)
  cmake/external_libs/flatbuffers.cmake:34 (mindspore_add_pkg)
  cmake/mind_expression.cmake:34 (include)
  CMakeLists.txt:59 (include)


-- Configuring incomplete, errors occurred!
See also "/home/guoruiming/workspace/mindspore/build/mindspore/CMakeFiles/CMakeOutput.log".
See also "/home/guoruiming/workspace/mindspore/build/mindspore/CMakeFiles/CMakeError.log".

问题已经在MindSpore issue页面回答,请参考

https://e.gitee.com/mind_spore/issues/list?issue=I4ODSV

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值