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

wmake Compilation Error

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

Like Tree1Likes
  • 1 Post By ucceyrekkokorec

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 4, 2022, 10:36
Default wmake Compilation Error
  #1
New Member
 
mfr
Join Date: Nov 2021
Posts: 12
Rep Power: 4
ucceyrekkokorec is on a distinguished road
Hi All,

I have changed linearMotion.C in dynamicMesh. When ı try to compile with wmake I got these errors:
g++ -std=c++11 -m64 -pthread -DOPENFOAM=2012 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-v2012/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-v2012/src/surfMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-v2012/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-v2012/src/mesh/extrudeModel/lnInclude -iquote. -IlnInclude -I/opt/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-v2012/src/OSspecific/POSIX/lnInclude -fPIC -c attachDetach/attachDetach.C -o /opt/OpenFOAM/OpenFOAM-v2012/build/linux64Gcc63DPInt32Opt/src/dynamicMesh/attachDetach/attachDetach.o In file included from /opt/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/c++config.h:507:0, from /opt/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/cstdint:38, from /opt/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/int16.H:40, from /opt/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/int.H:40, from /opt/OpenFOAM/OpenFOAM-v2012/src/OpenFOAM/lnInclude/label.H:42, from lnInclude/polyMeshModifier.H:41, from attachDetach/attachDetach.H:50, from attachDetach/attachDetach.C:29: /opt/OpenFOAM/OpenFOAM-v2012/ThirdParty/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. make: *** [/opt/OpenFOAM/OpenFOAM-v2012/wmake/rules/General/transform:35: /opt/OpenFOAM/OpenFOAM-v2012/build/linux64Gcc63DPInt32Opt/src/dynamicMesh/attachDetach/attachDetach.o] Error 1




How can ı solve this?
ucceyrekkokorec is offline   Reply With Quote

Old   January 4, 2022, 13:12
Default
  #2
Member
 
Lorenzo
Join Date: Apr 2020
Location: Italy
Posts: 35
Rep Power: 5
Lorenzo210 is on a distinguished road
Hi,
it is not clear what's the problem, and the information you gave aren't enough.
Did you just add some calculation inside linearMotion.C?

I'll try to guess: the error is due the following fatal error:
Quote:
fatal error: features.h: No such file or directory #include <features.h>
I was looking for some forum threads with similiar problems and I found this:
#calc error: Cant find 'features.h'
So, as it's said in #5, maybe the problem it's due to missing libraries. Try with "sudo apt-get install build-essential" and restart the system.

If it doesn't solve your problem, please provide more information.

Regards,
Lorenzo
Lorenzo210 is offline   Reply With Quote

Old   January 4, 2022, 13:23
Default
  #3
New Member
 
mfr
Join Date: Nov 2021
Posts: 12
Rep Power: 4
ucceyrekkokorec is on a distinguished road
Quote:
Originally Posted by Lorenzo210 View Post
Hi,
it is not clear what's the problem, and the information you gave aren't enough.
Did you just add some calculation inside linearMotion.C?

I'll try to guess: the error is due the following fatal error:

I was looking for some forum threads with similiar problems and I found this:
#calc error: Cant find 'features.h'
So, as it's said in #5, maybe the problem it's due to missing libraries. Try with "sudo apt-get install build-essential" and restart the system.

If it doesn't solve your problem, please provide more information.

Regards,
Lorenzo
I added a simple while loop in linearMotion.C file in src/dynamicMesh/lnInclude. I will try your suggestion and inform you.
Thanks
ucceyrekkokorec is offline   Reply With Quote

Old   January 4, 2022, 14:01
Default
  #4
New Member
 
mfr
Join Date: Nov 2021
Posts: 12
Rep Power: 4
ucceyrekkokorec is on a distinguished road
Quote:
Originally Posted by Lorenzo210 View Post
Hi,
it is not clear what's the problem, and the information you gave aren't enough.
Did you just add some calculation inside linearMotion.C?

I'll try to guess: the error is due the following fatal error:

I was looking for some forum threads with similiar problems and I found this:
#calc error: Cant find 'features.h'
So, as it's said in #5, maybe the problem it's due to missing libraries. Try with "sudo apt-get install build-essential" and restart the system.

If it doesn't solve your problem, please provide more information.

Regards,
Lorenzo
It worked. I have faced some problems when ı run "sudo apt-get install build-essential" command but solved.
Thank you a lot
Lorenzo210 likes this.
ucceyrekkokorec is offline   Reply With Quote

Reply

Tags
compile error

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
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 19:00
Errors in UDF shashank312 Fluent UDF and Scheme Programming 6 May 30, 2013 21:30
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 07:25
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23
[OpenFOAM] ParaFoam error message joey ParaView 1 October 2, 2006 14:28


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