This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: build-installer.py fails using Xcode 5.1 on OS X 10.9
Type: Stage: resolved
Components: Build, macOS Versions: Python 3.4, Python 3.5, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ned.deily Nosy List: Alzakath, ned.deily, python-dev, ronaldoussoren
Priority: normal Keywords:

Created on 2014-04-09 09:21 by Alzakath, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
build-installer.py Alzakath, 2014-04-09 09:21
Messages (4)
msg215810 - (view) Author: Hervé Coatanhay (Alzakath) * Date: 2014-04-09 09:21
With XCode 5.1 some changes were made to clang, making it impossible to build Mac OS X installer.

Shipped SQLite and Sleepycat DB pass CFLAGS and LDFLAGS to compiler in their compiler check in configure script.

In particular -syslibroot option is a linker option not a compiler option, and since XCode 5.1 unused command line options are considered as errors.

I manage to work around this problem with the following extra CFLAGS:
-Wno-error=unused-command-line-argument-hard-error-in-future

I joined my modified version of build-installer.py
msg215811 - (view) Author: Hervé Coatanhay (Alzakath) * Date: 2014-04-09 09:27
By the way it seems more like an SQLite / Sleepycat issue as LDFLAGS should be passed to linker not compiler. Proposed modifications are just workarounds to allow Mac installer creation on OS X 10.9.
msg215855 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-04-09 23:23
New changeset 63a55ed6622b by Ned Deily in branch '2.7':
Issue #21187: Fix OS X installer fail-to-build with Xcode 5.1.
http://hg.python.org/cpython/rev/63a55ed6622b

New changeset a3299de5fc93 by Ned Deily in branch '3.4':
Issue #21187: Fix OS X installer fail-to-build with Xcode 5.1.
http://hg.python.org/cpython/rev/a3299de5fc93

New changeset b402e5e06f85 by Ned Deily in branch 'default':
Issue #21187: merge with 3.4
http://hg.python.org/cpython/rev/b402e5e06f85
msg215856 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2014-04-09 23:29
Thanks for the report.  It should work OK now.
History
Date User Action Args
2022-04-11 14:58:01adminsetgithub: 65386
2014-04-09 23:29:57ned.deilysetstatus: open -> closed

components: + Build
title: 2.7 build-installer.py with OS X 10.9 -> build-installer.py fails using Xcode 5.1 on OS X 10.9
resolution: fixed
versions: + Python 3.4, Python 3.5
messages: + msg215856
stage: resolved
2014-04-09 23:23:56python-devsetnosy: + python-dev
messages: + msg215855
2014-04-09 17:10:44ned.deilysetassignee: ronaldoussoren -> ned.deily

nosy: + ned.deily
2014-04-09 09:27:50Alzakathsetmessages: + msg215811
2014-04-09 09:21:17Alzakathcreate