[lxml-dev] building lxml for OS X 10.4 on PPC?

Pascal Oberndoerfer p.oberndoerfer at urheberrecht.org
Fri Jul 17 01:18:25 CEST 2009


Michael Guntsche schrieb:
> 
> On Jul 16, 2009, at 19:59, Pascal Oberndoerfer wrote:
>> I get the following "last lines" (below) during compiling libxml2, where
>> I suppose the important bit is:
>>
>>> /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld:
>>> warning /usr/lib/libiconv.dylib cputype (18,
>>> architecture ppc) does not match cputype (7)
>>> for specified -arch flag: i386 (file not loaded)
>>
> 
> Ok, I was able to reproduce the problem. I also have a quick fix but
> it's more a hack than anything else.
> First the problem. During the creation of the static libxml.a library
> libtool also creates an libxml2.la file.
> libtool finds /usr/lib/libiconv.la which defines /usr/lib/libiconv.dylib
> above. Now this file is no fat-binary and just has the PCC architecture.
> As a workaround rename /usr/lib/libiconv.la or move it somewhere else,
> build lxml and move/rename the file back. This way the "correct"
> libiconv.dylib will be used.
> 
> I think the most proper fix would be to build libiconv as part of the
> static-deps as well. Stefan what do you think?
> 
> Kind regards,
> Michael
> 

This allowed me to build on a G4 PPC and a G5 PPC Mac. Thanks!

The very last step: "Building against libxml2/libxslt in the following
directory:
/private/tmp/easy_install-W57UyT/lxml-2.2.2/build/tmp/libxml2/lib" takes
quite long. Is this expected behaviour?

I will do some testing over the weekend. Please let me know if I can do
some testing etc.

Best regards & again: thanks!

Pascal


More information about the lxml-dev mailing list