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

#calc error: Cant find 'features.h'

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2018, 16:16
Default #calc error: Cant find 'features.h'
  #1
New Member
 
Join Date: Jul 2017
Posts: 3
Rep Power: 4
Ballistics_Sim is on a distinguished road
Hello Foamers,


I was hoping to use the #calc directive to help generate the vertices for blockMesh.



I tried to do this and got the following error:


In file included from /home/zwz/OpenFOAM/ThirdParty-v1712/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/c++config.h:507:0,
from /home/zwz/OpenFOAM/ThirdParty-v1712/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/cstddef:49,
from /home/zwz/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/Hasher.H:47,
from /home/zwz/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/string.H:49,
from /home/zwz/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/word.H:43,
from /home/zwz/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/keyType.H:43,
from /home/zwz/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/entry.H:44,
from /home/zwz/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/dictionary.H:88,
from codeStreamTemplate.C:29:
/home/zwz/OpenFOAM/ThirdParty-v1712/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/os_defines.h:39:22: fatal error: features.h: No such file or directory
#include <features.h>
^
compilation terminated.
/home/zwz/OpenFOAM/OpenFOAM-v1712/wmake/rules/General/transform:28: recipe for target 'Make/linux64Gcc63DPInt32Opt/codeStreamTemplate.o' failed
make: *** [Make/linux64Gcc63DPInt32Opt/codeStreamTemplate.o] Error 1


--> FOAM FATAL IO ERROR:
Failed wmake "dynamicCode/_2c1a7ee7b5369acae9da148f9823fdd8cde6256a/platforms/linux64Gcc63DPInt32Opt/lib/libcodeStream_2c1a7ee7b5369acae9da148f9823fdd8cde6 256a.so"


file: /mnt/c/OpenFOAM/Tutorial/pipeCyclic/system/blockMeshDict

From function static void (* Foam::functionEntries::codeStream::getFunction(con st Foam::dictionary&, const Foam::dictionary&))(Foam::Ostream&, const Foam::dictionary&)
in file db/dictionary/functionEntries/codeStream/codeStream.C at line 219.

FOAM exiting





this is from the simpleFoam/pipeCyclic tutorial, but I was getting the same error in my actual CFD case.


I tried going 'find -name features.h' , found it in another directory then 'cp -r <somePath/features.h> <thePathItWasLookingFor/features.h>'
I tried 'sudo apt-get make' and what was suggested here: https://bugs.openfoam.org/view.php?id=3034.


Still doesnt work. OpenFOAM v1712


What should I do?
Ballistics_Sim is offline   Reply With Quote

Old   February 21, 2020, 13:17
Default
  #2
New Member
 
Ravi Teja Paineni
Join Date: Jun 2017
Posts: 3
Rep Power: 4
rigid42 is on a distinguished road
hey! did you find any solution for it. I was facing the same problem too. My version is 1912
rigid42 is offline   Reply With Quote

Old   February 21, 2020, 14:16
Default
  #3
New Member
 
Ravi Teja Paineni
Join Date: Jun 2017
Posts: 3
Rep Power: 4
rigid42 is on a distinguished road
Never mind found it....
https://bugs.openfoam.org/view.php?id=3034
rigid42 is offline   Reply With Quote

Reply

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
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
CFX-Pre problem, pls help!!! cth_yao CFX 0 February 17, 2012 00:52
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 12:38
Problem Building OF on Centos cluster (no admin rights) CKH OpenFOAM Installation 5 November 13, 2011 06:32
Rotation flow calc. II. Andy Christian Main CFD Forum 2 April 10, 2003 04:06


All times are GMT -4. The time now is 01:19.