Boost C++ Libraries: Ticket #7670: Failed to compile boost 1.48.0 using Xcode 4.5.2 https://svn.boost.org/trac10/ticket/7670 <p> I was trying to build boost 1.48.0 using xcode 4.5.2(LLVM 4.1) on Mac OS X 10.7.5 but got some compilation issues, I was building boost with c++11 and libc++ support </p> <p> Command: ./bjam toolset=clang debug-symbols=on cxxflags="-std=c++11 -stdlib=libc++ -arch x86_64 -fvisibility=hidden" linkflags="-stdlib=libc++ -arch x86_64" variant=debug link=static,shared threading=multi --layout=versioned --build-dir=./universal --stagedir=./boost_stage_universal/debug stage --with-filesystem </p> <p> Build Log: </p> <p> Component configuration: </p> <ul><li>chrono : not building </li><li>date_time : not building </li><li>exception : not building </li><li>filesystem : building </li><li>graph : not building </li><li>graph_parallel : not building </li><li>iostreams : not building </li><li>locale : not building </li><li>math : not building </li><li>mpi : not building </li><li>program_options : not building </li><li>python : not building </li><li>random : not building </li><li>regex : not building </li><li>serialization : not building </li><li>signals : not building </li><li>system : not building </li><li>test : not building </li><li>thread : not building </li><li>timer : not building </li><li>wave : not building </li></ul><p> ...patience... ...found 524 targets... ...updating 34 targets... clang-darwin.compile.c++ universal/boost/bin.v2/libs/system/build/clang-darwin-4.2.1/debug/link-static/threading-multi/error_code.o In file included from libs/system/src/error_code.cpp:18: In file included from ./boost/system/config.hpp:13: In file included from ./boost/config.hpp:40: In file included from ./boost/config/select_stdlib_config.hpp:37: In file included from ./boost/config/no_tr1/utility.hpp:21: In file included from /usr/bin/../lib/c++/v1/utility:125: In file included from /usr/bin/../lib/c++/v1/<span class="underline">tuple:16: /usr/bin/../lib/c++/v1/type_traits:737:2: error: #error is_base_of not implemented. #error is_base_of not implemented. </span></p> <blockquote> <p> <sup> </sup></p> </blockquote> <p> /usr/bin/../lib/c++/v1/type_traits:1700:13: error: use of undeclared identifier 'is_base_of' </p> <blockquote> <p> is_base_of&lt;_Class, typename remove_reference&lt;_Tp&gt;::type&gt;::value&gt; <sup> </sup></p> </blockquote> <p> /usr/bin/../lib/c++/v1/type_traits:1700:24: error: '_Class' does not refer to a value </p> <blockquote> <p> is_base_of&lt;_Class, typename remove_reference&lt;_Tp&gt;::type&gt;::value&gt; </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> /usr/bin/../lib/c++/v1/type_traits:1697:28: note: declared here template &lt;class _Rp, class _Class, class _Tp&gt; </p> <blockquote> <p> <sup> </sup></p> </blockquote> <p> /usr/bin/../lib/c++/v1/type_traits:1700:62: error: expected class name </p> <blockquote> <p> is_base_of&lt;_Class, typename remove_reference&lt;_Tp&gt;::type&gt;::value&gt; </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> In file included from libs/system/src/error_code.cpp:19: In file included from ./boost/system/error_code.hpp:16: In file included from ./boost/assert.hpp:82: In file included from /usr/bin/../lib/c++/v1/iostream:38: In file included from /usr/bin/../lib/c++/v1/ios:216: In file included from /usr/bin/../lib/c++/v1/<span class="underline">locale:15: In file included from /usr/bin/../lib/c++/v1/string:434: In file included from /usr/bin/../lib/c++/v1/algorithm:594: In file included from /usr/bin/../lib/c++/v1/memory:590: In file included from /usr/bin/../lib/c++/v1/typeinfo:61: /usr/bin/../lib/c++/v1/exception:194:20: error: use of undeclared identifier 'is_base_of' </span></p> <blockquote> <p> !is_base_of&lt;nested_exception, typename remove_reference&lt;_Tp&gt;::type&gt;::value </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> /usr/bin/../lib/c++/v1/exception:194:31: error: 'nested_exception' does not refer to a value </p> <blockquote> <p> !is_base_of&lt;nested_exception, typename remove_reference&lt;_Tp&gt;::type&gt;::value </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> /usr/bin/../lib/c++/v1/exception:166:29: note: declared here class _LIBCPP_EXCEPTION_ABI nested_exception </p> <blockquote> <p> <sup> </sup></p> </blockquote> <p> /usr/bin/../lib/c++/v1/exception:194:81: error: parameter declarator cannot be qualified </p> <blockquote> <p> !is_base_of&lt;nested_exception, typename remove_reference&lt;_Tp&gt;::type&gt;::value </p> <blockquote> <p> <del><sup> </sup></del></p> </blockquote> </blockquote> <p> /usr/bin/../lib/c++/v1/exception:194:85: error: expected ')' </p> <blockquote> <p> !is_base_of&lt;nested_exception, typename remove_reference&lt;_Tp&gt;::type&gt;::value </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> /usr/bin/../lib/c++/v1/exception:192:18: note: to match this '(' throw_with_nested(_Tp&amp;&amp; <span class="underline">t, typename enable_if&lt; </span></p> <blockquote> <p> <sup> </sup></p> </blockquote> <p> /usr/bin/../lib/c++/v1/exception:213:19: error: use of undeclared identifier 'is_base_of' </p> <blockquote> <p> is_base_of&lt;nested_exception, typename remove_reference&lt;_Tp&gt;::type&gt;::value <sup> </sup></p> </blockquote> <p> /usr/bin/../lib/c++/v1/exception:213:30: error: 'nested_exception' does not refer to a value </p> <blockquote> <p> is_base_of&lt;nested_exception, typename remove_reference&lt;_Tp&gt;::type&gt;::value </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> /usr/bin/../lib/c++/v1/exception:166:29: note: declared here class _LIBCPP_EXCEPTION_ABI nested_exception </p> <blockquote> <p> <sup> </sup></p> </blockquote> <p> /usr/bin/../lib/c++/v1/exception:213:80: error: parameter declarator cannot be qualified </p> <blockquote> <p> is_base_of&lt;nested_exception, typename remove_reference&lt;_Tp&gt;::type&gt;::value </p> <blockquote> <p> <del><sup> </sup></del></p> </blockquote> </blockquote> <p> /usr/bin/../lib/c++/v1/exception:213:84: error: expected ')' </p> <blockquote> <p> is_base_of&lt;nested_exception, typename remove_reference&lt;_Tp&gt;::type&gt;::value </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> /usr/bin/../lib/c++/v1/exception:211:18: note: to match this '(' throw_with_nested(_Tp&amp;&amp; <span class="underline">t, typename enable_if&lt; </span></p> <blockquote> <p> <sup> </sup></p> </blockquote> <p> In file included from libs/system/src/error_code.cpp:19: In file included from ./boost/system/error_code.hpp:16: In file included from ./boost/assert.hpp:82: In file included from /usr/bin/../lib/c++/v1/iostream:38: In file included from /usr/bin/../lib/c++/v1/ios:216: In file included from /usr/bin/../lib/c++/v1/<span class="underline">locale:18: In file included from /usr/bin/../lib/c++/v1/mutex:176: In file included from /usr/bin/../lib/c++/v1/</span>mutex_base:16: /usr/bin/../lib/c++/v1/system_error:247:1: error: C++ requires a type specifier for all declarations _LIBCPP_DECLARE_STRONG_ENUM(errc) <sup><del></del><del></del><del></del><del></del><del></del><del></del><del> /usr/bin/../lib/c++/v1/system_error:247:29: error: use of undeclared identifier 'errc' _LIBCPP_DECLARE_STRONG_ENUM(errc) </del></sup></p> <blockquote> <p> <sup> </sup></p> </blockquote> <p> /usr/bin/../lib/c++/v1/system_error:247:34: error: expected ';' after top level declarator _LIBCPP_DECLARE_STRONG_ENUM(errc) </p> <blockquote> <p> <sup> ; </sup></p> </blockquote> <p> /usr/bin/../lib/c++/v1/system_error:344:1: error: C++ requires a type specifier for all declarations _LIBCPP_DECLARE_STRONG_ENUM_EPILOG(errc) <sup><del></del><del></del><del></del><del></del><del></del><del></del><del></del><del></del>~ /usr/bin/../lib/c++/v1/system_error:344:36: error: use of undeclared identifier 'errc' _LIBCPP_DECLARE_STRONG_ENUM_EPILOG(errc) </sup></p> <blockquote> <p> <sup> </sup></p> </blockquote> <p> /usr/bin/../lib/c++/v1/system_error:344:41: error: expected ';' after top level declarator _LIBCPP_DECLARE_STRONG_ENUM_EPILOG(errc) </p> <blockquote> <p> <sup> ; </sup></p> </blockquote> <p> /usr/bin/../lib/c++/v1/system_error:457:1: error: 'inline' can only appear on functions inline _LIBCPP_INLINE_VISIBILITY <sup> fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. </sup></p> <blockquote> <p> "clang++" -x c++ -O0 -g -std=c++11 -stdlib=libc++ -arch x86_64 -fvisibility=hidden -O0 -fno-inline -Wall -g -DBOOST_ALL_NO_LIB=1 -DBOOST_SYSTEM_STATIC_LINK=1 -I"." -c -o "universal/boost/bin.v2/libs/system/build/clang-darwin-4.2.1/debug/link-static/threading-multi/error_code.o" "libs/system/src/error_code.cpp" </p> </blockquote> <p> ...failed clang-darwin.compile.c++ universal/boost/bin.v2/libs/system/build/clang-darwin-4.2.1/debug/link-static/threading-multi/error_code.o... ...skipped &lt;puniversal/boost/bin.v2/libs/system/build/clang-darwin-4.2.1/debug/link-static/threading-multi&gt;libboost_system-clang-darwin42-mt-d-1_48.a(clean) for lack of &lt;puniversal/boost/bin.v2/libs/system/build/clang-darwin-4.2.1/debug/link-static/threading-multi&gt;error_code.o... ...skipped &lt;puniversal/boost/bin.v2/libs/system/build/clang-darwin-4.2.1/debug/link-static/threading-multi&gt;libboost_system-clang-darwin42-mt-d-1_48.a for lack of &lt;puniversal/boost/bin.v2/libs/system/build/clang-darwin-4.2.1/debug/link-static/threading-multi&gt;error_code.o... ...skipped &lt;pboost_stage_universal/debug/lib&gt;libboost_system-clang-darwin42-mt-d-1_48.a for lack of &lt;puniversal/boost/bin.v2/libs/system/build/clang-darwin-4.2.1/debug/link-static/threading-multi&gt;libboost_system-clang-darwin42-mt-d-1_48.a... clang-darwin.compile.c++ universal/boost/bin.v2/libs/filesystem/build/clang-darwin-4.2.1/debug/link-static/threading-multi/v2/src/v2_operations.o In file included from libs/filesystem/v2/src/v2_operations.cpp:45: In file included from ./boost/filesystem/v2/operations.hpp:17: In file included from ./boost/filesystem/v2/config.hpp:30: In file included from ./boost/config.hpp:40: In file included from ./boost/config/select_stdlib_config.hpp:37: In file included from ./boost/config/no_tr1/utility.hpp:21: In file included from /usr/bin/../lib/c++/v1/utility:125: In file included from /usr/bin/../lib/c++/v1/<span class="underline">tuple:16: /usr/bin/../lib/c++/v1/type_traits:737:2: error: #error is_base_of not implemented. #error is_base_of not implemented. </span></p> <blockquote> <p> <sup> </sup></p> </blockquote> <p> /usr/bin/../lib/c++/v1/type_traits:1700:13: error: use of undeclared identifier 'is_base_of' </p> <blockquote> <p> is_base_of&lt;_Class, typename remove_reference&lt;_Tp&gt;::type&gt;::value&gt; <sup> </sup></p> </blockquote> <p> /usr/bin/../lib/c++/v1/type_traits:1700:24: error: '_Class' does not refer to a value </p> <blockquote> <p> is_base_of&lt;_Class, typename remove_reference&lt;_Tp&gt;::type&gt;::value&gt; </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> /usr/bin/../lib/c++/v1/type_traits:1697:28: note: declared here template &lt;class _Rp, class _Class, class _Tp&gt; </p> <blockquote> <p> <sup> </sup></p> </blockquote> <p> /usr/bin/../lib/c++/v1/type_traits:1700:62: error: expected class name </p> <blockquote> <p> is_base_of&lt;_Class, typename remove_reference&lt;_Tp&gt;::type&gt;::value&gt; </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> In file included from libs/filesystem/v2/src/v2_operations.cpp:45: In file included from ./boost/filesystem/v2/operations.hpp:18: In file included from ./boost/filesystem/v2/path.hpp:21: In file included from ./boost/system/system_error.hpp:11: In file included from /usr/bin/../lib/c++/v1/string:434: In file included from /usr/bin/../lib/c++/v1/algorithm:594: In file included from /usr/bin/../lib/c++/v1/memory:590: In file included from /usr/bin/../lib/c++/v1/typeinfo:61: /usr/bin/../lib/c++/v1/exception:194:20: error: use of undeclared identifier 'is_base_of' </p> <blockquote> <p> !is_base_of&lt;nested_exception, typename remove_reference&lt;_Tp&gt;::type&gt;::value </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> /usr/bin/../lib/c++/v1/exception:194:31: error: 'nested_exception' does not refer to a value </p> <blockquote> <p> !is_base_of&lt;nested_exception, typename remove_reference&lt;_Tp&gt;::type&gt;::value </p> </blockquote> <p> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7670 Trac 1.4.3 viboes Sat, 12 Oct 2013 13:20:21 GMT <link>https://svn.boost.org/trac10/ticket/7670#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7670#comment:1</guid> <description> <p> Please, associate the ticket the the failing library. I suspect that your installation is not correct. </p> </description> <category>Ticket</category> </item> </channel> </rss>