Message76912
When I try to build Python 3.0 on QNX 6.3.2, the build has the following
error:
gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-I. -IInclude -I./Include -DPy_BUILD_CORE -o Python/pythonrun.o
Python/pythonrun.c
Python/pythonrun.c: In function `Py_InitializeEx':
...
Python/pythonrun.c:180: `LC_CTYPE' undeclared (first use in this function)
Python/pythonrun.c:180: (Each undeclared identifier is reported only once
Python/pythonrun.c:180: for each function it appears in.)
...
make: *** [Python/pythonrun.o] Error 1
LC_CTYPE is defined in locale.h, which isn't included because
HAVE_LANGINFO_H isn't defined because QNX 6.3.2 doesn't provide
langinfo.h. The setlocale call in the trunk is guarded by
HAVE_LANGINFO_H, so maybe that should be done here as well.
Once this error has been fixed, the following error occurs:
gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-I. -IInclude -I./Include -DPy_BUILD_CORE -DPYTHONPATH='":plat-qnx6"' \
-DPREFIX='"/usr/local"' \
-DEXEC_PREFIX='"/usr/local"' \
-DVERSION='"3.0"' \
-DVPATH='""' \
-o Modules/getpath.o ./Modules/getpath.c
./Modules/getpath.c:132: invalid initializer
...
make: *** [Modules/getpath.o] Error 1
This version of GCC apparently cannot handle wchar_t array initializers.
This can be worked around by changing the type of lib_python to a
wchar_t pointer instead. |
|
Date |
User |
Action |
Args |
2008-12-04 18:25:14 | kraai | set | recipients:
+ kraai |
2008-12-04 18:25:14 | kraai | set | messageid: <1228415114.24.0.8798028778.issue4532@psf.upfronthosting.co.za> |
2008-12-04 18:25:13 | kraai | link | issue4532 messages |
2008-12-04 18:25:11 | kraai | create | |
|