Installation error

51 views
Skip to first unread message

Lev Karatun

unread,
Jun 26, 2017, 11:06:21 AM6/26/17
to deal.II User Group
Hi,

I'm trying to install the latest version of DealII but get the following error:

/home/lev/aspect/dealii_debug/source/base/function_parser.cc:478:16:   required from here
/opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/bits/stl_construct.h:75:7: error: use of deleted function ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = mu::Parser; _Dp = std::default_delete<mu::Parser>]’
     { ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
       ^
In file included from /opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/memory:81:0,
                 from /home/lev/aspect/dealii_debug/include/deal.II/base/function_parser.h:28,
                 from /home/lev/aspect/dealii_debug/source/base/function_parser.cc:17:
/opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/bits/unique_ptr.h:273:7: error: declared here
       unique_ptr(const unique_ptr&) = delete;
       ^
make[2]: *** [source/base/CMakeFiles/obj_base_debug.dir/function_parser.cc.o] Error 1
make[1]: *** [source/base/CMakeFiles/obj_base_debug.dir/all] Error 2
make: *** [all] Error 2

Could you help me fix it please? 

Wolfgang Bangerth

unread,
Jun 26, 2017, 11:33:05 AM6/26/17
to dea...@googlegroups.com, Lev Karatun

Lev,

> /home/lev/aspect/dealii_debug/source/base/function_parser.cc:478:16:
> required from here
> /opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/bits/stl_construct.h:75:7:
> error: use of deleted function ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(const
> std::unique_ptr<_Tp, _Dp>&) [with _Tp = mu::Parser; _Dp =
> std::default_delete<mu::Parser>]’
> { ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
> ^
> In file included from /opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/memory:81:0,
> from
> /home/lev/aspect/dealii_debug/include/deal.II/base/function_parser.h:28,
> from
> /home/lev/aspect/dealii_debug/source/base/function_parser.cc:17:
> /opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/bits/unique_ptr.h:273:7:
> error: declared here
> unique_ptr(const unique_ptr&) = delete;
> ^
> make[2]: *** [source/base/CMakeFiles/obj_base_debug.dir/function_parser.cc.o]

Can you copy the last few lines of errors above the first line you show here?
I want to see where in this file the problem happens.

Also, what is the compiler and version you use?

Best
W.


--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Lev Karatun

unread,
Jun 27, 2017, 12:26:49 AM6/27/17
to Wolfgang Bangerth, dea...@googlegroups.com
Hi Wolfgang,

To be honest I don't think it's described in readme how to use the bundled version, or at least I couldn't find it. I tried adding the parameter 
-DTBB_INCLUDE_DIR="../bundled/tbb41_20130401oss/include/tbb"
but cmake finds the system library at /usr/lib64/libtbb.so and uses it anyway, and I wasn't able to find the .so file within DealII folder to specify its location. 

Best regards,
Lev Karatun.

2017-06-26 22:56 GMT-04:00 Wolfgang Bangerth <bang...@colostate.edu>:
On 06/26/2017 10:05 AM, Lev Karatun wrote:

#define TBB_VERSION_MAJOR 2
#define TBB_VERSION_MINOR 2

That is quite an old version of the TBB. The one we bundle with deal.II is 4.1. Can you try to force using the bundled version of the TBB? It should be described in doc/readme.html how to do that.

Jean-Paul Pelteret

unread,
Jun 27, 2017, 1:13:59 AM6/27/17
to deal.II User Group, bang...@colostate.edu
Hi Lev,

The information that you were looking for is in the CMake related documentation. You need to pass the
-DDEAL_II_FORCE_BUNDLED_THREADS=ON
option at configuration time.

I hope that this helps.

Regards,
J-P

Lev Karatun

unread,
Jun 27, 2017, 11:24:33 AM6/27/17
to deal.II User Group, bang...@colostate.edu
Oh, I didn't realize there was a separate page for CMake. Thank you Jean-Paul, Wolfgang, the installation completed successfully!
Reply all
Reply to author
Forward
0 new messages