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 ~~~~~~~~~~~~~~ |
Please look at this line of your error message:
Code:
/bin/sh: bison: not found |
Thank you! This solved the problem :-)
|
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. |
Quote:
Bernhard |
I queried the location of bison with 'which bison'. I will check back if I can figure out this.
|
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? |
Quote:
|
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 # |
Quote:
-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 |
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... |
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': |
Quote:
|
Quote:
|
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 |
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. |
thank you.As your said ,I have got it.
|
Quote:
I checked those packages and they were installed.? what should I do? now |
Quote:
|
Dear Bernhard
my OS is opensuse 11.4. |
All times are GMT -4. The time now is 14:25. |