getfem-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Getfem-users] Installation of python interface on mac os 10.5


From: Julien Pommier
Subject: Re: [Getfem-users] Installation of python interface on mac os 10.5
Date: Mon, 26 May 2008 18:25:40 +0200
User-agent: Internet Messaging Program (IMP) 3.2.6

> Hi Julien,
>
> Many thanks for your patience and feedback, I really appreciate it.
>
> So, I just reconfigured and recompiled after make clean such to be
> able to give you a precise idea of what is going on on my machine....
>
> All is good until the python module is compiled:
>

It looks like you compiled the "getfem_python.o" file (the messages are only
warning messages so it think it built successfully), which is an intermediate
file. You need to run make again, this time it should try to build the
_getfem.so python module, remove the "-arch ppc" , add " -framework Python" and
(maybe) it will work !


--
Julien




> Making all in python
> touch _getfem.so && rm _getfem.so
> LDSHARED="g++ -shared" python setup.py -v build --build-temp . --build-
> base . --build-lib . --force
> running build
> running build_ext
> building '_getfem' extension
> gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-
> madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes -
> DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -arch i386 -arch ppc -pipe -
> I./.. -I. -I/System/Library/Frameworks/Python.framework/Versions/2.5/
> include/python2.5 -c ./getfem_python.c -o ././getfem_python.o
> ./getfem_python.c: In function ‘gc_alloc’:
> ./getfem_python.c:198: warning: format ‘%d’ expects type ‘int’, but
> argument 3 has type ‘size_t’
> ./getfem_python.c: In function ‘gc_alloc’:
> ./getfem_python.c:198: warning: format ‘%d’ expects type ‘int’, but
> argument 3 has type ‘size_t’
> ./getfem_python.c: At top level:
> /System/Library/Frameworks/Python.framework/Versions/2.5/include/
> python2.5/numarray/libnumarray.h:51: warning: ‘libnumarray_API’
> defined but not used
> ./getfem_python.c: At top level:
> /System/Library/Frameworks/Python.framework/Versions/2.5/include/
> python2.5/numarray/libnumarray.h:51: warning: ‘libnumarray_API’
> defined but not used
> g++ -shared -arch i386 -arch ppc ././getfem_python.o -L../../../
> src/.libs -L../.libs -lgetfemint -lstdc++ -lm -lgetfem -o ./_getfem.so
> ld: warning in ../.libs/libgetfemint.a, file is not of required
> architecture
> ld: warning in ../../../src/.libs/libgetfem.a, file is not of required
> architecture
> Undefined symbols for architecture ppc:
>    "_PyComplex_FromDoubles", referenced from:
>
>
> So when i move to the python directory and run the command manually i
> get the following output:
>
>
> brutus:python jelleferinga$ gcc -fno-strict-aliasing -Wno-long-double -
> no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -Os -
> Wall -Wstrict-prototypes -DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -
> arch i386 -arch ppc -pipe -I./.. -I. -I/System/Library/Frameworks/
> Python.framework/Versions/2.5/include/python2.5 -framework Python -c ./
> getfem_python.c -o ././getfem_python.o
> ./getfem_python.c: In function ‘gc_alloc’:
> ./getfem_python.c:198: warning: format ‘%d’ expects type ‘int’, but
> argument 3 has type ‘size_t’
> ./getfem_python.c: In function ‘gc_alloc’:
> ./getfem_python.c:198: warning: format ‘%d’ expects type ‘int’, but
> argument 3 has type ‘size_t’
> ./getfem_python.c: At top level:
> /System/Library/Frameworks/Python.framework/Versions/2.5/include/
> python2.5/numarray/libnumarray.h:51: warning: ‘libnumarray_API’
> defined but not used
> i686-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
> because linking not done
> i686-apple-darwin9-gcc-4.0.1: Python: linker input file unused because
> linking not done
> ./getfem_python.c: At top level:
> /System/Library/Frameworks/Python.framework/Versions/2.5/include/
> python2.5/numarray/libnumarray.h:51: warning: ‘libnumarray_API’
> defined but not used
> powerpc-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
> because linking not done
> powerpc-apple-darwin9-gcc-4.0.1: Python: linker input file unused
> because linking not done
>
> In [4]: numarray.__version__
>
> Out[4]: '1.5.2'
>
>
> I guess the above certainly hints at something, but I'm too compiler
> challenged to make up what really is going wrong....
>
>
> Seems to me that the python stuff is configured well in the ./
> configure script...
>
> checking for a Python interpreter with version >= 2.2... python
> checking for python... /usr/bin/python
> checking for python version... 2.5
> checking for python platform... darwin
> checking for python script directory... /Library/Python/2.5/site-
> packages
> checking for python extension module directory... /Library/Python/2.5/
> site-packages
> Building with python support (use --enable-python=no to disable it)
> You will need the python-numarray package.
> checking for python2.5... (cached) /usr/bin/python
> checking for a version of Python >= '2.1.0'... yes
> checking for the distutils Python package... yes
> checking for Python include path... -I/System/Library/Frameworks/
> Python.framework/Versions/2.5/include/python2.5
> checking for Python library path... -L/System/Library/Frameworks/
> Python.framework/Versions/2.5/lib/python2.5 -lpython2.5
> checking for Python site-packages path... /Library/Python/2.5/site-
> packages
> checking python extra libraries...  -ldl
> checking python extra linking flags... -u _PyMac_Error -framework Python
>
>
>
> Thanks!
>
> -jelle
>
>
>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]