There is a bug in GCC 4.9.0 [1], so that version will not work. This bug is
fixed in GCC 4.9.2, but you can also use GCC >= 4.6 and < 4.9.0. Are any of
these available on your cluster?

Before you can use fenics-install.sh, you will have to create a profile
such that it can find your compiler. I have attached a profile that I have
used recently to build FEniCS on a cluster. You can use this as an example,
but you will have to modify the "parameters" section for your cluster. Once
you have created a profile, set the environment variable
FENICS_INSTALL_HASHDIST_PROFILE to point to your profile, like this:

  export FENICS_INSTALL_HASHDIST_PROFILE=/path/to/your-profile.yaml

and then run fenics-install.sh. Afterwards, if it succeeds, you will get a
file fenics.custom that can be sourced to set the environment variables.
However, you should also do the same as in the PROLOGUE in your profile. In
my case (with the attached fenics.yaml) I would do this:

  module unload gcc/4.6.2
  module load gcc/4.8.1
  module load openmpi/1.8.1/gcc/4.8.1
  # This is needed for CMake to pick the correct compilers
  export CC=gcc
  export CXX=g++
  export FC=gfortran
  export F77=gfortran
  export F90=gfortran
  export CPP=cpp
  source fenics.custom

This can be added for instance to your .bashrc or .profile.

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63563

Johannes

On Fri, Jun 5, 2015 at 4:17 PM chukwudi chukwu <[email protected]>
wrote:

> I also just tried installing it on stampede, TACC, but I get the same
> error message even though I have gcc/4.9 on the system.
>
>
>
>
>
>   On Thursday, June 4, 2015 10:18 AM, chukwudi chukwu <
> [email protected]> wrote:
>
>
> It's a linux cluster in my school. I actually have gcc/4.9.0 but the
> problem persisted. I spoke to the system administrators about it and they
> say cmake is not picking the right gcc version.
>
>
>
>   On Thursday, June 4, 2015 3:46 AM, Johannes Ring <[email protected]>
> wrote:
>
>
> The problem is the following:
>
> 2015/06/02 15:16:30 - INFO: [package:run_job] CMake Error at
> CMakeLists.txt:25 (message):
> 2015/06/02 15:16:30 - INFO: [package:run_job]   GCC version must be at
> least 4.6 (for sufficient C++11 support.  You
> have
>
> 2015/06/02 15:16:30 - INFO: [package:run_job]   version
> 4.4.7
> 2015/06/02 15:16:30 - INFO:
> [package:run_job]
>
> 2015/06/02 15:16:30 - INFO:
> [package:run_job]
>
> 2015/06/02 15:16:30 - INFO: [package:run_job] -- Configuring incomplete,
> errors occurred!
>
> On what system is this? Do you have access to a newer compiler?
>
> Johannes
>
> On Thu, Jun 4, 2015 at 10:42 AM Chukwudi Chukwudozie <
> [email protected]> wrote:
>
> As requested, I have attached a copy of the build.log file.
>
> _______________________________________________
> fenics-support mailing list
> [email protected]
> http://fenicsproject.org/mailman/listinfo/fenics-support
>
>
>
>
>
>

Attachment: fenics.yaml
Description: application/yaml

_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to