常见问题常见问题   搜索搜索   会员列表会员列表   团队团队   注册注册    个人资料个人资料   登录查看您的站内信件登录查看您的站内信件   登录登录 

编译ports中的emulators/tpm-emulator时cmake出错

 
发表新文章   回复文章    FreeBSD China -> 初学指南
阅读上一个主题 :: 阅读下一个主题  
作者 留言
Amankwah
半仙


注册时间: 2013-05-16
文章: 14
来自: 广州

文章发表于: Wed 2016-05-25 23:54:16    发表主题: 编译ports中的emulators/tpm-emulator时cmake出错 引用并回复

出错信息附后。
我并未使用cmake替代系统本身的make,是用portmaster升级ports的时候发现出错,再去直接make发现又出错的。重新从ports中安装了cmake和cmake-modules,依然是这个错误。但是有时候出错的环境变量名不尽相同,这时出现的是OSVERSION,但是DISPLAY_这样环境变量名的也出现过。用portmaster的时候一般出现的变量名是dep_of_d。试着用env指定变量,每次都会有个新的变量出错。
最初安装的是10.1-RELEASE,然后一路升级到现在的10.3-RELEASE的,基本系统安装在UFS2上,但是/usr、/tmp、/usr/ports和/usr/home是从zfs上另外挂过来的。
试了一下,目前好像就这个和devel/llvm有类似问题。感觉自己找不到原因了,Google过类似的描述和出错信息,无果,故来此求大神指导。 Exclamation Sad
代码:

/usr/ports/emulators/tpm-emulator % sudo make install clean
Password:
===>   tpm-emulator-0.7.4_1 depends on file: /usr/local/bin/cmake - found
===>   tpm-emulator-0.7.4_1 depends on shared library: libgmp.so - found (/usr/local/lib/libgmp.so)
===>  Configuring for tpm-emulator-0.7.4_1
===>  Performing out-of-source build
/bin/mkdir -p /usr/ports/emulators/tpm-emulator/work/.build
cmake: environment corrupt; missing value for OSVERSION
-- The C compiler identification is Clang 3.4.1
cmake: environment corrupt; missing value for OSVERSION
CMake Error at /usr/local/share/cmake/Modules/CMakeSystemSpecificInformation.cmake:36 (include):
  include called with wrong number of arguments.  include() only takes one
  file.
Call Stack (most recent call first):
  CMakeLists.txt:6 (project)


System is unknown to cmake, create:
Platform/sh: environment corrupt; missing value for dep_of_d
FreeBSD to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
Your CMakeCache.txt file was copied to CopyOfCMakeCache.txt. Please send that file to cmake@www.cmake.org.
CMake Error at /usr/local/share/cmake/Modules/CMakeCInformation.cmake:48 (include):
  include called with wrong number of arguments.  include() only takes one
  file.
Call Stack (most recent call first):
  CMakeLists.txt:6 (project)


CMake Error at /usr/local/share/cmake/Modules/CMakeCInformation.cmake:51 (include):
  include called with invalid argument: missing value for dep_of_d

  amd64
Call Stack (most recent call first):
  CMakeLists.txt:6 (project)


CMake Error at /usr/local/share/cmake/Modules/CMakeCInformation.cmake:58 (include):
  include called with wrong number of arguments.  include() only takes one
  file.
Call Stack (most recent call first):
  CMakeLists.txt:6 (project)


CMake Error at /usr/local/share/cmake/Modules/CMakeCInformation.cmake:62 (include):
  include called with wrong number of arguments.  include() only takes one
  file.
Call Stack (most recent call first):
  CMakeLists.txt:6 (project)


-- Check for working C compiler: /usr/bin/cc
CMake Error at /usr/local/share/cmake/Modules/CMakeSystemSpecificInformation.cmake:36 (include):
  include called with wrong number of arguments.  include() only takes one
  file.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


System is unknown to cmake, create:
Platform/sh: environment corrupt; missing value for dep_of_d
FreeBSD to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
CMake Error at /usr/local/share/cmake/Modules/CMakeCInformation.cmake:48 (include):
  include called with wrong number of arguments.  include() only takes one
  file.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


CMake Error at /usr/local/share/cmake/Modules/CMakeCInformation.cmake:51 (include):
  include called with invalid argument: missing value for dep_of_d

  amd64
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


CMake Error at /usr/local/share/cmake/Modules/CMakeCInformation.cmake:58 (include):
  include called with wrong number of arguments.  include() only takes one
  file.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


CMake Error at /usr/local/share/cmake/Modules/CMakeCInformation.cmake:62 (include):
  include called with wrong number of arguments.  include() only takes one
  file.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/local/share/cmake/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "/usr/bin/cc" is not able to compile a simple test program.

  It fails with the following output:

   

 

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:6 (project)


-- Configuring incomplete, errors occurred!
See also "/usr/ports/emulators/tpm-emulator/work/.build/CMakeFiles/CMakeOutput.log".
See also "/usr/ports/emulators/tpm-emulator/work/.build/CMakeFiles/CMakeError.log".
*** Error code 1

Stop.
make: stopped in /usr/ports/emulators/tpm-emulator

返回页首
阅览会员资料 发送站内信件 浏览发表者的主页
syh
老妖


注册时间: 2010-05-02
文章: 1617
来自: 卡拉赞

文章发表于: Thu 2016-07-14 18:13:26    发表主题: 引用并回复

代码:
System is unknown to cmake, create:
Platform/sh: environment corrupt; missing value for dep_of_d


cmake 表示不认识你的操作系统,无法针对你的平台做特定操作,所以无法继续构建。

_________________
又要毕业了。应该是最后一次。
-------------
audio/mous
ports-mgmt/pkg-rmleaf
Buffer Hint: http://www.vim.org/scripts/script.php?script_id=5272
返回页首
阅览会员资料 发送站内信件
从以前的文章开始显示:   
发表新文章   回复文章    FreeBSD China -> 初学指南 论坛时间为 北京时间
1页/共1

 
转跳到:  
不能发布新主题
不能在这个论坛回复主题
不能在这个论坛编辑自己的文章
不能在这个论坛删除自己的文章
不能在这个论坛发表投票


Powered by phpBB 2023cc © 2003 Opensource Steps; © 2003-2009 The FreeBSD Simplified Chinese Project
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Project Honey Pot and phpBB.cc
silvery-trainer
The FreeBSD China Project 网站: 中文计划网站 社区网站
The FreeBSD China Project 版权所有 (C) 1999 - 2003 网页设计版权 著作权和商标