[ADOL-C] adolc 2.5.1 build

Daphne Giorgi daphne.giorgi at inria.fr
Mon Jul 21 07:11:23 EDT 2014


Hi, 

I tried to build adol-c 2.5.1 and this is what i get: 

Mac Mavericks: 

the library works fine but i get this warning: 

/ADOL-C-2.5.1/include/adolc/adouble.h:435:17: warning: C++98 requires an accessible copy constructor for class 'adub' when binding a reference to a temporary; was private [-Wbind-to-temporary-copy] 
return (-coval+v != 0); 

Linux: 

the libray doesn't compile (the 2.5.0 did), here the result of the make call: 


Making all in ADOL-C 
make[1]: Entering directory `/home/dgiorgi/Downloads/ADOL-C-2.5.1/ADOL-C' 
Making all in src 
make[2]: Entering directory `/home/dgiorgi/Downloads/ADOL-C-2.5.1/ADOL-C/src' 
make all-recursive 
make[3]: Entering directory `/home/dgiorgi/Downloads/ADOL-C-2.5.1/ADOL-C/src' 
Making all in drivers 
make[4]: Entering directory `/home/dgiorgi/Downloads/ADOL-C-2.5.1/ADOL-C/src/drivers' 
CC drivers.lo 
CC driversf.lo 
CC odedrivers.lo 
CC odedriversf.lo 
CC taylor.lo 
CCLD libdrivers.la 
make[4]: Leaving directory `/home/dgiorgi/Downloads/ADOL-C-2.5.1/ADOL-C/src/drivers' 
Making all in sparse 
make[4]: Entering directory `/home/dgiorgi/Downloads/ADOL-C-2.5.1/ADOL-C/src/sparse' 
CXX sparse_fo_rev.lo 
CXX sparsedrivers.lo 
CXXLD libsparse.la 
make[4]: Leaving directory `/home/dgiorgi/Downloads/ADOL-C-2.5.1/ADOL-C/src/sparse' 
Making all in tapedoc 
make[4]: Entering directory `/home/dgiorgi/Downloads/ADOL-C-2.5.1/ADOL-C/src/tapedoc' 
CC tapedoc.lo 
CCLD libtapedoc.la 
make[4]: Leaving directory `/home/dgiorgi/Downloads/ADOL-C-2.5.1/ADOL-C/src/tapedoc' 
make[4]: Entering directory `/home/dgiorgi/Downloads/ADOL-C-2.5.1/ADOL-C/src' 
CC adalloc.lo 
CC malloc.lo 
CXX adouble.lo 
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_algobase.h:64, 
from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/char_traits.h:41, 
from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ios:41, 
from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ostream:40, 
from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/iostream:40, 
from ../../ADOL-C/include/adolc/adouble.h:30, 
from adouble.cpp:24: 
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ext/type_traits.h: In instantiation of '__gnu_cxx::__promote_2<adouble, badouble>': 
adouble.cpp:1741: instantiated from here 
../../ADOL-C/include/adolc/adouble.h:74: error: 'badouble::badouble()' is protected 
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ext/type_traits.h:174: error: within this context 
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ext/type_traits.h: In instantiation of '__gnu_cxx::__promote_2<badouble, adouble>': 
adouble.cpp:1747: instantiated from here 
../../ADOL-C/include/adolc/adouble.h:74: error: 'badouble::badouble()' is protected 
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ext/type_traits.h:174: error: within this context 
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ext/type_traits.h: In instantiation of '__gnu_cxx::__promote_2<adub, adub>': 
adouble.cpp:1752: instantiated from here 
../../ADOL-C/include/adolc/adouble.h:258: error: 'adub::adub()' is private 
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ext/type_traits.h:174: error: within this context 
../../ADOL-C/include/adolc/adouble.h:258: error: 'adub::adub()' is private 
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/ext/type_traits.h:174: error: within this context 
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/cmath:623, 
from ../../ADOL-C/include/adolc/adouble.h:31, 
from adouble.cpp:24: 
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/tr1_impl/cmath: In function 'typename __gnu_cxx::__promote_2<_Tp, _Up>::__type std::fmin(_Tp, _Up) [with _Tp = adouble, _Up = badouble]': 
adouble.cpp:1741: instantiated from here 
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/tr1_impl/cmath:541: error: no matching function for call to 'adub::adub(adouble&)' 
../../ADOL-C/include/adolc/adouble.h:274: note: candidates are: adub::adub(locint) 
../../ADOL-C/include/adolc/adouble.h:264: note: adub::adub(double) 
../../ADOL-C/include/adolc/adouble.h:258: note: adub::adub() 
../../ADOL-C/include/adolc/adouble.h:252: note: adub::adub(const adub&) 
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/tr1_impl/cmath:541: error: no matching function for call to 'adub::adub(badouble&)' 
../../ADOL-C/include/adolc/adouble.h:274: note: candidates are: adub::adub(locint) 
../../ADOL-C/include/adolc/adouble.h:264: note: adub::adub(double) 
../../ADOL-C/include/adolc/adouble.h:258: note: adub::adub() 
../../ADOL-C/include/adolc/adouble.h:252: note: adub::adub(const adub&) 
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/tr1_impl/cmath: In function 'typename __gnu_cxx::__promote_2<_Tp, _Up>::__type std::fmin(_Tp, _Up) [with _Tp = badouble, _Up = adouble]': 
adouble.cpp:1747: instantiated from here 
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/tr1_impl/cmath:541: error: no matching function for call to 'adub::adub(badouble&)' 
../../ADOL-C/include/adolc/adouble.h:274: note: candidates are: adub::adub(locint) 
../../ADOL-C/include/adolc/adouble.h:264: note: adub::adub(double) 
../../ADOL-C/include/adolc/adouble.h:258: note: adub::adub() 
../../ADOL-C/include/adolc/adouble.h:252: note: adub::adub(const adub&) 
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/tr1_impl/cmath:541: error: no matching function for call to 'adub::adub(adouble&)' 
../../ADOL-C/include/adolc/adouble.h:274: note: candidates are: adub::adub(locint) 
../../ADOL-C/include/adolc/adouble.h:264: note: adub::adub(double) 
../../ADOL-C/include/adolc/adouble.h:258: note: adub::adub() 
../../ADOL-C/include/adolc/adouble.h:252: note: adub::adub(const adub&) 
../../ADOL-C/include/adolc/adouble.h: In function 'typename __gnu_cxx::__promote_2<_Tp, _Up>::__type std::fmin(_Tp, _Up) [with _Tp = adub, _Up = adub]': 
adouble.cpp:1752: instantiated from here 
../../ADOL-C/include/adolc/adouble.h:252: error: 'adub::adub(const adub&)' is private 
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/tr1_impl/cmath:541: error: within this context 
../../ADOL-C/include/adolc/adouble.h:252: error: 'adub::adub(const adub&)' is private 
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/tr1_impl/cmath:541: error: within this context 
../../ADOL-C/include/adolc/adouble.h:252: error: 'adub::adub(const adub&)' is private 
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/tr1_impl/cmath:541: error: within this context 
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/tr1_impl/cmath:541: error: initializing argument 1 of 'typename __gnu_cxx::__promote_2<_Tp, _Up>::__type std::fmin(_Tp, _Up) [with _Tp = adub, _Up = adub]' 
../../ADOL-C/include/adolc/adouble.h:252: error: 'adub::adub(const adub&)' is private 
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/tr1_impl/cmath:541: error: within this context 
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/tr1_impl/cmath:541: error: initializing argument 2 of 'typename __gnu_cxx::__promote_2<_Tp, _Up>::__type std::fmin(_Tp, _Up) [with _Tp = adub, _Up = adub]' 
../../ADOL-C/include/adolc/adouble.h:252: error: 'adub::adub(const adub&)' is private 
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/tr1_impl/cmath:541: error: within this context 
make[4]: *** [adouble.lo] Error 1 
make[4]: Leaving directory `/home/dgiorgi/Downloads/ADOL-C-2.5.1/ADOL-C/src' 
make[3]: *** [all-recursive] Error 1 
make[3]: Leaving directory `/home/dgiorgi/Downloads/ADOL-C-2.5.1/ADOL-C/src' 
make[2]: *** [all] Error 2 
make[2]: Leaving directory `/home/dgiorgi/Downloads/ADOL-C-2.5.1/ADOL-C/src' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/home/dgiorgi/Downloads/ADOL-C-2.5.1/ADOL-C' 
make: *** [all-recursive] Error 1 

I wonder why it doesn't compile on linux anymore, hope this can help. 

Thanks for all 

Daphné 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/adol-c/attachments/20140721/2c94e7cb/attachment.html>


More information about the ADOL-C mailing list