Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build on QNX 6.3.2 #48782

Closed
kraai mannequin opened this issue Dec 4, 2008 · 4 comments
Closed

Fails to build on QNX 6.3.2 #48782

kraai mannequin opened this issue Dec 4, 2008 · 4 comments
Labels
build The build process and cross-build

Comments

@kraai
Copy link
Mannequin

kraai mannequin commented Dec 4, 2008

BPO 4532
Nosy @loewis, @akuchling, @tiran
Files
  • fix-qnx-build-errors: Patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2010-02-22.23:27:04.838>
    created_at = <Date 2008-12-04.18:25:13.589>
    labels = ['build']
    title = 'Fails to build on QNX 6.3.2'
    updated_at = <Date 2010-02-22.23:27:04.836>
    user = 'https://bugs.python.org/kraai'

    bugs.python.org fields:

    activity = <Date 2010-02-22.23:27:04.836>
    actor = 'akuchling'
    assignee = 'none'
    closed = True
    closed_date = <Date 2010-02-22.23:27:04.838>
    closer = 'akuchling'
    components = ['Build']
    creation = <Date 2008-12-04.18:25:13.589>
    creator = 'kraai'
    dependencies = []
    files = ['12224']
    hgrepos = []
    issue_num = 4532
    keywords = []
    message_count = 4.0
    messages = ['76912', '76923', '76942', '99871']
    nosy_count = 4.0
    nosy_names = ['loewis', 'akuchling', 'christian.heimes', 'kraai']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = 'patch review'
    status = 'closed'
    superseder = None
    type = 'compile error'
    url = 'https://bugs.python.org/issue4532'
    versions = ['Python 3.0']

    @kraai
    Copy link
    Mannequin Author

    kraai mannequin commented Dec 4, 2008

    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](https://github.com/python/cpython/blob/main/Python/pythonrun.c#L180): 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.

    @kraai kraai mannequin added build The build process and cross-build labels Dec 4, 2008
    @tiran
    Copy link
    Member

    tiran commented Dec 4, 2008

    The patch is looking good to me.

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Dec 4, 2008

    Why is this a release blocker? QNX is not a supported platform, so
    failures on it cannot possibly block a release.

    @loewis loewis mannequin removed the release-blocker label Dec 10, 2008
    @akuchling
    Copy link
    Member

    Committed to Python 3.2-trunk as rev78347. Thanks for your patch!

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    build The build process and cross-build
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants