Python linker error?

Hello there,

I'm having a bit of trouble installing a Python module on my
BeagleBoard. I used the online image builder at
http://amethyst.openembedded.net/~koen/narcissus/ to generate an image
with both gcc and Python installed. However, the generated image lacks
the module 'Numeric' which is essential to a piece of code I want to
run.

I don't have a USB to Ethernet adapter so I've downloaded the relevant
tar.gz from Sourceforge (http://sourceforge.net/project/showfiles.php?
group_id=1369&package_id=1351) and transferred it using a card reader
to the SD card I'm booting from. However, when I attempt to launch the
(python setup.py install) over the RS232 then I get this response
(full message at the bottom of this post):

arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -
mfpu=neon -mfloa
t-abi=softfp -D__SOFTFP__ -shared build/temp.linux-armv7l-2.6/Src/
_numpymodule.o
build/temp.linux-armv7l-2.6/Src/arrayobject.o build/temp.linux-
armv7l-2.6/Src/u
funcobject.o -L/usr/lib -lpython2.6 -o build/lib.linux-armv7l-2.6/
_numpy.so
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.3.2/../../../../arm-angstrom-
linux-gnu
eabi/bin/ld: cannot find -
lpython2.6
collect2: ld returned 1 exit
status
error: command 'arm-angstrom-linux-gnueabi-gcc' failed with exit
status 1

So the linker is unable to find the Python libraries? I've confirmed
the presence of /usr/lib/python2.6 so am quite perplexed on how to
proceed.

Thank you for your help in advance. :slight_smile:

Dave.

P.S Full terminal message:

root@beagleboard:~/numpy/Numeric-24.2# python setup.py
install
running
install
running
build
running
build_py
creating
build
creating build/lib.linux-
armv7l-2.6
copying Lib/ArrayPrinter.py -> build/lib.linux-
armv7l-2.6
copying Lib/Matrix.py -> build/lib.linux-
armv7l-2.6
copying Lib/Precision.py -> build/lib.linux-
armv7l-2.6
copying Lib/numeric_version.py -> build/lib.linux-
armv7l-2.6
copying Lib/MLab.py -> build/lib.linux-
armv7l-2.6
copying Lib/UserArray.py -> build/lib.linux-
armv7l-2.6
copying Lib/RandomArray.py -> build/lib.linux-
armv7l-2.6
copying Lib/LinearAlgebra.py -> build/lib.linux-
armv7l-2.6
copying Lib/Numeric.py -> build/lib.linux-
armv7l-2.6
creating build/lib.linux-armv7l-2.6/
FFT
copying Packages/FFT/Lib/FFT.py -> build/lib.linux-armv7l-2.6/
FFT
copying Packages/FFT/Lib/__init__.py -> build/lib.linux-armv7l-2.6/
FFT
creating build/lib.linux-armv7l-2.6/
MA
copying Packages/MA/Lib/MA_version.py -> build/lib.linux-armv7l-2.6/
MA
copying Packages/MA/Lib/MA.py -> build/lib.linux-armv7l-2.6/
MA
copying Packages/MA/Lib/__init__.py -> build/lib.linux-armv7l-2.6/
MA
creating build/lib.linux-armv7l-2.6/
RNG
copying Packages/RNG/Lib/Statistics.py -> build/lib.linux-armv7l-2.6/
RNG
copying Packages/RNG/Lib/__init__.py -> build/lib.linux-armv7l-2.6/
RNG
creating build/lib.linux-armv7l-2.6/
Numeric_headers
copying Include/__init__.py -> build/lib.linux-armv7l-2.6/
Numeric_headers
running
build_ext
building '_numpy'
extension
creating build/temp.linux-
armv7l-2.6
creating build/temp.linux-armv7l-2.6/
Src
arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -
mfpu=neon -mfloa
t-abi=softfp -D__SOFTFP__ -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -
fPIC -IIncl
ude -IPackages/FFT/Include -IPackages/RNG/Include -I/usr/include/
python2.6 -c Sr
c/_numpymodule.c -o build/temp.linux-armv7l-2.6/Src/
_numpymodule.o
arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -
mfpu=neon -mfloa
t-abi=softfp -D__SOFTFP__ -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -
fPIC -IIncl
ude -IPackages/FFT/Include -IPackages/RNG/Include -I/usr/include/
python2.6 -c Sr
c/arrayobject.c -o build/temp.linux-armv7l-2.6/Src/
arrayobject.o
Src/arrayobject.c:1639: warning: 'intargfunc' is
deprecated
Src/arrayobject.c:1640: warning: 'intargfunc' is
deprecated
Src/arrayobject.c:1641: warning: 'intintargfunc' is
deprecated
Src/arrayobject.c: In function
'array_subscript':
Src/arrayobject.c:930: warning: 'n_steps' may be used uninitialized in
this func
tion
Src/arrayobject.c:930: note: 'n_steps' was declared
here
arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -
mfpu=neon -mfloa
t-abi=softfp -D__SOFTFP__ -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -
fPIC -IIncl
ude -IPackages/FFT/Include -IPackages/RNG/Include -I/usr/include/
python2.6 -c Sr
c/ufuncobject.c -o build/temp.linux-armv7l-2.6/Src/
ufuncobject.o
arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -
mfpu=neon -mfloa
t-abi=softfp -D__SOFTFP__ -shared build/temp.linux-armv7l-2.6/Src/
_numpymodule.o
build/temp.linux-armv7l-2.6/Src/arrayobject.o build/temp.linux-
armv7l-2.6/Src/u
funcobject.o -L/usr/lib -lpython2.6 -o build/lib.linux-armv7l-2.6/
_numpy.so
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.3.2/../../../../arm-angstrom-
linux-gnu
eabi/bin/ld: cannot find -
lpython2.6
collect2: ld returned 1 exit
status
error: command 'arm-angstrom-linux-gnueabi-gcc' failed with exit
status 1

You can get it from

http://www.angstrom-distribution.org/feeds/2008/ipk/glibc/armv7a/python/python-numeric_23.7-ml1.1_armv7a.ipk

regards,

Koen

Thank you very much. That was a huge help!

Dave.