CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] Building OpenFOAM 3.0.1 on Ubuntu 16.04 - failed

Register Blogs Community New Posts Updated Threads Search

Like Tree9Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 17, 2016, 12:56
Default
  #21
New Member
 
Rishabh Golchha
Join Date: Sep 2016
Posts: 12
Rep Power: 10
RishabhG is on a distinguished road
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
RishabhG is offline   Reply With Quote

Old   September 17, 2016, 20:00
Default
  #22
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
wyldckat is offline   Reply With Quote

Old   November 25, 2016, 08:58
Default problem in installing openfoam 3.0.1 in ubuntu16.04
  #23
Member
 
subhankar
Join Date: May 2016
Posts: 36
Rep Power: 10
SUBHANKAR is on a distinguished road
I couldn't understand the log.make file. It's showing error detected. Can anyone help me out here?

thanks and regards
Subhankar
Attached Files
File Type: gz log.make.gz (1.9 KB, 2 views)
SUBHANKAR is offline   Reply With Quote

Old   November 29, 2016, 17:06
Default
  #24
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by SUBHANKAR View Post
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.
__________________
wyldckat is offline   Reply With Quote

Old   December 1, 2016, 04:11
Default
  #25
Member
 
subhankar
Join Date: May 2016
Posts: 36
Rep Power: 10
SUBHANKAR is on a distinguished road
Hi wyldckat,
Thanks for replying...
My machine has 8GB RAM. So how can I solve the issue?

regards
SUBHANKAR is offline   Reply With Quote

Old   December 1, 2016, 20:21
Default
  #26
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by SUBHANKAR View Post
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.
wyldckat is offline   Reply With Quote

Old   December 2, 2016, 05:11
Default
  #27
Member
 
subhankar
Join Date: May 2016
Posts: 36
Rep Power: 10
SUBHANKAR is on a distinguished road
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
SUBHANKAR is offline   Reply With Quote

Old   December 2, 2016, 07:14
Default
  #28
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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.
wyldckat is offline   Reply With Quote

Old   December 6, 2016, 01:43
Default
  #29
Member
 
subhankar
Join Date: May 2016
Posts: 36
Rep Power: 10
SUBHANKAR is on a distinguished road
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
Attached Files
File Type: gz log.makePV.tar.gz (92.3 KB, 1 views)
SUBHANKAR is offline   Reply With Quote

Old   December 22, 2016, 14:31
Default
  #30
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
wyldckat is offline   Reply With Quote

Old   February 2, 2017, 10:24
Default
  #31
Member
 
Chia
Join Date: Jan 2016
Location: Singapore
Posts: 30
Rep Power: 10
chia87 is on a distinguished road
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

Last edited by chia87; February 2, 2017 at 10:44. Reason: gained enlightenment
chia87 is offline   Reply With Quote

Reply

Tags
3.0.1, xenial xerus


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] OpenFOAM 3.0.1 in Ubuntu 18.04 jlr OpenFOAM Installation 4 January 3, 2019 13:57
[OpenFOAM.org] OpenFOAM 5 source pack installation on Ubuntu 16.04 CjjJoy OpenFOAM Installation 23 June 6, 2018 11:55
[OpenFOAM.com] Installation of OpenFOAM 1.7.1 on Ubuntu 16.04 MM_Khan OpenFOAM Installation 11 September 3, 2017 10:22
[OpenFOAM.com] Problems building OF-1.7.x version, Ubuntu 16.04, Gcc-5.4.0 wadekar OpenFOAM Installation 2 February 22, 2017 12:11
Initial conditions for uniform flow andreas OpenFOAM 5 November 16, 2012 16:00


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