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] Building OpenFOAM 3.0.1 on Ubuntu 16.04 - failed (https://www.cfd-online.com/Forums/openfoam-installation/169644-building-openfoam-3-0-1-ubuntu-16-04-failed.html)

RishabhG September 17, 2016 11:56

I see. I did miss the dot. Thanks for pointing it out.
Now when I include it I get the error which i mentioned earlier

Code:

cp: cannot stat '/home/rishabh/OpenFOAM/OpenFOAM-3.0.1/tutorials/incompressible/icoFoam/cavity/cavity': No such file or directory
Any idea what is the problem now

wyldckat September 17, 2016 19:00

Quick answer: The latest OpenFOAM User Guide is targeting OpenFOAM version 4. For OpenFOAM 3.0, you need to use this command instead:
Code:

cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity ./
For more details on the change from 3.0 to 4.0, see the first comment on this bug report: http://bugs.openfoam.org/view.php?id=2149#c6527

SUBHANKAR November 25, 2016 07:58

problem in installing openfoam 3.0.1 in ubuntu16.04
 
1 Attachment(s)
I couldn't understand the log.make file. It's showing error detected. Can anyone help me out here?

thanks and regards
Subhankar

wyldckat November 29, 2016 16:06

Quote:

Originally Posted by SUBHANKAR (Post 626886)
I couldn't understand the log.make file. It's showing error detected. Can anyone help me out here?

Quick answer: The error message is this:
Quote:

Code:

lnInclude/TensorI.H:705:26: internal compiler error: Segmentation fault

This either happened due to insufficient RAM or possibly due to a hardware issue.

If it was due to the lack of RAM, then please run the following commands:
Code:

free -h
lscpu

The first one will tell you how much RAM your machine has available and the second one will tell you how many cores the machine has got, e.g:
Code:

CPU(s):                4
On-line CPU(s) list:  0-3
Thread(s) per core:    2
Core(s) per socket:    2
Socket(s):            1
NUMA node(s):          1

In this example, it has 4 cores.

It needs around 1 to 2 GB of RAM per core. If your machine only has 4GB of RAM, then you can only use 2 or 3 cores to build OpenFOAM.

SUBHANKAR December 1, 2016 03:11

Hi wyldckat,
Thanks for replying...
My machine has 8GB RAM. So how can I solve the issue?

regards

wyldckat December 1, 2016 19:21

Quote:

Originally Posted by SUBHANKAR (Post 627699)
My machine has 8GB RAM. So how can I solve the issue?

You didn't answer my other questions...

Anyway, there are two possible solutions I can think of:
  1. Ignore the build error and run the Allwmake command one again, in hope that the next attempt will work as intended.
  2. From the log file, I can see this: "linux64GccDPInt64Opt" - which means that you are building with 64-bit labels. If you only have 8GB of RAM, you should not be using the "WM_LABEL_SIZE=64" option, unless you have access to some other machine that has 512GB of RAM or way more than that.

SUBHANKAR December 2, 2016 04:11

Hi bruno,

my system has
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
CPU family: 6
I followed the wiki page completely and as per the instructions only i followed the commands.

regards
subhankar

wyldckat December 2, 2016 06:14

Quick answer: OK, your machine have 2 real cores and 2 threads per core... if you are following the instructions given here: http://openfoamwiki.net/index.php/In...u#Ubuntu_16.04 - then please try running with only 3 threads, like this:
Code:

./Allwmake -j 3 > log.make 2>&1
Hopefully the compiler will be able to build properly past the problematic location, by having a few more free resources.

SUBHANKAR December 6, 2016 00:43

1 Attachment(s)
Hi Bruno,
I tried to do everything fresh again from the start including the changes you said.The log.makePV file is showing segmentation fault.
regards

wyldckat December 22, 2016 13:31

Sorry for the late reply. Something really strange is going on in your machine. I strongly suggest you do some system check ups, for example as instructed here: https://openfoamwiki.net/index.php/H...and_CPU_are_OK

chia87 February 2, 2017 09:24

Hi everyone,

I followed https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04 , for installation of OpenFoam on Ubuntu 16.04

I failed at step 10

For building ParaView with Python and MPI, it depends on whether you have installed the i686 or x86_64 architecture of Ubuntu. To check this, run:
uname -m

#note, im running on x86_64

For x86_64:
#this will take a while... somewhere between 30 minutes to 2 hours or more
./makeParaView4 -python -mpi -python-lib /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 > log.makePV 2>&1

I failed here,

when i entered the command ' ./makeParaView4 -python -mpi -python-lib /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 > log.makePV 2>&1 '

my entire screen froze and log me out of ubuntu

Anyone has any idea , any input much appreciated

EDIT: I adjusted the amount of allocated memory, and it seems to solve the problem


All times are GMT -4. The time now is 02:01.