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.com] Error getting while installing openFoam 1606 on ubuntu22.04 (https://www.cfd-online.com/Forums/openfoam-installation/251827-error-getting-while-installing-openfoam-1606-ubuntu22-04-a.html)

Swaraj September 9, 2023 08:06

Error getting while installing openFoam 1606 on ubuntu22.04
 
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::operator>>(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::operator<<(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::operator>>(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


All times are GMT -4. The time now is 22:49.