Project

General

Profile

Actions

Bug #2125

closed

Build error with Apple clang 6.0

Added by Michael Sweatt about 10 years ago. Updated almost 10 years ago.

Status:
Rejected
Priority:
Normal
Category:
Build
Target version:
Start date:
11/03/2014
Due date:
% Done:

0%

Estimated time:

Description

On OSX Mavericks with:

>>> clang -v
Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix

The following build errors:

    ../daemon/face/ndnlp-partial-message-store.cpp:70:18: error: no viable conversion from 'typename enable_if<!is_array<Buffer>::value, shared_ptr<Buffer> >::type' (aka 'std::__1::shared_ptr<ndn::Buffer>') to 'ndn::BufferPtr' (aka 'shared_ptr<ndn::Buffer>')
      ndn::BufferPtr buffer = make_shared<ndn::Buffer>(m_totalLength);
                     ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /opt/local/include/boost/smart_ptr/shared_ptr.hpp:340:5: note: candidate constructor not viable: no known conversion from 'typename enable_if<!is_array<Buffer>::value, shared_ptr<Buffer> >::type' (aka 'std::__1::shared_ptr<ndn::Buffer>') to 'boost::detail::sp_nullptr_t' (aka 'nullptr_t') for 1st argument
        shared_ptr( boost::detail::sp_nullptr_t ) BOOST_NOEXCEPT : px( 0 ), pn() // never throws
        ^
    /opt/local/include/boost/smart_ptr/shared_ptr.hpp:392:5: note: candidate constructor not viable: no known conversion from 'typename enable_if<!is_array<Buffer>::value, shared_ptr<Buffer> >::type' (aka 'std::__1::shared_ptr<ndn::Buffer>') to 'const boost::shared_ptr<ndn::Buffer> &' for 1st argument
        shared_ptr( shared_ptr const & r ) BOOST_NOEXCEPT : px( r.px ), pn( r.pn )
        ^
    /opt/local/include/boost/smart_ptr/shared_ptr.hpp:563:5: note: candidate constructor not viable: no known conversion from 'typename enable_if<!is_array<Buffer>::value, shared_ptr<Buffer> >::type' (aka 'std::__1::shared_ptr<ndn::Buffer>') to 'boost::shared_ptr<ndn::Buffer> &&' for 1st argument
        shared_ptr( shared_ptr && r ) BOOST_NOEXCEPT : px( r.px ), pn()
        ^
    /opt/local/include/boost/smart_ptr/shared_ptr.hpp:420:5: note: candidate template ignored: could not match 'boost::shared_ptr' against 'std::__1::shared_ptr'
        shared_ptr( shared_ptr<Y> const & r, typename boost::detail::sp_enable_if_convertible<Y,T>::type = boost::detail::sp_empty() )
        ^
    /opt/local/include/boost/smart_ptr/shared_ptr.hpp:454:5: note: candidate template ignored: could not match 'auto_ptr' against 'shared_ptr'
        shared_ptr( std::auto_ptr<Y> && r ): px(r.get()), pn()
        ^
    /opt/local/include/boost/smart_ptr/shared_ptr.hpp:486:5: note: candidate template ignored: could not match 'unique_ptr' against 'shared_ptr'
        shared_ptr( std::unique_ptr< Y, D > && r ): px( r.get() ), pn()
        ^
    /opt/local/include/boost/smart_ptr/shared_ptr.hpp:572:5: note: candidate template ignored: could not match 'boost::shared_ptr' against 'std::__1::shared_ptr'
        shared_ptr( shared_ptr<Y> && r, typename boost::detail::sp_enable_if_convertible<Y,T>::type = boost::detail::sp_empty() )
        ^
    1 error generated.

    Build failed
     -> task in 'daemon-objects' failed (exit status 1): 
        {task 4451962320: cxx ndnlp-partial-message-store.cpp -> ndnlp-partial-message-store.cpp.3.o}
    ['/usr/bin/clang++', '-std=c++0x', '-std=c++11', '-stdlib=libc++', '-pedantic', '-Wall', '-O2', '-g', '-fPIC', '-include', '/Users/admin/NDN/NFD/build/core-objects.2', '-I/Users/admin/NDN/NFD/build/daemon', '-I/Users/admin/NDN/NFD/daemon', '-I/Users/admin/NDN/NFD/build', '-I/Users/admin/NDN/NFD', '-I/Users/admin/NDN/NFD/build/core', '-I/Users/admin/NDN/NFD/core', '-I/opt/local/include', '-I/usr/local/include', '-I/Users/admin/NDN/NFD/websocketpp', '-DHAVE_NDN_CXX=1', '../daemon/face/ndnlp-partial-message-store.cpp', '-c', '-o', '/Users/admin/NDN/NFD/build/daemon/face/ndnlp-partial-message-store.cpp.3.o']
Actions

Also available in: Atom PDF