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] Error installing swak4Foam (https://www.cfd-online.com/Forums/openfoam-community-contributions/113239-error-installing-swak4foam.html)

Hisham February 15, 2013 09:25

Error installing swak4Foam
 
Dear Foamers,

I want to install swak4Foam under OF-1.6-ext. I downloaded swak4Foam using:
This is the one refereed to by the Wiki-page as the development version as the link to the current version is kaputt.

Going to the directory and ./Allwmake, I get:
Code:

/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorFieldField.C:46:1: error: no matching function for call to ‘symm(Foam::pointPatchField<Foam::SymmTensor<double> >&, const Foam::pointPatchField<Foam::SymmTensor<double> >&)’
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorFieldField.C:46:1: note: candidates are:
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/SymmTensorI.H:277:32: note: template<class Cmpt> const Foam::SymmTensor<Cmpt>& Foam::symm(const Foam::SymmTensor<Cmpt>&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/dimensionedSymmTensor.H:57:23: note: Foam::dimensionedSymmTensor Foam::symm(const dimensionedSymmTensor&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/dimensionedSymmTensor.H:57:23: note:  candidate expects 1 argument, 2 provided
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/TensorI.H:390:25: note: template<class Cmpt> Foam::SymmTensor<Cmpt> Foam::symm(const Foam::Tensor<Cmpt>&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/dimensionedTensor.H:62:23: note: Foam::dimensionedSymmTensor Foam::symm(const dimensionedTensor&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/dimensionedTensor.H:62:23: note:  candidate expects 1 argument, 2 provided
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorField.H:60:1: note: void Foam::symm(Foam::Field<Foam::SymmTensor<double> >&, const Foam::UList<Foam::SymmTensor<double> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorField.H:60:1: note:  no known conversion for argument 1 from ‘Foam::pointPatchField<Foam::SymmTensor<double> >’ to ‘Foam::Field<Foam::SymmTensor<double> >&’
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorField.H:60:1: note: Foam::tmp<Foam::Field<Foam::SymmTensor<double> > > Foam::symm(const Foam::UList<Foam::SymmTensor<double> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorField.H:60:1: note:  candidate expects 1 argument, 2 provided
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorField.H:60:1: note: Foam::tmp<Foam::Field<Foam::SymmTensor<double> > > Foam::symm(const Foam::tmp<Foam::Field<Foam::SymmTensor<double> > >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorField.H:60:1: note:  candidate expects 1 argument, 2 provided
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/tensorField.H:59:1: note: void Foam::symm(Foam::Field<Foam::SymmTensor<double> >&, const Foam::UList<Foam::Tensor<double> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/tensorField.H:59:1: note:  no known conversion for argument 1 from ‘Foam::pointPatchField<Foam::SymmTensor<double> >’ to ‘Foam::Field<Foam::SymmTensor<double> >&’
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/tensorField.H:59:1: note: Foam::tmp<Foam::Field<Foam::SymmTensor<double> > > Foam::symm(const Foam::UList<Foam::Tensor<double> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/tensorField.H:59:1: note:  candidate expects 1 argument, 2 provided
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/tensorField.H:59:1: note: Foam::tmp<Foam::Field<Foam::SymmTensor<double> > > Foam::symm(const Foam::tmp<Foam::Field<Foam::Tensor<double> > >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/tensorField.H:59:1: note:  candidate expects 1 argument, 2 provided
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/DimensionedSymmTensorField.C:44:1: note: template<class GeoMesh> Foam::tmp<Foam::DimensionedField<Foam::SymmTensor<double>, GeoMesh> > Foam::symm(const Foam::DimensionedField<Foam::SymmTensor<double>, GeoMesh>&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/DimensionedSymmTensorField.C:44:1: note: template<class GeoMesh> Foam::tmp<Foam::DimensionedField<Foam::SymmTensor<double>, GeoMesh> > Foam::symm(const Foam::tmp<Foam::DimensionedField<Foam::SymmTensor<double>, GeoMesh> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/GeometricSymmTensorField.C:44:1: note: template<template<class> class PatchField, class GeoMesh> Foam::tmp<Foam::GeometricField<Foam::SymmTensor<double>, PatchField, GeoMesh> > Foam::symm(const Foam::GeometricField<Foam::SymmTensor<double>, PatchField, GeoMesh>&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/GeometricSymmTensorField.C:44:1: note: template<template<class> class PatchField, class GeoMesh> Foam::tmp<Foam::GeometricField<Foam::SymmTensor<double>, PatchField, GeoMesh> > Foam::symm(const Foam::tmp<Foam::GeometricField<Foam::SymmTensor<double>, PatchField, GeoMesh> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorFieldField.C:46:1: note: template<template<class> class Field> void Foam::symm(Foam::FieldField<Field, Foam::SymmTensor<double> >&, const Foam::FieldField<Field, Foam::SymmTensor<double> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorFieldField.C:46:1: note: template<template<class> class Field> Foam::tmp<Foam::FieldField<Field, Foam::SymmTensor<double> > > Foam::symm(const Foam::FieldField<Field, Foam::SymmTensor<double> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorFieldField.C:46:1: note: template<template<class> class Field> Foam::tmp<Foam::FieldField<Field, Foam::SymmTensor<double> > > Foam::symm(const Foam::tmp<Foam::FieldField<Field, Foam::SymmTensor<double> > >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/PointPatchFieldFunctions.H:534:6: note: template<template<class> class PatchField, class Mesh, class PointPatch, template<class> class MatrixType> void Foam::symm(Foam::PointPatchField<PatchField, Mesh, PointPatch, MatrixType, Foam::SymmTensor<double> >&, const Foam::PointPatchField<PatchField, Mesh, PointPatch, MatrixType, Foam::Tensor<double> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/GeometricTensorField.C:42:1: note: template<template<class> class PatchField, class GeoMesh> void Foam::symm(Foam::GeometricField<Foam::SymmTensor<double>, PatchField, GeoMesh>&, const Foam::GeometricField<Foam::Tensor<double>, PatchField, GeoMesh>&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/tensorFieldField.C:44:1: note: template<template<class> class Field> Foam::tmp<Foam::FieldField<Field, Foam::SymmTensor<double> > > Foam::symm(const Foam::tmp<Foam::FieldField<Field, Foam::Tensor<double> > >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/tensorFieldField.C:44:1: note: template<template<class> class Field> Foam::tmp<Foam::FieldField<Field, Foam::SymmTensor<double> > > Foam::symm(const Foam::FieldField<Field, Foam::Tensor<double> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/tensorFieldField.C:44:1: note: template<template<class> class Field> void Foam::symm(Foam::FieldField<Field, Foam::SymmTensor<double> >&, const Foam::FieldField<Field, Foam::Tensor<double> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/GeometricTensorField.C:42:1: note: template<template<class> class PatchField, class GeoMesh> Foam::tmp<Foam::GeometricField<Foam::SymmTensor<double>, PatchField, GeoMesh> > Foam::symm(const Foam::tmp<Foam::GeometricField<Foam::Tensor<double>, PatchField, GeoMesh> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/GeometricTensorField.C:42:1: note: template<template<class> class PatchField, class GeoMesh> Foam::tmp<Foam::GeometricField<Foam::SymmTensor<double>, PatchField, GeoMesh> > Foam::symm(const Foam::GeometricField<Foam::Tensor<double>, PatchField, GeoMesh>&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/DimensionedTensorField.C:42:1: note: template<class GeoMesh> Foam::tmp<Foam::DimensionedField<Foam::SymmTensor<double>, GeoMesh> > Foam::symm(const Foam::tmp<Foam::DimensionedField<Foam::Tensor<double>, GeoMesh> >&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/DimensionedTensorField.C:42:1: note: template<class GeoMesh> Foam::tmp<Foam::DimensionedField<Foam::SymmTensor<double>, GeoMesh> > Foam::symm(const Foam::DimensionedField<Foam::Tensor<double>, GeoMesh>&)
/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/GeometricSymmTensorField.C:44:1: note: template<template<class> class PatchField, class GeoMesh> void Foam::symm(Foam::GeometricField<Foam::SymmTensor<double>, PatchField, GeoMesh>&, const Foam::GeometricField<Foam::SymmTensor<double>, PatchField, GeoMesh>&)
make: *** [Make/linux64GccDPOpt/FieldValueExpressionParser.o] Error 1
make: *** Waiting for unfinished jobs....
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

I have the following configurations:
Code:

No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
Bison is version 2.5
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 1 Minor 6 Patch 1.6-ext
No change to swak4FoamParsers/foamVersion4swak.H

Ubuntu 12.04.1

Thanks for your help!

Best regards,
Hisham

wyldckat February 15, 2013 10:50

Hi Hisham,

I don't have Hg+Linux nearby, so I suggest that you try the tarball version instead:
Quote:

Originally Posted by http://openfoamwiki.net/index.php/Contrib/swak4Foam#Downloading
Temporary download to replace closed SVN: As the SVN is currently offline (see the front-page for information) the tarballs of the latest release (0.2.1) can be downloaded here for OpenFOAM 2.x and OpenFOAM 1.x.

It's the last link.

Best regards,
Bruno

Hisham February 15, 2013 11:27

Hi Bruno

Thanks a lot. How did I miss reading that? The tarball compiles smoothly as butter :D.

Thanks again!
Hisham

gschaider February 15, 2013 13:19

Quote:

Originally Posted by Hisham (Post 408042)
Dear Foamers,

I want to install swak4Foam under OF-1.6-ext. I downloaded swak4Foam using:
This is the one refereed to by the Wiki-page as the development version as the link to the current version is kaputt.

Going to the directory and ./Allwmake, I get:
Code:

/home/hisham/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/symmTensorFieldField.C:46:1: error: no matching function for call to ‘symm(Foam::pointPatchField<Foam::SymmTensor<double> >&, const Foam::pointPatchField<Foam::SymmTensor<double> >&)’

<snip>

make: *** [Make/linux64GccDPOpt/FieldValueExpressionParser.o] Error 1
make: *** Waiting for unfinished jobs....
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

I have the following configurations:
Code:

No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
Bison is version 2.5
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 1 Minor 6 Patch 1.6-ext
No change to swak4FoamParsers/foamVersion4swak.H

Ubuntu 12.04.1

Thanks for your help!

Best regards,
Hisham

The problem is a workaround for older versions of 1.6-ext that does not seem to be necessary anymore. In the file

Libraries/swak4FoamParsers/include/swak.H

comment out the line

Code:

#define FOAM_SYMMTENSOR_WORKAROUND
to

Code:

// #define FOAM_SYMMTENSOR_WORKAROUND

Hisham February 15, 2013 13:26

Thanks Bernhard!

Rasesh March 14, 2013 04:43

Hi all
I have OpenFOAM version 2.0.1, Bison 2.4.1, flex 2.5.35 and ubuntu 11.10.
When i try to wmake all the swak4foam downloaded from tarball, I get an error message that
" make: *** [Make/linuxGccDPOpt/FieldValueExpressionParser.o] Error 1
Parser library did not compile OK. No sense continuing as everything else depends on it"

Can anyone help??

Thank you

Rasesh March 14, 2013 04:54

I have also tried the version on github by wyldckat.
That gives another error.
"make[1]: Leaving directory `/home/achyut/swak4foam-master/Utilities/replayTransientBC'
make: Target `application' not remade because of errors."

Thank you

Rasesh March 14, 2013 05:26

Sorry for less info
I am getting these errors in tarball installation:
Code:

No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
Bison is version 2.4.1
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 0 Patch 1 (-1 == x)
No swak4FoamParsers/foamVersion4swak.H. Generated
SOURCE=helpers/printSwakVersion.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/printSwakVersion.o
SOURCE=repositories/SurfacesRepository.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/SurfacesRepository.o
SOURCE=repositories/MeshesRepository.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/MeshesRepository.o
SOURCE=repositories/SetsRepository.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/SetsRepository.o
SOURCE=repositories/GlobalVariablesRepository.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/GlobalVariablesRepository.o
SOURCE=namedEnums/MeshInterpolationOrder.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/MeshInterpolationOrder.o
SOURCE=namedEnums/LogicalAccumulationNamedEnum.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/LogicalAccumulationNamedEnum.o
SOURCE=namedEnums/NumericAccumulationNamedEnum.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/NumericAccumulationNamedEnum.o
SOURCE=ExpressionDriverWriter.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/ExpressionDriverWriter.o
SOURCE=ExpressionResult/ExpressionResult.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/ExpressionResult.o
SOURCE=ExpressionResult/StoredExpressionResult.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/StoredExpressionResult.o
SOURCE=ExpressionResult/DelayedExpressionResult.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/DelayedExpressionResult.o
SOURCE=setsAndSurfaces/swakRegistryProxySurface.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/swakRegistryProxySurface.o
SOURCE=setsAndSurfaces/swakRegistryProxySet.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/swakRegistryProxySet.o
SOURCE=FieldValueExpressionParser.yy ; rm -f Make/linuxGccDPOpt/FieldValueExpressionParser.C Make/linuxGccDPOpt/FieldValueExpressionParser.tab.hh; mkdir $$; cd $$; 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 ; cd ..; rm -r $$;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c  Make/linuxGccDPOpt/FieldValueExpressionParser.C -o Make/linuxGccDPOpt/FieldValueExpressionParser.o
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

Thank you

gschaider March 14, 2013 05:56

Quote:

Originally Posted by Rasesh (Post 413942)
Sorry for less info
I am getting these errors in tarball installation:
Code:

No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
Bison is version 2.4.1
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 0 Patch 1 (-1 == x)
No swak4FoamParsers/foamVersion4swak.H. Generated
SOURCE=helpers/printSwakVersion.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/printSwakVersion.o
SOURCE=repositories/SurfacesRepository.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/SurfacesRepository.o
SOURCE=repositories/MeshesRepository.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/MeshesRepository.o
SOURCE=repositories/SetsRepository.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/SetsRepository.o
SOURCE=repositories/GlobalVariablesRepository.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/GlobalVariablesRepository.o
SOURCE=namedEnums/MeshInterpolationOrder.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/MeshInterpolationOrder.o
SOURCE=namedEnums/LogicalAccumulationNamedEnum.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/LogicalAccumulationNamedEnum.o
SOURCE=namedEnums/NumericAccumulationNamedEnum.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/NumericAccumulationNamedEnum.o
SOURCE=ExpressionDriverWriter.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/ExpressionDriverWriter.o
SOURCE=ExpressionResult/ExpressionResult.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/ExpressionResult.o
SOURCE=ExpressionResult/StoredExpressionResult.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/StoredExpressionResult.o
SOURCE=ExpressionResult/DelayedExpressionResult.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/DelayedExpressionResult.o
SOURCE=setsAndSurfaces/swakRegistryProxySurface.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/swakRegistryProxySurface.o
SOURCE=setsAndSurfaces/swakRegistryProxySet.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linuxGccDPOpt/swakRegistryProxySet.o
SOURCE=FieldValueExpressionParser.yy ; rm -f Make/linuxGccDPOpt/FieldValueExpressionParser.C Make/linuxGccDPOpt/FieldValueExpressionParser.tab.hh; mkdir $$; cd $$; 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 ; cd ..; rm -r $$;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -IMake/linuxGccDPOpt          -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/sampling/lnInclude -I/opt/openfoam201/src/triSurface/lnInclude -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude  -fPIC -c  Make/linuxGccDPOpt/FieldValueExpressionParser.C -o Make/linuxGccDPOpt/FieldValueExpressionParser.o
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

Thank you

You say that you have OF 2.0.x. I guess the problem is that I only tested the compilation with 2.1.x as I currently have no working 2.0.x. The output you give is missing the error message from the compiler (and that makes it quite hard to see what the problem might be). Probably because you only redirected the standard output and not the standard error. So instead of

./Allwmake >make.log

do something like (depends on your shell)

./Allwmake 2>&1 >make.log

gschaider March 14, 2013 07:34

1 Attachment(s)
Quote:

Originally Posted by Rasesh (Post 413926)
Hi all
I have OpenFOAM version 2.0.1, Bison 2.4.1, flex 2.5.35 and ubuntu 11.10.
When i try to wmake all the swak4foam downloaded from tarball, I get an error message that
" make: *** [Make/linuxGccDPOpt/FieldValueExpressionParser.o] Error 1
Parser library did not compile OK. No sense continuing as everything else depends on it"

Can anyone help??

Thank you

OK. The problem is that a number of things are named diferently between 2.0.x and 2.1.x

I attach a patch that implements a temporary fix and will fix it permanently in the development version: this fix doesn't compile everything, but groovyBC and funkySetFields should work (which covers in my experience 80% of the use-cases).

Attachment 19861

Rasesh March 16, 2013 04:08

Thank you very much bernhard, After applying the patch you have given it works..

gschaider March 16, 2013 06:05

Quote:

Originally Posted by Rasesh (Post 414348)
Thank you very much bernhard, After applying the patch you have given it works..

Thanks for the feedback. The fixes will be in the next release.

lohasz March 19, 2013 08:27

other install/compile problem of swak4foam 0.2.3
 
Dear All,

I have compiling problem of swak4Foam with following message after second Allwmake:

No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
Bison is version 2.4.1
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 2 Patch 0 (-1 == x)
No change to swak4FoamParsers/foamVersion4swak.H
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/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/finiteVolume/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/sampling/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/fileFormats/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/triSurface/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/surfMesh/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/lagrangian/basic/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/meshTools/lnInclude -IlnInclude -I. -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/MeshesRepository.o
repositories/MeshesRepository.C: In member function 'Foam::scalar Foam::MeshesRepository::setTime(const Foam::word&, Foam::scalar, Foam::label)':
repositories/MeshesRepository.C:299:59: error: no matching function for call to 'Foam::HashTable<Foam::regIOobject*>::HashTable(Fo am::HashTable<const Foam::regIOobject*, Foam::word, Foam::string::hash>)'
repositories/MeshesRepository.C:299:59: note: candidates are:
/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude/HashTable.C:79:1: note: Foam::HashTable<T, Key, Hash>::HashTable(const Foam::Xfer<Foam::HashTable<T, Key, Hash> >&) [with T = Foam::regIOobject*, Key = Foam::word, Hash = Foam::string::hash]
/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude/HashTable.C:79:1: note: no known conversion for argument 1 from 'Foam::HashTable<const Foam::regIOobject*, Foam::word, Foam::string::hash>' to 'const Foam::Xfer<Foam::HashTable<Foam::regIOobject*> >&'
/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude/HashTable.C:55:1: note: Foam::HashTable<T, Key, Hash>::HashTable(const Foam::HashTable<T, Key, Hash>&) [with T = Foam::regIOobject*, Key = Foam::word, Hash = Foam::string::hash]
/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude/HashTable.C:55:1: note: no known conversion for argument 1 from 'Foam::HashTable<const Foam::regIOobject*, Foam::word, Foam::string::hash>' to 'const Foam::HashTable<Foam::regIOobject*>&'
/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude/HashTableIO.C:33:1: note: Foam::HashTable<T, Key, Hash>::HashTable(Foam::Istream&, Foam::label) [with T = Foam::regIOobject*, Key = Foam::word, Hash = Foam::string::hash, Foam::label = int]
/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude/HashTableIO.C:33:1: note: no known conversion for argument 1 from 'Foam::HashTable<const Foam::regIOobject*, Foam::word, Foam::string::hash>' to 'Foam::Istream&'
/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude/HashTable.C:35:1: note: Foam::HashTable<T, Key, Hash>::HashTable(Foam::label) [with T = Foam::regIOobject*, Key = Foam::word, Hash = Foam::string::hash, Foam::label = int]
/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude/HashTable.C:35:1: note: no known conversion for argument 1 from 'Foam::HashTable<const Foam::regIOobject*, Foam::word, Foam::string::hash>' to 'int'
make: *** [Make/linux64GccDPOpt/MeshesRepository.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 is on a Rocks 6.1, OF2.2, compiled on my own using gcc4.6.2. GCC is also compiled separatly in the ThirdParty directory. I do not know if this can matter...

Thanks for your help!
Máté

gschaider March 19, 2013 09:54

Quote:

Originally Posted by lohasz (Post 414974)
Dear All,

I have compiling problem of swak4Foam with following message after second Allwmake:

No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
Bison is version 2.4.1
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 2 Patch 0 (-1 == x)
No change to swak4FoamParsers/foamVersion4swak.H
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/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/finiteVolume/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/sampling/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/fileFormats/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/triSurface/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/surfMesh/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/lagrangian/basic/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/meshTools/lnInclude -IlnInclude -I. -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude -I/home/lohaszm/OpenFOAM/OpenFOAM-2.2.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/MeshesRepository.o
repositories/MeshesRepository.C: In member function 'Foam::scalar Foam::MeshesRepository::setTime(const Foam::word&, Foam::scalar, Foam::label)':
repositories/MeshesRepository.C:299:59: error: no matching function for call to 'Foam::HashTable<Foam::regIOobject*>::HashTable(Fo am::HashTable<const Foam::regIOobject*, Foam::word, Foam::string::hash>)'
<snip>
make: *** [Make/linux64GccDPOpt/MeshesRepository.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 is on a Rocks 6.1, OF2.2, compiled on my own using gcc4.6.2. GCC is also compiled separatly in the ThirdParty directory. I do not know if this can matter...

The only information missing is the version of swak you're using. From the error message I guess 0.2.2 (the one that came out a week before OF2.2 and therefor has problems compiling it). Just yesterday I released 0.2.3 which compile on 2.2 (announced it on the message board and Twitter). The development-version already compiles on 2.2 for a couple of weeks

lohasz March 19, 2013 10:06

Sorry, the verison of swak4foam was given in the title :)

It was 0.2.3, I just downloaded from: http://openfoamwiki.net/images/c/c9/...e_0.2.3.tar.gz

Thanks,
Máté

gschaider March 19, 2013 10:27

Quote:

Originally Posted by lohasz (Post 415013)
Sorry, the verison of swak4foam was given in the title :)

Sorry. Overlooked it. The title is not included in the mails the system sends out (usually I read those, click on the link and start typing)

Quote:

Originally Posted by lohasz (Post 415013)
It was 0.2.3, I just downloaded from: http://openfoamwiki.net/images/c/c9/...e_0.2.3.tar.gz

Thanks,
Máté

You have 2.2? (not 2.2.x - which I have). Seems there is a difference between the two. Could you try the following: edit Libraries/swak4FoamParsers/include/swak.H and comment out the line

#define FOAM_LOOKUPCLASS_NO_CONST

and retry. Thanks

caduqued March 19, 2013 16:38

Hi Bernhard,

First of all, thanks for that wonderful tool swak4Foam, it's saved me tons of time for simple things. I am trying to get swak4Foam working with OF-2.2.0, and was facing same problems as Lohaz. I did apply your little patch (commenting out #define FOAM_LOOKUPCLASS_NO_CONST in Libraries/swak4FoamParsers/include/swak.H ), and now it seems to compiles OK. However, I am getting, at the beginning of the compilation output log, a bunch of messages about files not found, like:

Making dependency list for source file FieldValueExpressionLexer.ll
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionLexer.ll
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 directMappedPatchBase.H for source file PatchValueExpressionParser.yy
could not open file directMappedFvPatch.H for source file FieldValueExpressionParser.yy
could not open file directMappedWallFvPatch.H for source file FieldValueExpressionParser.yy
could not open file directMappedPointPatch.H for source file FieldValueExpressionParser.yy
could not open file FixedValuePointPatchField.H for source file FieldValueExpressionParser.yy
could not open file ZeroGradientPointPatchField.H for source file FieldValueExpressionParser.yy
could not open file CalculatedPointPatchField.H for source file FieldValueExpressionParser.yy
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
Making dependency list for source file SubsetValueExpressionLexer.ll
Making dependency list for source file SubsetValueExpressionDriver.C
could not open file directMappedFvPatch.H for source file FieldValueExpressionLexer.ll
could not open file directMappedWallFvPatch.H for source file FieldValueExpressionLexer.ll
could not open file directMappedPointPatch.H for source file FieldValueExpressionLexer.ll
could not open file FixedValuePointPatchField.H for source file FieldValueExpressionLexer.ll
could not open file ZeroGradientPointPatchField.H for source file FieldValueExpressionLexer.ll
could not open file CalculatedPointPatchField.H for source file FieldValueExpressionLexer.ll
could not open file PatchValueExpressionParser.tab.hh for source file PatchValueExpressionLexer.ll
could not open file directMappedPatchBase.H for source file PatchValueExpressionLexer.ll

Can I ignore those or should I pull any changes from the git repository?
Just wondering if these affect in any way the usage of swak4Foam.

Thanks,

lohasz March 19, 2013 16:51

Yes I compiled OF2.2.0, this can make a difference.

With your suggested change it compiles. With the second Allwmake, there is no missing file, but I woulkd also be curios what gschaider propose for the future. Use this (with the suggested commented line) version, or wait for some other resolution?

Thanks for your help!

Máté

gschaider March 19, 2013 17:15

Quote:

Originally Posted by caduqued (Post 415097)
Hi Bernhard,

First of all, thanks for that wonderful tool swak4Foam, it's saved me tons of time for simple things. I am trying to get swak4Foam working with OF-2.2.0, and was facing same problems as Lohaz. I did apply your little patch (commenting out #define FOAM_LOOKUPCLASS_NO_CONST in Libraries/swak4FoamParsers/include/swak.H ), and now it seems to compiles OK. However, I am getting, at the beginning of the compilation output log, a bunch of messages about files not found, like:

Making dependency list for source file FieldValueExpressionLexer.ll
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionLexer.ll
could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionParser.yy
<snip>

Can I ignore those or should I pull any changes from the git repository?
Just wondering if these affect in any way the usage of swak4Foam.

Yes. You can ignore those. swak relies on #ifdef/#define to compile on different OF-versions (otherwise supporting more than two OF-versions would be a nightmare. One example IS the FOAM_LOOKUPCLASS_NO_CONST). The utility that generates the dependencies ignores these #ifdefs and looks for files that are not there ... in this specific OF-version

gschaider March 19, 2013 17:27

Quote:

Originally Posted by lohasz (Post 415103)
Yes I compiled OF2.2.0, this can make a difference.

With your suggested change it compiles. With the second Allwmake, there is no missing file, but I woulkd also be curios what gschaider propose for the future. Use this (with the suggested commented line) version, or wait for some other resolution?

Usually it takes several months before between a released version (here 2.2.0) and the associated git-version (here 2.2.x) incompatibilities creep in. Seems that they managed this here with the initial release of the git. All I can say is http://nooooooooooooooo.com

Don't see how I can resolve this if they change the API for releases with the same version numbers. So you'll have to stick with this hand-patch

sharonyue March 21, 2013 05:24

Quote:

Originally Posted by lohasz (Post 415013)
Sorry, the verison of swak4foam was given in the title :)

It was 0.2.3, I just downloaded from: http://openfoamwiki.net/images/c/c9/...e_0.2.3.tar.gz

Thanks,
Máté


I have download this and do the comment,
//#define FOAM_LOOKUPCLASS_NO_CONST
it compiles okay in my foam 2.2.0.
And run funkySetFields -time 0
It works!
Thanks you all you guys especially Gschaider.you did a splenedid work.!



Well, I tried to make the velocity of alpha 0 field to be (0 -0.1 0)
Code:

FoamFile
{
version 2.0;
format ascii;
class dictionary;
object funkySetFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

expressions
(
        internalFields
        {
        field        alpha1;
        expression "1";   
        condition "pow(pos().x,2) + pow(pos().y-0.15,2) <= pow(0.15,2)/4";//f  x^2+(y-0.0015)^2<0.0015^2/4
        keepPatches        1;
        }
       
        internalFields
        {
        field        U;
        expression "(0 -0.1 0)";
        condition "pow(pos().x,2) + pow(pos().y-0.15,2) <= pow(0.15,2)/4";//f  x^2+(y-0.0015)^2<0.0015^2/4
        keepPatches        1;
        }

);

ERROR:
Code:

Create time

Create mesh for time = 0


Time = 0
 Using funkySetFieldsDict



Part: internalFields
 Modifying field alpha1 of type volScalarField

 Putting "1" into field alpha1 at t = "0" if condition "pow(pos().x,2) + pow(pos().y-0.15,2) <= pow(0.15,2)/4" is true
 Keeping patches unaltered

 Setting 284 of 8000 cells
 Writing to "alpha1"


Part: internalFields
 Modifying field U of type volVectorField

 Putting "(0 0 0)" into field U at t = "0" if condition "pow(pos().x,2) + pow(pos().y-0.15,2) <= pow(0.15,2)/4" is true



--> FOAM FATAL ERROR:
 Parser Error for driver FieldValueExpressionDriver at "1.4" :"syntax error, unexpected number"
"(0 0 0)"
    ^
-----|

Context of the error:


- Driver constructed from scratch
  Evaluating expression "(0 0 0)"


    From function parsingValue
    in file lnInclude/CommonValueExpressionDriverI.H at line 1039.

FOAM exiting

Does anyone know how to handle this?
Thanks in advanvce.

wyldckat March 24, 2013 12:16

Hi sharonyue,
Quote:

Originally Posted by sharonyue (Post 415456)
...
Well, I tried to make the velocity of alpha 0 field to be (0 -0.1 0)
...

I suggest you start a new thread detailing what you are trying to do and the error you're getting, because this thread seems to be dedicated to installation issues ;)

Best regards,
Bruno

gschaider March 24, 2013 16:52

Quote:

Originally Posted by sharonyue (Post 415456)
I
Code:


 Putting "(0 0 0)" into field U at t = "0" if condition "pow(pos().x,2) + pow(pos().y-0.15,2) <= pow(0.15,2)/4" is true



--> FOAM FATAL ERROR:
 Parser Error for driver FieldValueExpressionDriver at "1.4" :"syntax error, unexpected number"
"(0 0 0)"
    ^
-----|

Context of the error:


- Driver constructed from scratch
  Evaluating expression "(0 0 0)"


    From function parsingValue
    in file lnInclude/CommonValueExpressionDriverI.H at line 1039.

FOAM exiting

Does anyone know how to handle this?
Thanks in advanvce.

Yep. By an advance technique called RTFM (Read the fine manual): http://openfoamwiki.net/index.php/Co...ulsedPitzDaily

(vectors, for technical reasons, have a different syntax in swak)

Quote:

Originally Posted by wyldckat (Post 416035)
I suggest you start a new thread detailing what you are trying to do and the error you're getting, because this thread seems to be dedicated to installation issues ;)

Of course Bruno is right here: a new problem deserves a new thread

sharonyue March 24, 2013 21:58

Quote:

Originally Posted by gschaider (Post 416086)
Yep. By an advance technique called RTFM (Read the fine manual): http://openfoamwiki.net/index.php/Co...ulsedPitzDaily

(vectors, for technical reasons, have a different syntax in swak)


Of course Bruno is right here: a new problem deserves a new thread

Okay,I am sorry for that,and Thanks very much.I will try it a afterdays~

anmartin April 1, 2013 13:51

1 Attachment(s)
Hello,

First at all, I want to thanks you all you guys especially Gschaider.you did a splendid work.! and many tanks for your work in swak4foam.

I have update to latest version of OF (Version 2.2.0) and i have tried to install swak4foam as you mention
1º hg clone http://openfoam-extend.hg.sourceforg...tend/swak4Foam
2º hg update port 2.0.x

3º copy swakConfiguration.example to swakConfiguration
4º comment the line //#define FOAM_LOOKUPCLASS_NO_CONST
5º Compile with this result file (allwmakelog file)

But when i try to use an example that run perfect in previous version of OF 2.0+swak4foam, I obtain the following error:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

--> FOAM FATAL ERROR:
Not implemented

From function simpleFunctionObject::movePoints
in file simpleFunctionObject/simpleFunctionObject.H at line 160.

FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::functionObjectList::movePoints(Foam::polyMes h const&) at ??:?
#3 Foam::polyMesh::movePoints(Foam::Field<Foam::Vecto r<double> > const&) at ??:?
#4 Foam::fvMesh::movePoints(Foam::Field<Foam::Vector< double> > const&) at ??:?
#5 Foam::solidBodyMotionFvMesh::update() at ??:?
#6
at ??:?
#7 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#8
at ??:?
Abortado (`core' generado)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
The controldic is:
libs (
//"libOpenFOAM.so" // keeps paraFoam happy
"libtwoPhaseInterfaceProperties.so"
"libinterfaceProperties.so"
"libsimpleSwakFunctionObjects.so"
"libswakFunctionObjects.so"
);
functions
{
liquid_Vol
{
type swakExpression;
valueType internalField;
accumulations (sum);
expression "alpha1*vol()";
//verbose true;
//autowrite true;
}
};


Does anyone know how to handle this?
Thanks in advance.

Angel,

gschaider April 1, 2013 17:10

Quote:

Originally Posted by anmartin (Post 417645)
Hello,

First at all, I want to thanks you all you guys especially Gschaider.you did a splendid work.! and many tanks for your work in swak4foam.

I have update to latest version of OF (Version 2.2.0) and i have tried to install swak4foam as you mention
1º hg clone http://openfoam-extend.hg.sourceforg...tend/swak4Foam
2º hg update port 2.0.x

3º copy swakConfiguration.example to swakConfiguration
4º comment the line //#define FOAM_LOOKUPCLASS_NO_CONST
5º Compile with this result file (allwmakelog file)

But when i try to use an example that run perfect in previous version of OF 2.0+swak4foam, I obtain the following error:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

--> FOAM FATAL ERROR:
Not implemented

From function simpleFunctionObject::movePoints
in file simpleFunctionObject/simpleFunctionObject.H at line 160.

FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::functionObjectList::movePoints(Foam::polyMes h const&) at ??:?
#3 Foam::polyMesh::movePoints(Foam::Field<Foam::Vecto r<double> > const&) at ??:?
#4 Foam::fvMesh::movePoints(Foam::Field<Foam::Vector< double> > const&) at ??:?
#5 Foam::solidBodyMotionFvMesh::update() at ??:?
#6
at ??:?
#7 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#8
at ??:?
Abortado (`core' generado)

The missing information was with which solver you're doing this. Obviously one that does mesh movement.

I think the problem is my fault. The new API requires that the functionObjects have methods that say "Hey. I know how to behave during mesh-movement". I said "OK. Fair enough. But I'm not sure if all my function objects are really up to it. So I'll include a dummy implementation that will blow up. So I'll know I'll have to check". And then I forgot about it. That's why it blew up in YOUR face.

Quick fix: go to the file Libraries/simpleFunctionObjects/simpleFunctionObject/simpleFunctionObject.H
search for the line
Code:

        notImplemented("simpleFunctionObject::updateMesh");
and rewrite it to
Code:

//        notImplemented("simpleFunctionObject::updateMesh");
Also do that with the similar line below it. Recompile. Then it should work

Claudio87 May 7, 2013 06:31

swak4Foam installation
 
1 Attachment(s)
Dear Foamers,

I have similar problems with the installation of swak4Foam, with the last version.
I create a new post here
http://www.cfd-online.com/Forums/ope...tml#post425801
if you prefer, or answer directly in this one.

I attached the log of ./Allwmake

Thank you in advance for your help!


Best regards,
Claudio

gruenertee July 21, 2013 14:07

swak4foam installation
 
1 Attachment(s)
Hi Foamers,

i failed to install Swak4Foam_release_0.2.3 on my system. I am using Openfoam 2.2.0 on Ubuntu 12.04 LTS; i installed bison 2.5 and flex 2.5.35 and i did ./Allwmake; i added my wmake.txt file.

Best regards,

gruenertee

wyldckat July 21, 2013 14:14

Greetings gruenertee,

According to your description, it looks like you did not read the warning sign ;)
Quote:

Originally Posted by http://openfoamwiki.net/index.php/Contrib/swak4Foam#Downloading
Warning: seems like there is a crucial change in the API between 2.2.0 and 2.2.x which makes compilation on 2.2.0 fail. If you use that version you'll have to apply a change described in this forum post

In addition, the 0.2.4 version can be retrieved directly from the SVN, as instructed in the wiki page: http://openfoamwiki.net/index.php/Co...am#Downloading
If you do not know how or simply do not want to use SVN, then you can download the latest 0.2.4 from here: https://github.com/wyldckat/swak4foam/archive/OF22X.zip

Best regards,
Bruno

gruenertee July 22, 2013 04:50

wyldckat, I am very grateful for your pointing out the swak4foam version 0.2.4 for Openfoam 2.2.0; The installation process was successfully working. :rolleyes:

mebinitap July 23, 2013 04:04

Hi All,

I tried to install swak4foam from the link:
https://github.com/wyldckat/swak4foam/archive/OF22X.zip

However I got the following error:

I/opt/openfoam220/src/sampling/lnInclude -I/opt/openfoam220/src/meshTools/Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linuxGccDPOpt/funkySetFields.o -L/opt/openfoam220/platforms/linuxGccDPOpt/lib \
-lfiniteVolume -lmeshTools -L/home/basu/OpenFOAM/basu-2.2.0/platforms/linuxGccDPOpt/lib -lswak4FoamParsers -lOpenFOAM -ldl -lm -o /home/basu/OpenFOAM/basu-2.2.0/platforms/linuxGccDPOpt/bin/funkySetFields
make[1]: Leaving directory `/home/basu/OpenFOAM/basu-2.2.0/Swak4Foam_2.x_release_0.2.3/Utilities/funkySetFields'
Making dependency list for source file replayTransientBC.C
make[1]: Entering directory `/home/basu/OpenFOAM/basu-2.2.0/Swak4Foam_2.x_release_0.2.3/Utilities/replayTransientBC'
SOURCE=replayTransientBC.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam220/src/cfdTools/lnInclude -I/opt/openfoam220/src/cfdTools/general/lnInclude -I/opt/openfoam220/src/finiteVolume/lnInclude -I/opt/openfoam220/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/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-100 -I/opt/openfoam220/src/cfdTools/lnInclude -I/opt/openfoam220/src/cfdTools/general/lnInclude -I/opt/openfoam220/src/finiteVolume/lnInclude -I/opt/openfoam220/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linuxGccDPOpt/replayTransientBC.o -L/opt/openfoam220/platforms/linuxGccDPOpt/lib \
-lfiniteVolume -lmeshTools -lOpenFOAM -ldl -lm -o /home/basu/OpenFOAM/basu-2.2.0/platforms/linuxGccDPOpt/bin/replayTransientBC
make[1]: Leaving directory `/home/basu/OpenFOAM/basu-2.2.0/Swak4Foam_2.x_release_0.2.3/Utilities/replayTransientBC'


If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/basu/OpenFOAM/basu-2.2.0/Swak4Foam_2.x_release_0.2.3/Libraries (most people will be fine without setting that variable)



It would be great if anybody can provide some help..

(I am using FOAM 2.2.0, Bison 2.5, Flex 2.5.35)

gschaider July 23, 2013 04:40

Quote:

Originally Posted by mebinitap (Post 441382)
Hi All,

I tried to install swak4foam from the link:
https://github.com/wyldckat/swak4foam/archive/OF22X.zip

However I got the following error:

Code:

If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/basu/OpenFOAM/basu-2.2.0/Swak4Foam_2.x_release_0.2.3/Libraries (most people will be fine without setting that variable)

It would be great if anybody can provide some help..

(I am using FOAM 2.2.0, Bison 2.5, Flex 2.5.35)

You mean that? If it was an error there would be something like "error", "abort", "failure", "fatal incident", "death from above" in the output not "most people will be fine". This is just a reminder (not even a warning) for people who want to write programs based on swak. For the the time being consider yourself to be in the "most people" category.

The rest of the output looks fine. If you want to be sure rerun Allwmake. You should only see a the lines about the libraries being created and the above message

mebinitap July 23, 2013 07:02

Ok .. got it.. Thanx

franzi_ July 29, 2013 12:24

Compilation error
 
1 Attachment(s)
Hey! I tried to compile swak4foam but get a lot of errors. Tried the commenting in swak.H but did not work. Any other suggestions? I use OpenFoam2.2.x and swak4foam0.2.3!

I included a part here and attached the whole error message as word.
Hope somebody can help. Thanks a lot in advance!

Errormessage:

Quote:

bison: /disk1/users/fpfender/OpenFOAM/ThirdParty-2.2.x/platforms/linux64/bison-2.7/share/bison/m4sugar/m4sugar.m4: cannot open: No such file or directory
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 PatchValueExpressionParser.tab.hh: No such file or directory
mv: cannot stat `*.hh': No such file or directory
g++: error: Make/linux64Gcc46DPOpt/PatchValueExpressionParser.C: No such file or directory
g++: fatal error: no input files
compilation terminated.
make: *** [Make/linux64Gcc46DPOpt/PatchValueExpressionParser.o] Error 1
make: *** Waiting for unfinished jobs....
bison: /disk1/users/fpfender/OpenFOAM/ThirdParty-2.2.x/platforms/linux64/bison-2.7/share/bison/m4sugar/m4sugar.m4: cannot open: No such file or directory
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 SubsetValueExpressionParser.tab.hh: No such file or directory
mv: cannot stat `*.hh': No such file or directory
g++: error: Make/linux64Gcc46DPOpt/SubsetValueExpressionParser.C: No such file or directory
g++: fatal error: no input files
compilation terminated.
make: *** [Make/linux64Gcc46DPOpt/SubsetValueExpressionParser.o] Error 1
ExpressionResult/ExpressionResult.C: In member function 'void Foam::ExpressionResult::uglyDelete()':
ExpressionResult/ExpressionResult.C:216:20: warning: deleting 'void*' is undefined [enabled by default]
bison: /disk1/users/fpfender/OpenFOAM/ThirdParty-2.2.x/platforms/linux64/bison-2.7/share/bison/m4sugar/m4sugar.m4: cannot open: No such file or directory
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++: error: Make/linux64Gcc46DPOpt/FieldValueExpressionParser.C: No such file or directory
g++: fatal error: no input files
compilation terminated.
make: *** [Make/linux64Gcc46DPOpt/FieldValueExpressionParser.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 13:26

Quote:

Originally Posted by franzi_ (Post 442629)
Hey! I tried to compile swak4foam but get a lot of errors. Tried the commenting in swak.H but did not work. Any other suggestions? I use OpenFoam2.2.x and swak4foam0.2.3!

I included a part here and attached the whole error message as word.
Hope somebody can help. Thanks a lot in advance!

Errormessage:

At first: Use CODE instead of QUOTE for output. That way one can easily quote your error messages.

Anyway: the error message says that there is a installation problem with the bison-version in your ThirdParty-tools (did you add this bison yourself or does it come with the prepackaged ThirdParty-stuff?). Hard to tell what is actually the problem. I'd suggest to use the bison from the operating system

akidess September 10, 2013 12:28

Just did a checkout via hg and bumped into the same issue. Is there a reason for keeping around that line?

Quote:

Originally Posted by gschaider (Post 408099)
The problem is a workaround for older versions of 1.6-ext that does not seem to be necessary anymore. In the file

Libraries/swak4FoamParsers/include/swak.H

comment out the line

Code:

#define FOAM_SYMMTENSOR_WORKAROUND
to

Code:

// #define FOAM_SYMMTENSOR_WORKAROUND


gschaider September 10, 2013 17:55

Quote:

Originally Posted by akidess (Post 450964)
Just did a checkout via hg and bumped into the same issue. Is there a reason for keeping around that line?

Nostalgia and old installations. But you're right: should be commented out by default.

oort September 12, 2013 16:03

Quote:

Originally Posted by gschaider (Post 415028)
Sorry. Overlooked it. The title is not included in the mails the system sends out (usually I read those, click on the link and start typing)



You have 2.2? (not 2.2.x - which I have). Seems there is a difference between the two. Could you try the following: edit Libraries/swak4FoamParsers/include/swak.H and comment out the line

#define FOAM_LOOKUPCLASS_NO_CONST

and retry. Thanks


Hi. What is suposed to change in this file?
I have comment it (with a //), I have maintained without change and never works. I have also patched with the swak2Foam_024_OF22x_49808a1c.gz file but the compilations always crashes...


Code:

...
../FieldValueExpressionParser.yy:5492:13: error: ‘yylloc’ was not declared in this scope
../FieldValueExpressionParser.yy:5499:13: error: ‘yylloc’ was not declared in this scope
../FieldValueExpressionParser.yy:5507:13: error: ‘yylloc’ was not declared in this scope
../FieldValueExpressionParser.yy:5514:13: error: ‘yylloc’ was not declared in this scope
make: *** [Make/linux64GccDPOpt/FieldValueExpressionParser.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

What should I do?

Thanks,
Carlos

gschaider September 12, 2013 17:25

Quote:

Originally Posted by oort (Post 451403)
Hi. What is suposed to change in this file?
I have comment it (with a //), I have maintained without change and never works.

I don't quite get that sentence. You mean compilation doesn't work with or without that change? With the same error message?

Quote:

Originally Posted by oort (Post 451403)
I have also patched with the swak2Foam_024_OF22x_49808a1c.gz file but the compilations always crashes...


Code:

...
../FieldValueExpressionParser.yy:5492:13: error: ‘yylloc’ was not declared in this scope
../FieldValueExpressionParser.yy:5499:13: error: ‘yylloc’ was not declared in this scope
../FieldValueExpressionParser.yy:5507:13: error: ‘yylloc’ was not declared in this scope
../FieldValueExpressionParser.yy:5514:13: error: ‘yylloc’ was not declared in this scope
make: *** [Make/linux64GccDPOpt/FieldValueExpressionParser.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

What should I do?

That error is a problem in the code generated by bison. Which version of bison do you use? That information should be at the start of the compilation

fernando_fec October 1, 2013 14:32

1 Attachment(s)
Quote:

Originally Posted by gschaider (Post 451418)

Quote:

Originally Posted by oort (Post 451403)
I have also patched with the swak2Foam_024_OF22x_49808a1c.gz file but the compilations always crashes...


Code:

...
../FieldValueExpressionParser.yy:5492:13: error: ‘yylloc’ was not declared in this scope
../FieldValueExpressionParser.yy:5499:13: error: ‘yylloc’ was not declared in this scope
../FieldValueExpressionParser.yy:5507:13: error: ‘yylloc’ was not declared in this scope
../FieldValueExpressionParser.yy:5514:13: error: ‘yylloc’ was not declared in this scope
make: *** [Make/linux64GccDPOpt/FieldValueExpressionParser.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

What should I do?

Thanks,
Carlos


That error is a problem in the code generated by bison. Which version of bison do you use? That information should be at the start of the compilation

I have the same problem, or similar at least, and I'm using bison 3.0 (the only one available in the repos of ArchLinux) The full error log is attached in the .zip

I'm using the version cloned from the wiki's SVN, patched and with the line mentioned on the above post commented out, and I've tried it with OpenFOAM 2.2.1 and 2.2.x
I've also tried the developement version, with no luck

Code:

No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
  File "./maintainanceScripts/makeSwakVersionFile.py", line 27
    print "Keeping the last real version number",verstring
                                              ^
SyntaxError: invalid syntax
Bison is version 3.0
Flex is version 2.5.37 (Minor version: 37)
OpenFOAM-version: Major 2 Minor 2 Patch 1 (-1 == x)
No swak4FoamParsers/foamVersion4swak.H. Generated
wmakeLnInclude: linking include files to ./lnInclude
 
(...)
                                                                                                                                       
../FieldValueExpressionParser.yy:5499:13: nota: in expansion of macro ‘sameSize’
lnInclude/swakChecks.H:63:92: error: ‘yylloc’ no se declaró en este ámbito
 #define sameSize(a,b) {Foam::string err=Foam::swakAssertSameSize(a,b); if(err!="") { error(yylloc,err); YYERROR; }}
                                                                                            ^
../FieldValueExpressionParser.yy:5507:13: nota: in expansion of macro ‘sameSize’
lnInclude/swakChecks.H:63:92: error: ‘yylloc’ no se declaró en este ámbito
 #define sameSize(a,b) {Foam::string err=Foam::swakAssertSameSize(a,b); if(err!="") { error(yylloc,err); YYERROR; }}
                                                                                            ^
../FieldValueExpressionParser.yy:5514:13: nota: in expansion of macro ‘sameSize’
make: *** [Make/linux64GccDPOpt/FieldValueExpressionParser.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



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