openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Openexr-devel] Failed to build pyilmbase on CentOS7


From: Service Alert -12:05
Subject: [Openexr-devel] Failed to build pyilmbase on CentOS7
Date: Wed, 19 Nov 2014 11:22:53 +0800

Hi all,
I'm trying to build Alembic on CentOS7 x64, but I can't build pyilmbase from source.
Here is the log:

address@hidden 2.2.0]$ pwd
/home/user0/tools/pyilmbase/2.2.0
address@hidden 2.2.0]$ gcc --version
gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-16)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

address@hidden 2.2.0]$ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether make sets $(MAKE)... (cached) yes
test_prefix = NONE
checking for pkg-config... /usr/bin/pkg-config
using pkg-config to set ILMBASE_CXXFLAGS and ILMBASE_LDFLAGS:
    ILMBASE_CXXFLAGS = -pthread -I/usr/include/OpenEXR -I/usr/include/libdrm 
    ILMBASE_LDFLAGS = 
    ILMBASE_LIBS = -pthread -lImath -lHalf -lIex -lIexMath -lIlmThread 
checking for IlmBase... yes
Compiled and ran IlmBase test program.
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib64/python2.7/site-packages
checking for boost::python... yes
Compiled and ran boost::python test program.
checking for ANSI C header files... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for gcc optimization flags... -pipe
configure: creating ./config.status
config.status: creating Makefile
config.status: creating PyIlmBase.pc
config.status: creating config/Makefile
config.status: creating PyIex/Makefile
config.status: creating PyIexTest/Makefile
config.status: creating PyIexTest/pyIexTest
config.status: creating PyImath/Makefile
config.status: creating PyImathTest/Makefile
config.status: creating PyImathTest/pyImathTest
config.status: creating PyImathNumpy/Makefile
config.status: creating config/PyIlmBaseConfig.h
config.status: config/PyIlmBaseConfig.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

---------------------------------------------
Summary for PyIlmBase features:

Python version                                  2.7
boost::python libname                           boost_python
---------------------------------------------

address@hidden 2.2.0]$ make
Making all in config
make[1]: Entering directory `/home/user0/tools/pyilmbase/2.2.0/config'
make  all-am
make[2]: Entering directory `/home/user0/tools/pyilmbase/2.2.0/config'
make[2]: Leaving directory `/home/user0/tools/pyilmbase/2.2.0/config'
make[1]: Leaving directory `/home/user0/tools/pyilmbase/2.2.0/config'
Making all in PyIex
make[1]: Entering directory `/home/user0/tools/pyilmbase/2.2.0/PyIex'
/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../config -pthread -I/usr/include/OpenEXR -I/usr/include/libdrm -I.. -I../config   -pipe -g -O2  -I/usr/include/python2.7 -MT PyIex.lo -MD -MP -MF .deps/PyIex.Tpo -c -o PyIex.lo PyIex.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../config -pthread -I/usr/include/OpenEXR -I/usr/include/libdrm -I.. -I../config -pipe -g -O2 -I/usr/include/python2.7 -MT PyIex.lo -MD -MP -MF .deps/PyIex.Tpo -c PyIex.cpp  -fPIC -DPIC -o .libs/PyIex.o
In file included from /usr/include/python2.7/pyconfig.h:6:0,
                 from /usr/include/python2.7/Python.h:8,
                 from ./PyIex.h:45,
                 from PyIex.cpp:42:
/usr/include/python2.7/pyconfig-64.h:1182:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default]
 #define _POSIX_C_SOURCE 200112L
 ^
In file included from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_defines.h:39:0,
                 from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h:2097,
                 from /usr/include/c++/4.8.2/iosfwd:38,
                 from /usr/include/c++/4.8.2/ios:38,
                 from /usr/include/c++/4.8.2/istream:38,
                 from /usr/include/c++/4.8.2/sstream:38,
                 from ./PyIex.h:44,
                 from PyIex.cpp:42:
/usr/include/features.h:168:0: note: this is the location of the previous definition
 # define _POSIX_C_SOURCE 200809L
 ^
In file included from /usr/include/python2.7/pyconfig.h:6:0,
                 from /usr/include/python2.7/Python.h:8,
                 from ./PyIex.h:45,
                 from PyIex.cpp:42:
/usr/include/python2.7/pyconfig-64.h:1204:0: warning: "_XOPEN_SOURCE" redefined [enabled by default]
 #define _XOPEN_SOURCE 600
 ^
In file included from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_defines.h:39:0,
                 from /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h:2097,
                 from /usr/include/c++/4.8.2/iosfwd:38,
                 from /usr/include/c++/4.8.2/ios:38,
                 from /usr/include/c++/4.8.2/istream:38,
                 from /usr/include/c++/4.8.2/sstream:38,
                 from ./PyIex.h:44,
                 from PyIex.cpp:42:
/usr/include/features.h:170:0: note: this is the location of the previous definition
 # define _XOPEN_SOURCE 700
 ^
In file included from PyIex.cpp:42:0:
./PyIex.h:134:29: error: ‘IEX_NAMESPACE’ was not declared in this scope
 PYIEX_EXPORT TypeTranslator<IEX_NAMESPACE::BaseExc> &baseExcTranslator();
                             ^
./PyIex.h:134:51: error: template argument 1 is invalid
 PYIEX_EXPORT TypeTranslator<IEX_NAMESPACE::BaseExc> &baseExcTranslator();
                                                   ^
./PyIex.h:134:73: error: invalid type in declaration before ‘;’ token
 PYIEX_EXPORT TypeTranslator<IEX_NAMESPACE::BaseExc> &baseExcTranslator();
                                                                         ^
./PyIex.h:138:55: error: ‘IEX_NAMESPACE’ was not declared in this scope
 PYIEX_EXPORT void setBaseExcTranslator(TypeTranslator<IEX_NAMESPACE::BaseExc> *t);
                                                       ^
./PyIex.h:138:77: error: template argument 1 is invalid
 PYIEX_EXPORT void setBaseExcTranslator(TypeTranslator<IEX_NAMESPACE::BaseExc> *t);
                                                                             ^
./PyIex.h: In static member function ‘static PyObject* PyIex::ExcTranslator<T>::convert(const T&)’:
./PyIex.h:166:71: error: request for member ‘typeObject’ in ‘PyIex::baseExcTranslator()’, which is of non-class type ‘int’
         object excType = object(handle<>(borrowed(baseExcTranslator().typeObject(&exc))));
                                                                       ^
./PyIex.h: In static member function ‘static void* PyIex::ExcTranslator<T>::convertible(PyObject*)’:
./PyIex.h:174:80: error: request for member ‘baseTypeObject’ in ‘PyIex::baseExcTranslator()’, which is of non-class type ‘int’
         if (!PyType_IsSubtype(Py_TYPE(exc),(PyTypeObject *)baseExcTranslator().baseTypeObject())) return 0;
                                                                                ^
./PyIex.h: In function ‘void PyIex::registerExc(const string&, const string&)’:
./PyIex.h:240:26: error: ‘IEX_NAMESPACE’ was not declared in this scope
     const TypeTranslator<IEX_NAMESPACE::BaseExc>::ClassDesc *baseDesc = baseExcTranslator().template findClassDesc<ExcBase>(baseExcTranslator().firstClassDesc());
                          ^
./PyIex.h:240:48: error: template argument 1 is invalid
     const TypeTranslator<IEX_NAMESPACE::BaseExc>::ClassDesc *baseDesc = baseExcTranslator().template findClassDesc<ExcBase>(baseExcTranslator().firstClassDesc());
                                                ^
./PyIex.h:240:61: error: expected initializer before ‘*’ token
     const TypeTranslator<IEX_NAMESPACE::BaseExc>::ClassDesc *baseDesc = baseExcTranslator().template findClassDesc<ExcBase>(baseExcTranslator().firstClassDesc());
                                                             ^
In file included from PyIex.cpp:42:0:
./PyIex.h:241:28: error: ‘baseDesc’ was not declared in this scope
     std::string baseName = baseDesc->typeName();
                            ^
./PyIex.h:246:25: error: request for member ‘registerClass’ in ‘PyIex::baseExcTranslator()’, which is of non-class type ‘int’
     baseExcTranslator().registerClass<Exc,ExcBase>(name, module, exc_class.ptr());
                         ^
./PyIex.h:246:42: error: expected primary-_expression_ before ‘,’ token
     baseExcTranslator().registerClass<Exc,ExcBase>(name, module, exc_class.ptr());
                                          ^
./PyIex.h:246:50: error: expected primary-_expression_ before ‘>’ token
     baseExcTranslator().registerClass<Exc,ExcBase>(name, module, exc_class.ptr());
                                                  ^
PyIex.cpp: At global scope:
PyIex.cpp:49:23: error: ‘IEX_NAMESPACE’ was not declared in this scope
 static TypeTranslator<IEX_NAMESPACE::BaseExc> *_baseExcTranslator = 0;
                       ^
PyIex.cpp:49:45: error: template argument 1 is invalid
 static TypeTranslator<IEX_NAMESPACE::BaseExc> *_baseExcTranslator = 0;
                                             ^
PyIex.cpp:49:67: error: invalid type in declaration before ‘=’ token
 static TypeTranslator<IEX_NAMESPACE::BaseExc> *_baseExcTranslator = 0;
                                                                   ^
PyIex.cpp:52:29: error: ‘IEX_NAMESPACE’ was not declared in this scope
 PYIEX_EXPORT TypeTranslator<IEX_NAMESPACE::BaseExc> &baseExcTranslator()
                             ^
PyIex.cpp:52:51: error: template argument 1 is invalid
 PYIEX_EXPORT TypeTranslator<IEX_NAMESPACE::BaseExc> &baseExcTranslator()
                                                   ^
PyIex.cpp:57:55: error: ‘IEX_NAMESPACE’ was not declared in this scope
 PYIEX_EXPORT void setBaseExcTranslator(TypeTranslator<IEX_NAMESPACE::BaseExc> *t)
                                                       ^
PyIex.cpp:57:77: error: template argument 1 is invalid
 PYIEX_EXPORT void setBaseExcTranslator(TypeTranslator<IEX_NAMESPACE::BaseExc> *t)
                                                                             ^
make[1]: *** [PyIex.lo] Error 1
make[1]: Leaving directory `/home/user0/tools/pyilmbase/2.2.0/PyIex'
make: *** [all-recursive] Error 1
address@hidden 2.2.0]$

Could you give any help? Thank you in advance.

Chheers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]