OS-X 10.9, problem with tria_objects.cc and vector.cc

155 views
Skip to first unread message

Marco Tezzele

unread,
Oct 26, 2013, 2:57:42 PM10/26/13
to dea...@googlegroups.com
Dear all,

I upgraded to osx 10.9 and now I have problem reinstalling the deal.II.
Xcode, command line tools, and all the stuff controlled by macports are updated.
I did "svn up" in deal.II folder and then

mkdir build
cd build
cmake ../deal.II
make -j4

Here I have the errors printed below (I just copied and paste, sorry for the length).
How can I fix the problem? 


[ 68%] Building CXX object source/numerics/CMakeFiles/obj_numerics.debug.dir/data_out.cc.o

In file included from /usr/local/dealii_stuff/deal.II/source/grid/tria_objects.cc:17:

In file included from /usr/local/dealii_stuff/deal.II/include/deal.II/base/memory_consumption.h:21:

In file included from /usr/local/dealii_stuff/build/include/deal.II/base/config.h:510:

In file included from /usr/local/dealii_stuff/deal.II/include/deal.II/base/numbers.h:23:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:247:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/sstream:174:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ostream:130:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ios:216:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__locale:15:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:434:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/algorithm:1795:32: error: 

      cannot convert 'const dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<3>

      >::BoundaryOrMaterialId' to 'unsigned char' without a conversion operator

        _VSTD::memset(__first, (unsigned char)__value_, (size_t)(__n));

                               ^~~~~~~~~~~~~~~~~~~~~~~

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/algorithm:1804:11: note: in

      instantiation of function template specialization

      'std::__1::__fill_n<dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<3>

      >::BoundaryOrMaterialId *, unsigned long,

      dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<3> >::BoundaryOrMaterialId>'

      requested here

   return _VSTD::__fill_n(__first, __n, __value_, integral_constant<bool,

          ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__config:300:15: note: 

      expanded from macro '_VSTD'

#define _VSTD std::_LIBCPP_NAMESPACE

              ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:1732:17: note: in

      instantiation of function template specialization

      'std::__1::fill_n<dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<3>

      >::BoundaryOrMaterialId *, unsigned long,

      dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<3> >::BoundaryOrMaterialId>'

      requested here

                _VSTD::fill_n(__p, __n, *__xr);

                ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__config:300:15: note: 

      expanded from macro '_VSTD'

#define _VSTD std::_LIBCPP_NAMESPACE

              ^

/usr/local/dealii_stuff/deal.II/source/grid/tria_objects.cc:276:35: note: in instantiation of member function

      'std::__1::vector<dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<3>

      >::BoundaryOrMaterialId,

      std::__1::allocator<dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<3>

      >::BoundaryOrMaterialId> >::insert' requested here

          boundary_or_material_id.insert (boundary_or_material_id.end(),

                                  ^

In file included from /usr/local/dealii_stuff/deal.II/source/grid/tria_objects.cc:17:

In file included from /usr/local/dealii_stuff/deal.II/include/deal.II/base/memory_consumption.h:21:

In file included from /usr/local/dealii_stuff/build/include/deal.II/base/config.h:510:

In file included from /usr/local/dealii_stuff/deal.II/include/deal.II/base/numbers.h:23:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:247:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/sstream:174:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ostream:130:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ios:216:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__locale:15:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:434:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/algorithm:1795:32: error: 

      cannot convert 'const dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<1>

      >::BoundaryOrMaterialId' to 'unsigned char' without a conversion operator

        _VSTD::memset(__first, (unsigned char)__value_, (size_t)(__n));

                               ^~~~~~~~~~~~~~~~~~~~~~~

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/algorithm:1804:11: note: in

      instantiation of function template specialization

      'std::__1::__fill_n<dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<1>

      >::BoundaryOrMaterialId *, unsigned long,

      dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<1> >::BoundaryOrMaterialId>'

      requested here

   return _VSTD::__fill_n(__first, __n, __value_, integral_constant<bool,

          ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__config:300:15: note: 

      expanded from macro '_VSTD'

#define _VSTD std::_LIBCPP_NAMESPACE

              ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:1732:17: note: in

      instantiation of function template specialization

      'std::__1::fill_n<dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<1>

      >::BoundaryOrMaterialId *, unsigned long,

      dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<1> >::BoundaryOrMaterialId>'

      requested here

                _VSTD::fill_n(__p, __n, *__xr);

                ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__config:300:15: note: 

      expanded from macro '_VSTD'

#define _VSTD std::_LIBCPP_NAMESPACE

              ^

/usr/local/dealii_stuff/deal.II/source/grid/tria_objects.cc:196:35: note: in instantiation of member function

      'std::__1::vector<dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<1>

      >::BoundaryOrMaterialId,

      std::__1::allocator<dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<1>

      >::BoundaryOrMaterialId> >::insert' requested here

          boundary_or_material_id.insert (boundary_or_material_id.end(),

                                  ^

In file included from /usr/local/dealii_stuff/deal.II/source/grid/tria_objects.cc:17:

In file included from /usr/local/dealii_stuff/deal.II/include/deal.II/base/memory_consumption.h:21:

In file included from /usr/local/dealii_stuff/build/include/deal.II/base/config.h:510:

In file included from /usr/local/dealii_stuff/deal.II/include/deal.II/base/numbers.h:23:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:247:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/sstream:174:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ostream:130:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ios:216:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__locale:15:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:434:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/algorithm:1795:32: error: 

      cannot convert 'const dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<2>

      >::BoundaryOrMaterialId' to 'unsigned char' without a conversion operator

        _VSTD::memset(__first, (unsigned char)__value_, (size_t)(__n));

                               ^~~~~~~~~~~~~~~~~~~~~~~

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/algorithm:1804:11: note: in

      instantiation of function template specialization

      'std::__1::__fill_n<dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<2>

      >::BoundaryOrMaterialId *, unsigned long,

      dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<2> >::BoundaryOrMaterialId>'

      requested here

   return _VSTD::__fill_n(__first, __n, __value_, integral_constant<bool,

          ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__config:300:15: note: 

      expanded from macro '_VSTD'

#define _VSTD std::_LIBCPP_NAMESPACE

              ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:1732:17: note: in

      instantiation of function template specialization

      'std::__1::fill_n<dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<2>

      >::BoundaryOrMaterialId *, unsigned long,

      dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<2> >::BoundaryOrMaterialId>'

      requested here

                _VSTD::fill_n(__p, __n, *__xr);

                ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__config:300:15: note: 

      expanded from macro '_VSTD'

#define _VSTD std::_LIBCPP_NAMESPACE

              ^

/usr/local/dealii_stuff/deal.II/source/grid/tria_objects.cc:196:35: note: in instantiation of member function

      'std::__1::vector<dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<2>

      >::BoundaryOrMaterialId,

      std::__1::allocator<dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<2>

      >::BoundaryOrMaterialId> >::insert' requested here

          boundary_or_material_id.insert (boundary_or_material_id.end(),

                                  ^

3 errors generated.

make[2]: *** [source/grid/CMakeFiles/obj_grid.debug.dir/tria_objects.cc.o] Error 1

make[1]: *** [source/grid/CMakeFiles/obj_grid.debug.dir/all] Error 2

make[1]: *** Waiting for unfinished jobs....

[ 68%] Building CXX object source/lac/CMakeFiles/obj_lac.debug.dir/vector_memory.cc.o

[ 68%] Building CXX object source/fe/CMakeFiles/obj_fe.debug.dir/fe_tools_interpolate.cc.o

In file included from /usr/local/dealii_stuff/deal.II/source/lac/vector.cc:17:

In file included from /usr/local/dealii_stuff/deal.II/include/deal.II/lac/vector.templates.h:21:

In file included from /usr/local/dealii_stuff/deal.II/include/deal.II/base/template_constraints.h:21:

In file included from /usr/local/dealii_stuff/build/include/deal.II/base/config.h:510:

In file included from /usr/local/dealii_stuff/deal.II/include/deal.II/base/numbers.h:23:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:426:27: error: 

      invalid operands to binary expression ('std::__1::complex<double>' and 'const complex<float>')

            *this = *this * __c;

                    ~~~~~ ^ ~~~

/usr/local/dealii_stuff/deal.II/include/deal.II/lac/vector.templates.h:1073:12: note: in instantiation of function template

      specialization 'std::__1::complex<double>::operator*=<float>' requested here

    val[i] *= s.val[i];

           ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:259:34: note: 

      candidate template ignored: deduced conflicting types for parameter '_Tp' ('double' vs. 'float')

template<class _Tp> complex<_Tp> operator*(const complex<_Tp>& __z, const complex<_Tp>& __w);

                                 ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:646:1: note: 

      candidate template ignored: deduced conflicting types for parameter '_Tp' ('double' vs. 'std::__1::complex<float>')

operator*(const complex<_Tp>& __x, const _Tp& __y)

^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:656:1: note: 

      candidate template ignored: deduced conflicting types for parameter '_Tp' ('std::__1::complex<double>' vs. 'float')

operator*(const _Tp& __x, const complex<_Tp>& __y)

^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:370:27: error: 

      invalid operands to binary expression ('std::__1::complex<float>' and 'const complex<double>')

            *this = *this * __c;

                    ~~~~~ ^ ~~~

/usr/local/dealii_stuff/deal.II/include/deal.II/lac/vector.templates.h:1073:12: note: in instantiation of function template

      specialization 'std::__1::complex<float>::operator*=<double>' requested here

    val[i] *= s.val[i];

           ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:259:34: note: 

      candidate template ignored: deduced conflicting types for parameter '_Tp' ('float' vs. 'double')

template<class _Tp> complex<_Tp> operator*(const complex<_Tp>& __z, const complex<_Tp>& __w);

                                 ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:646:1: note: 

      candidate template ignored: deduced conflicting types for parameter '_Tp' ('float' vs. 'std::__1::complex<double>')

operator*(const complex<_Tp>& __x, const _Tp& __y)

^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:656:1: note: 

      candidate template ignored: deduced conflicting types for parameter '_Tp' ('std::__1::complex<float>' vs. 'double')

operator*(const _Tp& __x, const complex<_Tp>& __y)

^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:482:27: error: 

      invalid operands to binary expression ('std::__1::complex<long double>' and 'const complex<double>')

            *this = *this * __c;

                    ~~~~~ ^ ~~~

/usr/local/dealii_stuff/deal.II/include/deal.II/lac/vector.templates.h:1073:12: note: in instantiation of function template

      specialization 'std::__1::complex<long double>::operator*=<double>' requested here

    val[i] *= s.val[i];

           ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:259:34: note: 

      candidate template ignored: deduced conflicting types for parameter '_Tp' ('long double' vs. 'double')

template<class _Tp> complex<_Tp> operator*(const complex<_Tp>& __z, const complex<_Tp>& __w);

                                 ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:646:1: note: 

      candidate template ignored: deduced conflicting types for parameter '_Tp' ('long double' vs. 'std::__1::complex<double>')

operator*(const complex<_Tp>& __x, const _Tp& __y)

^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:656:1: note: 

      candidate template ignored: deduced conflicting types for parameter '_Tp' ('std::__1::complex<long double>' vs. 'double')

operator*(const _Tp& __x, const complex<_Tp>& __y)

^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:426:27: error: 

      invalid operands to binary expression ('std::__1::complex<double>' and 'const complex<long double>')

            *this = *this * __c;

                    ~~~~~ ^ ~~~

/usr/local/dealii_stuff/deal.II/include/deal.II/lac/vector.templates.h:1073:12: note: in instantiation of function template

      specialization 'std::__1::complex<double>::operator*=<long double>' requested here

    val[i] *= s.val[i];

           ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:259:34: note: 

      candidate template ignored: deduced conflicting types for parameter '_Tp' ('double' vs. 'long double')

template<class _Tp> complex<_Tp> operator*(const complex<_Tp>& __z, const complex<_Tp>& __w);

                                 ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:646:1: note: 

      candidate template ignored: deduced conflicting types for parameter '_Tp' ('double' vs. 'std::__1::complex<long double>')

operator*(const complex<_Tp>& __x, const _Tp& __y)

^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:656:1: note: 

      candidate template ignored: deduced conflicting types for parameter '_Tp' ('std::__1::complex<double>' vs. 'long double')

operator*(const _Tp& __x, const complex<_Tp>& __y)

^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:482:27: error: 

      invalid operands to binary expression ('std::__1::complex<long double>' and 'const complex<float>')

            *this = *this * __c;

                    ~~~~~ ^ ~~~

/usr/local/dealii_stuff/deal.II/include/deal.II/lac/vector.templates.h:1073:12: note: in instantiation of function template

      specialization 'std::__1::complex<long double>::operator*=<float>' requested here

    val[i] *= s.val[i];

           ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:259:34: note: 

      candidate template ignored: deduced conflicting types for parameter '_Tp' ('long double' vs. 'float')

template<class _Tp> complex<_Tp> operator*(const complex<_Tp>& __z, const complex<_Tp>& __w);

                                 ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:646:1: note: 

      candidate template ignored: deduced conflicting types for parameter '_Tp' ('long double' vs. 'std::__1::complex<float>')

operator*(const complex<_Tp>& __x, const _Tp& __y)

^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:656:1: note: 

      candidate template ignored: deduced conflicting types for parameter '_Tp' ('std::__1::complex<long double>' vs. 'float')

operator*(const _Tp& __x, const complex<_Tp>& __y)

^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:370:27: error: 

      invalid operands to binary expression ('std::__1::complex<float>' and 'const complex<long double>')

            *this = *this * __c;

                    ~~~~~ ^ ~~~

/usr/local/dealii_stuff/deal.II/include/deal.II/lac/vector.templates.h:1073:12: note: in instantiation of function template

      specialization 'std::__1::complex<float>::operator*=<long double>' requested here

    val[i] *= s.val[i];

           ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:259:34: note: 

      candidate template ignored: deduced conflicting types for parameter '_Tp' ('float' vs. 'long double')

template<class _Tp> complex<_Tp> operator*(const complex<_Tp>& __z, const complex<_Tp>& __w);

                                 ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:646:1: note: 

      candidate template ignored: deduced conflicting types for parameter '_Tp' ('float' vs. 'std::__1::complex<long double>')

operator*(const complex<_Tp>& __x, const _Tp& __y)

^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:656:1: note: 

      candidate template ignored: deduced conflicting types for parameter '_Tp' ('std::__1::complex<float>' vs. 'long double')

operator*(const _Tp& __x, const complex<_Tp>& __y)

^

6 errors generated.

make[2]: *** [source/lac/CMakeFiles/obj_lac.debug.dir/vector.cc.o] Error 1

make[1]: *** [source/lac/CMakeFiles/obj_lac.debug.dir/all] Error 2



Kind regards,

Marco.


Simon Schmidt

unread,
Oct 26, 2013, 5:00:48 PM10/26/13
to dea...@googlegroups.com
Hey,

do you use Xcode 5.01? Which compiler did you use to install deal.II? If you are using clang compiler and 5.01, try to delete Xcode 5.01 and install Xcode 4.63 again (You need to register as a developer on apple.com). This helped for me.

Best,

Simon

Marco Tezzele

unread,
Oct 27, 2013, 7:17:16 AM10/27/13
to dea...@googlegroups.com
I deleted Xcode 5.01 and installed 4.63 version, and now everything is working.
Thank you very much!

Best,
Marco

Luca Heltai

unread,
Oct 27, 2013, 3:47:38 PM10/27/13
to Deal.II Users
I was trying to make the new packages for Maverick, and I stumbled across the same problem...

It seems like this problem might be linked to boost (the bundled version) being compiled with options which are different from the ones in deal.II.

http://stackoverflow.com/questions/8454329/why-cant-clang-with-libc-in-c0x-mode-link-this-boostprogram-options-examp

Matthias, they suggest that boost should be compiled using "clang++ -stdlib=libc++". How should we achieve this in the cmake build system?

Luca.


--
Luca Heltai <luca....@gmail.com>
http://people.sissa.it/~heltai/
Scuola Internazionale Superiore di Studi Avanzati
Phone: +39 040 3787 449, Office: 622
--
There are no answers, only cross references
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Matthias Maier

unread,
Oct 27, 2013, 4:22:25 PM10/27/13
to dea...@googlegroups.com

Am 27. Oct 2013, 20:47 schrieb Luca Heltai <luca....@gmail.com>:

> I was trying to make the new packages for Maverick, and I stumbled
> across the same problem...
>
> It seems like this problem might be linked to boost (the bundled
> version) being compiled with options which are different from the ones
> in deal.II.
>
> http://stackoverflow.com/questions/8454329/why-cant-clang-with-libc-in-c0x-mode-link-this-boostprogram-options-examp

Ah, yes. The problem with an ancient libstdc++ and clang in C++11 mode.

>
> Matthias, they suggest that boost should be compiled using "clang++
> -stdlib=libc++". How should we achieve this in the cmake build system?
>

You cannot compile parts of the library against libc++ and other parts
against libstdc++.

If you want to compile deal.II against libc++ just specify

-DCMAKE_CXX_FLAGS="-stdlib=libc++"

If you do that, be aware of the fact that you have to compile and link
all supporting libraries against libc++ as well.


It seems to be an easier fix to just disable C++11 support by setting

-DDEAL_II_HAVE_CXX11_FLAG=FALSE

If this works (disabled C++11 mode), can you extract a small testcase
for the configure phase?

Best,
Matthias
Reply all
Reply to author
Forward
0 new messages