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

wmake error own solver

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 10, 2014, 07:10
Default wmake error own solver
  #1
MSF
New Member
 
Join Date: Apr 2014
Posts: 7
Rep Power: 4
MSF is on a distinguished road
Hello,

I'm trying to compile my own solver (OpenFoam 1.6) on our cluster and after copying the folder,changing the name of the folder and the .c, editing the options file i typed wmake. First it says that inside Make/linux.../options a delimiter is missing. I fixed this by removing the line break. Then i typed wmake again and got the following error message

Making dependency list for source file myIcoFoam.C
SOURCE=myIcoFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/myIcoFoam.o
In Datei, eingefügt von /usr/include/limits.h:27,
von /opt/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/include-fixed/limits.h:122,
von /opt/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/include-fixed/syslimits.h:7,
von /opt/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/include-fixed/limits.h:11,
von /opt/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../include/c++/4.3.3/climits:48,
von /opt/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/label.H:39,
von /opt/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/labelList.H:36,
von /opt/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/Pstream.H:44,
von /opt/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/OPstream.H:36,
von /opt/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/parRun.H:36,
von /opt/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvCFD.H:4,
von myIcoFoam.C:33:
/usr/include/features.h:324:26: Fehler: bits/predefs.h: Datei oder Verzeichnis nicht gefunden
/usr/include/features.h:357:25: Fehler: sys/cdefs.h: Datei oder Verzeichnis nicht gefunden
/usr/include/features.h:389:23: Fehler: gnu/stubs.h: Datei oder Verzeichnis nicht gefunden

I tried to compile this a home in a VirtualBox and it worked. Any ideas what is missing on the cluster?

Kind regards

Moritz
MSF is offline   Reply With Quote

Old   April 10, 2014, 12:06
Default
  #2
Senior Member
 
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 279
Blog Entries: 5
Rep Power: 12
tomislav_maric is on a distinguished road
These

Code:
/usr/include/features.h:324:26: Fehler: bits/predefs.h: Datei oder Verzeichnis nicht gefunden
/usr/include/features.h:357:25: Fehler: sys/cdefs.h: Datei oder Verzeichnis nicht gefunden
/usr/include/features.h:389:23: Fehler: gnu/stubs.h: Datei oder Verzeichnis nicht gefunden
header files are stored in '/usr/include' which means that they belong to system packages, they are not related with OpenFOAM installation - well, not directly.

Try and find out the version of the operating system you are using by executing:

Code:
cat /etc/issue
then try and search for packages for that operating system that contain those files (here's an example of such problem for Ubuntu). If you have root access to the cluster, install the package, if not, contact your cluster admin and let him know what packages are missing.
__________________
Blog: sourceflux.de/blog
Trainings: sourceflux.de/services/training
"The OpenFOAM Technology Primer": sourceflux.de/book
Twitter: @sourceflux_de

When asking a question, prepare a SSCCE.
tomislav_maric is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add a FORTRAN object to wmake compilation directives vitors OpenFOAM Programming & Development 1 April 9, 2014 14:25
Quarter Burner mesh with periosic condition SamCanuck FLUENT 2 August 31, 2011 11:34
compliing a new solver with wmake kirankarki OpenFOAM 18 October 26, 2010 17:59
Wmake problem interFoam solver feijooos OpenFOAM Running, Solving & CFD 4 December 8, 2008 12:01
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 14:08


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