Thread Previous • Date Previous • Date Next • Thread Next |
Hi, I get the following error when compiling PyDolfin: mpic++ -o dolfin/swig/cpp_wrap.os -c -Wall -pipe -ansi -Werror -DDEBUG -g -DNDEBUG -O2 -DHAS_MPI=1 -DMPICH_IGNORE_CXX_SEEK -DPACKAGE_VERSION=\"0.9.2\" -DHAS_PETSC=1 -DHAS_SLEPC=1 -DHAS_UMFPACK=1 -DHAS_GTS=1 -DHAS_CHOLMOD=1 -DHAS_MTL4=1 -DHAS_PARMETIS=1 -fno-strict-aliasing -fPIC -I. -I/home/oelgaard/local/include -I/usr/include -I/usr/include/libxml2 -I/home/oelgaard/local/lib/petsc-3.0.0-p5/linux-gnu-cxx-debug/include -I/home/oelgaard/local/lib/petsc-3.0.0-p5/include -I/usr/include -I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib -I/home/oelgaard/local/lib/slepc-3.0.0-p2 -I/home/oelgaard/local/lib/slepc-3.0.0-p2/linux-gnu-cxx-debug/include -I/home/oelgaard/local/lib/slepc-3.0.0-p2/include -I/home/oelgaard/local/lib/petsc-3.0.0-p5/linux-gnu-cxx-debug/include -I/home/oelgaard/local/lib/petsc-3.0.0-p5/include -I/usr/include -I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib -I/usr/include/suitesparse -I/usr/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/suitesparse -I/home/oelgaard/local/lib/mtl4 -I/usr/include -I/usr/include -I/usr/include/python2.5 -I/usr/include/python2.5 -I/usr/lib/python2.5/site-packages/numpy/core/include -I/home/oelgaard/local/include -I/usr/include -I/usr/include/libxml2 -I/home/oelgaard/local/lib/petsc-3.0.0-p5/linux-gnu-cxx-debug/include -I/home/oelgaard/local/lib/petsc-3.0.0-p5/include -I/usr/include -I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib -I/home/oelgaard/local/lib/slepc-3.0.0-p2 -I/home/oelgaard/local/lib/slepc-3.0.0-p2/linux-gnu-cxx-debug/include -I/home/oelgaard/local/lib/slepc-3.0.0-p2/include -I/home/oelgaard/local/lib/petsc-3.0.0-p5/linux-gnu-cxx-debug/include -I/home/oelgaard/local/lib/petsc-3.0.0-p5/include -I/usr/include -I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib -I/usr/include/suitesparse -I/usr/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/suitesparse -I/home/oelgaard/local/lib/mtl4 -I/usr/include -I/usr/include dolfin/swig/cpp_wrap.cc dolfin/swig/cpp_wrap.cc:146:20: error: Python.h: No such file or directory dolfin/swig/cpp_wrap.cc:3330:4: error: #error "This python version requires swig to be run with the '-classic' option" dolfin/swig/cpp_wrap.cc:3334:3: error: #error "This python version requires swig to be run with the '-nomodern' option" dolfin/swig/cpp_wrap.cc:3337:3: error: #error "This python version requires swig to be run with the '-nomodernargs' option" dolfin/swig/cpp_wrap.cc:3340:3: error: #error "This python version requires swig to be run with the '-nofastunpack' option" In file included from /usr/include/python2.5/numpy/arrayobject.h:14, from dolfin/swig/cpp_wrap.cc:3430: /usr/include/python2.5/numpy/ndarrayobject.h:114:2: error: #error Must use Python with unicode enabled. dolfin/swig/cpp_wrap.cc:752: error: expected initializer before * token dolfin/swig/cpp_wrap.cc:807: error: expected initializer before * token dolfin/swig/cpp_wrap.cc:828: error: expected initializer before * token In file included from /usr/include/c++/4.3/new:45, from /usr/include/c++/4.3/ext/new_allocator.h:37, from /usr/include/c++/4.3/i486-linux-gnu/bits/c++allocator.h:39, from /usr/include/c++/4.3/bits/allocator.h:53, from /usr/include/c++/4.3/string:48, from dolfin/swig/cpp_wrap.cc:2520: /usr/include/c++/4.3/exception:40: error: expected declaration before end of line scons: *** [dolfin/swig/cpp_wrap.os] Error 1 scons: building terminated because of errors. dolfin/swig/cpp_wrap.os failed: Error 1 I have python2.6-dev install, but not python2.5-dev. Notice the double occurrence of '-I/usr/include/python2.5 -I/usr/include/python2.5' in the cflags. Should one of them be '-I/usr/include/python2.6'? If I install python2.5-dev it works without problems, I was just wondering if this is a bug in the build system? Kristian
Thread Previous • Date Previous • Date Next • Thread Next |