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

source install [3.7.1] on debian jessie #79255

Closed
foxleoly mannequin opened this issue Oct 26, 2018 · 6 comments
Closed

source install [3.7.1] on debian jessie #79255

foxleoly mannequin opened this issue Oct 26, 2018 · 6 comments
Labels
3.7 (EOL) end of life build The build process and cross-build

Comments

@foxleoly
Copy link
Mannequin

foxleoly mannequin commented Oct 26, 2018

BPO 35074
Nosy @tirkarthi, @foxleoly
Superseder
  • bpo-34112: 3.7.0 build error with --enable-optimizations
  • 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 2018-10-27.06:16:56.732>
    created_at = <Date 2018-10-26.06:57:55.149>
    labels = ['build', '3.7']
    title = 'source install [3.7.1] on debian jessie'
    updated_at = <Date 2018-10-27.06:16:56.730>
    user = 'https://github.com/foxleoly'

    bugs.python.org fields:

    activity = <Date 2018-10-27.06:16:56.730>
    actor = 'xtreak'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-10-27.06:16:56.732>
    closer = 'xtreak'
    components = []
    creation = <Date 2018-10-26.06:57:55.149>
    creator = 'foxleoly'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 35074
    keywords = []
    message_count = 6.0
    messages = ['328516', '328540', '328637', '328640', '328645', '328646']
    nosy_count = 2.0
    nosy_names = ['xtreak', 'foxleoly']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '34112'
    type = 'compile error'
    url = 'https://bugs.python.org/issue35074'
    versions = ['Python 3.7']

    @foxleoly
    Copy link
    Mannequin Author

    foxleoly mannequin commented Oct 26, 2018

    Hi Team,
    I met the issue consistently on 3.7 and 3.7.1.

    The configure is well, but when the make will output error messges:

    step1: [ok]
    sudo ./configure --prefix=/opt/python3.71 --enable-optimizations

    step2: make [fail]

    if test $? -ne 0 ; then \
    	echo "generate-posix-vars failed" ; \
    	rm -f ./pybuilddir.txt ; \
    	exit 1 ; \
    fi
    Could not import runpy module
    Traceback (most recent call last):
      File "/opt/Python-3.7.1/Lib/runpy.py", line 15, in <module>
        import importlib.util
      File "/opt/Python-3.7.1/Lib/importlib/util.py", line 14, in <module>
        from contextlib import contextmanager
      File "/opt/Python-3.7.1/Lib/contextlib.py", line 4, in <module>
        import _collections_abc
    SystemError: <built-in function compile> returned NULL without setting an error
    generate-posix-vars failed
    Makefile:595: recipe for target 'pybuilddir.txt' failed
    make[1]: *** [pybuilddir.txt] Error 1
    make[1]: Leaving directory '/opt/Python-3.7.1'
    Makefile:523: recipe for target 'profile-opt' failed
    make: *** [profile-opt] Error 2

    (venv36) myhost ➜ Python-3.7.1 gcc --version
    gcc (Debian 4.9.2-10+deb8u1) 4.9.2
    Copyright (C) 2014 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    (venv36) myhost ➜ Python-3.7.1 uname -a
    Linux docker 3.16.0-6-amd64 #1 SMP Debian 3.16.57-2 (2018-07-14) x86_64 GNU/Linux

    Any questions pls mail me.

    @foxleoly foxleoly mannequin added 3.7 (EOL) end of life build The build process and cross-build labels Oct 26, 2018
    @tirkarthi
    Copy link
    Member

    Thanks for the report. Is this related using older version of GCC? Searching the bug tracker tells me a related issue (https://bugs.python.org/issue34112) where --enable-optimizations caused build error on 3.7.0 for older compiler toolchain like GCC 4 with a very similar traceback.

    • Can you please upgrading GCC and try?
    • Does the build also fails without --enable-optimizations flag with your current version of GCC?

    @foxleoly
    Copy link
    Mannequin Author

    foxleoly mannequin commented Oct 27, 2018

    I've tested 2 way to solve this:

    1. disable --enable-optimizations option. the software can be compile and install successful.
    2. upgrade gcc version to 8.2.0.

    docker ➜ bin gcc --version
    gcc (Debian 8.2.0-8) 8.2.0
    Copyright (C) 2018 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    @tirkarthi
    Copy link
    Member

    Thanks, I guess then it's the same as bpo-34112 with --enable-optimizations being incompatible with older compiler toolchains like GCC 4 in this case. Feel free to close this if it resolves the issue.

    @foxleoly
    Copy link
    Mannequin Author

    foxleoly mannequin commented Oct 27, 2018

    Sure! Yes, Pls close it.

    @tirkarthi
    Copy link
    Member

    Sure, I am closing it with duplicate as resolution adding the related ticket bpo-34112 as superseder. Thanks for the report!

    @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
    3.7 (EOL) end of life build The build process and cross-build
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant