-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
I encountered a problem with python setup.py build and could not build the extension. I include the output below.
There is an error which asks for -std=c++11 option, but this option is in use...
The extra options are reordered (see the output below). In the original order I had an unrecognized option error (I cannot understand this either).
The option -std=c++11 is recognized by my compiler (gcc and g++ 4.8.1) - I tested it on a standalone program
I would be very grateful for help as I am at a complete loss...
NB. I used to compile and use pyadolc some years back without any problems.
I am running Linux Mint 17.3
Press enter to build pyadolc.
running build
running build_py
running build_ext
building '_adolc' extension
Warning: Can't read registry to find the necessary compiler setting
Make sure that Python modules _winreg, win32api or win32con are installed.
C compiler: gcc -pthread -B /home/romuald/anaconda2/envs/adolc2/compiler_compat -Wl,--sysroot=/ -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
compile options: '-Iadolc/src -I/home/romuald/anaconda2/envs/adolc2/lib/python2.7/site-packages/numpy/core/include -I/usr/include/include -I/home/romuald/software/pyadolc/PACKAGES/ADOL-C/inst/include -I/home/romuald/software/pyadolc/PACKAGES/ADOL-C/ThirdParty/ColPack/include -I/home/romuald/anaconda2/envs/adolc2/include/python2.7 -c'
extra options: '-DBOOST_PYTHON_DYNAMIC_LIB -std=c++11 -Wno-unused-local-typedefs -ftemplate-depth-100'
gcc: adolc/src/py_adolc.cpp
gcc: adolc/src/py_interpolation.cpp
gcc: adolc/src/num_util.cpp
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from /home/romuald/software/pyadolc/PACKAGES/ADOL-C/inst/include/adolc/adolc.h:28:0,
from adolc/src/py_adolc.hpp:6,
from adolc/src/py_adolc.cpp:3:
/home/romuald/software/pyadolc/PACKAGES/ADOL-C/inst/include/adolc/adouble.h:30:2: error: #error "please use -std=c++11 compiler flag with a C++11 compliant compiler"
#error "please use -std=c++11 compiler flag with a C++11 compliant compiler"
^
In file included from /home/romuald/software/pyadolc/PACKAGES/ADOL-C/inst/include/adolc/adolc.h:28:0,
from adolc/src/py_adolc.hpp:6,
from adolc/src/py_adolc.cpp:3:
/home/romuald/software/pyadolc/PACKAGES/ADOL-C/inst/include/adolc/adouble.h:111:30: warning: explicit conversion operators only available with -std=c++11 or -std=gnu++11 [enabled by default]
explicit operator double();
^
/home/romuald/software/pyadolc/PACKAGES/ADOL-C/inst/include/adolc/adouble.h:112:37: warning: explicit conversion operators only available with -std=c++11 or -std=gnu++11 [enabled by default]
explicit operator double const&();
^
/home/romuald/software/pyadolc/PACKAGES/ADOL-C/inst/include/adolc/adouble.h:113:14: error: ‘operator double’ does not name a type
explicit operator double&&();
^
In file included from /home/romuald/software/pyadolc/PACKAGES/ADOL-C/inst/include/adolc/adolc.h:28:0,
from adolc/src/py_adolc.hpp:6,
from adolc/src/py_adolc.cpp:3:
/home/romuald/software/pyadolc/PACKAGES/ADOL-C/inst/include/adolc/adouble.h:246:31: warning: explicit conversion operators only available with -std=c++11 or -std=gnu++11 [enabled by default]
explicit operator adub*() const { return adubp_from_adub(*this); }
^
In file included from /home/romuald/anaconda2/envs/adolc2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:21:0,
from /home/romuald/anaconda2/envs/adolc2/lib/python2.7/site-packages/numpy/core/include/numpy/noprefix.h:9,
from adolc/src/num_util.h:16,
from adolc/src/py_interpolation.h:4,
from adolc/src/py_interpolation.cpp:1:
/home/romuald/anaconda2/envs/adolc2/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1463:1: warning: ‘int _import_array()’ defined but not used [-Wunused-function]
_import_array(void)
^
error: Command "gcc -pthread -B /home/romuald/anaconda2/envs/adolc2/compiler_compat -Wl,--sysroot=/ -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Iadolc/src -I/home/romuald/anaconda2/envs/adolc2/lib/python2.7/site-packages/numpy/core/include -I/usr/include/include -I/home/romuald/software/pyadolc/PACKAGES/ADOL-C/inst/include -I/home/romuald/software/pyadolc/PACKAGES/ADOL-C/ThirdParty/ColPack/include -I/home/romuald/anaconda2/envs/adolc2/include/python2.7 -c adolc/src/py_adolc.cpp -o build/temp.linux-x86_64-2.7/adolc/src/py_adolc.o -DBOOST_PYTHON_DYNAMIC_LIB -std=c++11 -Wno-unused-local-typedefs -ftemplate-depth-100" failed with exit status 1
(adolc2) romuald@balrog ~/software/pyadolc $ adolc/src/num_util.cpp:10:25: warning: ‘{anonymous}::rcsid’ defined but not used [-Wunused-variable]
namespace { const char* rcsid = "$Id: num_util.cpp 39 2007-02-01 02:54:54Z phil $"; }
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels