You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-dev@lucene.apache.org by Henk <go...@gmail.com> on 2012/10/19 10:50:56 UTC
building jcc
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.
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
Re: building jcc
Posted by Henk <go...@gmail.com>.
You are right. I am stuck where I feared I would end up. I will have to
change my provider because they will not support a new Linux
distribution. Thanks for the advise.
Henri.
Op 20-10-2012 2:46, Andi Vajda schreef:
>
> On Fri, 19 Oct 2012, Henk wrote:
>
>> Thanks, Andi. My provider has an old version of Red Hat, that I
>> cannot update. The GCC version is 3.4.6 20060404. I hope I can update
>> the GCC. Updating the GCC from source is also not a simple procedure,
>> it seems.
>
> Indeed and you're running a really old version of Linux too.
> Before embarking on building a fresher gcc from sources, how about
> trying a new Linux distribution first to ensure that the bug isn't
> elsewhere ?
>
> Andi..
>
Re: building jcc
Posted by Andi Vajda <va...@apache.org>.
On Fri, 19 Oct 2012, Henk wrote:
> Thanks, Andi. My provider has an old version of Red Hat, that I cannot
> update. The GCC version is 3.4.6 20060404. I hope I can update the GCC.
> Updating the GCC from source is also not a simple procedure, it seems.
Indeed and you're running a really old version of Linux too.
Before embarking on building a fresher gcc from sources, how about trying a
new Linux distribution first to ensure that the bug isn't elsewhere ?
Andi..
Re: building jcc
Posted by Henk <go...@gmail.com>.
Thanks, Andi. My provider has an old version of Red Hat, that I cannot
update. The GCC version is 3.4.6 20060404. I hope I can update the GCC.
Updating the GCC from source is also not a simple procedure, it seems.
Henry
Op 19-10-2012 19:31, Andi Vajda schreef:
> On Oct 19, 2012, at 1:50, Henk <go...@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..
>
Re: building jcc
Posted by Andi Vajda <va...@apache.org>.
On Oct 19, 2012, at 1:50, Henk <go...@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