[Dune] Installing Dune

Tatiana Kim tatianaakim at gmail.com
Thu Jul 31 17:14:15 CEST 2014


Dear all,

We are trying to install DUNE pdelab on a mac (OSX 10.9 Mavericks) using the clang compiler (version 5.1, clang-503.0.40). There is no problem with building the standard DUNE modules (common, grid, geometry, istl, local functions), but when building type tree it crashes with the error message below (config.log also attached).
shared_ptr seems to be missing in the standard namespace. Not sure if this helps, but the attached c code only compiles with clang++ if the ‘#include <memory>’ is uncommented. 

Has anyone ever encountered this problem before? Is there a problem with clang’s C++11 compatibility and is it worth trying gcc instead?

Thanks a lot,

Tatiana and Eike




Making all in typetree
/bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../..  -I/Users/tatianakim/DUNE/Library/dune-common-2.3.1 -I/Users/tatianakim/DUNE/Library/dune-common-2.3.1 -I../..   -g -O2 -Wall -MT utility.lo -MD -MP -MF .deps/utility.Tpo -c -o utility.lo utility.cc
libtool: compile:  g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../.. -I/Users/tatianakim/DUNE/Library/dune-common-2.3.1 -I/Users/tatianakim/DUNE/Library/dune-common-2.3.1 -I../.. -g -O2 -Wall -MT utility.lo -MD -MP -MF .deps/utility.Tpo -c utility.cc -o utility.o
In file included from utility.cc:3:
In file included from ../../dune/typetree/utility.hh:7:
/Users/tatianakim/DUNE/Library/dune-common-2.3.1/dune/common/shared_ptr.hh:29:33: error: 
      no member named 'shared_ptr' in namespace 'std'
  using SHARED_PTR_NAMESPACE :: shared_ptr;
        ~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/tatianakim/DUNE/Library/dune-common-2.3.1/dune/common/shared_ptr.hh:382:33: error: 
      no member named 'make_shared' in namespace 'std'; did you mean
      'make_signed'?
  using SHARED_PTR_NAMESPACE :: make_shared;
        ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~
                                make_signed
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/type_traits:1308:30: note: 
      'make_signed' declared here
struct _LIBCPP_TYPE_VIS_ONLY make_signed
                             ^
In file included from utility.cc:3:
In file included from ../../dune/typetree/utility.hh:7:
/Users/tatianakim/DUNE/Library/dune-common-2.3.1/dune/common/shared_ptr.hh:502:10: error: 
      unknown type name 'shared_ptr'
  inline shared_ptr<T> stackobject_to_shared_ptr(T & t)
         ^
/Users/tatianakim/DUNE/Library/dune-common-2.3.1/dune/common/shared_ptr.hh:502:20: error: 
      expected unqualified-id
  inline shared_ptr<T> stackobject_to_shared_ptr(T & t)
                   ^
In file included from utility.cc:3:
../../dune/typetree/utility.hh:22:5: error: no template named 'shared_ptr'; did
      you mean 'std::shared_ptr'?
    shared_ptr<T> convert_arg(const T& t)
    ^~~~~~~~~~
    std::shared_ptr
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:3750:29: note: 
      'std::shared_ptr' declared here
class _LIBCPP_TYPE_VIS_ONLY shared_ptr
                            ^
In file included from utility.cc:3:
../../dune/typetree/utility.hh:24:14: error: no template named 'make_shared';
      did you mean 'std::make_shared'?
      return make_shared<T>(t);
             ^~~~~~~~~~~
             std::make_shared
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:4628:1: note: 
      'std::make_shared' declared here
make_shared(_Args&& ...__args)
^
In file included from utility.cc:3:
../../dune/typetree/utility.hh:24:14: error: no template named 'make_shared';
      did you mean 'std::make_shared'?
      return make_shared<T>(t);
             ^~~~~~~~~~~
             std::make_shared
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:4628:1: note: 
      'std::make_shared' declared here
make_shared(_Args&& ...__args)
^
In file included from utility.cc:3:
../../dune/typetree/utility.hh:28:5: error: no template named 'shared_ptr'; did
      you mean 'std::shared_ptr'?
    shared_ptr<T> convert_arg(T& t)
    ^~~~~~~~~~
    std::shared_ptr
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:3750:29: note: 
      'std::shared_ptr' declared here
class _LIBCPP_TYPE_VIS_ONLY shared_ptr
                            ^
In file included from utility.cc:3:
../../dune/typetree/utility.hh:53:60: error: no template named 'shared_ptr'; did
      you mean 'std::shared_ptr'?
    typename enable_if<!std::is_lvalue_reference<T>::value,shared_ptr<T> >::...
                                                           ^~~~~~~~~~
                                                           std::shared_ptr
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:3750:29: note: 
      'std::shared_ptr' declared here
class _LIBCPP_TYPE_VIS_ONLY shared_ptr
                            ^
In file included from utility.cc:3:
../../dune/typetree/utility.hh:55:14: error: no template named 'make_shared';
      did you mean 'std::make_shared'?
      return make_shared<T>(std::forward<T>(t));
             ^~~~~~~~~~~
             std::make_shared
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:4628:1: note: 
      'std::make_shared' declared here
make_shared(_Args&& ...__args)
^
In file included from utility.cc:3:
../../dune/typetree/utility.hh:55:14: error: no template named 'make_shared';
      did you mean 'std::make_shared'?
      return make_shared<T>(std::forward<T>(t));
             ^~~~~~~~~~~
             std::make_shared
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:4628:1: note: 
      'std::make_shared' declared here
make_shared(_Args&& ...__args)
^
In file included from utility.cc:3:
../../dune/typetree/utility.hh:63:11: error: no template named 'shared_ptr'; did
      you mean 'std::shared_ptr'?
    const shared_ptr<EmptyNode>& emptyNodePtr();
          ^~~~~~~~~~
          std::shared_ptr
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:3750:29: note: 
      'std::shared_ptr' declared here
class _LIBCPP_TYPE_VIS_ONLY shared_ptr
                            ^
utility.cc:9:20: error: no template named 'shared_ptr'; did you mean
      'std::shared_ptr'?
      static const shared_ptr<EmptyNode> _emptyNodePtr(make_shared<Empty...
                   ^~~~~~~~~~
                   std::shared_ptr
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:3750:29: note: 
      'std::shared_ptr' declared here
class _LIBCPP_TYPE_VIS_ONLY shared_ptr
                            ^
utility.cc:9:56: error: no template named 'make_shared'; did you mean
      'std::make_shared'?
      static const shared_ptr<EmptyNode> _emptyNodePtr(make_shared<EmptyNode>());
                                                       ^~~~~~~~~~~
                                                       std::make_shared
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:4628:1: note: 
      'std::make_shared' declared here
make_shared(_Args&& ...__args)
^
utility.cc:9:56: error: no template named 'make_shared'; did you mean
      'std::make_shared'?
      static const shared_ptr<EmptyNode> _emptyNodePtr(make_shared<EmptyNode>());
                                                       ^~~~~~~~~~~
                                                       std::make_shared
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:4628:1: note: 
      'std::make_shared' declared here
make_shared(_Args&& ...__args)
^
utility.cc:12:11: error: no template named 'shared_ptr'; did you mean
      'std::shared_ptr'?
    const shared_ptr<EmptyNode>& emptyNodePtr()
          ^~~~~~~~~~
          std::shared_ptr
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/memory:4019:61: note: 
      'std::shared_ptr' declared here
    template <class _Up> friend class _LIBCPP_TYPE_VIS_ONLY shared_ptr;
                                                            ^
16 errors generated.
make[3]: *** [utility.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
--- Failed to build dune-typetree ---
Terminating dunecontrol due to previous errors!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20140731/57e2ba5e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: application/octet-stream
Size: 127852 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20140731/57e2ba5e/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20140731/57e2ba5e/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cc
Type: application/octet-stream
Size: 146 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20140731/57e2ba5e/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20140731/57e2ba5e/attachment-0002.htm>


More information about the Dune mailing list