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] swak4foam building problem (https://www.cfd-online.com/Forums/openfoam-community-contributions/85118-swak4foam-building-problem.html)

GGerber February 17, 2011 13:38

swak4foam building problem
 
Hi,

I've got ubuntu 10.10 with OF 1.7.1 installed on it. I have downloaded swak4Foam. Unfortunately, I am having trouble building swak4foam. Does anybody have a suggestion on how to get swak built? Below I give the compilation results.

Thanks,
George
~~~~
george@george-VirtualBox:~/Desktop/swak4Foam$ wmake all
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.tab.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
Making dependency list for source file SubsetValueExpressionParser.yy
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionParser.yy
Making dependency list for source file CommonValueExpressionDriver.C
Making dependency list for source file FieldValueExpressionLexer.ll
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionLexer.ll
Making dependency list for source file FieldValueExpressionDriver.C
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionDriver.C
Making dependency list for source file PatchValueExpressionLexer.ll
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionLexer.ll
Making dependency list for source file PatchValueExpressionDriver.C
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C
could not open file FieldValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C
Making dependency list for source file SubsetValueExpressionLexer.ll
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionLexer.ll
Making dependency list for source file SubsetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionDriver.C
Making dependency list for source file CellSetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file CellSetValueExpressionDriver.C
Making dependency list for source file FaceSetValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file FaceSetValueExpressionDriver.C
Making dependency list for source file CellZoneValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file CellZoneValueExpressionDriver.C
Making dependency list for source file FaceZoneValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file FaceZoneValueExpressionDriver.C
Making dependency list for source file SampledSurfaceValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file SampledSurfaceValueExpressionDriver.C
SOURCE=SurfacesRepository.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/sampling/lnInclude -I/opt/openfoam171/src/triSurface/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/SurfacesRepository.o
SOURCE=ExpressionResult.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/sampling/lnInclude -I/opt/openfoam171/src/triSurface/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/ExpressionResult.o
ExpressionResult.C: In member function ‘void Foam::ExpressionResult::uglyDelete()’:
ExpressionResult.C:98: warning: deleting ‘void*’ is undefined
SOURCE=FieldValueExpressionParser.yy ; rm -f Make/linuxGccDPOpt/FieldValueExpressionParser.C Make/linuxGccDPOpt/FieldValueExpressionParser.tab.hh; bison -ra -v -d $SOURCE ; mv *.tab.cc Make/linuxGccDPOpt/FieldValueExpressionParser.C ; sed -i.bak "s/position.hh/FieldValueExpressionParser_position.hh/" location.hh ; mv location.hh lnInclude/FieldValueExpressionParser_location.hh ; mv stack.hh lnInclude/FieldValueExpressionParser_stack.hh ; mv position.hh lnInclude/FieldValueExpressionParser_position.hh ; sed -i.bak "s/stack.hh/FieldValueExpressionParser_stack.hh/;s/location.hh/FieldValueExpressionParser_location.hh/" FieldValueExpressionParser.tab.hh ;mv *.hh lnInclude ; touch -r $SOURCE lnInclude/FieldValueExpressionParser*.hh ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/sampling/lnInclude -I/opt/openfoam171/src/triSurface/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c Make/linuxGccDPOpt/FieldValueExpressionParser.C -o Make/linuxGccDPOpt/FieldValueExpressionParser.o
/bin/sh: bison: not found
mv: cannot stat `*.tab.cc': No such file or directory
sed: can't read location.hh: No such file or directory
mv: cannot stat `location.hh': No such file or directory
mv: cannot stat `stack.hh': No such file or directory
mv: cannot stat `position.hh': No such file or directory
sed: can't read FieldValueExpressionParser.tab.hh: No such file or directory
mv: cannot stat `*.hh': No such file or directory
g++: Make/linuxGccDPOpt/FieldValueExpressionParser.C: No such file or directory
g++: no input files
make: *** [Make/linuxGccDPOpt/FieldValueExpressionParser.o] Error 1
Making dependency list for source file groovyBCFvPatchFields.C
could not open file PatchValueExpressionParser.tab.hh for source file groovyBCFvPatchFields.C
Making dependency list for source file groovyBCPointPatchFields.C
could not open file MixedPointPatchField.H for source file groovyBCPointPatchFields.C
could not open file PatchValueExpressionParser.tab.hh for source file groovyBCPointPatchFields.C
could not open file PointPatchFieldMapper.H for source file groovyBCPointPatchFields.C
SOURCE=groovyBCFvPatchFields.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/opt/openfoam171/src/finiteVolume/lnInclude -I../swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/groovyBCFvPatchFields.o
In file included from groovyBCFvPatchField.H:48,
from groovyBCFvPatchFields.H:37,
from groovyBCFvPatchFields.C:36:
../swak4FoamParsers/lnInclude/PatchValueExpressionDriver.H:60: fatal error: PatchValueExpressionParser.tab.hh: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/groovyBCFvPatchFields.o] Error 1
Making dependency list for source file manipulateField.C
could not open file FieldValueExpressionParser.tab.hh for source file manipulateField.C
Making dependency list for source file manipulateFieldFunctionObject.C
Making dependency list for source file expressionField.C
could not open file FieldValueExpressionParser.tab.hh for source file expressionField.C
Making dependency list for source file expressionFieldFunctionObject.C
Making dependency list for source file clearExpressionField.C
could not open file FieldValueExpressionParser.tab.hh for source file clearExpressionField.C
Making dependency list for source file clearExpressionFieldFunctionObject.C
Making dependency list for source file createSampledSurface.C
Making dependency list for source file createSampledSurfaceFunctionObject.C
SOURCE=manipulateField.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I../swak4FoamParsers/lnInclude -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -I/opt/openfoam171/src/sampling/lnInclude -I/opt/openfoam171/src/triSurface/lnInclude -I/opt/openfoam171/src/lagrangian/basic/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/manipulateField.o
In file included from manipulateField.C:30:
../swak4FoamParsers/lnInclude/FieldValueExpressionDriver.H:18: fatal error: FieldValueExpressionParser.tab.hh: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/manipulateField.o] Error 1
Making dependency list for source file general/swakExpressionFunctionObject.C
could not open file timelineFunctionObject.H for source file general/swakExpressionFunctionObject.C
Making dependency list for source file patch/patchExpressionFunctionObject.C
could not open file patchFunctionObject.H for source file patch/patchExpressionFunctionObject.C
could not open file PatchValueExpressionParser.tab.hh for source file patch/patchExpressionFunctionObject.C
SOURCE=general/swakExpressionFunctionObject.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/george/OpenFOAM/george-1.7.1/Libraries/simpleFunctionObjects/lnInclude -I../swak4FoamParsers/lnInclude -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -I/opt/openfoam171/src/sampling/lnInclude -I/opt/openfoam171/src/triSurface/lnInclude -I/opt/openfoam171/src/lagrangian/basic/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/swakExpressionFunctionObject.o
In file included from general/swakExpressionFunctionObject.C:28:
general/swakExpressionFunctionObject.H:40: fatal error: timelineFunctionObject.H: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/swakExpressionFunctionObject.o] Error 1
Making dependency list for source file expressionToCell.C
could not open file FieldValueExpressionParser.tab.hh for source file expressionToCell.C
Making dependency list for source file expressionToFace.C
could not open file FieldValueExpressionParser.tab.hh for source file expressionToFace.C
SOURCE=expressionToCell.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I../swak4FoamParsers/lnInclude -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/expressionToCell.o
In file included from expressionToCell.C:39:
../swak4FoamParsers/lnInclude/FieldValueExpressionDriver.H:18: fatal error: FieldValueExpressionParser.tab.hh: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/expressionToCell.o] Error 1
Making dependency list for source file expressionSource.C
could not open file FieldValueExpressionParser.tab.hh for source file expressionSource.C
SOURCE=expressionSource.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I../swak4FoamParsers/lnInclude -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/expressionSource.o
In file included from expressionSource.H:45,
from expressionSource.C:33:
../swak4FoamParsers/lnInclude/FieldValueExpressionDriver.H:18: fatal error: FieldValueExpressionParser.tab.hh: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/expressionSource.o] Error 1
Making dependency list for source file funkySetFields.C
could not open file FieldValueExpressionParser.tab.hh for source file funkySetFields.C
SOURCE=funkySetFields.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/funkySetFields.o
In file included from funkySetFields.C:41:
../../Libraries/swak4FoamParsers/lnInclude/FieldValueExpressionDriver.H:18: fatal error: FieldValueExpressionParser.tab.hh: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/funkySetFields.o] Error 1
Making dependency list for source file funkySetBoundaryField.C
could not open file PatchValueExpressionParser.tab.hh for source file funkySetBoundaryField.C
SOURCE=funkySetBoundaryField.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IMake/linuxGccDPOpt -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/funkySetBoundaryField.o
In file included from funkySetBoundaryField.C:41:
../../Libraries/swak4FoamParsers/lnInclude/PatchValueExpressionDriver.H:60: fatal error: PatchValueExpressionParser.tab.hh: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/funkySetBoundaryField.o] Error 1
Making dependency list for source file replayTransientBC.C
SOURCE=replayTransientBC.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/cfdTools/lnInclude -I/opt/openfoam171/src/cfdTools/general/lnInclude -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/replayTransientBC.o
g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/cfdTools/lnInclude -I/opt/openfoam171/src/cfdTools/general/lnInclude -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linuxGccDPOpt/replayTransientBC.o -L/opt/openfoam171/lib/linuxGccDPOpt \
-lfiniteVolume -lmeshTools -lOpenFOAM -liberty -ldl -lm -o /home/george/OpenFOAM/george-1.7.1/applications/bin/linuxGccDPOpt/replayTransientBC
~~~~~~~~~~~~~~

Arnoldinho February 18, 2011 03:58

Please look at this line of your error message:

Code:

/bin/sh: bison: not found
So it seems bison is not (correctly) installed.

GGerber February 18, 2011 05:05

Thank you! This solved the problem :-)

Toorop August 30, 2011 08:21

1 Attachment(s)
Roughly the same problem here, but I have bison installed - bison (GNU Bison) 2.4.1. It's located under /usr/bin/bison - how can I set the swak wmake to search for this location?
OF version - OpenFOAM-2.0.x
swak location - $HOME/swak4Foam
Thank you.

gschaider August 30, 2011 08:48

Quote:

Originally Posted by Toorop (Post 322265)
Roughly the same problem here, but I have bison installed - bison (GNU Bison) 2.4.1. It's located under /usr/bin/bison - how can I set the swak wmake to search for this location?
OF version - OpenFOAM-2.0.x
swak location - $HOME/swak4Foam
Thank you.

If 'which bison' gives you back that location (and it should unless bison is installed in another location as well) it should be used during the installation process.

Bernhard

Toorop August 30, 2011 09:16

I queried the location of bison with 'which bison'. I will check back if I can figure out this.

MOHAMMAD67 October 20, 2011 14:33

Swak4foam Error!
 
Hi Bernard
I have swake4foam in home directory and OpenFOAM 2 in root/opt.I tried to wmake all but it had error about reference . what should I do?

gschaider October 20, 2011 19:12

Quote:

Originally Posted by MOHAMMAD67 (Post 328789)
I have swake4foam in home directory and OpenFOAM 2 in root/opt.I tried to wmake all but it had error about reference .

what should I do?

Be more specific. Error messages containing the word "Reference" can occur at multiple stages (compiling, linking ...) during the compilation process so I really can't help you if that is all the information I have

MOHAMMAD67 October 22, 2011 01:55

hi Bernard thanks for your reply

The following error occures:

/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::movePoints(Foam::Field<Foam::Ve ctor<double> > const&)'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::DimensionedField<int, Foam::triSurfaceGeoMesh>::typeName'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::triSurface(Foam::triSurface const&)'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so: undefined reference to `Foam::sampledSet::~sampledSet()'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::markZones(Foam::List<bool> const&, Foam::List<int>&) const'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so: undefined reference to `Foam::sampledSurface::magSf() const'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::writeStats(Foam::Ostream&) const'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::clearOut()'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::UPstream::waitRequests()'
collect2: ld returned 1 exit status
make: *** [/home/geeko/OpenFOAM/geeko-2.0.x/platforms/linux64GccDPOpt/bin/funkyDoCalc] Error 1
linux:/home/geeko/swak4Foam #

gschaider October 22, 2011 10:13

Quote:

Originally Posted by MOHAMMAD67 (Post 328985)
hi Bernard thanks for your reply

The following error occures:

/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::movePoints(Foam::Field<Foam::Ve ctor<double> > const&)'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::DimensionedField<int, Foam::triSurfaceGeoMesh>::typeName'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::triSurface(Foam::triSurface const&)'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so: undefined reference to `Foam::sampledSet::~sampledSet()'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::markZones(Foam::List<bool> const&, Foam::List<int>&) const'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so: undefined reference to `Foam::sampledSurface::magSf() const'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::writeStats(Foam::Ostream&) const'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::clearOut()'
/opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::UPstream::waitRequests()'
collect2: ld returned 1 exit status
make: *** [/home/geeko/OpenFOAM/geeko-2.0.x/platforms/linux64GccDPOpt/bin/funkyDoCalc] Error 1
linux:/home/geeko/swak4Foam #

That's better (the information). The error itself is a bit weird. It seems that the linker can't find the libraries libtrisurface.so and libPstream.so and symbols in it. Try replacing the line

-lmeshTools \

with

-lmeshTools -ltriSurface -lPstream \

and see what happens. Also: what system have you got and what is the actual call to the linker (the last gcc/g++-call you see).

Any: it seems to be a system-specific problem. Either the linker on your system behaves strangely or your OF-installation has a problem

Linse October 24, 2011 10:07

I think I had a similar error recently and solved it by installing some devel-package (if I remember correctly). Unfortunately I do not know any more which one. :-(
I would try for the binutils-devel first and then for g++-packages...

robingilbert November 3, 2011 18:45

I get the following error when I try to compile pimpleFoam solver with some changes using swak4Foam. I installed swak4Foam and it dint throw any errors.

Code:

Make/linux64GccDPOpt/pimpleFoam.o: In function `main':
pimpleFoam.C:(.text+0x8e8): undefined reference to `Foam::expressionSource<double>::expressionSource(Foam::dictionary const&, Foam::fvMesh const&)'
pimpleFoam.C:(.text+0x2320): undefined reference to `Foam::expressionSource<double>::operator()()'
pimpleFoam.C:(.text+0x2e4b): undefined reference to `Foam::expressionSource<double>::~expressionSource()'
pimpleFoam.C:(.text+0x3a01): undefined reference to `Foam::expressionSource<double>::~expressionSource()'
pimpleFoam.C:(.text+0x3a1e): undefined reference to `Foam::expressionSource<double>::~expressionSource()'
pimpleFoam.C:(.text+0x3a38): undefined reference to `Foam::expressionSource<double>::~expressionSource()'
pimpleFoam.C:(.text+0x3b32): undefined reference to `Foam::expressionSource<double>::~expressionSource()'
collect2: ld returned 1 exit status
make: *** [/home/bluesim/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/pimpleFoam] Error 1


gschaider November 4, 2011 03:23

Quote:

Originally Posted by robingilbert (Post 330677)
I get the following error when I try to compile pimpleFoam solver with some changes using swak4Foam. I installed swak4Foam and it dint throw any errors.

Code:

Make/linux64GccDPOpt/pimpleFoam.o: In function `main':
pimpleFoam.C:(.text+0x8e8): undefined reference to `Foam::expressionSource<double>::expressionSource(Foam::dictionary const&, Foam::fvMesh const&)'
pimpleFoam.C:(.text+0x2320): undefined reference to `Foam::expressionSource<double>::operator()()'
pimpleFoam.C:(.text+0x2e4b): undefined reference to `Foam::expressionSource<double>::~expressionSource()'
pimpleFoam.C:(.text+0x3a01): undefined reference to `Foam::expressionSource<double>::~expressionSource()'
pimpleFoam.C:(.text+0x3a1e): undefined reference to `Foam::expressionSource<double>::~expressionSource()'
pimpleFoam.C:(.text+0x3a38): undefined reference to `Foam::expressionSource<double>::~expressionSource()'
pimpleFoam.C:(.text+0x3b32): undefined reference to `Foam::expressionSource<double>::~expressionSource()'
collect2: ld returned 1 exit status
make: *** [/home/bluesim/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/pimpleFoam] Error 1


You must link the library with the sources to the solver. Have a look at the Make/options-file of the interFoamWithSources-solver (you're probably familiar with it as I guess that you lifted the info "how to include expressionSource" from that)

robingilbert November 4, 2011 15:47

Quote:

Originally Posted by gschaider (Post 330704)
You must link the library with the sources to the solver. Have a look at the Make/options-file of the interFoamWithSources-solver (you're probably familiar with it as I guess that you lifted the info "how to include expressionSource" from that)

Thanks a lot Gschaider, it worked :)

zakir hussain November 5, 2011 08:07

hi everybody
Now i need the swak4Foam but i can't download it with svn. Could you upload it here or sent it to my email box (768413407@qq.com). Thank you very much.

Regards


hussain

MOHAMMAD67 November 5, 2011 11:35

hi Hussain
Write cnf svn in the command line and then copy the line( install ...) in the new line and press enter.
After installing svn you can easily install swake4foam.

lg88 November 6, 2011 05:04

thank you.As your said ,I have got it.

MOHAMMAD67 November 11, 2011 02:57

Quote:

Originally Posted by Linse (Post 329191)
I think I had a similar error recently and solved it by installing some devel-package (if I remember correctly). Unfortunately I do not know any more which one. :-(
I would try for the binutils-devel first and then for g++-packages...

hi
I checked those packages and they were installed.? what should I do? now

gschaider November 11, 2011 04:59

Quote:

Originally Posted by MOHAMMAD67 (Post 331682)
hi
I checked those packages and they were installed.? what should I do? now

This is about the undefined references you're getting, right? What OS-version do you have? Because the libraries that have that stuff should be implicitly linked, but I heard that new Fedora and Ubuntu-verisons changed the way the linker works and these libraries (-ltrisurface and -lsampling) have to be added to Make/options

MOHAMMAD67 November 11, 2011 05:11

Dear Bernhard
my OS is opensuse 11.4.

gschaider November 11, 2011 12:36

Quote:

Originally Posted by MOHAMMAD67 (Post 331700)
Dear Bernhard
my OS is opensuse 11.4.

Havn't got that.

Try adding -ltriSurface and -lsampling to Make/options and see if the problem goes away

MOHAMMAD67 November 11, 2011 13:02

sorry bernhard I don't know how to add ! where is the directory make/options? and also ltrisurface and lsampling libraries?

wyldckat November 12, 2011 06:53

Greetings to all,

I had an openSUSE 11.4 x86_64 installed in a virtual machine (VM) so I had a go at it:
  1. Installed OpenFOAM 2.0.x as explained here: http://www.openfoam.org/git.php
  2. As explained in the previous link, I installed the necessary packages and also installed Python's Development packages:
    Code:

    zypper install -t pattern devel_C_C++
    zypper install cmake libqt4-devel gnuplot
    zypper install python-devel

  3. A note: before running "./Allwmake", I ran:
    Code:

    export WM_NCOMPPROCS=4
    This way OpenFOAM was built with all 4 CPU cores available in the VM.
  4. After OpenFOAM finished building, I went to swak4foam:
    Code:

    mkdir -p $FOAM_RUN
    cd $FOAM_RUN/..
    svn checkout https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Breeder_2.0/libraries/swak4Foam/
    cd swak4Foam

  5. Create/edit the file "swakConfiguration" and wrote in it:
    Code:

    export SWAK_PYTHON_INCLUDE="-I/usr/include/python2.7"
    export SWAK_PYTHON_LINK="-L/usr/lib64 -lpython2.7"

  6. To build with the latest OpenFOAM 2.0.x version I had to apply a certain patch to work (seen here):
    Code:

    wget "http://sourceforge.net/apps/mantisbt/openfoam-extend/file_download.php?file_id=56&type=bug" -O swakFO_coded_bleeding_edge.patch
    patch -p1 < swakFO_coded_bleeding_edge.patch

  7. Then built "swak4foam":
    Code:

    ./Allwmake > make.log 2>&1
And done! I didn't build/install ParaView since it would take a while longer to get results.

Soooo... I wasn't able to reproduce Mohammad's problem :(
Therefore, Mohammad, please try the instructions I've written down.

Best regards,
Bruno

MOHAMMAD67 November 12, 2011 07:52

the same error even with your method
 
1 Attachment(s)
Dear wyldckat
I did step 4 to 7. but I faced the same problem as can be seen in the log file.

wyldckat November 12, 2011 08:20

Hi Mohammad,

According to the log:
  • You didn't do set #6 or maybe something went wrong when you did that step.
  • Your OpenFOAM installation seems to be seriously damaged.
I advise you pull the latest version of OpenFOAM 2.0.x and rebuild it:
Code:

foam
git pull
wcleanAll
export WM_NCOMPPROCS=4
./Allwmake > make.log 2>&1

Change "4" to the number of cores/threads your machine has. The command lscpu should be able to tell this value.

And do the commands in step #2 just in case something might be missing.

Best regards,
Bruno

Hugoles January 16, 2012 12:30

1 Attachment(s)
Hi all,

I am having some problems to build swak4Foam in OF 1.6 (Ubuntu Maverick) which I can't figure out. I attach the log file.

I know that the easiest would probably be to use a newer version of OF (I actually compiled swak4Foam in OF 1.7.1, OS X 10.6.7, without problems) but our cluster has 1.6. Any experience building in OF 1.6? I have not seen threads claiming success building with OF lower than 1.6.ext .

Any help is very appreciated,

Hugo

gschaider January 16, 2012 14:57

Quote:

Originally Posted by Hugoles (Post 339567)
Hi all,

I am having some problems to build swak4Foam in OF 1.6 (Ubuntu Maverick) which I can't figure out. I attach the log file.

I know that the easiest would probably be to use a newer version of OF (I actually compiled swak4Foam in OF 1.7.1, OS X 10.6.7, without problems) but our cluster has 1.6. Any experience building in OF 1.6? I have not seen threads claiming success building with OF lower than 1.6.ext .

Any help is very appreciated,

Hugo

Seems like the dictionary-class got the method subOrEmptyDict later (funny: 1.6-ext compiles without problems which once again proves that it is more advanced than one would guess from glancing at the version number).

You could try to replace that method-call with subDict (same parameter). If you're luck it will compile (you may have to insert some empty dictionaries called "value" in some parameter files) but I don't promise anything.

Another solution would be to go back to an older version of swak. The feature that breaks your compilation was introduced one or two versions back.

Hugoles January 16, 2012 16:28

Thanks Bernhard! I wish I could get this faster though, I don't understand exactly how I can change the method like you say. Could you please be more specific?

As for the older versions, after a quick check of the project page I can't find a link to older versions. Where could I get them?

Best regards,

Hugo

gschaider January 17, 2012 07:40

Quote:

Originally Posted by Hugoles (Post 339603)
Thanks Bernhard! I wish I could get this faster though, I don't understand exactly how I can change the method like you say. Could you please be more specific?

Filename and line are in the logfile you sent. Open the file and replace the string subOrEmptyDict with subDict and try to recompile

Quote:

Originally Posted by Hugoles (Post 339603)
As for the older versions, after a quick check of the project page I can't find a link to older versions. Where could I get them?

You're right. That is not explained. The easiest way (if you have mercurial installed) ist the following:
Clone the development repository:

hg clone http://openfoam-extend.hg.sourceforg...tend/swak4Foam

go into that directory

cd swak4Foam

List the available tags

hg tags

Try to update to one of the older releases

hg update release2011-04-20

and compile as usual. There is a similar way with the SVN-version but it is not as straightforward

Hugoles January 17, 2012 15:27

Quote:

Originally Posted by gschaider (Post 339714)
Filename and line are in the logfile you sent. Open the file and replace the string subOrEmptyDict with subDict and try to recompile

Alright, that solved the problem, thanks Bernhard. No need to use older versions.

On a side note, in the wiki page of swak, the link to your presentation at the last OF workshop is broken. Those slides have been of great source of documentation to learn how to use swak4Foam, at least for me (actually all the links to the workshop program appear to be broken in the website of the workshop). It would be a shame not to be able to see the talk anymore.

thanks for such a great tool!

Best regards,

gschaider January 17, 2012 19:32

Quote:

Originally Posted by Hugoles (Post 339802)
Alright, that solved the problem, thanks Bernhard. No need to use older versions.

On a side note, in the wiki page of swak, the link to your presentation at the last OF workshop is broken. Those slides have been of great source of documentation to learn how to use swak4Foam, at least for me (actually all the links to the workshop program appear to be broken in the website of the workshop). It would be a shame not to be able to see the talk anymore.

thanks for such a great tool!

Best regards,

Thanks for the notification about the talk. I think this is a temporary problem (the Workshop-site changed ownership as it is moving from the US of A to Germany). It was not intended as this but see it as a reminder to think about attending the next Workshop because that is where you see that kind of stuff live. It is also not affiliated to the Internet Blackout Day (at least as far as I know) and hopefully will be fixed before Wikipedia goes back online

Bernhard

PS: Greetings to Karl, the Posting Policeman, who makes sure that nothing is posted after curfew

Hugoles February 9, 2012 16:35

After solving the building problem above (thanks Bernhard), I dare to pollute this threat with a question about the use and capabilities of swak: I want to sample data from a particular region of my domain, the main problem is that sampleDict does not allow to use expressions. In my case, I want to sample a plane of a certain radius within my domain. I try to use cellSet to define a zone using an expression (thanks to the use of swakTopoSources library) but apparently the sample utility does not recognize this set definition (I know I am assuming that a Set is equal to a Zone here though, but I cannot find how to convert one into the other either).

Is there any way to do this with swak in post processing? since funkyDoCalc uses the "accumulations" entry, it seems that I cannot get the value of a variable for each cell, but only the max, min, average or sum.

any ideas? thanks,

Hugo

gschaider February 9, 2012 18:36

Quote:

Originally Posted by Hugoles (Post 343667)
After solving the building problem above (thanks Bernhard), I dare to pollute this threat with a question about the use and capabilities of swak: I want to sample data from a particular region of my domain, the main problem is that sampleDict does not allow to use expressions. In my case, I want to sample a plane of a certain radius within my domain. I try to use cellSet to define a zone using an expression (thanks to the use of swakTopoSources library) but apparently the sample utility does not recognize this set definition (I know I am assuming that a Set is equal to a Zone here though, but I cannot find how to convert one into the other either).

Is there any way to do this with swak in post processing? since funkyDoCalc uses the "accumulations" entry, it seems that I cannot get the value of a variable for each cell, but only the max, min, average or sum.

any ideas? thanks,

Hugo

I'm not quite sure what you want to achieve. Basically write every value in the cellSet? There is a functionObject dumpSwakExpression in simpleSwakFunctionObjects that writes ALL the values of a swak-expression to file. Note:
- this can produce huge files
- the order of the elements may be non-intuitive. Have to write for instance the cell-centers with a separate expression and join these two files to do some reasonable postprocessing
- it is not very well tested
- it does not work in parallel (I think)

BTW: about your "how do I convert a set to a zone": if I tell you that there is a utility called setsToZones how long does it take you till you shout "That's too easy"? ;)

Hugoles February 10, 2012 11:47

Quote:

Originally Posted by gschaider (Post 343679)
I'm not quite sure what you want to achieve. Basically write every value in the cellSet? There is a functionObject dumpSwakExpression in simpleSwakFunctionObjects that writes ALL the values of a swak-expression to file. Note:
- this can produce huge files
- the order of the elements may be non-intuitive. Have to write for instance the cell-centers with a separate expression and join these two files to do some reasonable postprocessing
- it is not very well tested
- it does not work in parallel (I think)

Well, I just want to extract the velocity field of an arbitrary region. Thanks to swak I can define that region using an expression. While I can do this during the run (with functionObjects), I can't figure out how to do it in post-processing as funkyDoCalc only gives results from "accumulations" of a field.

Anyways, I just tried defining the region of interest using an expression in cellSet, converting the set to a zone and using sampleDict with the "zone" option (I still use OF 1.6 so it also took me some time to realize that there was an ill-defined "zoneName" in the dictionary). This method works as I only needed to sample over a plane, but what if I wanted to sample over a volume? many planes? sounds to me like swak can do this (which you already answered)

Still, there is an interesting result I get when I try to obtain the average (or min, max, sum) of a field over an arbitrary region using funkyDoCalc. For example, in my funkyDoCalcDict I define:

Code:

TKE_AV
 {
 type      swakExpression;
 valueType cellSet;
 setName  averagingRegion;
 variables (
 "TKE{cellSet'averagingRegion}=0.5*pow(mag(U-UMean),2);"
 );
 expression "sum(mag(TKE)*vol())/sum(vol())";
 accumulations (
 min
 );
 verbose      true;
 }

So when I run funkyDoCalc, I always get the message:

Code:

Time = 66
 TKE : swak4Foam: Allocating new repository for sampledGlobalVariables
 --> FOAM Warning :
    From function ExpressionResult::getUniformInternal(const label size,bool noWarn)
    in file ExpressionResultI.H at line 158
    The minimum value 5.47109e-09 and the maximum 0.106011 differ. I will use the average 0.00403377
  max=0.00403377 min=0.00403377 average=0.00403377
 End

Note that I use UMean, which I intend to be taken as the average velocity of the previous write interval (using resetOnOutput true). However, it appears to be taken as a value that is recalculated at each time step. I am not sure if this is the cause of the message.

Quote:

Originally Posted by gschaider (Post 343679)
BTW: about your "how do I convert a set to a zone": if I tell you that there is a utility called setsToZones how long does it take you till you shout "That's too easy"? ;)

about 3 sec

thanks Bernhard,

Hugo

gschaider February 13, 2012 18:23

Quote:

Originally Posted by Hugoles (Post 343824)
Well, I just want to extract the velocity field of an arbitrary region. Thanks to swak I can define that region using an expression. While I can do this during the run (with functionObjects), I can't figure out how to do it in post-processing as funkyDoCalc only gives results from "accumulations" of a field.

Anyways, I just tried defining the region of interest using an expression in cellSet, converting the set to a zone and using sampleDict with the "zone" option (I still use OF 1.6 so it also took me some time to realize that there was an ill-defined "zoneName" in the dictionary). This method works as I only needed to sample over a plane, but what if I wanted to sample over a volume? many planes? sounds to me like swak can do this (which you already answered)

Still, there is an interesting result I get when I try to obtain the average (or min, max, sum) of a field over an arbitrary region using funkyDoCalc. For example, in my funkyDoCalcDict I define:

Code:

TKE_AV
 {
 type      swakExpression;
 valueType cellSet;
 setName  averagingRegion;
 variables (
 "TKE{cellSet'averagingRegion}=0.5*pow(mag(U-UMean),2);"
 );
 expression "sum(mag(TKE)*vol())/sum(vol())";
 accumulations (
 min
 );
 verbose      true;
 }

So when I run funkyDoCalc, I always get the message:

Code:

Time = 66
 TKE : swak4Foam: Allocating new repository for sampledGlobalVariables
 --> FOAM Warning :
    From function ExpressionResult::getUniformInternal(const label size,bool noWarn)
    in file ExpressionResultI.H at line 158
    The minimum value 5.47109e-09 and the maximum 0.106011 differ. I will use the average 0.00403377
  max=0.00403377 min=0.00403377 average=0.00403377
 End

Note that I use UMean, which I intend to be taken as the average velocity of the previous write interval (using resetOnOutput true). However, it appears to be taken as a value that is recalculated at each time step. I am not sure if this is the cause of the message.

That is the expected behaviour: because you wrote the variable as

"TKE{cellSet'averagingRegion}=0.5*pow(mag(U-UMean),2);"

the parser assumed that you're transferring the result to another entity and it can only do this uniformly (therefor the average). As you're calculating on the same entity if you write the variable as

"TKE=0.5*pow(mag(U-UMean),2);"

everything should be good.

About the UMean: that is not defined in the dictionaries you posted, is it? Therefor I won't comment on that. Have look if the change above gives you the expected behaviour

Quote:

Originally Posted by Hugoles (Post 343824)

about 3 sec

thanks Bernhard,

Hugo

Seems that your reflexes are OK ;)

Bernhard

ganeshv September 17, 2012 17:51

dumpSwakExpression in parallel
 
Quote:

Originally Posted by gschaider (Post 343679)
I'm not quite sure what you want to achieve. Basically write every value in the cellSet? There is a functionObject dumpSwakExpression in simpleSwakFunctionObjects that writes ALL the values of a swak-expression to file. Note:

- it does not work in parallel (I think)

Bernhard, how can I make it work in parallel? I have about 20 cellZones or more, each about ~ 30 cells or so. I need data dumped on these cellZones to plot some profiles I need. Can you think of a way I can do this through the coded functionObject atleast?

ganesh

gschaider September 17, 2012 19:02

Quote:

Originally Posted by ganeshv (Post 382219)
Bernhard, how can I make it work in parallel? I have about 20 cellZones or more, each about ~ 30 cells or so. I need data dumped on these cellZones to plot some profiles I need. Can you think of a way I can do this through the coded functionObject atleast?

One possibility would be to write out the coordinates of the cellZones (for instance using the dumpSwakExpression) and then edit them into a sampleDict where you use the cloud type with these coordinates (that would be a way to do it without programming)

-luk- July 26, 2013 10:03

swak4foam compilation problem
 
Hello community,

I'm trying to compile swak4foam for OF2.1 on my RHEL 6.4 machine. I pasted in the log below. Has anyone of you experienced something similar? Is this message:

could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionLexer.ll

the beginning of the problem or is this optional? I was able to install the 1.7 version a while ago without problems. For now we have to switch to the 1.7 environment to use swak4foam. Any ideas are very welcome.

Regards, Luk

Code:

No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
/home/panek01l/OpenFOAM/Swak4Foam_2.x_release_0.2.3/Libraries
Bison is version 2.4.1
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 1 Patch -1 (-1 == x)
No swak4FoamParsers/foamVersion4swak.H. Generated
/home/panek01l/OpenFOAM/Swak4Foam_2.x_release_0.2.3/Libraries/swak4FoamParsers
/home/panek01l/OpenFOAM/Swak4Foam_2.x_release_0.2.3/Libraries/swak4FoamParsers/Make
/home/panek01l/OpenFOAM/Swak4Foam_2.x_release_0.2.3/Libraries/swak4FoamParsers/Make/linux64GccDPOpt
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file ExpressionResult/ExpressionResult.C
Making dependency list for source file ExpressionDriverWriter.C
Making dependency list for source file namedEnums/NumericAccumulationNamedEnum.C
Making dependency list for source file repositories/SurfacesRepository.C
Making dependency list for source file repositories/GlobalVariablesRepository.C
Making dependency list for source file namedEnums/LogicalAccumulationNamedEnum.C
Making dependency list for source file repositories/SetsRepository.C
Making dependency list for source file helpers/printSwakVersion.C
Making dependency list for source file ExpressionResult/StoredExpressionResult.C
Making dependency list for source file ExpressionResult/DelayedExpressionResult.C
Making dependency list for source file setsAndSurfaces/swakRegistryProxySurface.C
Making dependency list for source file setsAndSurfaces/swakRegistryProxySet.C
Making dependency list for source file FieldValueExpressionParser.yy
Making dependency list for source file PatchValueExpressionParser.yy
Making dependency list for source file SubsetValueExpressionParser.yy
Making dependency list for source file CommonValueExpressionDriver.C
Making dependency list for source file makeSwakDataEntry.C
Making dependency list for source file FieldValueExpressionLexer.ll
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionLexer.ll
Making dependency list for source file FieldValueExpressionDriver.C
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionDriver.C
Making dependency list for source file PatchValueExpressionLexer.ll
Making dependency list for source file PatchValueExpressionDriver.C
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionParser.yy
could not open file SubsetValueExpressionParser.tab.hh for source file SubsetValueExpressionParser.yy
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionParser.yy
could not open file directMappedWallFvPatch.H for source file FieldValueExpressionLexer.ll
could not open file directMappedWallFvPatch.H for source file FieldValueExpressionParser.yy
could not open file directMappedWallFvPatch.H for source file PatchValueExpressionDriver.C
could not open file directMappedPointPatch.H for source file FieldValueExpressionParser.yy
could not open file directMappedPointPatch.H for source file FieldValueExpressionLexer.ll
could not open file directMappedPointPatch.H for source file PatchValueExpressionDriver.C
could not open file directMappedPointPatch.H for source file FieldValueExpressionDriver.C
could not open file SubsetValueExpressionParser.tab.hh for source file SampledSetValueExpressionDriver.C
could not open file FixedValuePointPatchField.H for source file FieldValueExpressionParser.yy
could not open file FixedValuePointPatchField.H for source file FieldValueExpressionLexer.ll
could not open file FixedValuePointPatchField.H for source file PatchValueExpressionDriver.C
could not open file ZeroGradientPointPatchField.H for source file FieldValueExpressionParser.yy
could not open file FixedValuePointPatchField.H for source file FieldValueExpressionDriver.C
could not open file ZeroGradientPointPatchField.H for source file PatchValueExpressionDriver.C
could not open file ZeroGradientPointPatchField.H for source file FieldValueExpressionDriver.C
could not open file CalculatedPointPatchField.H for source file PatchValueExpressionDriver.C
could not open file CalculatedPointPatchField.H for source file FieldValueExpressionDriver.C
Making dependency list for source file plugins/CellSetValuePluginFunction.C
Making dependency list for source file plugins/CellZoneValuePluginFunction.C
Making dependency list for source file plugins/FaceSetValuePluginFunction.C
could not open file PatchValueExpressionParser.tab.hh for source file plugins/PatchValuePluginFunction.C
could not open file FieldValueExpressionParser.tab.hh for source file plugins/FieldValuePluginFunction.C
could not open file directMappedPatchBase.H for source file plugins/PatchValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file PatchValueExpressionDriver.C
could not open file directMappedFvPatch.H for source file plugins/FieldValuePluginFunction.C
could not open file directMappedWallFvPatch.H for source file plugins/FieldValuePluginFunction.C
could not open file directMappedPointPatch.H for source file plugins/FieldValuePluginFunction.C
could not open file FixedValuePointPatchField.H for source file plugins/FieldValuePluginFunction.C
could not open file ZeroGradientPointPatchField.H for source file plugins/FieldValuePluginFunction.C
could not open file CalculatedPointPatchField.H for source file plugins/FieldValuePluginFunction.C
Making dependency list for source file plugins/FaceZoneValuePluginFunction.C
Making dependency list for source file plugins/SampledSetValuePluginFunction.C
Making dependency list for source file plugins/SampledSurfaceValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/CellSetValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/CellZoneValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/FaceSetValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/FaceZoneValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/SampledSetValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/SampledSurfaceValuePluginFunction.C
SOURCE=helpers/printSwakVersion.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt    -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude  -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/triSurface/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/surfMesh/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -IlnInclude -I. -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/printSwakVersion.o
SOURCE=repositories/SurfacesRepository.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt    -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude  -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/triSurface/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/surfMesh/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -IlnInclude -I. -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/SurfacesRepository.o
SOURCE=repositories/MeshesRepository.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt    -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude  -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/triSurface/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/surfMesh/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -IlnInclude -I. -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/MeshesRepository.o
SOURCE=repositories/SetsRepository.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt    -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude  -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/triSurface/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/surfMesh/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -IlnInclude -I. -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/SetsRepository.o
SOURCE=repositories/GlobalVariablesRepository.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt    -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude  -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/triSurface/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/surfMesh/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -IlnInclude -I. -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/GlobalVariablesRepository.o
SOURCE=namedEnums/MeshInterpolationOrder.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt    -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude  -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/triSurface/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/surfMesh/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -IlnInclude -I. -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/MeshInterpolationOrder.o
SOURCE=namedEnums/LogicalAccumulationNamedEnum.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt    -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude  -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/triSurface/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/surfMesh/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -IlnInclude -I. -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/LogicalAccumulationNamedEnum.o
SOURCE=namedEnums/NumericAccumulationNamedEnum.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt    -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude  -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/triSurface/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/surfMesh/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -IlnInclude -I. -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/NumericAccumulationNamedEnum.o
SOURCE=ExpressionDriverWriter.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt    -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude  -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/triSurface/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/surfMesh/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -IlnInclude -I. -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ExpressionDriverWriter.o
SOURCE=ExpressionResult/ExpressionResult.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt    -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude  -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/triSurface/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/surfMesh/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -IlnInclude -I. -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ExpressionResult.o
In file included from /home/panek01l/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.6.2/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/localefwd.h:42:0,
                from /home/panek01l/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.6.2/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/string:45,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/string.H:51,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/word.H:42,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/int.H:39,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/label.H:61,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/HashTable.H:47,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/NamedEnum.H:38,
                from namedEnums/NumericAccumulationNamedEnum.H:48,
                from namedEnums/NumericAccumulationNamedEnum.C:37:
/home/panek01l/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.6.2/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/x86_64-unknown-linux-gnu/bits/c++locale.h:53:23: error: 'uselocale' was not declared in this scope
ressionResult/ExpressionResult.C:37:
/home/panek01l/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.6.2/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/x86_64-unknown-linux-gnu/bits/c++locale.h:53:23: error: 'uselocale' was not declared in this scope

... similar messages about uselocale ...


make: *** [Make/linux64GccDPOpt/LogicalAccumulationNamedEnum.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Make/linux64GccDPOpt/printSwakVersion.o] Error 1
make: *** [Make/linux64GccDPOpt/NumericAccumulationNamedEnum.o] Error 1
In file included from /usr/include/stdio.h:929:0,
                from /home/panek01l/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.6.2/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/cstdio:44,
                from /home/panek01l/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.6.2/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/fstream:43,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/OFstream.H:42,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude/writer.C:28,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude/writer.H:207,
                from repositories/SetsRepository.C:38:
/usr/include/bits/stdio.h: In function '__ssize_t getline(char**, size_t*, FILE*)':
/usr/include/bits/stdio.h:118:52: error: '__getdelim' was not declared in this scope
ExpressionResult/ExpressionResult.C: In member function 'void Foam::ExpressionResult::uglyDelete()':
ExpressionResult/ExpressionResult.C:216:20: warning: deleting 'void*' is undefined [enabled by default]
make: *** [Make/linux64GccDPOpt/GlobalVariablesRepository.o] Error 1
make: *** [Make/linux64GccDPOpt/ExpressionResult.o] Error 1
make: *** [Make/linux64GccDPOpt/SetsRepository.o] Error 1
In file included from /usr/include/stdio.h:929:0,
                from /home/panek01l/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.6.2/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/cstdio:44,
                from /home/panek01l/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.6.2/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/fstream:43,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/IFstream.H:42,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/interpolationTable.C:27,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/interpolationTable.H:182,
                from CommonValueExpressionDriver.H:50,
                from ExpressionDriverWriter.C:39:
/usr/include/bits/stdio.h: In function '__ssize_t getline(char**, size_t*, FILE*)':
/usr/include/bits/stdio.h:118:52: error: '__getdelim' was not declared in this scope
make: *** [Make/linux64GccDPOpt/MeshInterpolationOrder.o] Error 1
make: *** [Make/linux64GccDPOpt/SurfacesRepository.o] Error 1
make: *** [Make/linux64GccDPOpt/MeshesRepository.o] Error 1
make: *** [Make/linux64GccDPOpt/ExpressionDriverWriter.o] Error 1
Parser library did not compile OK. No sense continuing as everything else depends on it
Requirements for Library not satisfied. I see no sense in going on


gschaider July 29, 2013 12:53

Quote:

Originally Posted by -luk- (Post 442193)
Hello community,

I'm trying to compile swak4foam for OF2.1 on my RHEL 6.4 machine. I pasted in the log below. Has anyone of you experienced something similar? Is this message:

could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionLexer.ll

the beginning of the problem or is this optional? I was able to install the 1.7 version a while ago without problems. For now we have to switch to the 1.7 environment to use swak4foam. Any ideas are very welcome.

Regards, Luk

Code:

No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
/home/panek01l/OpenFOAM/Swak4Foam_2.x_release_0.2.3/Libraries
Bison is version 2.4.1
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 1 Patch -1 (-1 == x)
No swak4FoamParsers/foamVersion4swak.H. Generated
/home/panek01l/OpenFOAM/Swak4Foam_2.x_release_0.2.3/Libraries/swak4FoamParsers
/home/panek01l/OpenFOAM/Swak4Foam_2.x_release_0.2.3/Libraries/swak4FoamParsers/Make
/home/panek01l/OpenFOAM/Swak4Foam_2.x_release_0.2.3/Libraries/swak4FoamParsers/Make/linux64GccDPOpt
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file ExpressionResult/ExpressionResult.C

<snip>

could not open file SubsetValueExpressionParser.tab.hh for source file plugins/FaceZoneValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/SampledSetValuePluginFunction.C
could not open file SubsetValueExpressionParser.tab.hh for source file plugins/SampledSurfaceValuePluginFunction.C
<snip>
SOURCE=ExpressionResult/ExpressionResult.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt    -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude  -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/triSurface/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/surfMesh/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -IlnInclude -I. -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ExpressionResult.o
In file included from /home/panek01l/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.6.2/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/bits/localefwd.h:42:0,
                from /home/panek01l/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.6.2/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/string:45,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/string.H:51,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/word.H:42,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/int.H:39,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/label.H:61,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/HashTable.H:47,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/NamedEnum.H:38,
                from namedEnums/NumericAccumulationNamedEnum.H:48,
                from namedEnums/NumericAccumulationNamedEnum.C:37:
/home/panek01l/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.6.2/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/x86_64-unknown-linux-gnu/bits/c++locale.h:53:23: error: 'uselocale' was not declared in this scope
ressionResult/ExpressionResult.C:37:
/home/panek01l/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.6.2/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/x86_64-unknown-linux-gnu/bits/c++locale.h:53:23: error: 'uselocale' was not declared in this scope

... similar messages about uselocale ...


make: *** [Make/linux64GccDPOpt/LogicalAccumulationNamedEnum.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Make/linux64GccDPOpt/printSwakVersion.o] Error 1
make: *** [Make/linux64GccDPOpt/NumericAccumulationNamedEnum.o] Error 1
In file included from /usr/include/stdio.h:929:0,
                from /home/panek01l/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.6.2/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/cstdio:44,
                from /home/panek01l/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.6.2/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/fstream:43,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/OFstream.H:42,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude/writer.C:28,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude/writer.H:207,
                from repositories/SetsRepository.C:38:
/usr/include/bits/stdio.h: In function '__ssize_t getline(char**, size_t*, FILE*)':
/usr/include/bits/stdio.h:118:52: error: '__getdelim' was not declared in this scope
ExpressionResult/ExpressionResult.C: In member function 'void Foam::ExpressionResult::uglyDelete()':
ExpressionResult/ExpressionResult.C:216:20: warning: deleting 'void*' is undefined [enabled by default]
make: *** [Make/linux64GccDPOpt/GlobalVariablesRepository.o] Error 1
make: *** [Make/linux64GccDPOpt/ExpressionResult.o] Error 1
make: *** [Make/linux64GccDPOpt/SetsRepository.o] Error 1
In file included from /usr/include/stdio.h:929:0,
                from /home/panek01l/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.6.2/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/cstdio:44,
                from /home/panek01l/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.6.2/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/fstream:43,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/IFstream.H:42,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/interpolationTable.C:27,
                from /home/panek01l/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/interpolationTable.H:182,
                from CommonValueExpressionDriver.H:50,
                from ExpressionDriverWriter.C:39:
/usr/include/bits/stdio.h: In function '__ssize_t getline(char**, size_t*, FILE*)':
/usr/include/bits/stdio.h:118:52: error: '__getdelim' was not declared in this scope
make: *** [Make/linux64GccDPOpt/MeshInterpolationOrder.o] Error 1
make: *** [Make/linux64GccDPOpt/SurfacesRepository.o] Error 1
make: *** [Make/linux64GccDPOpt/MeshesRepository.o] Error 1
make: *** [Make/linux64GccDPOpt/ExpressionDriverWriter.o] Error 1
Parser library did not compile OK. No sense continuing as everything else depends on it
Requirements for Library not satisfied. I see no sense in going on


It may not help you: this error message rings a bell but I do not remember what EXACTLY was the problem.

Anyway. The parallel calling of compilers mixes the error messages which makes it hard to analyze them. Switch of parallel compilation with
Code:

export WM_NCOMPPROCS=1
The first question: did you use the compiler from ThirdParty to compile ANY other software than swak? Even just some HelloWorld-program? Because I think the problem you're seeing is a problem with the compiler installation

kilroy July 29, 2013 18:02

Hello Bernhard,

I have a question about groovyBC.

With groovyBC, is it possible to define the wave direction and the current direction different than each other?

I am trying to model a boat traveling through waves (wave speed) with constant speed (boat speed). I want to see the performance of the boat with waves coming from different directions in different cases, so I need to define the direction of the waves and the current directions different than each other.

Is it possible to do that with groovyBC? If yes, do you know a tutorial/example that I can go through?

Thank you very much for your help in advance,

Best,
kilroy


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