[New-bugs-announce] [issue4532] Fails to build on QNX 6.3.2

Matt Kraai report at bugs.python.org
Thu Dec 4 19:25:14 CET 2008


New submission from Matt Kraai <kraai at ftbfs.org>:

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.

----------
components: Build
files: fix-qnx-build-errors
messages: 76912
nosy: kraai
severity: normal
status: open
title: Fails to build on QNX 6.3.2
type: compile error
versions: Python 3.0
Added file: http://bugs.python.org/file12224/fix-qnx-build-errors

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4532>
_______________________________________


More information about the New-bugs-announce mailing list