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

PythonLauncher universal build fails due to missing -arch and -sysroot #52707

Closed
ned-deily opened this issue Apr 19, 2010 · 2 comments
Closed
Assignees
Labels
build The build process and cross-build OS-mac

Comments

@ned-deily
Copy link
Member

BPO 8461
Nosy @ronaldoussoren, @ned-deily
Files
  • issue-python-launcher-arch.txt
  • 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 = 'https://github.com/ronaldoussoren'
    closed_at = <Date 2010-04-20.20:54:04.354>
    created_at = <Date 2010-04-19.13:43:41.424>
    labels = ['OS-mac', 'build']
    title = 'PythonLauncher universal build fails due to missing -arch and -sysroot'
    updated_at = <Date 2010-04-20.20:54:04.352>
    user = 'https://github.com/ned-deily'

    bugs.python.org fields:

    activity = <Date 2010-04-20.20:54:04.352>
    actor = 'ronaldoussoren'
    assignee = 'ronaldoussoren'
    closed = True
    closed_date = <Date 2010-04-20.20:54:04.354>
    closer = 'ronaldoussoren'
    components = ['macOS']
    creation = <Date 2010-04-19.13:43:41.424>
    creator = 'ned.deily'
    dependencies = []
    files = ['16987']
    hgrepos = []
    issue_num = 8461
    keywords = []
    message_count = 2.0
    messages = ['103594', '103755']
    nosy_count = 2.0
    nosy_names = ['ronaldoussoren', 'ned.deily']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'compile error'
    url = 'https://bugs.python.org/issue8461'
    versions = ['Python 2.6', 'Python 3.1', 'Python 2.7', 'Python 3.2']

    @ned-deily
    Copy link
    Member Author

    Fixes for bpo-8366 corrected build failures with universal builds on OS X due to changes in the settings of CFLAGS and BASECFLAGS, which had caused -arch values to be added to both CFLAGS and BASECFLAGS. The Mac Makefile for the PythonLauncher app needs to be changed as well, otherwise universal builds can now fail with errors like:

    ld warning: in FileSettings.o, file is not of required architecture
    ld warning: in MyAppDelegate.o, file is not of required architecture
    ld warning: in MyDocument.o, file is not of required architecture
    ld warning: in PreferencesWindowController.o, file is not of required architecture
    ld warning: in doscript.o, file is not of required architecture
    ld warning: in main.o, file is not of required architecture
    Undefined symbols for architecture i386:
    "_main", referenced from:
    __start in crt1.o
    ld: symbol(s) not found for architecture i386

    The attached patch corrects the problem.

    @ned-deily ned-deily added OS-mac build The build process and cross-build labels Apr 19, 2010
    @ronaldoussoren
    Copy link
    Contributor

    I've fixed this issue in all branches and can now do clean builds.

    BTW. Builds with the 10.4u SDK on OSX fail at the moment for 2.7 and 3.2, that's due to bpo-7724, I've attached a patch to that issue that should fix it (for the trunk, porting it to 3.2 should be trivial).

    @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 OS-mac
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants