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

[OpenFOAM.com] v2212 Compilation error - Instant.H not found

Register Blogs Community New Posts Updated Threads Search

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

I have recently downloaded the source file and a third-party file from the website https://develop.openfoam.com/Develop...r/doc/Build.md.

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.

Regards,
Manikandan Valliappan
MANI18 is offline   Reply With Quote

Old   April 5, 2023, 18:23
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
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,
Code:

# 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,


Code:
$  wmakeLnInclude -u -pwd src/OpenFOAM


# Same thing...

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

Code:
$  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, 05:22
Default
  #3
New Member
 
Manikandan Valliappan
Join Date: Jan 2023
Posts: 3
Rep Power: 3
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

Reply


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 14:21
[OpenFOAM.com] Installing on Ubuntu 18.04 samiam1000 OpenFOAM Installation 11 April 27, 2020 01:01
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 05:18
dsmcInitialise - dsmcFoam archymedes OpenFOAM Pre-Processing 94 July 15, 2016 17:14
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 09:48


All times are GMT -4. The time now is 13:51.