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

Python 3.3.0a3 build fails on MacOS 10.7 with XCode 4.3.2 #59137

Closed
ThomasRobitaille mannequin opened this issue May 28, 2012 · 4 comments
Closed

Python 3.3.0a3 build fails on MacOS 10.7 with XCode 4.3.2 #59137

ThomasRobitaille mannequin opened this issue May 28, 2012 · 4 comments
Labels
build The build process and cross-build topic-installation

Comments

@ThomasRobitaille
Copy link
Mannequin

ThomasRobitaille mannequin commented May 28, 2012

BPO 14932
Nosy @hynek
Superseder
  • bpo-13241: llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)
  • Files
  • python3.3_log
  • 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 2012-05-28.11:39:52.642>
    created_at = <Date 2012-05-28.10:57:52.104>
    labels = ['build', 'expert-installation']
    title = 'Python 3.3.0a3 build fails on MacOS 10.7 with XCode 4.3.2'
    updated_at = <Date 2012-05-28.12:56:31.143>
    user = 'https://bugs.python.org/ThomasRobitaille'

    bugs.python.org fields:

    activity = <Date 2012-05-28.12:56:31.143>
    actor = 'hynek'
    assignee = 'none'
    closed = True
    closed_date = <Date 2012-05-28.11:39:52.642>
    closer = 'hynek'
    components = ['Installation']
    creation = <Date 2012-05-28.10:57:52.104>
    creator = 'Thomas.Robitaille'
    dependencies = []
    files = ['25743']
    hgrepos = []
    issue_num = 14932
    keywords = []
    message_count = 4.0
    messages = ['161765', '161769', '161771', '161777']
    nosy_count = 2.0
    nosy_names = ['hynek', 'Thomas.Robitaille']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '13241'
    type = 'compile error'
    url = 'https://bugs.python.org/issue14932'
    versions = ['Python 3.3']

    @ThomasRobitaille
    Copy link
    Mannequin Author

    ThomasRobitaille mannequin commented May 28, 2012

    I can build Python 2.6 to 3.2 on MacOS 10.7 with XCode 4.3.2 using solely:

    ./configure
    make
    

    But if I do this with Python 3.3 alpha 3 I get the following error:

    gcc   -framework CoreFoundation -o python.exe [Modules/python.o](https://github.com/python/cpython/blob/main/Modules/python.o) libpython3.3m.a -ldl  -framework CoreFoundation     
    ./python.exe -SE -m sysconfig --generate-posix-vars
    Could not find platform dependent libraries <exec_prefix>
    Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
    python.exe(92825) malloc: *** mmap(size=7310873954244194304) failed (error code=12)
    *** error: can't allocate region
    *** set a breakpoint in malloc_error_break to debug
    Could not import runpy module
    make: *** [[Lib/_sysconfigdata.py](https://github.com/python/cpython/blob/main/Lib/_sysconfigdata.py)] Segmentation fault: 11
    

    The full log is attached.

    @ThomasRobitaille ThomasRobitaille mannequin added topic-installation build The build process and cross-build labels May 28, 2012
    @hynek
    Copy link
    Member

    hynek commented May 28, 2012

    Hello Thomas,

    I presume your gcc is Apple's llvm-gcc (gcc --version output starts with "i686-apple-darwin11-llvm-gcc-4.2"), which is unfortunately a known to miscompile Python 3.3.

    If you want to compile the latest Python 3.3 on OS X, use clang ("CC=clang ./configure" or "./configure CC=clang") which is also part of Apple's dev tools and works fine.

    @hynek hynek closed this as completed May 28, 2012
    @ThomasRobitaille
    Copy link
    Mannequin Author

    ThomasRobitaille mannequin commented May 28, 2012

    Thanks for the quick reply - wouldn't it make sense to add a directive to the configure script so that if the compiler matches 'i686-apple-darwin11-llvm-gcc-4.2', clang is used instead?

    @hynek
    Copy link
    Member

    hynek commented May 28, 2012

    Have a look at bpo-13241 which is dedicated to this problem, especially at msg160081.

    @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 topic-installation
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant