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

[OpenFOAM.com] Error getting while installing openFoam 1606 on ubuntu22.04

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 9, 2023, 08:06
Exclamation Error getting while installing openFoam 1606 on ubuntu22.04
  #1
New Member
 
Swaraj Bhure
Join Date: Jan 2023
Posts: 2
Rep Power: 0
Swaraj is on a distinguished road
Hi community

I am trying to install openFoam-v1606 on ubuntu 22.04 using source code with help of

https://openfoamwiki.net/index.php/I...1606%2B/Ubuntu
commands from the above website.

After putting the ./Allwmake command I am getting the following error:

fileStat.C:78:13: error: ‘major’ was not declared in this scope
78 | major(status_.st_dev) == major(stat2.status().st_dev)
| ^~~~~
fileStat.C:79:13: error: ‘minor’ was not declared in this scope
79 | && minor(status_.st_dev) == minor(stat2.status().st_dev)
| ^~~~~
fileStat.C: In function ‘Foam::Istream& Foam:perator>>(Foam::Istream&, Foam::fileStat&)’:
fileStat.C:104:20: error: ‘makedev’ was not declared in this scope
104 | dev_t st_dev = makedev(stat[1], stat[2]);
| ^~~~~~~
fileStat.C: In function ‘Foam::Ostream& Foam:perator<<(Foam::Ostream&, const Foam::fileStat&)’:
fileStat.C:132:21: error: ‘major’ was not declared in this scope
132 | stat[1] = label(major(fStat.status_.st_dev));
| ^~~~~
fileStat.C:133:21: error: ‘minor’ was not declared in this scope
133 | stat[2] = label(minor(fStat.status_.st_dev));
| ^~~~~
In file included from /home/varphi/OpenFOAM/OpenFOAM-plus/src/OpenFOAM/lnInclude/token.H:46,
from /home/varphi/OpenFOAM/OpenFOAM-plus/src/OpenFOAM/lnInclude/Istream.H:47,
from /home/varphi/OpenFOAM/OpenFOAM-plus/src/OpenFOAM/lnInclude/ISstream.H:39,
from /home/varphi/OpenFOAM/OpenFOAM-plus/src/OpenFOAM/lnInclude/IOstreams.H:38,
from fileStat.C:27:
/home/varphi/OpenFOAM/OpenFOAM-plus/src/OpenFOAM/lnInclude/typeInfo.H: In instantiation of ‘To& Foam::dynamicCast(From&) [with To = Foam::token::Compound<Foam::List<int> >; From = Foam::token::compound]’:
/home/varphi/OpenFOAM/OpenFOAM-plus/src/OpenFOAM/lnInclude/FixedListIO.C:58:13: required from ‘Foam::Istream& Foam:perator>>(Foam::Istream&, Foam::FixedList<T, Size>&) [with T = int; unsigned int Size = 13]’
/home/varphi/OpenFOAM/OpenFOAM-plus/src/OpenFOAM/lnInclude/FixedListIO.C:37:15: required from ‘Foam::FixedList<T, Size>::FixedList(Foam::Istream&) [with T = int; unsigned int Size = 13]’
fileStat.C:100:33: required from here
/home/varphi/OpenFOAM/OpenFOAM-plus/src/OpenFOAM/lnInclude/typeInfo.H:91:5: warning: catching polymorphic type ‘class std::bad_cast’ by value [-Wcatch-value=]
91 | catch (std::bad_cast)
| ^~~~~
make: * [/home/varphi/OpenFOAM/OpenFOAM-plus/wmake/rules/General/transform:8: /home/varphi/OpenFOAM/OpenFOAM-plus/platforms/linux64GccDPInt32Opt/src/OSspecific/POSIX/fileStat.o] Error 1.

Please tell me, what should I do to resolve this error.
@wyldkat
Swaraj is offline   Reply With Quote

Reply

Tags
openfoam installation


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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 15:54
OpenFOAM 4.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 2 October 6, 2017 05:40
[OpenFOAM.org] Installing OpenFoam 3.0.1 on cluster hello177 OpenFOAM Installation 1 April 24, 2016 08:35
Installing OpenFOAM 2.1.1 and ParaView 3.12.0 on Ubuntu 12.10 wyldckat OpenFOAM Installation 14 February 12, 2013 04:43


All times are GMT -4. The time now is 16:54.