----- Original Message -----
From: "Tore G. Halvorsen" <
address@hidden>
To: "Yves Renard" <
address@hidden>
Cc:
address@hidden
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 <
address@hidden >
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
address@hidden https://mail.gna.org/listinfo/getfem-users
--