Fixes for gcc-4.5.1
This commit is contained in:
parent
3020d911e2
commit
85daa4a8cc
39 changed files with 185 additions and 8 deletions
9
ThirdParty/rpmBuild/SPECS/gcc-4.5.1.spec
vendored
9
ThirdParty/rpmBuild/SPECS/gcc-4.5.1.spec
vendored
|
@ -166,12 +166,5 @@ rm -rf %{buildroot}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_installPrefix}/bin
|
%{_installPrefix}
|
||||||
%{_installPrefix}/etc
|
|
||||||
%{_installPrefix}/include
|
|
||||||
%{_installPrefix}/info
|
|
||||||
%{_installPrefix}/lib
|
|
||||||
%{_installPrefix}/libexec
|
|
||||||
%{_installPrefix}/man
|
|
||||||
%{_installPrefix}/share
|
|
||||||
|
|
||||||
|
|
|
@ -101,6 +101,13 @@ case OpenFOAM:
|
||||||
_foamAddLib $WM_THIRD_PARTY_DIR/mpfr-2.4.1/platforms/$WM_ARCH$WM_COMPILER_ARCH/lib
|
_foamAddLib $WM_THIRD_PARTY_DIR/mpfr-2.4.1/platforms/$WM_ARCH$WM_COMPILER_ARCH/lib
|
||||||
_foamAddLib $WM_THIRD_PARTY_DIR/gmp-4.2.4/platforms/$WM_ARCH$WM_COMPILER_ARCH/lib
|
_foamAddLib $WM_THIRD_PARTY_DIR/gmp-4.2.4/platforms/$WM_ARCH$WM_COMPILER_ARCH/lib
|
||||||
breaksw
|
breaksw
|
||||||
|
case Gcc45:
|
||||||
|
setenv WM_COMPILER_DIR $WM_THIRD_PARTY_DIR/packages/gcc-4.5.1/platforms/$WM_OPTIONS
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/gmp-5.0.1/platforms/$WM_OPTIONS/etc/gmp-5.0.1.csh
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/mpfr-3.0.1/platforms/$WM_OPTIONS/etc/mpfr-3.0.1.csh
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/mpc-0.8.2/platforms/$WM_OPTIONS/etc/mpc-0.8.2.csh
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/gcc-4.5.1/platforms/$WM_OPTIONS/etc/gcc-4.5.1.csh
|
||||||
|
breaksw
|
||||||
case Gcc44:
|
case Gcc44:
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/mpfr-3.0.1/platforms/$WM_OPTIONS/etc/mpfr-3.0.1.csh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/mpfr-3.0.1/platforms/$WM_OPTIONS/etc/mpfr-3.0.1.csh
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/gmp-5.0.1/platforms/$WM_OPTIONS/etc/gmp-5.0.1.csh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/gmp-5.0.1/platforms/$WM_OPTIONS/etc/gmp-5.0.1.csh
|
||||||
|
|
|
@ -136,6 +136,13 @@ OpenFOAM)
|
||||||
_foamAddLib $WM_THIRD_PARTY_DIR/mpfr-2.4.1/platforms/$WM_ARCH$WM_COMPILER_ARCH/lib
|
_foamAddLib $WM_THIRD_PARTY_DIR/mpfr-2.4.1/platforms/$WM_ARCH$WM_COMPILER_ARCH/lib
|
||||||
_foamAddLib $WM_THIRD_PARTY_DIR/gmp-4.2.4/platforms/$WM_ARCH$WM_COMPILER_ARCH/lib
|
_foamAddLib $WM_THIRD_PARTY_DIR/gmp-4.2.4/platforms/$WM_ARCH$WM_COMPILER_ARCH/lib
|
||||||
;;
|
;;
|
||||||
|
Gcc45)
|
||||||
|
export WM_COMPILER_DIR=$WM_THIRD_PARTY_DIR/packages/gcc-4.5.1/platforms/$WM_OPTIONS
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/gmp-5.0.1/platforms/$WM_OPTIONS/etc/gmp-5.0.1.sh
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/mpfr-3.0.1/platforms/$WM_OPTIONS/etc/mpfr-3.0.1.sh
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/mpc-0.8.2/platforms/$WM_OPTIONS/etc/mpc-0.8.2.sh
|
||||||
|
_foamSource $WM_THIRD_PARTY_DIR/packages/gcc-4.5.1/platforms/$WM_OPTIONS/etc/gcc-4.5.1.sh
|
||||||
|
;;
|
||||||
Gcc44)
|
Gcc44)
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/mpfr-3.0.1/platforms/$WM_OPTIONS/etc/mpfr-3.0.1.sh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/mpfr-3.0.1/platforms/$WM_OPTIONS/etc/mpfr-3.0.1.sh
|
||||||
_foamSource $WM_THIRD_PARTY_DIR/packages/gmp-5.0.1/platforms/$WM_OPTIONS/etc/gmp-5.0.1.sh
|
_foamSource $WM_THIRD_PARTY_DIR/packages/gmp-5.0.1/platforms/$WM_OPTIONS/etc/gmp-5.0.1.sh
|
||||||
|
|
2
wmake/rules/linux64Gcc45/ARCHITECTURE_TESTED
Normal file
2
wmake/rules/linux64Gcc45/ARCHITECTURE_TESTED
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
by bgschaid. 2010-10-06 on Centos 5.5 with gcc 4.1
|
||||||
|
|
3
wmake/rules/linux64Gcc45/X
Normal file
3
wmake/rules/linux64Gcc45/X
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
XFLAGS =
|
||||||
|
XINC = $(XFLAGS) -I/usr/X11R6/include
|
||||||
|
XLIBS = -L/usr/X11R6/lib64 -lXext -lX11
|
16
wmake/rules/linux64Gcc45/c
Normal file
16
wmake/rules/linux64Gcc45/c
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
.SUFFIXES: .c .h
|
||||||
|
|
||||||
|
cWARN = -Wall
|
||||||
|
|
||||||
|
cc = gcc -m64
|
||||||
|
|
||||||
|
include $(RULES)/c$(WM_COMPILE_OPTION)
|
||||||
|
|
||||||
|
cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC
|
||||||
|
|
||||||
|
ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $$SOURCE -o $@
|
||||||
|
|
||||||
|
LINK_LIBS = $(cDBUG)
|
||||||
|
|
||||||
|
LINKLIBSO = $(cc) -shared
|
||||||
|
LINKEXE = $(cc) -Xlinker --add-needed -Xlinker -z -Xlinker nodefs
|
21
wmake/rules/linux64Gcc45/c++
Normal file
21
wmake/rules/linux64Gcc45/c++
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
.SUFFIXES: .C .cxx .cc .cpp
|
||||||
|
|
||||||
|
c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor
|
||||||
|
|
||||||
|
CC = g++ -m64
|
||||||
|
|
||||||
|
include $(RULES)/c++$(WM_COMPILE_OPTION)
|
||||||
|
|
||||||
|
ptFLAGS = -DNoRepository -ftemplate-depth-40
|
||||||
|
|
||||||
|
c++FLAGS = $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS) -fPIC
|
||||||
|
|
||||||
|
Ctoo = $(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $$SOURCE -o $@
|
||||||
|
cxxtoo = $(Ctoo)
|
||||||
|
cctoo = $(Ctoo)
|
||||||
|
cpptoo = $(Ctoo)
|
||||||
|
|
||||||
|
LINK_LIBS = $(c++DBUG)
|
||||||
|
|
||||||
|
LINKLIBSO = $(CC) $(c++FLAGS) -shared -Xlinker --add-needed -Xlinker --no-as-needed
|
||||||
|
LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed -Xlinker --no-as-needed
|
2
wmake/rules/linux64Gcc45/c++Debug
Normal file
2
wmake/rules/linux64Gcc45/c++Debug
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||||
|
c++OPT = -O0 -fdefault-inline
|
4
wmake/rules/linux64Gcc45/c++Opt
Normal file
4
wmake/rules/linux64Gcc45/c++Opt
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
c++DBUG =
|
||||||
|
c++OPT = -O3
|
||||||
|
#c++OPT = -march=nocona -O3
|
||||||
|
# -ftree-vectorize -ftree-vectorizer-verbose=3
|
2
wmake/rules/linux64Gcc45/c++Prof
Normal file
2
wmake/rules/linux64Gcc45/c++Prof
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
c++DBUG = -pg
|
||||||
|
c++OPT = -O2
|
2
wmake/rules/linux64Gcc45/cDebug
Normal file
2
wmake/rules/linux64Gcc45/cDebug
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
cDBUG = -ggdb -DFULLDEBUG
|
||||||
|
cOPT = -O1 -fdefault-inline -finline-functions
|
2
wmake/rules/linux64Gcc45/cOpt
Normal file
2
wmake/rules/linux64Gcc45/cOpt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
cDBUG =
|
||||||
|
cOPT = -O3
|
2
wmake/rules/linux64Gcc45/cProf
Normal file
2
wmake/rules/linux64Gcc45/cProf
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
cDBUG = -pg
|
||||||
|
cOPT = -O2
|
10
wmake/rules/linux64Gcc45/general
Normal file
10
wmake/rules/linux64Gcc45/general
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
CPP = cpp -traditional-cpp
|
||||||
|
LD = ld
|
||||||
|
|
||||||
|
PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
|
||||||
|
|
||||||
|
include $(GENERAL_RULES)/standard
|
||||||
|
|
||||||
|
include $(RULES)/X
|
||||||
|
include $(RULES)/c
|
||||||
|
include $(RULES)/c++
|
3
wmake/rules/linux64Gcc45/mplib
Normal file
3
wmake/rules/linux64Gcc45/mplib
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
PFLAGS =
|
||||||
|
PINC =
|
||||||
|
PLIBS =
|
3
wmake/rules/linux64Gcc45/mplibGAMMA
Normal file
3
wmake/rules/linux64Gcc45/mplibGAMMA
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
PFLAGS =
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lgamma
|
3
wmake/rules/linux64Gcc45/mplibHPMPI
Normal file
3
wmake/rules/linux64Gcc45/mplibHPMPI
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
PFLAGS =
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include -D_MPICC_H
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib/linux_amd64 -lmpi
|
3
wmake/rules/linux64Gcc45/mplibMPICH
Normal file
3
wmake/rules/linux64Gcc45/mplibMPICH
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
PFLAGS =
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpich -lrt
|
3
wmake/rules/linux64Gcc45/mplibMPICH-GM
Normal file
3
wmake/rules/linux64Gcc45/mplibMPICH-GM
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
PFLAGS =
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpich -L$(GM_LIB_PATH) -lgm
|
3
wmake/rules/linux64Gcc45/mplibOPENMPI
Normal file
3
wmake/rules/linux64Gcc45/mplibOPENMPI
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
PFLAGS = -DOMPI_SKIP_MPICXX
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi
|
4
wmake/rules/linux64Gcc45/mplibQSMPI
Normal file
4
wmake/rules/linux64Gcc45/mplibQSMPI
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
PFLAGS =
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi
|
||||||
|
|
1
wmake/rules/linux64Gcc45/mplibSYSTEMOPENMPI
Normal file
1
wmake/rules/linux64Gcc45/mplibSYSTEMOPENMPI
Normal file
|
@ -0,0 +1 @@
|
||||||
|
PFLAGS = -DOMPI_SKIP_MPICXX
|
3
wmake/rules/linuxGcc45/X
Normal file
3
wmake/rules/linuxGcc45/X
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
XFLAGS =
|
||||||
|
XINC = $(XFLAGS) -I/usr/X11R6/include
|
||||||
|
XLIBS = -L/usr/X11R6/lib -lXext -lX11
|
16
wmake/rules/linuxGcc45/c
Normal file
16
wmake/rules/linuxGcc45/c
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
.SUFFIXES: .c .h
|
||||||
|
|
||||||
|
cWARN = -Wall
|
||||||
|
|
||||||
|
cc = gcc -m32
|
||||||
|
|
||||||
|
include $(RULES)/c$(WM_COMPILE_OPTION)
|
||||||
|
|
||||||
|
cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC
|
||||||
|
|
||||||
|
ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $$SOURCE -o $@
|
||||||
|
|
||||||
|
LINK_LIBS = $(cDBUG)
|
||||||
|
|
||||||
|
LINKLIBSO = $(cc) -shared
|
||||||
|
LINKEXE = $(cc) -Xlinker --add-needed -Xlinker -z -Xlinker nodefs
|
21
wmake/rules/linuxGcc45/c++
Normal file
21
wmake/rules/linuxGcc45/c++
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
.SUFFIXES: .C .cxx .cc .cpp
|
||||||
|
|
||||||
|
c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast
|
||||||
|
|
||||||
|
CC = g++ -m32
|
||||||
|
|
||||||
|
include $(RULES)/c++$(WM_COMPILE_OPTION)
|
||||||
|
|
||||||
|
ptFLAGS = -DNoRepository -ftemplate-depth-40
|
||||||
|
|
||||||
|
c++FLAGS = $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS) -fPIC
|
||||||
|
|
||||||
|
Ctoo = $(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $$SOURCE -o $@
|
||||||
|
cxxtoo = $(Ctoo)
|
||||||
|
cctoo = $(Ctoo)
|
||||||
|
cpptoo = $(Ctoo)
|
||||||
|
|
||||||
|
LINK_LIBS = $(c++DBUG)
|
||||||
|
|
||||||
|
LINKLIBSO = $(CC) $(c++FLAGS) -shared -Xlinker --add-needed -Xlinker --no-as-needed
|
||||||
|
LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed -Xlinker --no-as-needed
|
2
wmake/rules/linuxGcc45/c++Debug
Normal file
2
wmake/rules/linuxGcc45/c++Debug
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
c++DBUG = -ggdb3 -DFULLDEBUG
|
||||||
|
c++OPT = -O0 -fdefault-inline
|
2
wmake/rules/linuxGcc45/c++Opt
Normal file
2
wmake/rules/linuxGcc45/c++Opt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
c++DBUG =
|
||||||
|
c++OPT = -O3
|
2
wmake/rules/linuxGcc45/c++Prof
Normal file
2
wmake/rules/linuxGcc45/c++Prof
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
c++DBUG = -pg
|
||||||
|
c++OPT = -O2
|
2
wmake/rules/linuxGcc45/cDebug
Normal file
2
wmake/rules/linuxGcc45/cDebug
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
cDBUG = -ggdb -DFULLDEBUG
|
||||||
|
cOPT = -O1 -fdefault-inline -finline-functions
|
2
wmake/rules/linuxGcc45/cOpt
Normal file
2
wmake/rules/linuxGcc45/cOpt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
cDBUG =
|
||||||
|
cOPT = -O3
|
2
wmake/rules/linuxGcc45/cProf
Normal file
2
wmake/rules/linuxGcc45/cProf
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
cDBUG = -pg
|
||||||
|
cOPT = -O2
|
10
wmake/rules/linuxGcc45/general
Normal file
10
wmake/rules/linuxGcc45/general
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
CPP = cpp -traditional-cpp
|
||||||
|
LD = ld -melf_i386
|
||||||
|
|
||||||
|
PROJECT_LIBS = -l$(WM_PROJECT) -ldl
|
||||||
|
|
||||||
|
include $(GENERAL_RULES)/standard
|
||||||
|
|
||||||
|
include $(RULES)/X
|
||||||
|
include $(RULES)/c
|
||||||
|
include $(RULES)/c++
|
3
wmake/rules/linuxGcc45/mplib
Normal file
3
wmake/rules/linuxGcc45/mplib
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
PFLAGS =
|
||||||
|
PINC =
|
||||||
|
PLIBS =
|
3
wmake/rules/linuxGcc45/mplibGAMMA
Normal file
3
wmake/rules/linuxGcc45/mplibGAMMA
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
PFLAGS =
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lgamma
|
3
wmake/rules/linuxGcc45/mplibHPMPI
Normal file
3
wmake/rules/linuxGcc45/mplibHPMPI
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
PFLAGS =
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include -D_MPICC_H
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib/linux_ia32 -lmpi
|
3
wmake/rules/linuxGcc45/mplibMPICH
Normal file
3
wmake/rules/linuxGcc45/mplibMPICH
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
PFLAGS = -DMPICH_SKIP_MPICXX
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpich -lrt
|
3
wmake/rules/linuxGcc45/mplibMPICH-GM
Normal file
3
wmake/rules/linuxGcc45/mplibMPICH-GM
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
PFLAGS =
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpich -L$(GM_LIB_PATH) -lgm
|
3
wmake/rules/linuxGcc45/mplibOPENMPI
Normal file
3
wmake/rules/linuxGcc45/mplibOPENMPI
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
PFLAGS = -DOMPI_SKIP_MPICXX
|
||||||
|
PINC = -I$(MPI_ARCH_PATH)/include
|
||||||
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi
|
1
wmake/rules/linuxGcc45/mplibSYSTEMOPENMPI
Normal file
1
wmake/rules/linuxGcc45/mplibSYSTEMOPENMPI
Normal file
|
@ -0,0 +1 @@
|
||||||
|
PFLAGS = -DOMPI_SKIP_MPICXX
|
Reference in a new issue