[New-bugs-announce] [issue8461] PythonLauncher universal build fails due to missing -arch and -sysroot

Ned Deily report at bugs.python.org
Mon Apr 19 15:43:42 CEST 2010


New submission from Ned Deily <nad at acm.org>:

Fixes for Issue8366 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.

----------
assignee: ronaldoussoren
components: Macintosh
files: issue-python-launcher-arch.txt
messages: 103594
nosy: ned.deily, ronaldoussoren
severity: normal
status: open
title: PythonLauncher universal build fails due to missing -arch and -sysroot
type: compile error
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file16987/issue-python-launcher-arch.txt

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8461>
_______________________________________


More information about the New-bugs-announce mailing list