CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[] v2212 Compilation error - Instant.H not found

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   April 3, 2023, 04:17
Default v2212 Compilation error - Instant.H not found
New Member
Join Date: Jan 2023
Posts: 2
Rep Power: 0
MANI18 is on a distinguished road
Hi everyone!

I have recently downloaded the source file and a third-party file from the website

I followed the installation procedure provided on the website, but encountered an error. The error message is as follows:

Done ThirdParty Allwmake

Compile OpenFOAM libraries
ln: OpenFOAM/lnInclude
ln: OSspecific/POSIX/lnInclude
wmake libo (POSIX)
Ctoo: sigStopAtWriteNow.C
In file included from /home/manikandan/OpenFOAM/OpenFOAM-v2212/src/OpenFOAM/lnInclude/instantList.H:37,
from /home/manikandan/OpenFOAM/OpenFOAM-v2212/src/OpenFOAM/lnInclude/TimePaths.H:42,
from /home/manikandan/OpenFOAM/OpenFOAM-v2212/src/OpenFOAM/lnInclude/Time.H:44,
from signals/sigStopAtWriteNow.C:34:
/home/manikandan/OpenFOAM/OpenFOAM-v2212/src/OpenFOAM/lnInclude/instant.H:42:10: fatal error: Instant.H: No such file or directory
42 | #include "Instant.H"
| ^~~~~~~~~~~
compilation terminated.
make: *** [/home/manikandan/OpenFOAM/OpenFOAM-v2212/wmake/rules/General/transform:38: /home/manikandan/OpenFOAM/OpenFOAM-v2212/build/linux64GccDPInt32Opt/src/OSspecific/POSIX/signals/sigStopAtWriteNow.o] Error 1
Done logging to 'log.linux64GccDPInt32Opt'

It appears that the compiler is unable to locate the file "Instant.h" for some unknown reason.

I am seeking assistance and guidance in resolving this issue. Any help or advice would be greatly appreciated.

Manikandan Valliappan
MANI18 is offline   Reply With Quote

Old   April 5, 2023, 17:23
Senior Member
Mark Olesen
Join Date: Mar 2009
Posts: 1,593
Rep Power: 38
olesen has a spectacular aura aboutolesen has a spectacular aura about
Looks like you might have initially aborted when building the include files links. If you haven'd gotten very far, you can simply use a wclean -all from the top level.

That is a bit drastic, so normally I would just rebuild the links if needed.Eg,

# Change to the OpenFOAM directory (with the 'foam' alias)

$  foam 

# Rebuild the links

$  wmakeLnInclude -u -pwd src/OpenFOAM
The '-u' option is for update. I always the '-pwd' option, which resolves based on the Make/files. For example,

$  wmakeLnInclude -u -pwd src/OpenFOAM

# Same thing...

$  wmakeLnInclude -u -pwd src/OpenFOAM/containers
The reason for the '-pwd' would be this:

$  foam

$  cd src/OpenFOAM/containers

# edit something, create some files,....

# later

$  wmakeLnInclude -u -pwd
Works even if you are deeper down somewhere within the tree.
olesen is offline   Reply With Quote

Old   April 12, 2023, 04:22
New Member
Join Date: Jan 2023
Posts: 2
Rep Power: 0
MANI18 is on a distinguished road
Thank you for your comprehensive response concerning this error. The issue was caused by my use of 7-Zip on Windows to extract the file, which resulted in the loss of some files during the installation process. However, I have resolved the problem by unzipping the folder using the command

"tar -xvf filename.tar.gz".
MANI18 is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 13:21
[] Installing on Ubuntu 18.04 samiam1000 OpenFOAM Installation 11 April 27, 2020 00:01
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 04:18
dsmcInitialise - dsmcFoam archymedes OpenFOAM Pre-Processing 94 July 15, 2016 16:14
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 08:48

All times are GMT -4. The time now is 00:03.