From d5d0174b01f982c86713b0c1518ece2a067fb5f5 Mon Sep 17 00:00:00 2001 From: Mark Olesen <Mark.Olesen@Germany> Date: Tue, 14 Jun 2016 10:46:20 +0200 Subject: [PATCH] CONFIG: adjust for updated ThirdParty - also update settings to include newer compiler versions --- .../mesh/conversion/Optional/Allwmake | 12 ++++-- .../Optional/ccm26ToFoam/Make/options | 5 +-- .../Optional/ccm26ToFoam/ccm26ToFoam.C | 2 +- etc/bashrc | 2 +- etc/config.csh/CGAL | 2 +- etc/config.csh/paraview | 2 +- etc/config.csh/settings | 13 ++++-- etc/config.sh/CGAL | 2 +- etc/config.sh/compiler | 13 ++++-- etc/config.sh/libccmio | 42 +++++++++++++++++++ etc/config.sh/paraview | 2 +- etc/cshrc | 2 +- 12 files changed, 78 insertions(+), 21 deletions(-) create mode 100644 etc/config.sh/libccmio diff --git a/applications/utilities/mesh/conversion/Optional/Allwmake b/applications/utilities/mesh/conversion/Optional/Allwmake index cb0064789a0..f84479c089b 100755 --- a/applications/utilities/mesh/conversion/Optional/Allwmake +++ b/applications/utilities/mesh/conversion/Optional/Allwmake @@ -6,13 +6,17 @@ cd ${0%/*} || exit 1 # Run from this directory # Parse arguments for compilation (at least for error catching) . $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments +# Get version info and arch-path +. $WM_PROJECT_DIR/etc/config.sh/functions +_foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/libccmio) + set -x -# build libccmio and create lnInclude directory -$WM_THIRD_PARTY_DIR/AllwmakeLibccmio +# Build libccmio (.so) +$WM_THIRD_PARTY_DIR/makeCCMIO -# if the library built properly, the headers should exist too -if [ -e $FOAM_EXT_LIBBIN/libccmio.so ] +if [ -e $CCMIO_ARCH_PATH/include/libccmio/ccmio.h \ + -a -e $FOAM_EXT_LIBBIN/libccmio.so ] then wmake ccm26ToFoam fi diff --git a/applications/utilities/mesh/conversion/Optional/ccm26ToFoam/Make/options b/applications/utilities/mesh/conversion/Optional/ccm26ToFoam/Make/options index e2cdbcd1c20..410b53c73c8 100644 --- a/applications/utilities/mesh/conversion/Optional/ccm26ToFoam/Make/options +++ b/applications/utilities/mesh/conversion/Optional/ccm26ToFoam/Make/options @@ -1,10 +1,7 @@ -LIBCCMIO_DIR = $(WM_THIRD_PARTY_DIR)/libccmio-2.6.1 - EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \ - -I$(LIBCCMIO_DIR) \ - -I$(LIBCCMIO_DIR)/lnInclude + -I$(CCMIO_ARCH_PATH)/include EXE_LIBS = \ -lfiniteVolume \ diff --git a/applications/utilities/mesh/conversion/Optional/ccm26ToFoam/ccm26ToFoam.C b/applications/utilities/mesh/conversion/Optional/ccm26ToFoam/ccm26ToFoam.C index b95acd79786..d97133244cb 100644 --- a/applications/utilities/mesh/conversion/Optional/ccm26ToFoam/ccm26ToFoam.C +++ b/applications/utilities/mesh/conversion/Optional/ccm26ToFoam/ccm26ToFoam.C @@ -43,7 +43,7 @@ Description #include "SortableList.H" #include "cellSet.H" -#include <ccmio.h> +#include "libccmio/ccmio.h" #include <vector> using namespace Foam; diff --git a/etc/bashrc b/etc/bashrc index 9a190e2548f..225f5e22ffe 100644 --- a/etc/bashrc +++ b/etc/bashrc @@ -62,7 +62,7 @@ foamInstall=$HOME/$WM_PROJECT export WM_COMPILER_TYPE=system #- Compiler: -# WM_COMPILER = Gcc | Gcc45 | Gcc46 | Gcc47 | Gcc48 | Gcc49| Clang | Icc +# WM_COMPILER = Gcc | Gcc4[5-9] | Gcc5[1-4] | Gcc61 | Clang | Icc export WM_COMPILER=Gcc unset WM_COMPILER_ARCH WM_COMPILER_LIB_ARCH diff --git a/etc/config.csh/CGAL b/etc/config.csh/CGAL index 0ec72b5e761..14304f46a4d 100644 --- a/etc/config.csh/CGAL +++ b/etc/config.csh/CGAL @@ -30,7 +30,7 @@ ##------------------------------------------------------------------------------ set boost_version=boost-system -set cgal_version=CGAL-4.7 +set cgal_version=CGAL-4.8 setenv BOOST_ARCH_PATH $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$boost_version setenv CGAL_ARCH_PATH $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$cgal_version diff --git a/etc/config.csh/paraview b/etc/config.csh/paraview index 9e5f7eb0f78..df5e680a348 100644 --- a/etc/config.csh/paraview +++ b/etc/config.csh/paraview @@ -54,7 +54,7 @@ end #setenv ParaView_VERSION 4.1.0 #setenv ParaView_VERSION 4.3.1 #setenv ParaView_VERSION 4.4.0 -setenv ParaView_VERSION 5.0.0 +setenv ParaView_VERSION 5.0.1 setenv ParaView_MAJOR detect diff --git a/etc/config.csh/settings b/etc/config.csh/settings index b93503e36f4..e54ff41380b 100644 --- a/etc/config.csh/settings +++ b/etc/config.csh/settings @@ -217,9 +217,9 @@ switch ("$WM_COMPILER_TYPE") case OpenFOAM: case ThirdParty: # Default versions of GMP, MPFR and MPC, overide as necessary - set gmp_version=gmp-5.1.2 - set mpfr_version=mpfr-3.1.2 - set mpc_version=mpc-1.0.1 + set gmp_version=gmp-6.0.1 + set mpfr_version=mpfr-3.1.4 + set mpc_version=mpc-1.0.3 switch ("$WM_COMPILER") case Gcc: case Gcc48: @@ -246,11 +246,18 @@ case ThirdParty: case Gcc53: set gcc_version=gcc-5.3.0 breaksw + case Gcc54: + set gcc_version=gcc-5.4.0 + breaksw + case Gcc61: + set gcc_version=gcc-6.1.0 + breaksw case Clang: # Using clang - not gcc setenv WM_CC 'clang' setenv WM_CXX 'clang++' set clang_version=llvm-3.7.0 + # set clang_version=llvm-3.8.0 breaksw default: echo diff --git a/etc/config.sh/CGAL b/etc/config.sh/CGAL index 4d0ca25ff63..654140addd7 100644 --- a/etc/config.sh/CGAL +++ b/etc/config.sh/CGAL @@ -36,7 +36,7 @@ #------------------------------------------------------------------------------ boost_version=boost-system -cgal_version=CGAL-4.7 +cgal_version=CGAL-4.8 if [ -z "$SOURCE_CGAL_VERSIONS_ONLY" ] then diff --git a/etc/config.sh/compiler b/etc/config.sh/compiler index 63099a7923b..bcfc00fb8b2 100644 --- a/etc/config.sh/compiler +++ b/etc/config.sh/compiler @@ -34,9 +34,9 @@ case "$WM_COMPILER_TYPE" in OpenFOAM | ThirdParty) # Default versions of GMP, MPFR and MPC, override as necessary - gmp_version=gmp-5.1.2 - mpfr_version=mpfr-3.1.2 - mpc_version=mpc-1.0.1 + gmp_version=gmp-6.0.1 + mpfr_version=mpfr-3.1.4 + mpc_version=mpc-1.0.3 case "$WM_COMPILER" in Gcc | Gcc48) @@ -63,11 +63,18 @@ OpenFOAM | ThirdParty) Gcc53) gcc_version=gcc-5.3.0 ;; + Gcc54) + gcc_version=gcc-5.4.0 + ;; + Gcc61) + gcc_version=gcc-6.1.0 + ;; Clang) # Using clang - not gcc export WM_CC='clang' export WM_CXX='clang++' clang_version=llvm-3.7.0 + # clang_version=llvm-3.8.0 ;; *) echo 1>&2 diff --git a/etc/config.sh/libccmio b/etc/config.sh/libccmio new file mode 100644 index 00000000000..1ef42056404 --- /dev/null +++ b/etc/config.sh/libccmio @@ -0,0 +1,42 @@ +#----------------------------------*-sh-*-------------------------------------- +# ========= | +# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox +# \\ / O peration | +# \\ / A nd | Copyright (C) 2016 OpenCFD Ltd. +# \\/ M anipulation | +#------------------------------------------------------------------------------ +# License +# This file is part of OpenFOAM. +# +# OpenFOAM is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. +# +# File +# etc/config.sh/libccmio +# +# Description +# Setup file for libccmio include/libraries. +# Sourced during wmake process only. +# +# Dynamic libraries are found under the FOAM_EXT_LIBBIN path. +# Static libraries are found under the CCMIO_ARCH_PATH/lib path. +# +# Note +# A csh version is not needed, since the values here are only sourced +# during the wmake process +#------------------------------------------------------------------------------ + +ccmio_version=libccmio-2.6.1 +export CCMIO_ARCH_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$ccmio_version + +#------------------------------------------------------------------------------ diff --git a/etc/config.sh/paraview b/etc/config.sh/paraview index b6216f05797..aebfd5b8899 100644 --- a/etc/config.sh/paraview +++ b/etc/config.sh/paraview @@ -62,7 +62,7 @@ done #export ParaView_VERSION=4.1.0 #export ParaView_VERSION=4.3.1 #export ParaView_VERSION=4.4.0 -export ParaView_VERSION=5.0.0 +export ParaView_VERSION=5.0.1 export ParaView_MAJOR=detect diff --git a/etc/cshrc b/etc/cshrc index 5604372d063..30138fdb366 100644 --- a/etc/cshrc +++ b/etc/cshrc @@ -61,7 +61,7 @@ if ( ! $?FOAM_INST_DIR ) setenv FOAM_INST_DIR $foamInstall setenv WM_COMPILER_TYPE system #- Compiler: -# WM_COMPILER = Gcc | Gcc45 | Gcc46 | Gcc47 | Gcc48 | Gcc49 | Clang | Icc +# WM_COMPILER = Gcc | Gcc4[5-9] | Gcc5[1-4] | Gcc61 | Clang | Icc setenv WM_COMPILER Gcc setenv WM_COMPILER_ARCH # defined but empty unsetenv WM_COMPILER_LIB_ARCH -- GitLab