[Distutils] trouble determining source for gcc command arguments

2 views
Skip to first unread message

Robert Altman

unread,
Feb 4, 2012, 2:06:39 PM2/4/12
to distut...@python.org
I have two mac os/x computers, each up to date with the same compiler
and environments, yet it appears that distutils is emitting different
gcc arguments. Specifically, one of the computers is attempting to
compile Mercurial using the -isysoot ... argument, effectively causing
the build process to fail.
Details: os/x 10.7
Python 2.7.2 (installed from 10.7 installer at python.org)
Mercurial source is 2.1
I don't see any environment settings which would cause gcc to use to
-isysroot argument and I cannot determine where else it might be
coming from (it is not in the Mercurial project), so I believe it must
be coming from distutils.

Thanks!

Robert
_______________________________________________
Distutils-SIG maillist - Distut...@python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Ned Deily

unread,
Feb 5, 2012, 4:36:41 AM2/5/12
to Distut...@python.org
In article
<CAPVV--O+__Bg5MHBe5haq1BT...@mail.gmail.com>,
Robert Altman <rob...@altmansoftwaredesign.com> wrote:

> I have two mac os/x computers, each up to date with the same compiler
> and environments, yet it appears that distutils is emitting different
> gcc arguments. Specifically, one of the computers is attempting to
> compile Mercurial using the -isysoot ... argument, effectively causing
> the build process to fail.
> Details: os/x 10.7
> Python 2.7.2 (installed from 10.7 installer at python.org)
> Mercurial source is 2.1
> I don't see any environment settings which would cause gcc to use to
> -isysroot argument and I cannot determine where else it might be
> coming from (it is not in the Mercurial project), so I believe it must
> be coming from distutils.

On OS/X, Distutils tries to ensure that any C extension modules it is
asked to build are built with the same compiler options as Python itself
was built with. There is no particular reason why -sysroot should be a
problem for building hg. If you are seeing different results on the two
machines with the same OS level and Pythons, most likely you aren't
using the Pythons you think you are or you are setting environment
variables to override the defaults. In any case, you need to provide
more information. Exactly what errors are you seeing?

--
Ned Deily,
n...@acm.org

Reply all
Reply to author
Forward
0 new messages