Re: [Python-Dev] problems building Python 2.1a1 on QNX 4.25
Hello Guido, nice to see the first 2.1 version :) At 16:52 26.01.01 -0500, you wrote:
[CC'ing to Armin Steinhoff, who maintains pyqnx on SourceForge.]
I'm having trouble building Python 2.1a1 on QNX 4.25. Caveat: my C is very rusty (long live Python!), I don't know my way around configure, and am not familiar with Python's Makefile. Python 2.0 compiled fine (with a couple of tweaks), but I'm getting caught by the new way of building things. Please help if you can! Many thanks in advance.
Here's an excerpt of my efforts:
# cd /tmp/py # gunzip -c < python-2.1a1.tgz | tar -rf - # cd Python-2.1a1 # ./configure 2>&1 | tee ../configure.1
I did a fast hack with the new 2.1 version: CC=cc LINKCC=cc configure --without-gcc --shared=no --without-threads (Hope '--shared=no' works ... QNX4 doesn't support dynamic loading) Please replace all references to g++ by cc -> in the main Makefile and the Modules/Makefile. In the Modules/Makefile set LDFLAGS=250K ... the default stacksize of 32K seems to be too small.
# make 2>&1 | tee ../make.1 ... ./python //5/tmp/py/Python-2.1a1/setup.py build 'import site' failed; use -v for traceback
'python -v' shows that the module 'distutils.util' isn't there .... it seems to be not included in the source distribution. 'import site' failed; traceback: Traceback (most recent call last): File "//1/Python-2.1a1/Lib/site.py", line 85, in ? from distutils.util import get_platform ImportError: No module named distutils.util ^^^^^^^^^^^^^^ [ clip ..]
This is probably in the realm of the distutils. I have no idea how to teach it to build on QNX, sorry!
IMHO ... it is not a path problem. In the moment there is no time left for me to go into these details. A clean port will happen in a few weeks. Please check out PyQNX for news regarding QNX4.25 and QNX6.0 (aka QNX Neutrino). Greetings Armin Steinhoff Life-Demo of PyDACHS http://www.dachs.net/PyDACHS_python-tilcon.htm in our booth at Embedded Systems 2001, Nuremberg, GER http://www.embedded-systems-messe.de Febr. 14-16, 2000 Hall 11, Booth P 04
participants (1)
-
Armin Steinhoff