CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM-2.0.1 installation problem (http://www.cfd-online.com/Forums/openfoam-installation/92433-openfoam-2-0-1-installation-problem.html)

benru September 14, 2011 07:02

OpenFOAM-2.0.1 installation problem
 
1. Fragment with fault from installation log:

make[1]: Entering directory `/home/ben/OpenFOAM/OpenFOAM-2.0.1/applications/solvers/stressAnalysis'
make[2]: Entering directory `/home/ben/OpenFOAM/OpenFOAM-2.0.1/applications/solvers/stressAnalysis/solidDisplacementFoam'
Making dependency list for source file tractionDisplacement/tractionDisplacementFvPatchVectorField.C
Making dependency list for source file solidDisplacementFoam.C
make[2]: Leaving directory `/home/ben/OpenFOAM/OpenFOAM-2.0.1/applications/solvers/stressAnalysis/solidDisplacementFoam'
make[2]: Entering directory `/home/ben/OpenFOAM/OpenFOAM-2.0.1/applications/solvers/stressAnalysis/solidDisplacementFoam'
SOURCE=tractionDisplacement/tractionDisplacementFvPatchVectorField.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/ben/OpenFOAM/OpenFOAM-2.0.1/src/finiteVolume/lnInclude -ItractionDisplacement/lnInclude -IlnInclude -I. -I/home/ben/OpenFOAM/OpenFOAM-2.0.1/src/OpenFOAM/lnInclude -I/home/ben/OpenFOAM/OpenFOAM-2.0.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/tractionDisplacementFvPatchVectorField.o
SOURCE=solidDisplacementFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/ben/OpenFOAM/OpenFOAM-2.0.1/src/finiteVolume/lnInclude -ItractionDisplacement/lnInclude -IlnInclude -I. -I/home/ben/OpenFOAM/OpenFOAM-2.0.1/src/OpenFOAM/lnInclude -I/home/ben/OpenFOAM/OpenFOAM-2.0.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/solidDisplacementFoam.o
readSolidDisplacementFoamControls.H: In function ‘int main(int, char**)’:
readSolidDisplacementFoamControls.H:3: warning: unused variable ‘nCorr’
readSolidDisplacementFoamControls.H:5: warning: unused variable ‘convergenceTolerance’
solidDisplacementFoam.C: In copy constructor ‘Foam::PtrList<T>::PtrList(const Foam::PtrList<T>&) [with T = Foam::Field<Foam::Vector<double> >]’:
solidDisplacementFoam.C:134: internal compiler error: Segmentation Fault.
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.
make[2]: *** [Make/linux64GccDPOpt/solidDisplacementFoam.o] Error 1
make[2]: Aim `/home/ben/OpenFOAM/OpenFOAM-2.0.1/platforms/linux64GccDPOpt/bin/solidDisplacementFoam' was not created due to errors.
make[2]: Leaving directory `/home/ben/OpenFOAM/OpenFOAM-2.0.1/applications/solvers/stressAnalysis/solidDisplacementFoam'
make[1]: *** [solidDisplacementFoam] Error 2
make[2]: Entering directory `/home/ben/OpenFOAM/OpenFOAM-2.0.1/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam'
Making dependency list for source file tractionDisplacementCorrection/tractionDisplacementCorrectionFvPatchVectorField.C
Making dependency list for source file solidEquilibriumDisplacementFoam.C
make[2]: Leaving directory `/home/ben/OpenFOAM/OpenFOAM-2.0.1/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam'
make[2]: Entering directory `/home/ben/OpenFOAM/OpenFOAM-2.0.1/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam'
SOURCE=tractionDisplacementCorrection/tractionDisplacementCorrectionFvPatchVectorField.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/ben/OpenFOAM/OpenFOAM-2.0.1/src/finiteVolume/lnInclude -ItractionDisplacementCorrectionStress -I../solidDisplacementFoam -IlnInclude -I. -I/home/ben/OpenFOAM/OpenFOAM-2.0.1/src/OpenFOAM/lnInclude -I/home/ben/OpenFOAM/OpenFOAM-2.0.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/tractionDisplacementCorrectionFvPatchVectorField.o
SOURCE=solidEquilibriumDisplacementFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/ben/OpenFOAM/OpenFOAM-2.0.1/src/finiteVolume/lnInclude -ItractionDisplacementCorrectionStress -I../solidDisplacementFoam -IlnInclude -I. -I/home/ben/OpenFOAM/OpenFOAM-2.0.1/src/OpenFOAM/lnInclude -I/home/ben/OpenFOAM/OpenFOAM-2.0.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/solidEquilibriumDisplacementFoam.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/ben/OpenFOAM/OpenFOAM-2.0.1/src/finiteVolume/lnInclude -ItractionDisplacementCorrectionStress -I../solidDisplacementFoam -IlnInclude -I. -I/home/ben/OpenFOAM/OpenFOAM-2.0.1/src/OpenFOAM/lnInclude -I/home/ben/OpenFOAM/OpenFOAM-2.0.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/tractionDisplacementCorrectionFvPatchVectorField.o Make/linux64GccDPOpt/solidEquilibriumDisplacementFoam.o -L/home/ben/OpenFOAM/OpenFOAM-2.0.1/platforms/linux64GccDPOpt/lib \
-lfiniteVolume -lOpenFOAM -ldl -lm -o /home/ben/OpenFOAM/OpenFOAM-2.0.1/platforms/linux64GccDPOpt/bin/solidEquilibriumDisplacementFoam
make[2]: Leaving directory `/home/ben/OpenFOAM/OpenFOAM-2.0.1/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam'
make[1]: Aim `application' was not created due to errors.
make[1]: Leaving directory `/home/ben/OpenFOAM/OpenFOAM-2.0.1/applications/solvers/stressAnalysis'
make: *** [stressAnalysis] Error 2
make: Aim `application' was not created due to errors.

2. OS: Debian 6.0.2
3. Computer: Intel Core2Duo 3GHz, mem 2Gb etc

4. Before it (a day ago) OF-2.0.1 was successfully installed on other computer (AMD64, dual core, mem 2Gb etc.) with the same OS (installed from the same disk by myself), without any troubles.

Could you offer simple path to solve problem ?
Thank you.

benru September 14, 2011 09:15

As I understood, it was technology fault (temporary memory or cach volume fault), so it was performed :
cd applications/solvers/stressAnalysis/solidDisplacementFoam
wclean
wmake
cd applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam
wclean
wmake

And solvers were created. After that

cd home/OpenFOAM/OpenFOAM-2.0.1
and ./Allwmake to continue procedure


All times are GMT -4. The time now is 08:19.