easybuilders / easybuild-framework

EasyBuild is a software installation framework in Python that allows you to install software in a structured and robust way.
https://easybuild.io
GNU General Public License v2.0
152 stars 203 forks source link

define toolchain environment variables in toolchain modules #604

Open boegel opened 11 years ago

boegel commented 11 years ago

Environment variables that are set when using toolchains like $CC, $MPICH_CC $CFLAGS should also be set in the toolchain modules, so they can be used without hassle directly by end-users outside of EasyBuild.

Cfr. https://github.com/hpcugent/easybuild-easyblocks/issues/100

boegel commented 11 years ago

This came forward a couple of times during the hackathon (Oct'13), so maybe this should be bumped to a higer priority...

iotaka commented 9 years ago

I find a similar problem using OpenFOAM with EB.

wmake
SOURCE=tanGoVar.C ;    -Dlinux64 -DWM_DP ...

In my case was necessary to perform 2 extra exports

module load OpenFOAM export MPICC=mpicc export MPICXX=mpicxx source $FOAM_BASH

after that all was fine (thank you boegel that suggests the solution :))

wmake
SOURCE=tanGoVar.C ;  mpicxx  -Dlinux64 -DWM_DP ...