CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] Problems installing swak4Foam (https://www.cfd-online.com/Forums/openfoam-community-contributions/83227-problems-installing-swak4foam.html)

argonaut December 20, 2010 07:44

Problems installing swak4Foam
 
I try to build swak4Foam, but get errors. Can anybody see where is the problem? First errors are the following:

Code:

[swak4Foam]$ ./Allwmake
Making dependency list for source file SurfacesRepository.C
Making dependency list for source file ExpressionResult.C
Making dependency list for source file FieldValueExpressionParser.yy
could not open file FieldValueExpressionParser_stack.hh for source file FieldValueExpressionParser.yy
could not open file FieldValueExpressionParser_location.hh for source file FieldValueExpressionParser.yy
Making dependency list for source file PatchValueExpressionParser.yy
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionParser.yy

gcc 4.3.3
bison 2.4.3
flex 2.5.35

gschaider December 20, 2010 11:07

Quote:

Originally Posted by argonaut (Post 287867)
I try to build swak4Foam, but get errors. Can anybody see where is the problem? First errors are the following:

Code:

[swak4Foam]$ ./Allwmake
Making dependency list for source file SurfacesRepository.C
Making dependency list for source file ExpressionResult.C
Making dependency list for source file FieldValueExpressionParser.yy
could not open file FieldValueExpressionParser_stack.hh for source file FieldValueExpressionParser.yy
could not open file FieldValueExpressionParser_location.hh for source file FieldValueExpressionParser.yy
Making dependency list for source file PatchValueExpressionParser.yy
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionParser.yy

gcc 4.3.3
bison 2.4.3
flex 2.5.35

These errors are OK (FieldValueExpressionParser_stack.hh et al are generated by bison/yacc). The first error that gcc throws would be interesting (but good thinking to start with the errors from the top. Appreciated)

Bernhard

argonaut December 21, 2010 09:25

1 Attachment(s)
If you say so, maybe everything is OK? Word "error" is mentioned later and first appearances I copy here. I attached also full warning and error log. I would be glad if you could take a look and say if I have big problems or not.

I would like also to mention that my linux is quite old (and I do not have root rights), but I built lot of usual utilities by myself. Some of them still could be old and making problems, e.g. findutils. btw, "find" is complaining that it does not recognize -L switch. Unfortunately, I could not build newest findutils.

Code:

In file included from general/swakExpressionFunctionObject.C:28:
general/swakExpressionFunctionObject.H:40:36: error: timelineFunctionObject.H: No such file or directory
In file included from general/swakExpressionFunctionObject.C:28:
general/swakExpressionFunctionObject.H:56: error: expected class-name before '{' token
general/swakExpressionFunctionObject.H:56: warning: 'class Foam::swakExpressionFunctionObject' has virtual functions and accessible non-virtual destructor
In file included from general/swakExpressionFunctionObject.H:115,
                from general/swakExpressionFunctionObject.C:28:
general/swakExpressionFunctionObjectTemplates.C: In member function 'void Foam::swakExpressionFunctionObject::writeData(Foam::CommonValueExpressionDriver&)':
general/swakExpressionFunctionObjectTemplates.C:68: error: there are no arguments to 'verbose' that depend on a template parameter, so a declaration of 'verbose' must be available
general/swakExpressionFunctionObjectTemplates.C:68: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
general/swakExpressionFunctionObjectTemplates.C:76: error: 'OFstream' was not declared in this scope
general/swakExpressionFunctionObjectTemplates.C:76: error: 'o' was not declared in this scope
general/swakExpressionFunctionObjectTemplates.C:76: error: 'filePtrs_' was not declared in this scope
general/swakExpressionFunctionObjectTemplates.C:76: error: no matching function for call to 'name()'


gschaider December 22, 2010 04:51

Quote:

Originally Posted by argonaut (Post 288001)
If you say so, maybe everything is OK? Word "error" is mentioned later and first appearances I copy here. I attached also full warning and error log. I would be glad if you could take a look and say if I have big problems or not.

I would like also to mention that my linux is quite old (and I do not have root rights), but I built lot of usual utilities by myself. Some of them still could be old and making problems, e.g. findutils. btw, "find" is complaining that it does not recognize -L switch. Unfortunately, I could not build newest findutils.

Code:

In file included from general/swakExpressionFunctionObject.C:28:
general/swakExpressionFunctionObject.H:40:36: error: timelineFunctionObject.H: No such file or directory
In file included from general/swakExpressionFunctionObject.C:28:
general/swakExpressionFunctionObject.H:56: error: expected class-name before '{' token
general/swakExpressionFunctionObject.H:56: warning: 'class Foam::swakExpressionFunctionObject' has virtual functions and accessible non-virtual destructor
In file included from general/swakExpressionFunctionObject.H:115,
                from general/swakExpressionFunctionObject.C:28:
general/swakExpressionFunctionObjectTemplates.C: In member function 'void Foam::swakExpressionFunctionObject::writeData(Foam::CommonValueExpressionDriver&)':
general/swakExpressionFunctionObjectTemplates.C:68: error: there are no arguments to 'verbose' that depend on a template parameter, so a declaration of 'verbose' must be available
general/swakExpressionFunctionObjectTemplates.C:68: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
general/swakExpressionFunctionObjectTemplates.C:76: error: 'OFstream' was not declared in this scope
general/swakExpressionFunctionObjectTemplates.C:76: error: 'o' was not declared in this scope
general/swakExpressionFunctionObjectTemplates.C:76: error: 'filePtrs_' was not declared in this scope
general/swakExpressionFunctionObjectTemplates.C:76: error: no matching function for call to 'name()'


Please have a look at the README. Section Requirements. Point 3. If only the compilation of swakSimpleFunctionObjects fails because of this requirement the other parts of swak (groovyBC and funkySetFields) will work fine

argonaut February 11, 2011 12:11

Late thanks for your reply. I decided to leave university's claster for a while and installed new Ubuntu + OpenFOAM besides Windows on my desktop PC. Installation of swak4foam also was successful and I even run my test case with groovyBC. I guess I have to get used not to pay too much attention to all bla bla bla that is throwen during compilation :)


All times are GMT -4. The time now is 14:56.