Niklas Saers
2006-09-07 12:58:16 UTC
Hi,
I'm compiling the Python bindings on a FreeBSD 6.1 server running an
Athlon64x2 processor. First I dl'ed 2.0 but got an error, then I got the CVS
but it still fails. Can anyone help me with what's going on and how I can
deal with it? I get:
$ make
Running SWIG before: swig -c++ -python pyfann/pyfann.i
running build
running build_py
creating build
creating build/lib.freebsd-6.1-STABLE-amd64-2.4
creating build/lib.freebsd-6.1-STABLE-amd64-2.4/pyfann
copying pyfann/__init__.py -> build/lib.freebsd-6.1-STABLE-amd64-2.4/pyfann
copying pyfann/libfann.py -> build/lib.freebsd-6.1-STABLE-amd64-2.4/pyfann
running build_ext
building 'pyfann._libfann' extension
creating build/temp.freebsd-6.1-STABLE-amd64-2.4
creating build/temp.freebsd-6.1-STABLE-amd64-2.4/pyfann
cc -fno-strict-aliasing -DNDEBUG -O -pipe -march=athlon64
-D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x100000 -fPIC -DSWIG_COMPILE
-I../src/include -I/usr/local/include/python2.4 -c pyfann/pyfann_wrap.cxx -o
build/temp.freebsd-6.1-STABLE-amd64-2.4/pyfann/pyfann_wrap.o
c++ -shared -pthread
build/temp.freebsd-6.1-STABLE-amd64-2.4/pyfann/pyfann_wrap.o
../src/doublefann.o -o build/lib.freebsd-6.1-STABLE-amd64-2.4
/pyfann/_libfann.so
/usr/bin/ld: ../src/doublefann.o: relocation R_X86_64_32S can not be used
when making a shared object; recompile with -fPIC
../src/doublefann.o: could not read symbols: Bad value
error: command 'c++' failed with exit status 1
*** Error code 1
Stop in /tmp/fann-2.0.0/cvs/fann/python.
Cheers
Nik
I'm compiling the Python bindings on a FreeBSD 6.1 server running an
Athlon64x2 processor. First I dl'ed 2.0 but got an error, then I got the CVS
but it still fails. Can anyone help me with what's going on and how I can
deal with it? I get:
$ make
Running SWIG before: swig -c++ -python pyfann/pyfann.i
running build
running build_py
creating build
creating build/lib.freebsd-6.1-STABLE-amd64-2.4
creating build/lib.freebsd-6.1-STABLE-amd64-2.4/pyfann
copying pyfann/__init__.py -> build/lib.freebsd-6.1-STABLE-amd64-2.4/pyfann
copying pyfann/libfann.py -> build/lib.freebsd-6.1-STABLE-amd64-2.4/pyfann
running build_ext
building 'pyfann._libfann' extension
creating build/temp.freebsd-6.1-STABLE-amd64-2.4
creating build/temp.freebsd-6.1-STABLE-amd64-2.4/pyfann
cc -fno-strict-aliasing -DNDEBUG -O -pipe -march=athlon64
-D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x100000 -fPIC -DSWIG_COMPILE
-I../src/include -I/usr/local/include/python2.4 -c pyfann/pyfann_wrap.cxx -o
build/temp.freebsd-6.1-STABLE-amd64-2.4/pyfann/pyfann_wrap.o
c++ -shared -pthread
build/temp.freebsd-6.1-STABLE-amd64-2.4/pyfann/pyfann_wrap.o
../src/doublefann.o -o build/lib.freebsd-6.1-STABLE-amd64-2.4
/pyfann/_libfann.so
/usr/bin/ld: ../src/doublefann.o: relocation R_X86_64_32S can not be used
when making a shared object; recompile with -fPIC
../src/doublefann.o: could not read symbols: Bad value
error: command 'c++' failed with exit status 1
*** Error code 1
Stop in /tmp/fann-2.0.0/cvs/fann/python.
Cheers
Nik