On Apr 3, 1:33 pm, "ZMY" <[EMAIL PROTECTED]> wrote: > On Apr 3, 10:51 am, Robert Kern <[EMAIL PROTECTED]> wrote: > > > > >ZMYwrote: > > > Is "ld" part of make command? I am not familiar with compiling with > > > make in general. > > > No, it's the linker. I takes the object files (.o) which are generated by > > the > > compiler (cc, I imagine) and links them together into the shared library > > (.so). > > make is a program that can automate builds given instructions, but Numeric > > doesn't use it, nor do most other Python packages. > > > > Most other extensions (including math, os, struct, cPickle) from > > > Python 2.2 works when I install python on QNX. > > > No, I was wondering if you could build any other third-party extension > > modules. > > Did you install Python from source? When building extension modules, Python > > uses > > whatever linker was used to build itself. > > > -- > > Robert Kern > > > "I have come to believe that the whole world is an enigma, a harmless enigma > > that is made terrible by our own mad attempt to interpret it as though it > > had > > an underlying truth." > > -- Umberto E > > Dear Robert, > > Looks like you are right. Here is what I got when I compile the > Python2.2 from source (or I believe so): > > $ sudo make SHELL=/usr/local/bin/bash > Password: > case $MAKEFLAGS in \ > *-s*) CC='cc' LDSHARED='ld' OPT='-DNDEBUG -O' ./python -E //6/openqnx/ > Python-2.2/setup.py -q build;; \ > *) CC='cc' LDSHARED='ld' OPT='-DNDEBUG -O' ./python -E //6/openqnx/ > Python-2.2/setup.py build;; \ > esac > running build > running build_ext > building 'regex' extension > skipping //6/openqnx/Python-2.2/Modules/regexmodule.c (build/temp.qnx- > O-PCI-2.2/regexmodule.o up-to-date) > skipping //6/openqnx/Python-2.2/Modules/regexpr.c (build/temp.qnx-O- > PCI-2.2/regexpr.o up-to-date) > ld build/temp.qnx-O-PCI-2.2/regexmodule.o build/temp.qnx-O-PCI-2.2/ > regexpr.o -L/usr/local/lib -o build/lib.qnx-O-PCI-2.2/regex.so > unable to execute ld: No such file or directory > .... > > If there is no 'ld' linker, what should be used instead?? > > BTW, the reason I am still using QNX4.25 is because I was trying to > install python on this legacy system. We can't move to QNX6 unless we > want to redo all other code as well, which took 3 years of a good > programmer :-( > > -ZMY
I have tried to use Watcom linker 'wlink' in QNX instead of the 'ld' linker, but I still got problem with _numpymodule.o Do you have any experience with this?? ... building '_numpy' extension cc -DNDEBUG -O -IInclude -IPackages/FFT/Include -IPackages/RNG/Include -I/usr/local/include/python2.2 -c Src/_numpymodule.c -o build/temp.qnx- O-PCI-2.2/_numpymodule.o /usr/watcom/10.6/bin/wcc386 -zq -d+ -dNDEBUG -oil -i=Include - i=Packages/FFT/Include -i=Packages/RNG/Include -i=/usr/local/include/ python2.2 -ms -fo=build/temp.qnx-O-PCI-2.2/_numpymodule.o -4r -i=/usr/ watcom/10.6/usr/include -i=/usr/include Src/_numpymodule.c cc -DNDEBUG -O -IInclude -IPackages/FFT/Include -IPackages/RNG/Include -I/usr/local/include/python2.2 -c Src/arrayobject.c -o build/temp.qnx- O-PCI-2.2/arrayobject.o /usr/watcom/10.6/bin/wcc386 -zq -d+ -dNDEBUG -oil -i=Include - i=Packages/FFT/Include -i=Packages/RNG/Include -i=/usr/local/include/ python2.2 -ms -fo=build/temp.qnx-O-PCI-2.2/arrayobject.o -4r -i=/usr/ watcom/10.6/usr/include -i=/usr/include Src/arrayobject.c Src/arrayobject.c(527): Warning! W124: Comparison result always 0 cc -DNDEBUG -O -IInclude -IPackages/FFT/Include -IPackages/RNG/Include -I/usr/local/include/python2.2 -c Src/ufuncobject.c -o build/temp.qnx- O-PCI-2.2/ufuncobject.o /usr/watcom/10.6/bin/wcc386 -zq -d+ -dNDEBUG -oil -i=Include - i=Packages/FFT/Include -i=Packages/RNG/Include -i=/usr/local/include/ python2.2 -ms -fo=build/temp.qnx-O-PCI-2.2/ufuncobject.o -4r -i=/usr/ watcom/10.6/usr/include -i=/usr/include Src/ufuncobject.c wlink build/temp.qnx-O-PCI-2.2/_numpymodule.o build/temp.qnx-O-PCI-2.2/ arrayobject.o build/temp.qnx-O-PCI-2.2/ufuncobject.o -o build/lib.qnx- O-PCI-2.2/_numpy.so WATCOM Linker Version 10.6 Copyright by WATCOM International Corp. 1985, 1996. All rights reserved. WATCOM is a trademark of WATCOM International Corp. Error(3033): directive error near 'build/temp.qnx-O-PCI-2.2/ _numpymodule.o' error: command 'wlink' failed with exit status 1 -- http://mail.python.org/mailman/listinfo/python-list