Numpy problem

188 views
Skip to first unread message

Jean-m. a.

unread,
Feb 3, 2014, 9:18:28 AM2/3/14
to python-fo...@googlegroups.com
Hello, I am develloping an Application for android with py4A and kivy,
and I can't succefully build a distribution with numpy:

./distribute.sh -m "numpy kivy"

failed with the following log:

reating build/lib.linux-x86_64-2.7/numpy/linalg
/usr/bin/gfortran -Wall -lm build/temp.linux-x86_64-2.7/numpy/linalg/lapack_litemodule.o build/temp.linux-x86_64-2.7/numpy/linalg/python_xerbla.o -L/usr/lib -L/home/jarbona/python-for-android/build/python-install/lib -Lbuild/temp.linux-x86_64-2.7 -llapack -lblas -lpython2.7 -lgfortran -o build/lib.linux-x86_64-2.7/numpy/linalg/lapack_lite.so
/usr/bin/ld: build/temp.linux-x86_64-2.7/numpy/linalg/lapack_litemodule.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: build/temp.linux-x86_64-2.7/numpy/linalg/lapack_litemodule.o: Relocations in generic ELF (EM: 40)
build/temp.linux-x86_64-2.7/numpy/linalg/lapack_litemodule.o: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
/usr/bin/ld: build/temp.linux-x86_64-2.7/numpy/linalg/lapack_litemodule.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: build/temp.linux-x86_64-2.7/numpy/linalg/lapack_litemodule.o: Relocations in generic ELF (EM: 40)
build/temp.linux-x86_64-2.7/numpy/linalg/lapack_litemodule.o: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
error: Command "/usr/bin/gfortran -Wall -lm build/temp.linux-x86_64-2.7/numpy/linalg/lapack_litemodule.o build/temp.linux-x86_64-2.7/numpy/linalg/python_xerbla.o -L/usr/lib -L/home/jarbona/python-for-android/build/python-install/lib -Lbuild/temp.linux-x86_64-2.7 -llapack -lblas -lpython2.7 -lgfortran -o build/lib.linux-x86_64-2.7/numpy/linalg/lapack_lite.so" failed with exit status 1


I looked on google and it seems to be related to the fact that I am on a amd64. People suggested to add the flag -m32 to the gcc compiler
(in distribute.sh), but then I have another error even before reaching numpy:

ccache gcc -m32  -pthread -c -fno-strict-aliasing  -DNDEBUG -g  -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include   -DPy_BUILD_CORE -o Python/ast.o Python/ast.c
make: *** [Modules/zlibmodule.o] Error 1
make: *** Waiting for unfinished jobs....


Any ideas ?

Mi Lia

unread,
Jul 6, 2014, 7:09:53 AM7/6/14
to python-fo...@googlegroups.com
I get the same error on a x86-64 pc.

Anyone else who found a way to solve this issue?

João Abrantes

unread,
Apr 21, 2015, 8:09:07 AM4/21/15
to python-fo...@googlegroups.com
I have the same problem. Any solution yet?
Reply all
Reply to author
Forward
0 new messages