OpenFOAM
OpenFoam
Version 1.7.1
Needs to be built with gcc 4.4.4 or newer. Gcc 4.4.4, in turn, requires a bunch of stuff so we have the following (in the order in which they should be built).
gmp-5.0.1
ppl-0.10.2 ./configure --prefix=/apps/openfoam/tools --with-libgmp-prefix=/apps/openfoam/tools --with-libgmpxx-prefix=/apps/openfoam/tools --enable-cxx make -j4 make install
mpfr-2.4.2 ./configure --prefix=/apps/openfoam/tools --with-gmp=/apps/openfoam/tools make -j 4 make install
cloog-ppl-0.15.9
./configure --prefix=/apps/openfoam/tools --with-gmp=/apps/openfoam/tools --with-ppl=/apps/openfoam/tools make -j 4
make install
gcc-4.4.4 ../configure --prefix=/apps/openfoam/tools --with-gmp=/apps/openfoam/tools --with-mpfr=/apps/openfoam/tools --with-ppl=/apps/openfoam/tools --with-cloog=/apps/openfoam/tools make -j 8 make install
Undefined references to pthread routines required the following change to the wmake rules...
--- wmake/rules/linux64Gcc/general.orig 2011-02-11 12:00:54.000000000 -0500 +++ wmake/rules/linux64Gcc/general 2011-02-11 11:45:49.000000000 -0500 @@ -1,7 +1,7 @@ CPP = cpp -traditional-cpp $(GFLAGS) LD = ld -PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl +PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl -lpthread include $(GENERAL_RULES)/standard