On Oct 19, 2012, at 1:50, Henk <gordev...@gmail.com> wrote: > Hello, > > I am trying to build JCC on Linux Redhat 7.2 2.96-129.7.2. Installed > JDK1.6.0_37, used setuptools.py (patched it) or PIP, and both with the same > result. I doing this from a virtualenv.
If that 2.96-129.7.2 version number is the version of GCC you're running, try upgrading the compiler to something a bit more modern and more capable C++ wise. Andi.. > > I get these errors and don't know what they mean. Hope you have any ideas. > > Henry > > Error text (extract starts somewhat before the error messages) > > gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall > -Wstrict-prototypes -fPIC -D_java_generics -DJCC_VER="2.14" > -I/usr/local/jdk1.6.0_37/include -I/usr/local/jdk1.6.0_37/include/linux > -I_jcc -Ijcc/sources -I/usr/home/my_server/python/include/python2.7 -c > jcc/sources/JArray.cpp -o build/temp.linux-i686-2.7/jcc/sources/JArray.o > -DPYTHON -fno-strict-aliasing -Wno-write-strings > > cc1plus: warning: command line option "-Wstrict-prototypes" is valid for > Ada/C/ObjC but not for C++ > > In file included from /usr/home/my_server/python/include/python2.7/Python.h:8, > > from jcc/sources/JArray.cpp:18: > > /usr/home/my_server/python/include/python2.7/pyconfig.h:1161:1: warning: > "_POSIX_C_SOURCE" redefined > > > In file included from /usr/include/stdio.h:28, > > from /usr/local/jdk1.6.0_37/include/jni.h:21, > > from jcc/sources/JArray.cpp:17: > > /usr/include/features.h:150:1: warning: this is the location of the previous > definition > > jcc/sources/JArray.cpp: In instantiation of `_t_JArray<_jobject*>': > > jcc/sources/JArray.cpp:610: instantiated from `_t_jobjectarray<_jobject*>' > > jcc/sources/JArray.cpp:617: instantiated from here > > jcc/sources/JArray.cpp:28: error: base `t_JArray<_jobject*>' with only > non-default constructor in class without a constructor > > jcc/sources/JArray.cpp: In instantiation of `_t_jobjectarray<_jobject*>': > > jcc/sources/JArray.cpp:617: instantiated from here > > jcc/sources/JArray.cpp:610: error: base `_t_JArray<_jobject*>' with only > non-default constructor in class without a constructor > > jcc/sources/JArray.cpp: In instantiation of `_t_JArray<_jstring*>': > > jcc/sources/JArray.cpp:935: instantiated from here > > jcc/sources/JArray.cpp:28: error: base `t_JArray<_jstring*>' with only > non-default constructor in class without a constructor > > jcc/sources/JArray.cpp: In instantiation of `_t_JArray<jboolean>': > > jcc/sources/JArray.cpp:951: instantiated from here > > jcc/sources/JArray.cpp:28: error: base `t_JArray<jboolean>' with only > non-default constructor in class without a constructor > > jcc/sources/JArray.cpp: In instantiation of `_t_JArray<jbyte>': > > jcc/sources/JArray.cpp:967: instantiated from here > > jcc/sources/JArray.cpp:28: error: base `t_JArray<jbyte>' with only > non-default constructor in class without a constructor > > jcc/sources/JArray.cpp: In instantiation of `_t_JArray<jchar>': > > jcc/sources/JArray.cpp:983: instantiated from here > > jcc/sources/JArray.cpp:28: error: base `t_JArray<jchar>' with only > non-default constructor in class without a constructor > > jcc/sources/JArray.cpp: In instantiation of `_t_JArray<jdouble>': > > jcc/sources/JArray.cpp:999: instantiated from here > > jcc/sources/JArray.cpp:28: error: base `t_JArray<jdouble>' with only > non-default constructor in class without a constructor > > jcc/sources/JArray.cpp: In instantiation of `_t_JArray<jfloat>': > > jcc/sources/JArray.cpp:1015: instantiated from here > > jcc/sources/JArray.cpp:28: error: base `t_JArray<jfloat>' with only > non-default constructor in class without a constructor > > jcc/sources/JArray.cpp: In instantiation of `_t_JArray<jint>': > > jcc/sources/JArray.cpp:1031: instantiated from here > > jcc/sources/JArray.cpp:28: error: base `t_JArray<jint>' with only non-default > constructor in class without a constructor > > jcc/sources/JArray.cpp: In instantiation of `_t_JArray<jlong>': > > jcc/sources/JArray.cpp:1047: instantiated from here > > jcc/sources/JArray.cpp:28: error: base `t_JArray<jlong>' with only > non-default constructor in class without a constructor > > jcc/sources/JArray.cpp: In instantiation of `_t_JArray<jshort>': > > jcc/sources/JArray.cpp:1063: instantiated from here > > jcc/sources/JArray.cpp:28: error: base `t_JArray<jshort>' with only > non-default constructor in class without a constructor > > error: command 'gcc' failed with exit status 1 > > > Command /usr/home/my_server/virtualpy27/bin/python2.7 -c "import > setuptools;__file__='/usr/home/my_server/virtualpy27/build/jcc/setup.py';exec(compile(open(__file__).read().replace('\r\n', > '\n'), __file__, 'exec'))" install --record > /tmp/pip-rPHzmY-record/install-record.txt --single-version-externally-managed > --install-headers /usr/home/my_server/virtualpy27/include/site/python2.7 > failed with error code 1 in /usr/home/my_server/virtualpy27/build/jcc > Storing complete log in /home/my_server/.pip/pip.log