Set Instant compiler

Asked by Paul Constantine on 2013-01-31

How can I set the compiler in Instant? Right now it's using gcc, but I'd like it to use icc.

Here's a recent error in compile.log:

$ cat compile.log
running build_ext
building '_e9edd3aa6aff6f39db451369489c84e4154fa2a3' extension
creating build
creating build/temp.linux-x86_64-2.7
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/paulcon/local/include -I/share/apps/lib/boost/1.49.0/include -I/share/apps/python/2.7.3/include/python2.7 -c e9edd3aa6aff6f39db451369489c84e4154fa2a3_wrap.cxx -o build/temp.linux-x86_64-2.7/e9edd3aa6aff6f39db451369489c84e4154fa2a3_wrap.o -O0
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Paul Constantine
Solved:
2013-01-31
Last query:
2013-01-31
Last reply:
2013-01-31
Johannes Ring (johannr) said : #1

Try setting the CC and CXX environment variables.

Johan Hake (johan-hake) said : #2

By setting CC and CXX like Johannes suggests will make distutils to use
that. We are, however, working on getting instant to use CMake instead
of distutils. Then we can use all the configuration variables acquired
during configuration of UFC and DOLFIN, like compiler type, in the
generation of the JIT compiled extension modules. This will get merged
into trunk soon.

Johan

On 01/31/2013 09:35 AM, Paul Constantine wrote:
> New question #220641 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/220641
>
> How can I set the compiler in Instant? Right now it's using gcc, but I'd like it to use icc.
>
> Here's a recent error in compile.log:
>
> $ cat compile.log
> running build_ext
> building '_e9edd3aa6aff6f39db451369489c84e4154fa2a3' extension
> creating build
> creating build/temp.linux-x86_64-2.7
> gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/paulcon/local/include -I/share/apps/lib/boost/1.49.0/include -I/share/apps/python/2.7.3/include/python2.7 -c e9edd3aa6aff6f39db451369489c84e4154fa2a3_wrap.cxx -o build/temp.linux-x86_64-2.7/e9edd3aa6aff6f39db451369489c84e4154fa2a3_wrap.o -O0
> gcc: error trying to exec 'cc1plus': execvp: No such file or directory
> error: command 'gcc' failed with exit status 1
>
>

Thanks!