From: Ranjit C. <rjc...@gm...> - 2009-10-15 20:21:16
|
I just tried to build pysparse on my mac running 10.5.8 and it failed with the message below. Why did it fail? >>python setup.py install running install running build running build_py creating build creating build/lib.macosx-10.3-i386-2.5 creating build/lib.macosx-10.3-i386-2.5/pysparse copying Lib/__init__.py -> build/lib.macosx-10.3-i386-2.5/pysparse copying Lib/__version__.py -> build/lib.macosx-10.3-i386-2.5/pysparse copying Lib/directSolver.py -> build/lib.macosx-10.3-i386-2.5/pysparse copying Lib/itsolvers_util.py -> build/lib.macosx-10.3-i386-2.5/pysparse copying Lib/poisson.py -> build/lib.macosx-10.3-i386-2.5/pysparse copying Lib/poisson_vec.py -> build/lib.macosx-10.3-i386-2.5/pysparse copying Lib/pysparseMatrix.py -> build/lib.macosx-10.3-i386-2.5/pysparse copying Lib/pysparseSuperLU.py -> build/lib.macosx-10.3-i386-2.5/pysparse copying Lib/pysparseUmfpack.py -> build/lib.macosx-10.3-i386-2.5/pysparse copying Lib/sparray.py -> build/lib.macosx-10.3-i386-2.5/pysparse copying Lib/sparseMatrix.py -> build/lib.macosx-10.3-i386-2.5/pysparse copying Lib/spmatrix_util.py -> build/lib.macosx-10.3-i386-2.5/pysparse running build_ext building 'pysparse.spmatrix' extension creating build/temp.macosx-10.3-i386-2.5 creating build/temp.macosx-10.3-i386-2.5/Src 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.0.0/include -DNUMPY=1 -IInclude -I/Library/Frameworks/Python.framework/Versions/5.0.0/lib/python2.5/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/5.0.0/include/python2.5 -c Src/spmatrixmodule.c -o build/temp.macosx-10.3-i386-2.5/Src/spmatrixmodule.o 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 gcc -g -L/usr/local/lib -L/Library/Frameworks/Python.framework/Versions/5.0.0/lib -bundle -undefined dynamic_lookup build/temp.macosx-10.3-i386-2.5/Src/spmatrixmodule.o -o build/lib.macosx-10.3-i386-2.5/pysparse/spmatrix.so /usr/bin/ld: /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libSystem.dylib unknown flags (type) of section 6 (__TEXT,__literal16) in load command 0 collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1 |
From: Dominique O. <dom...@gm...> - 2009-10-18 18:59:30
|
On Thu, Oct 15, 2009 at 4:21 PM, Ranjit Chacko <rjc...@gm...> wrote: > I just tried to build pysparse on my mac running 10.5.8 and it failed with > the message below. Why did it fail? >>>python setup.py install [snip] > gcc -g -L/usr/local/lib > -L/Library/Frameworks/Python.framework/Versions/5.0.0/lib -bundle -undefined > dynamic_lookup build/temp.macosx-10.3-i386-2.5/Src/spmatrixmodule.o -o > build/lib.macosx-10.3-i386-2.5/pysparse/spmatrix.so > /usr/bin/ld: /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libSystem.dylib > unknown flags (type) of section 6 (__TEXT,__literal16) in load command 0 > collect2: ld returned 1 exit status > error: command 'gcc' failed with exit status 1 Hi Ranjit, I am not entirely sure but my first guess would be that you upgraded to 10.5.8 without upgrading/installing Xcode. Try installing the latest Xcode and let us know if that did it. Thanks for trying out Pysparse! -- Dominique |
From: Dominique O. <dom...@gm...> - 2009-10-21 02:05:30
|
That's good to hear. I'm copying the mailing list on this so this info is accessible to other users in the future. Enjoy, Dominique On Tue, Oct 20, 2009 at 8:56 PM, Ranjit Chacko <rjc...@gm...> wrote: > Updating Xcode fixed the problem. I couldn't find the right version at first > because for some reason you can only get it in the iPhone SDK. > > Thanks for your help, > > -Ranjit > > On Oct 20, 2009, at 10/20/09 12:05 PM, Dominique Orban wrote: > >> I have XCode 3.0 and I'm running OSX 10.5.8. I don't know if you can >> still get it from Apple's website but it seems to be available from >> here: http://www.versiontracker.com/dyn/moreinfo/macosx/21437 >> >> XCode will be necessary to compile pretty much anything in OSX. >> >> Good luck, >> Dominique >> >> On Tue, Oct 20, 2009 at 10:43 AM, Ranjit Chacko <rjc...@gm...> >> wrote: >>> >>> I just tried getting a newer xcode, but the only one that seems to be >>> available requires 10.6. Do you know what version of xcode I need and >>> where I can get it? >>> >>> Thanks for your help, >>> >>> -Ranjit >>> >>> On Sun, Oct 18, 2009 at 2:59 PM, Dominique Orban >>> <dom...@gm...> wrote: >>>> >>>> On Thu, Oct 15, 2009 at 4:21 PM, Ranjit Chacko <rjc...@gm...> >>>> wrote: >>>>> >>>>> I just tried to build pysparse on my mac running 10.5.8 and it failed >>>>> with >>>>> the message below. Why did it fail? >>>>>>> >>>>>>> python setup.py install >>>> >>>> [snip] >>>> >>>>> gcc -g -L/usr/local/lib >>>>> -L/Library/Frameworks/Python.framework/Versions/5.0.0/lib -bundle >>>>> -undefined >>>>> dynamic_lookup build/temp.macosx-10.3-i386-2.5/Src/spmatrixmodule.o -o >>>>> build/lib.macosx-10.3-i386-2.5/pysparse/spmatrix.so >>>>> /usr/bin/ld: >>>>> /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libSystem.dylib >>>>> unknown flags (type) of section 6 (__TEXT,__literal16) in load command >>>>> 0 >>>>> collect2: ld returned 1 exit status >>>>> error: command 'gcc' failed with exit status 1 >>>> >>>> Hi Ranjit, >>>> >>>> I am not entirely sure but my first guess would be that you upgraded >>>> to 10.5.8 without upgrading/installing Xcode. Try installing the >>>> latest Xcode and let us know if that did it. >>>> >>>> Thanks for trying out Pysparse! >>>> >>>> -- >>>> Dominique >>>> >>> >> >> >> >> -- >> Dominique > > -- Dominique |
From: Ranjit C. <rjc...@gm...> - 2009-12-08 15:11:26
|
I just tried running the example code for the vectorized poisson2d functions from the documentation and it doesn't seem to work. This line from poisson2d_vec fails: L.put(4.0, d) with this error: ValueError: object of too small depth for desired array Any suggestions? |
From: Dominique O. <dom...@gm...> - 2009-12-08 16:58:16
|
On Tue, Dec 8, 2009 at 10:11 AM, Ranjit Chacko <rjc...@gm...> wrote: > I just tried running the example code for the vectorized poisson2d > functions from the documentation and it doesn't seem to work. > > This line from poisson2d_vec fails: > L.put(4.0, d) > with this error: > ValueError: object of too small depth for desired array > > Any suggestions? Strange. The example works for me. What is your setup (platform, compiler, python version, etc.) ? -- Dominique |