complete version of e-mail:
The command executde correctly, and produced the file getfem_python_c.o.
But when we again executed make, the gcc-4.0 was still executed and failed
as before. To solve this I did:
alias gcc-4.0=gcc
After this, make finished successfully. I then did "make install", and
added the correct python module path to $PYTHONPATH. When running "import
getfem" within python, I received the following error message
>>> import getfem
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/site-packages/getfem/__init__.py", line
26, in <module>
from getfem import *
File "/usr/local/lib/python2.7/site-packages/getfem/getfem.py", line 40,
in <module>
from _getfem import *
ImportError:
dlopen(/usr/local/lib/python2.7/site-packages/getfem/_getfem.so, 2): no
suitable image found. Did find:
/usr/local/lib/python2.7/site-packages/getfem/_getfem.so: mach-o, but wrong
architecture
Best regards
Tore G. Halvorsen
2012/5/17 Yves Renard <[email protected]>
>
> Dear Tore,
>
> If you don't find the origin of the difficulty, you can try to directly
> execute the line
>
> gcc -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -O3
> -I../../../src/getfem -I../../../src/getfem -I./.. -I.
> -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include
> -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c
> getfem_python_c.c -o ./getfem_python_c.o
>
> in the directory interface/src/python
>
> Yves.
>
> ----- Original Message -----
> From: "Tore G. Halvorsen" <[email protected]>
> To: "Yves Renard" <[email protected]>
> Cc: [email protected]
> Sent: Tuesday, May 15, 2012 6:52:22 PM
> Subject: Re: [Getfem-users] getFEM++ on MacOs
>
> The ./configure command seems to select g++ and gcc, not gcc-4.0,
> according to config.log. Even after ./configure and the failed "make"
> attempt, there are no occurrences of the term "gcc-4.0" in the getfem
> source directory, according to "grep -ire gcc-4.0".
>
>
> Best Regards
> Tore G. Halvorsen
>
>
>
> 2012/5/15 Yves Renard < [email protected] >
>
>
>
> Dear Tore,
>
> It seems that the configure file selects gcc-4.0 as the c compiler (not
> c++) (can you see it when you run configure ?). I don't know a reason for
> that if gcc-4.0 is not installed !
>
> (in the makefile.am of the directory interface/src/python, there is the
> line
> PYTHON_CC = $( CC )
> which indicates that the C compiler found by the configure file is used.
> There is no explicit call to gcc-4.0).
>
> Yves.
>
>
>
>
> Le 15/05/2012 17:36, Tore G. Halvorsen a écrit :
>
>
>
> I am unable to compile getfem-4.1.1 on MacOs 10.7.3 with Xcode version
> 4.3.2. I have enabled terminal access to gcc and g++ in Xcode. I have
> successfully executed ./configure --enable-python=yes. My intention is to
> use the python interface. But the make command fails with the following
> error:
>
>
>
> Making all in python
> cp ./getfem_python.c getfem_python_c.c
> touch _getfem.so && rm _getfem.so
> ARCHFLAGS="" python setup.py -v build --build-temp . --build-base .
> --build-lib . --force
> running build
> running build_ext
> building '_getfem' extension
> gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -O3
> -I../../../src/getfem -I../../../src/getfem -I./.. -I.
> -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include
> -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c
> getfem_python_c.c -o ./getfem_python_c.o
> unable to execute gcc-4.0: No such file or directory
> error: command 'gcc-4.0' failed with exit status 1
>
>
> It is strange that it attempts to execute gcc-4.0, since both gcc and g++
> commands on the terminal are version 4.2.1
>
>
> Best regards
> Tore G. Halvorsen
>
> _______________________________________________
> Getfem-users mailing list [email protected]
> https://mail.gna.org/listinfo/getfem-users
>
> --
>
> Yves Renard ( [email protected] ) tel : (33) 04.72.43.87.08
> Pole de Mathematiques, INSA-Lyon fax : (33) 04.72.43.85.29
> 20, rue Albert Einstein
> 69621 Villeurbanne Cedex, FRANCE http://math.univ-lyon1.fr/~renard---------
>
_______________________________________________
Getfem-users mailing list
[email protected]
https://mail.gna.org/listinfo/getfem-users