chiven |
March 23, 2010 05:39 |
compile error about FJMPI
The linux system is "Linux bxfs1 2.6.18-164.6.1.el5 #1 SMP Tue Oct 27 11:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux".
I am trying to use the system's MPI of "/opt/FJSVplang/bin/mpiexec".
tar -xzf OpenFOAM-1.6.General.gtgz
tar -xzf ThirdParty-1.6.General.gtgz
tar -xzf ThirdParty-1.6.linux64Gcc.gtgz
Edit OpenFOAM/OpenFOAM-1.6/etc/cshrc
# WM_MPLIB = | OPENMPI | MPICH | MPICH-GM | HPMPI | GAMMA | MPI | QSMPI
if ( ! $?WM_MPLIB ) setenv WM_MPLIB FJMPI
Edit OpenFOAM/OpenFOAM-1.6/etc/settings.csh
case FJMPI:
setenv MPI_ARCH_PATH /opt/FJSVplang
setenv FOAM_MPI_LIBBIN $FOAM_LIBBIN/mpi
_foamAddPath $MPI_ARCH_PATH/bin
_foamAddPath /opt/FJSVpnple/bin
_foamAddPath /opt/FJSVmpi2/bin
_foamAddLib /opt/FJSVpnidt/lib
_foamAddLib /opt/FJSVplang/lib64
_foamAddLib /opt/FJSVpnple/lib
_foamAddLib /opt/FJSVmpi2/lib/sparcv9
_foamAddLib /opt/FJSVpnple/lib/sparcv9
breaksw
/OpenFOAM/OpenFOAM-1.6
./Allwmake
However, I meet the errors shown in follow. Any suggestion is appreciated.
HTML Code:
make[2]: Entering directory `/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/applications/utilities/thermophysical/equilibriumCO'
Making dependency list for source file equilibriumCO.C
make[2]: Leaving directory `/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/applications/utilities/thermophysical/equilibriumCO'
make[2]: Entering directory `/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/applications/utilities/thermophysical/equilibriumCO'
SOURCE=equilibriumCO.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/equilibriumCO.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/equilibriumCO.o -L/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt \
-lspecie -lOpenFOAM -liberty -ldl -lm -o /home/g2/e090012/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/equilibriumCO
/usr/bin/ld: warning: libPstream.so, needed by /home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so, not found (try using -rpath or -rpath-link)
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `vtable for Foam::OPstream'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::OPstream::waitRequests()'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::OPstream::~OPstream()'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::IPstream::IPstream(Foam::Pstream::commsTypes, int, int, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber)'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::exit(int)'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::OPstream::write(Foam::Pstream::commsTypes, int, char const*, long)'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::IPstream::waitRequests()'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::abort()'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::IPstream::read(Foam::Pstream::commsTypes, int, char*, long)'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&)'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::init(int&, char**&)'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::addValidParOptions(Foam::HashTable<Foam::string, Foam::word, Foam::string::hash>&)'
collect2: ld returned 1 exit status
make[2]: *** [/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/equilibriumCO] Error 1
make[2]: Leaving directory `/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/applications/utilities/thermophysical/equilibriumCO'
make[1]: *** [equilibriumCO] Error 2
make[2]: Entering directory `/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/applications/utilities/thermophysical/equilibriumFlameT'
Making dependency list for source file equilibriumFlameT.C
make[2]: Leaving directory `/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/applications/utilities/thermophysical/equilibriumFlameT'
make[2]: Entering directory `/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/applications/utilities/thermophysical/equilibriumFlameT'
SOURCE=equilibriumFlameT.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/equilibriumFlameT.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/equilibriumFlameT.o -L/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt \
-lspecie -lOpenFOAM -liberty -ldl -lm -o /home/g2/e090012/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/equilibriumFlameT
/usr/bin/ld: warning: libPstream.so, needed by /home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so, not found (try using -rpath or -rpath-link)
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `vtable for Foam::OPstream'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::OPstream::waitRequests()'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::OPstream::~OPstream()'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::IPstream::IPstream(Foam::Pstream::commsTypes, int, int, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber)'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::exit(int)'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::OPstream::write(Foam::Pstream::commsTypes, int, char const*, long)'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::IPstream::waitRequests()'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::abort()'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::IPstream::read(Foam::Pstream::commsTypes, int, char*, long)'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&)'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::init(int&, char**&)'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::addValidParOptions(Foam::HashTable<Foam::string, Foam::word, Foam::string::hash>&)'
collect2: ld returned 1 exit status
make[2]: *** [/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/equilibriumFlameT] Error 1
make[2]: Leaving directory `/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/applications/utilities/thermophysical/equilibriumFlameT'
make[1]: *** [equilibriumFlameT] Error 2
make[2]: Entering directory `/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
Making dependency list for source file mixtureAdiabaticFlameT.C
make[2]: Leaving directory `/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
make[2]: Entering directory `/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
SOURCE=mixtureAdiabaticFlameT.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/mixtureAdiabaticFlameT.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/mixtureAdiabaticFlameT.o -L/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt \
-lspecie -lOpenFOAM -liberty -ldl -lm -o /home/g2/e090012/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/mixtureAdiabaticFlameT
/usr/bin/ld: warning: libPstream.so, needed by /home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so, not found (try using -rpath or -rpath-link)
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `vtable for Foam::OPstream'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::OPstream::waitRequests()'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::OPstream::~OPstream()'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::IPstream::IPstream(Foam::Pstream::commsTypes, int, int, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber)'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::exit(int)'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::OPstream::write(Foam::Pstream::commsTypes, int, char const*, long)'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::IPstream::waitRequests()'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::abort()'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::IPstream::read(Foam::Pstream::commsTypes, int, char*, long)'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&)'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::init(int&, char**&)'
/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::addValidParOptions(Foam::HashTable<Foam::string, Foam::word, Foam::string::hash>&)'
collect2: ld returned 1 exit status
make[2]: *** [/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/mixtureAdiabaticFlameT] Error 1
make[2]: Leaving directory `/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
make[1]: *** [mixtureAdiabaticFlameT] Error 2
make[1]: Target `application' not remade because of errors.
make[1]: Leaving directory `/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/applications/utilities/thermophysical'
make: *** [thermophysical] Error 2
make: Target `application' not remade because of errors.
+ '[' '' = doc ']'
[e090012@bxfs1 OpenFOAM-1.6]$
|