This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kraai
Recipients kraai
Date 2008-12-04.18:25:11
SpamBayes Score 2.9969244e-06
Marked as misclassified No
Message-id <1228415114.24.0.8798028778.issue4532@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2008-12-04 18:25:14kraaisetrecipients: + kraai
2008-12-04 18:25:14kraaisetmessageid: <1228415114.24.0.8798028778.issue4532@psf.upfronthosting.co.za>
2008-12-04 18:25:13kraailinkissue4532 messages
2008-12-04 18:25:11kraaicreate