lxml fails to compile on default OS X install

Bug #790518 reported by Noah Slater on 2011-05-31
This bug report is a duplicate of:  Bug #738500: Xcode 4.0 breaks lxml build. Edit Remove
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

$ python --version
Python 2.6.1
$ easy_install lxml
Searching for lxml
Reading http://pypi.python.org/simple/lxml/
Reading http://codespeak.net/lxml
Best match: lxml 2.3
Downloading http://lxml.de/files/lxml-2.3.tgz
Processing lxml-2.3.tgz
Running lxml-2.3/setup.py -q bdist_egg --dist-dir /var/folders/Qx/QxKEgUBFEde71mkMO8YHp++++TI/-Tmp-/easy_install-uJDqDz/lxml-2.3/egg-dist-tmp-DNaX6M
Building lxml version 2.3.
Building without Cython.
Using build configuration of libxslt 1.1.24
/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
src/lxml/lxml.etree.c:161594: fatal error: error writing to -: Broken pipe
compilation terminated.

Noah Slater (nslater) wrote :

Seems to go away if I su to root and run:

export ARCHFLAGS="-arch i386 -arch x86_64"

Most users wont figure this out though.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers