|
[Sponsors] |
[OpenFOAM.com] v2212 Compilation error - Instant.H not found |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 3, 2023, 05:17 |
v2212 Compilation error - Instant.H not found
|
#1 |
New Member
Manikandan Valliappan
Join Date: Jan 2023
Posts: 3
Rep Power: 3 |
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 |
|
April 5, 2023, 18:23 |
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
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 Code:
$ wmakeLnInclude -u -pwd src/OpenFOAM # Same thing... $ wmakeLnInclude -u -pwd src/OpenFOAM/containers Code:
$ foam $ cd src/OpenFOAM/containers # edit something, create some files,.... # later $ wmakeLnInclude -u -pwd |
|
April 12, 2023, 05:22 |
|
#3 |
New Member
Manikandan Valliappan
Join Date: Jan 2023
Posts: 3
Rep Power: 3 |
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". |
|
|
|
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 |