← Back to team overview

dulwich-users team mailing list archive

Re: patch: fix compilation for people with XCode 4

 

Hi Daniele,

On Mon, 2011-04-11 at 12:11 +0200, Daniele Sluijters wrote:

> I ran into the problem that with XCode 4 installed, dulwich could not
> build the C modules:
> 
> 
> /usr/include/AvailabilityMacros.h:108:14: warning: #warning Building
> for Intel with Mac OS X Deployment Target < 10.4 is invalid.
> /usr/libexec/gcc/powerpc-apple-darwin10/4.0.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
> lipo: can't open input file: /var/tmp//ccWjFnmz.out (No such file or
> directory)
> error: command 'gcc-4.0' failed with exit status 1

> I remembered a patch in Mercurial that came along a few weeks ago that
> mentioned "fix compilation of plugins for XCode 4" so I applied their
> changes to dulwich's setup.py and now dulwich builds as usual on OS X
> 10.6+ with XCode 4.
Merged, thanks.

Cheers,

Jelmer

Attachment: signature.asc
Description: This is a digitally signed message part