CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] Open FOAM 4.1 installation on Ubuntu 17.04 (32 bit). (https://www.cfd-online.com/Forums/openfoam-installation/192558-open-foam-4-1-installation-ubuntu-17-04-32-bit.html)

Openguy September 6, 2017 07:47

Open FOAM 4.1 installation on Ubuntu 17.04 (32 bit).
 
Hi All,

I have tried to install Open FOAM 4.1 on Ubuntu 17.04. I have compiled paraview successfully, but when I try to compile the open FOAM folder using the command : ./Allwmake -j 2 > log.make 2>&1
the problem starts. The process continues for some time and there were some solvers compiled successfully. The process is not complete and the meshing application like blockMesh is not made!

The end few lines of the log file is given below:

Code:

Making dependency list for source file refinementLevel.C
g++ -std=c++0x -m32 -Dlinux -DWM_ARCH_OPTION=32 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100 -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/finiteVolume/lnInclude -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/meshTools/lnInclude -IlnInclude -I. -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/OpenFOAM/lnInclude -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/OSspecific/POSIX/lnInclude  -fPIC -c refinementLevel.C -o /home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/applications/utilities/mesh/advanced/refinementLevel/refinementLevel.o
g++ -std=c++0x -m32 -Dlinux -DWM_ARCH_OPTION=32 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100 -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/finiteVolume/lnInclude -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/meshTools/lnInclude -IlnInclude -I. -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/OpenFOAM/lnInclude -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed /home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/applications/utilities/mesh/advanced/refinementLevel/refinementLevel.o -L/home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/lib \
    -lfiniteVolume -lmeshTools -lOpenFOAM -ldl  \
    -lm -o /home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/bin/refinementLevel
/home/gokul/OpenFOAM/OpenFOAM-4.1/applications/utilities/mesh/advanced/removeFaces
Making dependency list for source file removeFaces.C
g++ -std=c++0x -m32 -Dlinux -DWM_ARCH_OPTION=32 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100 -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/meshTools/lnInclude -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/dynamicMesh/lnInclude -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/OpenFOAM/lnInclude -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/OSspecific/POSIX/lnInclude  -fPIC -c removeFaces.C -o /home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/applications/utilities/mesh/advanced/removeFaces/removeFaces.o
g++ -std=c++0x -m32 -Dlinux -DWM_ARCH_OPTION=32 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100 -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/meshTools/lnInclude -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/dynamicMesh/lnInclude -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/OpenFOAM/lnInclude -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed /home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/applications/utilities/mesh/advanced/removeFaces/removeFaces.o -L/home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/lib \
    -lmeshTools -ldynamicMesh -lfiniteVolume -lgenericPatchFields -lOpenFOAM -ldl  \
    -lm -o /home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/bin/removeFaces
/home/gokul/OpenFOAM/OpenFOAM-4.1/applications/utilities/mesh/advanced/selectCells
make[3]: *** Deleting file '/home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/applications/utilities/mesh/advanced/selectCells/sourceFiles'
/home/gokul/OpenFOAM/OpenFOAM-4.1/wmake/rules/General/transform:8: recipe for target '/home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/applications/utilities/parallelProcessing/decomposePar/decomposePar.o' failed
make[2]: *** [/home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/applications/utilities/parallelProcessing/decomposePar/decomposePar.o] Hangup
/home/gokul/OpenFOAM/OpenFOAM-4.1/wmake/makefiles/apps:39: recipe for target 'selectCells' failed
make[2]: *** [selectCells] Hangup
/home/gokul/OpenFOAM/OpenFOAM-4.1/wmake/makefiles/apps:39: recipe for target 'advanced' failed
make[1]: *** [advanced] Hangup
/home/gokul/OpenFOAM/OpenFOAM-4.1/wmake/makefiles/apps:39: recipe for target 'mesh' failed
make: *** [mesh] Hangup
/home/gokul/OpenFOAM/OpenFOAM-4.1/wmake/makefiles/apps:39: recipe for target 'parallelProcessing' failed
make: *** [parallelProcessing] Hangup
/home/gokul/OpenFOAM/OpenFOAM-4.1/wmake/makefiles/apps:39: recipe for target 'decomposePar' failed
make[1]: *** [decomposePar] Hangup
/home/gokul/OpenFOAM/OpenFOAM-4.1/wmake/makefiles/files:60: recipe for target '/home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/applications/utilities/mesh/advanced/selectCells/sourceFiles' failed
make[3]: *** [/home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/applications/utilities/mesh/advanced/selectCells/sourceFiles] Hangup

Wyldckat, Can you help me?

wyldckat September 6, 2017 18:14

Quick answer: I'm guessing that you are following the instructions from here: https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04

In order for the error message "Hangup" to appear, I'm guessing that the problem is that there isn't enough RAM in the machine or associated to the virtual machine.
If you are using Ubuntu 17.04 inside a virtual machine, then my guess is that you kept the default 1GB of RAM associated to it. That would explain why using 2 cores will not work as intended.

Restart (reboot) the machine that has Ubuntu installed in it.

Then try using the following commands, after starting a new terminal window within Ubuntu:
Code:

of41
foam
./Allwmake > log.make 2>&1

This way only 1 core is used and it should use the minimum necessary RAM needed for building OpenFOAM.

Openguy September 7, 2017 10:33

Hi Bruno,

Yes, I was following the above instructions. I am not using any virtual machine. I restarted my PC and tried the above command and I got the following error:

Code:

-bash: log.make: Permission denied
Fortunately when I used

Code:

sudo apt install openfoam
I got the necessary applications. Thanks for your help anyway.


Quote:

Originally Posted by wyldckat (Post 663446)
Quick answer: I'm guessing that you are following the instructions from here: https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04

In order for the error message "Hangup" to appear, I'm guessing that the problem is that there isn't enough RAM in the machine or associated to the virtual machine.
If you are using Ubuntu 17.04 inside a virtual machine, then my guess is that you kept the default 1GB of RAM associated to it. That would explain why using 2 cores will not work as intended.

Restart (reboot) the machine that has Ubuntu installed in it.

Then try using the following commands, after starting a new terminal window within Ubuntu:
Code:

of41
foam
./Allwmake > log.make 2>&1

This way only 1 core is used and it should use the minimum necessary RAM needed for building OpenFOAM.



All times are GMT -4. The time now is 21:28.