【问题标题】:Using boost: __func_Grm00gZzHB Function invoked with incorrect arguments使用 boost: __func_Grm00gZzHB 使用不正确的参数调用函数
【发布时间】:2015-07-04 19:53:58
【问题描述】:

我在将 boost 与 biicode 一起使用时遇到问题。我有一个主要的简单项目。该项目使用boost。为了获得 biicode 的提升,我使用了以下 cmake 文件:

include(biicode/boost/setup)
ADD_BII_TARGETS()

bii_find_boost(COMPONENTS unit_test_framework REQUIRED)

target_include_directories(${BII_BLOCK_TARGET} INTERFACE     ${Boost_INCLUDE_DIRS})
target_link_libraries(${BII_BLOCK_TARGET} INTERFACE ${Boost_LIBRARIES})

如果我现在调用“bii configure”,则会下载并提取 boost(我检查了 .biicode/boost 文件夹)。尽管如此,我还是遇到了一些奇怪的错误(可以找到跟踪版本here)并且配置过程失败:

$ bii configure --verbose
DEBUG: Everything up to date

DEBUG: No valid files found in d:\C++\Workspace\testx\blocks
INFO: Processing changes...
Running: "cmake"  -G "Visual Studio 12" -Wno-dev  ..\cmake

                BLOCK: user/testx
-----------------------------------------------------------
CMake Error at C:/Users/Tobi/AppData/Local/Temp/file_make_temporary_m6QEuq5c7B.tmp:1 (__func_1111111111):
  __func_1111111111 Function invoked with incorrect arguments for function
  named: __func_1111111111
Call Stack (most recent call first):
  C:/Users/Tobi/AppData/Local/Temp/file_make_temporary_m6QEuq5c7B.tmp:4 (include)
  ../deps/toeb/cmakepp/cmake/task/task_run_next.cmake:34 (eval)
  ../deps/toeb/cmakepp/cmake/task/task_run_next.cmake:42 (task_run_next)
  ../deps/toeb/cmakepp/cmake/task/task_run_all.cmake:6 (task_run_next)
  ../deps/toeb/cmakepp/cmakepp.cmake:110 (task_run_all)
  ../deps/boost/install/build_jobs.cmake:1 (include)
  ../deps/boost/install/install.cmake:2 (include)
  ../deps/biicode/boost/setup.cmake:1 (include)
  ../../CMakeLists.txt:1 (include)


CMake Error at C:/Users/Tobi/AppData/Local/Temp/file_make_temporary_m6QEuq5c7B.tmp:1 (__func_6oohAf7Azh):
  __func_6oohAf7Azh Function invoked with incorrect arguments for function
  named: __func_6oohAf7Azh
Call Stack (most recent call first):
  C:/Users/Tobi/AppData/Local/Temp/file_make_temporary_m6QEuq5c7B.tmp:4 (include)
  ../deps/toeb/cmakepp/cmake/task/task_run_next.cmake:34 (eval)
  ../deps/toeb/cmakepp/cmake/task/task_run_all.cmake:6 (task_run_next)
  ../deps/toeb/cmakepp/cmakepp.cmake:110 (task_run_all)
  ../deps/boost/install/build_jobs.cmake:1 (include)
  ../deps/boost/install/install.cmake:2 (include)
  ../deps/biicode/boost/setup.cmake:1 (include)
  ../../CMakeLists.txt:1 (include)


CMake Error at C:/Users/Tobi/AppData/Local/Temp/file_make_temporary_m6QEuq5c7B.tmp:1 (__func_F9SWokvms4):
  __func_F9SWokvms4 Function invoked with incorrect arguments for function
  named: __func_F9SWokvms4
Call Stack (most recent call first):
  C:/Users/Tobi/AppData/Local/Temp/file_make_temporary_m6QEuq5c7B.tmp:4 (include)
  ../deps/toeb/cmakepp/cmake/task/task_run_next.cmake:34 (eval)
  ../deps/toeb/cmakepp/cmake/task/task_run_all.cmake:6 (task_run_next)
  ../deps/toeb/cmakepp/cmakepp.cmake:110 (task_run_all)
  ../deps/boost/install/build_jobs.cmake:1 (include)
  ../deps/boost/install/install.cmake:2 (include)
  ../deps/biicode/boost/setup.cmake:1 (include)
  ../../CMakeLists.txt:1 (include)


CMake Error at C:/Users/Tobi/AppData/Local/Temp/file_make_temporary_m6QEuq5c7B.tmp:1 (__func_Grm00gZzHB):
  __func_Grm00gZzHB Function invoked with incorrect arguments for function
  named: __func_Grm00gZzHB
Call Stack (most recent call first):
  C:/Users/Tobi/AppData/Local/Temp/file_make_temporary_m6QEuq5c7B.tmp:4 (include)
  ../deps/toeb/cmakepp/cmake/task/task_run_next.cmake:34 (eval)
  ../deps/toeb/cmakepp/cmake/task/task_run_all.cmake:6 (task_run_next)
  ../deps/toeb/cmakepp/cmakepp.cmake:110 (task_run_all)
  ../deps/boost/install/build_jobs.cmake:1 (include)
  ../deps/boost/install/install.cmake:2 (include)
  ../deps/biicode/boost/setup.cmake:1 (include)
  ../../CMakeLists.txt:1 (include)


+ LIB: user_testx
+ EXE: user_testx___main
-- No linking type specified. Assuming static linking
-- Setting up biicode Boost configuration...
-- Building Boost 1.57.0 components with toolset msvc-12.0...
Starting unit_test_framework library build job...
Building Boost components, please wait [                                         ]
Finished building unit_test_framework library
-- Boost version: 1.57.0
-- Boost version: 1.57.0
-- Found the following Boost libraries:
--   unit_test_framework
-- Configuring incomplete, errors occurred!
See also "D:/C++/Workspace/testx/bii/build/CMakeFiles/CMakeOutput.log".
ERROR: CMake failed

【问题讨论】:

    标签: biicode


    【解决方案1】:

    好吧,我没弄清楚问题是什么,但我已经解决了^^。问题在于二进制符号 RS(ascii 中的 E1(十六进制))被放置在 https://github.com/toeb/cmakepp 的某些源文件中(一定是 cmake 问题,因为删除它们后它们在执行 cmake 后又出现了)。

    3.1.0-rc1版本更新cmake后问题消失->3.3.0-rc3

    【讨论】:

      猜你喜欢
      • 2021-11-29
      • 2020-06-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多