Skip to content

3.3.0a4 compilation fails von MacOS Lion /10.7.4 #59186

Closed

Description

@zopyx
mannequin
BPO 14981
Nosy @zopyx, @ronaldoussoren, @ned-deily, @hynek
Superseder
  • bpo-13241: llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)
  • 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-06-01.17:54:27.604>
    created_at = <Date 2012-06-01.17:27:30.440>
    labels = ['OS-mac', 'build']
    title = '3.3.0a4 compilation fails von MacOS Lion /10.7.4'
    updated_at = <Date 2012-06-01.18:01:26.854>
    user = 'https://github.com/zopyx'

    bugs.python.org fields:

    activity = <Date 2012-06-01.18:01:26.854>
    actor = 'ned.deily'
    assignee = 'nobody'
    closed = True
    closed_date = <Date 2012-06-01.17:54:27.604>
    closer = 'hynek'
    components = ['Build', 'macOS']
    creation = <Date 2012-06-01.17:27:30.440>
    creator = 'ajung'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 14981
    keywords = []
    message_count = 3.0
    messages = ['162082', '162084', '162087']
    nosy_count = 5.0
    nosy_names = ['nobody', 'ajung', 'ronaldoussoren', 'ned.deily', 'hynek']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '13241'
    type = 'compile error'
    url = 'https://bugs.python.org/issue14981'
    versions = ['Python 3.3']

    Activity

    1. zopyx commented on Jun 1, 2012

      zopyxmannequin
      MannequinAuthor

      ranlib: file: libpython3.3m.a(dynamic_annotations.o) has no symbols
      ranlib: file: libpython3.3m.a(pymath.o) has no symbols
      gcc -framework CoreFoundation -o python.exe Modules/python.o libpython3.3m.a -ldl -framework CoreFoundation
      gcc -framework CoreFoundation -o Modules/_testembed Modules/_testembed.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(41191) 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] Segmentation fault: 11

    2. added
      buildThe build process and cross-build
      on Jun 1, 2012
    3. hynek commented on Jun 1, 2012

      @hynek
      Member

      Dupe of bpo-13241. Apple's llvm-gcc is broken, please use clang instead (CC=clang ./configure).

    4. ned-deily commented on Jun 1, 2012

      @ned-deily
      Member

      This is a known issue with using Apple's llvm-gcc compiler. Make sure you've installed either the latest version of Xcode for OS X 10.7 (currently Xcode 4.3.x) and install the optional Command Line Tools component (Xcode -> Preferences -> Downloads -> Components) or download and install the latest version of the new standalone Command Line Tools package (late March) for 10.7 and then configure the build to use clang as compiler.

      ./configure CC=clang
      

      The defaults ./configure uses will be updated prior to beta releases of 3.3.

    5. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      OS-macbuildThe build process and cross-build

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions