[Python-Dev] OS X build break (original) (raw)

Ned Deily nad at acm.org
Sat Feb 4 14:35:58 CET 2012


In article <CAK1QooqSgnSkX7Uw0=UGyzGJiNFUsPDA+=VF3iQmdpyY0ZRgCQ at mail.gmail.com>, Meador Inge <meadori at gmail.com> wrote:

On Sat, Dec 31, 2011 at 5:56 PM, Guido van Rossum <guido at python.org> wrote:

> PS. I would propose a specific fix but I can't seem to build a working > CPython from the trunk on my laptop (OS X 10.6, Xcode 4.1). I get this error > late in the build: > > ./python.exe -SE -m sysconfig --generate-posix-vars > Fatal Python error: PyInitialize: can't initialize sys standard streams > Traceback (most recent call last): >   File "/Users/guido/cpython/Lib/io.py", line 60, in > make: *** [Lib/sysconfigdata.py] Abort trap I am having this problem now too. I am running OS X 10.7.2. 3.2 still builds for me, but I can't build default. Did you ever get past it? Anyone else seeing this?

Chances are you are using llvm-gcc-4.2, the default CC for Xcode 4.2.
There is a critical compile error with it (Issue13241) when building default (3.3). My current recommendations (despite some test failures):

./configure --with-pydebug CC=clang MACOSX_DEPLOYMENT_TARGET=10.7

/usr/bin/gcc-4.2 --version ./configure MACOSX_DEPLOYMENT_TARGET=10.6 or ./configure --with-pydebug MACOSX_DEPLOYMENT_TARGET=10.6

./configure --with-pydebug CC=clang MACOSX_DEPLOYMENT_TARGET=10.6

Unfortunately, testing and sorting out the issues with the current OS X compilers has taken much much longer than anticipated, primarily because it's a big task and, until several days ago, I have had no time to devote to it. But I'm making progress now with installer builds completed for all of default, 3.2-tip, 3.2.2, 2.7-tip, and 2.7.2, each with all of the major compiler combinations on 10.5, 10.6 (Xcode 3.2 and 4.2), and 10.7 (4.1 and 4.2); the tests are running now on each of the applicable environments (that will take about another week to complete).
Realistically, we should be able to have everything tested, fixed, and documented by the end of the PyCon sprints next month. We will also have some recommendations for buildbot changes.

BTW, the current test failures with clang without pydebug include a number of ctypes test failures (in ctypes.test.test_cfuncs.CFunctions).
If anyone has time to further investigate those, it would be very helpful (Issue13370).

-- Ned Deily, nad at acm.org



More information about the Python-Dev mailing list