我正在尝试使用python 3.6.3在带有clang的Ubuntu 14.04上编译boost python 1.64,不幸的是我遇到了以下问题,我不确定如何解决:
[19:15:25][Step 1/1] FAILED: /usr/bin/clang++-3.8 -I/personal/buildagent/.vulcan/cache/boost_1_64_0-src.tar.gz-1cefc822ef2559e881a448da2b3ed3c6940437c3/extracted/boost_1_64_0 -I/personal/buildagent/.vulcan/cache/python-3.6.3-linux.zip-4303aba31862d4407fc7116318a9d05a25b82a07/extracted/include -Wno-deprecated-declarations -Wno-tautological-undefined-compare -Wno-shorten-64-to-32 -stdlib=libc++ -fPIC -g -std=gnu++11 -MD -MT libraries/CMakeFiles/boost_python.dir/personal/buildagent/.vulcan/cache/boost_1_64_0-src.tar.gz-1cefc822ef2559e881a448da2b3ed3c6940437c3/extracted/boost_1_64_0/libs/python/src/converter/from_python.cpp.o -MF libraries/CMakeFiles/boost_python.dir/personal/buildagent/.vulcan/cache/boost_1_64_0-src.tar.gz-1cefc822ef2559e881a448da2b3ed3c6940437c3/extracted/boost_1_64_0/libs/python/src/converter/from_python.cpp.o.d -o libraries/CMakeFiles/boost_python.dir/personal/buildagent/.vulcan/cache/boost_1_64_0-src.tar.gz-1cefc822ef2559e881a448da2b3ed3c6940437c3/extracted/boost_1_64_0/libs/python/src/converter/from_python.cpp.o -c /personal/buildagent/.vulcan/cache/boost_1_64_0-src.tar.gz-1cefc822ef2559e881a448da2b3ed3c6940437c3/extracted/boost_1_64_0/libs/python/src/converter/from_python.cpp
[19:15:25][Step 1/1] In file included from /personal/buildagent/.vulcan/cache/boost_1_64_0-src.tar.gz-1cefc822ef2559e881a448da2b3ed3c6940437c3/extracted/boost_1_64_0/libs/python/src/converter/from_python.cpp:6:
[19:15:25][Step 1/1] In file included from /personal/buildagent/.vulcan/cache/boost_1_64_0-src.tar.gz-1cefc822ef2559e881a448da2b3ed3c6940437c3/extracted/boost_1_64_0/boost/python/converter/from_python.hpp:9:
[19:15:25][Step 1/1] /personal/buildagent/.vulcan/cache/boost_1_64_0-src.tar.gz-1cefc822ef2559e881a448da2b3ed3c6940437c3/extracted/boost_1_64_0/boost/python/converter/rvalue_from_python_data.hpp:99:76: error: expected '(' for function-style cast or type construction
[19:15:25][Step 1/1] BOOST_STATIC_ASSERT(BOOST_PYTHON_OFFSETOF(rvalue_from_python_storage<T>,stage1) == 0);
[19:15:25][Step 1/1] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
[19:15:25][Step 1/1] /personal/buildagent/.vulcan/cache/boost_1_64_0-src.tar.gz-1cefc822ef2559e881a448da2b3ed3c6940437c3/extracted/boost_1_64_0/boost/static_assert.hpp:70:55: note: expanded from macro 'BOOST_STATIC_ASSERT'
[19:15:25][Step 1/1] # define BOOST_STATIC_ASSERT( ... ) static_assert(__VA_ARGS__, #__VA_ARGS__)
[19:15:25][Step 1/1] ^~~~~~~~~~~
[19:15:25][Step 1/1] In file included from /personal/buildagent/.vulcan/cache/boost_1_64_0-src.tar.gz-1cefc822ef2559e881a448da2b3ed3c6940437c3/extracted/boost_1_64_0/libs/python/src/converter/from_python.cpp:6:
[19:15:25][Step 1/1] In file included from /personal/buildagent/.vulcan/cache/boost_1_64_0-src.tar.gz-1cefc822ef2559e881a448da2b3ed3c6940437c3/extracted/boost_1_64_0/boost/python/converter/from_python.hpp:9:
[19:15:25][Step 1/1] /personal/buildagent/.vulcan/cache/boost_1_64_0-src.tar.gz-1cefc822ef2559e881a448da2b3ed3c6940437c3/extracted/boost_1_64_0/boost/python/converter/rvalue_from_python_data.hpp:99:77: error: use of undeclared identifier 'stage1'
[19:15:25][Step 1/1] BOOST_STATIC_ASSERT(BOOST_PYTHON_OFFSETOF(rvalue_from_python_storage<T>,stage1) == 0);
有没有人见过这些静态断言失败并知道如何诊断它们?为了记录我在Mac OSX上运行类似的编译过程,它似乎运行良好。