I managed to find a Makefile somewhere in the python distribution and removed 
the no-long-double float,so it gets past this hurdle, but then comes up against 
another, something about "LONG_BIT definition appears wrong for platform (bad 
gcc/glibc config" which I don't understand. 

this is all getting a bit beyond me, I'm afraid. Python of Macs doesn'tseem to 
be well supported. 
I don't really know much about c programming. 

Maybe I will have to run it on windows, instead, at least it comes with a 
binary version. 

Glenn

Macintosh-4:pysparse-1.1 glennfulford$ python setup.py install
running install
running build
running build_py
running build_ext
building 'pysparse.spmatrix' extension
gcc -fno-strict-aliasing -no-cpp-precomp -mno-fused-madd -fno-common -dynamic 
-DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/5.1.1/include 
-DNUMPY=1 -IInclude 
-I/Library/Frameworks/Python.framework/Versions/5.1.1/lib/python2.5/site-packages/numpy/core/include
 -I/Library/Frameworks/Python.framework/Versions/5.1.1/include/python2.5 -c 
Src/spmatrixmodule.c -o build/temp.macosx-10.3-i386-2.5/Src/spmatrixmodule.o
In file included from /usr/include/architecture/i386/math.h:626,
                 from /usr/include/math.h:28,
                 from 
/Library/Frameworks/Python.framework/Versions/5.1.1/include/python2.5/pyport.h:231,
                 from 
/Library/Frameworks/Python.framework/Versions/5.1.1/include/python2.5/Python.h:57,
                 from Src/spmatrixmodule.c:1:
/usr/include/AvailabilityMacros.h:108:14: warning: #warning Building for Intel 
with Mac OS X Deployment Target < 10.4 is invalid.

In file included from 
/Library/Frameworks/Python.framework/Versions/5.1.1/include/python2.5/Python.h:57,
                 from Src/spmatrixmodule.c:1:
/Library/Frameworks/Python.framework/Versions/5.1.1/include/python2.5/pyport.h:761:2:
 error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc 
config?)."
In file included from Src/spmatrixmodule.c:24:
Src/ll_mat.c:3146: warning: initialization from incompatible pointer type
In file included from Src/spmatrixmodule.c:26:
Src/sss_mat.c:216: warning: initialization from incompatible pointer type
error: command 'gcc' failed with exit status 1

________________________________________
From: [email protected] [[email protected]] On Behalf Of Daniel Wheeler 
[[email protected]]
Sent: Thursday, 7 January 2010 7:48 AM
To: Multiple recipients of list
Subject: Re: install pysparse problem

As a quick and dirty fix you can simply copy and paste the command to
the command line and delete the offending argument and then rerun
"python setup.py install". You may need to do this a few times.

On Wed, Jan 6, 2010 at 4:32 PM, Glenn Fulford <[email protected]> wrote:
>
> thanks,
>
> I am using gcc 4.2.1.
>
> I did a google search on gcc and no-long-float, and it seems that gcc no 
> longer recognises the no-long-float directive.
> I had a look in setup.py for pysparse, and could not find anywhere there 
> where this was being called, so that I could just delete this directive.
>
> Any suggestions where I might look for this?
>
> thanks, Glenn
>
>
>
> ________________________________________
> From: [email protected] [[email protected]] On Behalf Of Daniel Wheeler 
> [[email protected]]
> Sent: Thursday, 7 January 2010 1:22 AM
> To: Multiple recipients of list
> Subject: Re: install pysparse problem
>
> Hi Glenn, I had a mac for awhile and this issue looks vaguely familiar
> but I can't remember the solution. My colleagues both have macs so
> they might weigh in and you might also want to try the pysparse
> mailing list as well. Cheers
>
> On Wed, Jan 6, 2010 at 12:41 AM, Glenn Fulford <[email protected]> wrote:
>>
>> I am trying to install fipy on a Mac, but stuck at the pysparse step.
>>
>> I have installed the enthoughtpythonedition5.1.1 (based on python 2.5).
>> Using easy_install, as suggested on the fipy webpage did not work, it 
>> doesn't appear to be in the pypi index.
>>
>> I tried to install it manually, using python setup.py install but get an 
>> error that -Wno-long-double is not recognised (see below)
>>
>> Can anyone help? (I am not all that familiar with unix, just wanted to try 
>> out fipy).
>>
>> any suggestions? thanks, Glenn
>>
>>
>>
>> Glenn-Fulfords-iMac:pysparse-1.1 Glenn$ python setup.py install
>> running install
>> running build
>> running build_py
>> running build_ext
>> building 'pysparse.spmatrix' extension
>> gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd 
>> -fno-common -dynamic -DNDEBUG -g -O3 
>> -I/Library/Frameworks/Python.framework/Versions/5.1.1/include -DNUMPY=1 
>> -IInclude 
>> -I/Library/Frameworks/Python.framework/Versions/5.1.1/lib/python2.5/site-packages/numpy/core/include
>>  -I/Library/Frameworks/Python.framework/Versions/5.1.1/include/python2.5 -c 
>> Src/spmatrixmodule.c -o build/temp.macosx-10.3-i386-2.5/Src/spmatrixmodule.o
>> cc1: error: unrecognized command line option "-Wno-long-double"
>> error: command 'gcc' failed with exit status 1
>>
>>
>> Computer: iMac intel
>> OS: MacOSX v10.6.2
>>
>>
>>
>>
>
>
>
> --
> Daniel Wheeler
>
>
>
>
>



--
Daniel Wheeler




Reply via email to