[SciPy-dev] trouble building from svn

Darren Dale dsdale24@gmail....
Wed Dec 2 09:02:11 CST 2009


On Tue, Dec 1, 2009 at 8:10 AM, Darren Dale <dsdale24@gmail.com> wrote:
> On Mon, Nov 30, 2009 at 11:37 PM, David Cournapeau
> <david@ar.media.kyoto-u.ac.jp> wrote:
>> Darren Dale wrote:
>>> I am attempting to build scipy from svn sources on OS X 10.6. I get
>>> the following error, could anyone please advise?
>>>
>>> C compiler: gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes
>>> -arch x86_64 -pipe
>>>
>>
>> Most likely you have LDFLAGS defined in your environment, which screws
>> up the build. LDFLAGS (and other similar variables) do not work as
>> expected with distutils, they *override* the options instead of
>> completing them.
>>
>> The actual error is that the link step is missing the -shared option,
>> hence the missing errors, as the linker tries to build an executable.
>
> Thanks David, I think you are probably right. I had set some
> environment variables to build packages like hdf5, which defaults to
> 32 bit because "uname" returns i386 on snow leopard. I'll not at work
> today, so I will try again on the mac tomorrow.
>

I removed the following environment variables:

#export CFLAGS="-arch x86_64"
#export LDFLAGS="-arch x86_64"
#export FFLAGS="-arch x86_64"

and was able to build scipy again. Thank you David!


More information about the SciPy-Dev mailing list