CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] difficulties installing swak4foam

Register Blogs Community New Posts Updated Threads Search

Like Tree13Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 3, 2020, 16:54
Default
  #101
Senior Member
 
Join Date: Jul 2019
Posts: 148
Rep Power: 7
Bodo1993 is on a distinguished road
Thanks. I edited the above with the support center of the cluster as suggested above. when I run ./Allwmake, I get the below error (last lines of it), I am wondering how to fix it:

CommonValueExpressionDriver.C: In member function ‘Foam::string Foam::CommonValueExpressionDriver:utputEntry()’: CommonValueExpressionDriver.C:1907:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<scalar>(true)()); ^~~~~~~~~~CommonValueExpressionDriver.C:1907:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<scalar>(true)()); ^~~~~~~~~~ writer_CommonValueExpressionDriver.C:1913:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<vector>(true)()); ^~~~~~~~~~CommonValueExpressionDriver.C:1913:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<vector>(true)()); ^~~~~~~~~~ writer_CommonValueExpressionDriver.C:1919:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<tensor>(true)()); ^~~~~~~~~~CommonValueExpressionDriver.C:1919:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<tensor>(true)()); ^~~~~~~~~~ writer_CommonValueExpressionDriver.C:1925:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<symmTensor>(true)() ); ^~~~~~~~~~CommonValueExpressionDriver.C:1925:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<symmTensor>(true)() ); ^~~~~~~~~~ writer_CommonValueExpressionDriver.C:1931:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<sphericalTensor>(tr ue)()); ^~~~~~~~~~CommonValueExpressionDriver.C:1931:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<sphericalTensor>(tr ue)()); ^~~~~~~~~~ writer_make: *** [/cvmfs/soft.computecanada.ca/easybuild/software/2017/avx512/MPI/gcc7.3/openmpi3.1/openfoam/6.20180813/OpenFOAM-6.20180813/wmake/rules/General/transform:26: Make/linux64GccDPInt32Opt/CommonValueExpressionDriver.o] Error 1Parser library did not compile OK. No sense continuing as everything else depends on itRequirements for Library not satisfied. I see no sense in going onCheck the README before you go on to ask. And search: Most likely your problem occurred to 5 other people before and has been solved on the MessageBoard
Bodo1993 is offline   Reply With Quote

Old   August 4, 2020, 07:55
Default
  #102
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Bodo1993 View Post
Thanks. I edited the above with the support center of the cluster as suggested above. when I run ./Allwmake, I get the below error (last lines of it), I am wondering how to fix it:

CommonValueExpressionDriver.C: In member function ‘Foam::string Foam::CommonValueExpressionDriver:utputEntry()’: CommonValueExpressionDriver.C:1907:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<scalar>(true)()); ^~~~~~~~~~CommonValueExpressionDriver.C:1907:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<scalar>(true)()); ^~~~~~~~~~ writer_CommonValueExpressionDriver.C:1913:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<vector>(true)()); ^~~~~~~~~~CommonValueExpressionDriver.C:1913:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<vector>(true)()); ^~~~~~~~~~ writer_CommonValueExpressionDriver.C:1919:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<tensor>(true)()); ^~~~~~~~~~CommonValueExpressionDriver.C:1919:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<tensor>(true)()); ^~~~~~~~~~ writer_CommonValueExpressionDriver.C:1925:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<symmTensor>(true)() ); ^~~~~~~~~~CommonValueExpressionDriver.C:1925:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<symmTensor>(true)() ); ^~~~~~~~~~ writer_CommonValueExpressionDriver.C:1931:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<sphericalTensor>(tr ue)()); ^~~~~~~~~~CommonValueExpressionDriver.C:1931:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<sphericalTensor>(tr ue)()); ^~~~~~~~~~ writer_make: *** [/cvmfs/soft.computecanada.ca/easybuild/software/2017/avx512/MPI/gcc7.3/openmpi3.1/openfoam/6.20180813/OpenFOAM-6.20180813/wmake/rules/General/transform:26: Make/linux64GccDPInt32Opt/CommonValueExpressionDriver.o] Error 1Parser library did not compile OK. No sense continuing as everything else depends on itRequirements for Library not satisfied. I see no sense in going onCheck the README before you go on to ask. And search: Most likely your problem occurred to 5 other people before and has been solved on the MessageBoard
Please use the CODE-environment for error messages. This is completely unreadable


According to the error message his is a patched version of OF6. Is this the same version as the one on your workstation?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   August 4, 2020, 12:33
Default
  #103
Senior Member
 
Join Date: Jul 2019
Posts: 148
Rep Power: 7
Bodo1993 is on a distinguished road
Hi,
It is working on my PC. The OpenFOAM version is 6. The gcc version is 8.3.0.
However, it is not on the cluster. The cluster uses OpenFOAM version 6.20180813.
Bodo1993 is offline   Reply With Quote

Old   August 4, 2020, 14:28
Default
  #104
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Bodo1993 View Post
Hi,
It is working on my PC. The OpenFOAM version is 6. The gcc version is 8.3.0.
However, it is not on the cluster. The cluster uses OpenFOAM version 6.20180813.
The writeEntry that the error message complains about is something that changed between OF 6 and OF 7. I'm not sure (because the way you posted them the error messages are even harder to read than usually) but it seems that the compilation system of swak4Foam seems to believe that the version installed on the cluster is an OF 7
swak4Foam has only been tested with OF6 as released on the 10th of July 2018 and then with OF7. But not the intermediate versions from the git-repository
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   August 4, 2020, 14:33
Default
  #105
Senior Member
 
Join Date: Jul 2019
Posts: 148
Rep Power: 7
Bodo1993 is on a distinguished road
Hi gschaider, thanks for the reply. below is the error in the code environment.
Code:
CommonValueExpressionDriver.C: In member function ‘Foam::string Foam::CommonValueExpressionDriver:utputEntry()’: CommonValueExpressionDriver.C:1907:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<scalar>
(true)());

^~~~~~~~~~CommonValueExpressionDriver.C:1907:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<scalar>(true)()); ^~~~~~~~~~ writer_CommonValueExpressionDriver.C:1913:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<vector>(true)()); 

^~~~~~~~~~CommonValueExpressionDriver.C:1913:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<vector>(true)()); ^~~~~~~~~~ writer_CommonValueExpressionDriver.C:1919:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<tensor>(true)()); 

^~~~~~~~~~CommonValueExpressionDriver.C:1919:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<tensor>(true)()); ^~~~~~~~~~ writer_CommonValueExpressionDriver.C:1925:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<symmTensor>(true)() ); 

^~~~~~~~~~CommonValueExpressionDriver.C:1925:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<symmTensor>(true)() ); ^~~~~~~~~~ writer_CommonValueExpressionDriver.C:1931:9: error: ‘writeEntry’ was not declared in this scope writeEntry(o,result_.getResult<sphericalTensor>(tr ue)()); 

^~~~~~~~~~CommonValueExpressionDriver.C:1931:9: note: suggested alternative: ‘writer_’ writeEntry(o,result_.getResult<sphericalTensor>(tr ue)()); 

^~~~~~~~~~ writer_make: *** [/cvmfs/soft.computecanada.ca/easybuild/software/2017/avx512/MPI/gcc7.3/openmpi3.1/openfoam/6.20180813/OpenFOAM-6.20180813/wmake/rules/General/transform:26: Make/linux64GccDPInt32Opt/CommonValueExpressionDriver.o] 

Error 1Parser 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 onCheck the README before you go on to ask. And search: Most likely your problem occurred to 5 other people before and has been solved on the MessageBoard
Bodo1993 is offline   Reply With Quote

Old   November 19, 2020, 06:59
Default
  #106
Member
 
Andreas P.
Join Date: May 2017
Posts: 41
Rep Power: 9
AndreasPe is on a distinguished road
Hey Bodo!

Did you solve the problem? I came accross the same error when i was trying to compile swak4Foam for my OpenFOAM-6 installation (SHA 47517f2ebb1bdbacb8e3ce4b15110cd252953f87).


I both tried with the default and the develop branch of the hg repository. With the develop branch, another compilation error occured...
AndreasPe is offline   Reply With Quote

Old   November 19, 2020, 07:45
Default
  #107
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by AndreasPe View Post
Hey Bodo!

Did you solve the problem? I came accross the same error when i was trying to compile swak4Foam for my OpenFOAM-6 installation (SHA 47517f2ebb1bdbacb8e3ce4b15110cd252953f87).


I both tried with the default and the develop branch of the hg repository. With the develop branch, another compilation error occured...

I can't find a commit with that has in the Mercurial-Repository. What is the output of

Code:
hg id
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   November 19, 2020, 08:12
Default
  #108
Member
 
Andreas P.
Join Date: May 2017
Posts: 41
Rep Power: 9
AndreasPe is on a distinguished road
The SHA i posted was the one from my OpenFOAM-6 version.

The hg id is the following for the default branch of swak4Foam:


76087ce82a32




Edit: Btw, thank you for the fast reply!
AndreasPe is offline   Reply With Quote

Old   November 19, 2020, 10:31
Default
  #109
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by AndreasPe View Post
The SHA i posted was the one from my OpenFOAM-6 version.

The hg id is the following for the default branch of swak4Foam:


76087ce82a32




Edit: Btw, thank you for the fast reply!
And how does the compilation fail? Error message?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   November 19, 2020, 10:49
Default
  #110
Member
 
Andreas P.
Join Date: May 2017
Posts: 41
Rep Power: 9
AndreasPe is on a distinguished road
It was the same error message as Bodo1993 posted before with the default branch:


Code:
 CommonValueExpressionDriver.C: In member function ‘Foam::string Foam::CommonValueExpressionDriver::outputEntry()’:
CommonValueExpressionDriver.C:1907:55: error: ‘writeEntry’ was not declared in this scope
         writeEntry(o,result_.getResult<scalar>(true)());
                                                       ^
CommonValueExpressionDriver.C:1913:55: error: ‘writeEntry’ was not declared in this scope
         writeEntry(o,result_.getResult<vector>(true)());
                                                       ^
CommonValueExpressionDriver.C:1919:55: error: ‘writeEntry’ was not declared in this scope
         writeEntry(o,result_.getResult<tensor>(true)());
                                                       ^
CommonValueExpressionDriver.C:1925:59: error: ‘writeEntry’ was not declared in this scope
         writeEntry(o,result_.getResult<symmTensor>(true)());
                                                           ^
CommonValueExpressionDriver.C:1931:64: error: ‘writeEntry’ was not declared in this scope
         writeEntry(o,result_.getResult<sphericalTensor>(true)());
With the develop branch, the following error occurs:

Code:
In file included from lnInclude/CommonValueExpressionDriver.H:49:0,
                 from helpers/swakExprString.C:35:
FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.H:76:21: error: expected template-name before ‘<’ token
     public TableBase<Type>
                     ^
FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.H:76:21: error: expected ‘{’ before ‘<’ token
FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.H:76:21: error: expected unqualified-id before ‘<’ token
In file included from FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.H:124:0,
                 from lnInclude/CommonValueExpressionDriver.H:49,
                 from helpers/swakExprString.C:35:
FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.C:35:1: error: invalid use of incomplete type ‘class Foam::Function1Types::TableFile<Type>’
 )
 ^
In file included from lnInclude/CommonValueExpressionDriver.H:49:0,
                 from helpers/swakExprString.C:35:
FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.H:74:7: error: declaration of ‘class Foam::Function1Types::TableFile<Type>’
 class TableFile
       ^
In file included from FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.H:124:0,
                 from lnInclude/CommonValueExpressionDriver.H:49,
                 from helpers/swakExprString.C:35:
FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.C:62:76: error: invalid use of incomplete type ‘class Foam::Function1Types::TableFile<Type>’
 Foam::Function1Types::TableFile<Type>::TableFile(const TableFile<Type>& tbl)
                                                                            ^
In file included from lnInclude/CommonValueExpressionDriver.H:49:0,
                 from helpers/swakExprString.C:35:
FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.H:74:7: error: declaration of ‘class Foam::Function1Types::TableFile<Type>’
 class TableFile
       ^
In file included from FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.H:124:0,
                 from lnInclude/CommonValueExpressionDriver.H:49,
                 from helpers/swakExprString.C:35:
FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.C:72:51: error: invalid use of incomplete type ‘class Foam::Function1Types::TableFile<Type>’
 Foam::Function1Types::TableFile<Type>::~TableFile()
                                                   ^
In file included from lnInclude/CommonValueExpressionDriver.H:49:0,
                 from helpers/swakExprString.C:35:
FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.H:74:7: error: declaration of ‘class Foam::Function1Types::TableFile<Type>’
 class TableFile
       ^
In file included from FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.H:124:0,
                 from lnInclude/CommonValueExpressionDriver.H:49,
                 from helpers/swakExprString.C:35:
FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.C:79:68: error: invalid use of incomplete type ‘class Foam::Function1Types::TableFile<Type>’
 void Foam::Function1Types::TableFile<Type>::writeData(Ostream& os) const
                                                                    ^
In file included from lnInclude/CommonValueExpressionDriver.H:49:0,
                 from helpers/swakExprString.C:35:
FOAM-DIRECTORY/src/OpenFOAM/lnInclude/TableFile.H:74:7: error: declaration of ‘class Foam::Function1Types::TableFile<Type>’
 class TableFile
       ^
In file included from helpers/swakExprString.C:35:0:
lnInclude/CommonValueExpressionDriver.H:50:28: error: ‘Function1s’ was not declared in this scope
 #define interpolationTable Function1s::TableFile
                            ^
lnInclude/CommonValueExpressionDriver.H:185:15: note: in expansion of macro ‘interpolationTable’
     HashTable<interpolationTable<scalar> > lines_;
               ^
In file included from helpers/swakExprString.C:35:0:
lnInclude/CommonValueExpressionDriver.H:185:42: error: template argument 1 is invalid
     HashTable<interpolationTable<scalar> > lines_;
                                          ^
In file included from helpers/swakExprString.C:35:0:
lnInclude/CommonValueExpressionDriver.H:50:28: error: ‘Function1s’ was not declared in this scope
 #define interpolationTable Function1s::TableFile
                            ^
lnInclude/CommonValueExpressionDriver.H:187:15: note: in expansion of macro ‘interpolationTable’
     HashTable<interpolationTable<scalar> > lookup_;
               ^
In file included from helpers/swakExprString.C:35:0:
lnInclude/CommonValueExpressionDriver.H:187:42: error: template argument 1 is invalid
     HashTable<interpolationTable<scalar> > lookup_;
                                          ^
In file included from lnInclude/CommonValueExpressionDriver.H:866:0,
                 from helpers/swakExprString.C:35:
lnInclude/CommonValueExpressionDriverI.H: In member function ‘bool Foam::CommonValueExpressionDriver::isLine(const Foam::word&) const’:
lnInclude/CommonValueExpressionDriverI.H:1132:23: error: request for member ‘found’ in ‘((const Foam::CommonValueExpressionDriver*)this)->Foam::CommonValueExpressionDriver::lines_’, which is of non-class type ‘const int’
         return lines_.found(name);
                       ^
lnInclude/CommonValueExpressionDriverI.H: In member function ‘bool Foam::CommonValueExpressionDriver::isLookup(const Foam::word&) const’:
lnInclude/CommonValueExpressionDriverI.H:1137:24: error: request for member ‘found’ in ‘((const Foam::CommonValueExpressionDriver*)this)->Foam::CommonValueExpressionDriver::lookup_’, which is of non-class type ‘const int’
         return lookup_.found(name);
                        ^
FOAM-DIRECTORY/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/helpers/swakExprString.o' failed
make: *** [Make/linux64GccDPInt32Opt/helpers/swakExprString.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
Check the README before you go on to ask. And search: Most likely your problem occurred to 5 other people before and has been solved on the MessageBoard
As is stated when compiling the code, i also send this output at the beginning of the compilation:

Code:
This is a clean install

SWAK-DIRECTORY/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)

Reading variables from 'swakConfiguration'
Looking for Python 2
Found Python 2.7
Configuring Python 2.7
Using python2.7 at /usr/bin/python2.7-config for python2
Looking for Python 3
Found Python 3.4
Configuring Python 3.4
Using python3.4 at /usr/bin/python3.4-config for python3
Using our own Lua at SWAK-DIRECTORY/swak4Foam/privateRequirements
Checking swak4Foam-version and generating file
Swak version is 20xx.yy.0
hg info: 58b9a1dfa14c (develop) tip
which: no bear in PATH
No 'bear' installed
Bison: SWAK-DIRECTORY/swak4Foam/privateRequirements/bin/bison
Flex: /usr/bin/flex
Bison at SWAK-DIRECTORY/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4)
Flex is version 2.5.37 (Minor version: 37)
OpenFOAM-version: Major 2999 Minor 9 Patch -1 (-1 == x / 98) Fork: org
No swak4FoamParsers/foamVersion4swak.H. Generated
PS: I "censored" some of the path names for "data protection" reasons (FOAM_DIRECTORY, PATH, and SWAK_DIRECTORY...)
AndreasPe is offline   Reply With Quote

Old   November 19, 2020, 11:59
Default
  #111
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by AndreasPe View Post
It was the same error message as Bodo1993 posted before with the default branch:


Code:
 CommonValueExpressionDriver.C: In member function ‘Foam::string Foam::CommonValueExpressionDriver::outputEntry()’:
CommonValueExpressionDriver.C:1907:55: error: ‘writeEntry’ was not declared in this scope
         writeEntry(o,result_.getResult<scalar>(true)());
                                                       ^
CommonValueExpressionDriver.C:1913:55: error: ‘writeEntry’ was not declared in this scope
         writeEntry(o,result_.getResult<vector>(true)());
                                                       ^
CommonValueExpressionDriver.C:1919:55: error: ‘writeEntry’ was not declared in this scope
         writeEntry(o,result_.getResult<tensor>(true)());
                                                       ^
CommonValueExpressionDriver.C:1925:59: error: ‘writeEntry’ was not declared in this scope
         writeEntry(o,result_.getResult<symmTensor>(true)());
                                                           ^
CommonValueExpressionDriver.C:1931:64: error: ‘writeEntry’ was not declared in this scope
         writeEntry(o,result_.getResult<sphericalTensor>(true)());

That is strange: that line should only be compiled for OF7 and higher


Quote:
Originally Posted by AndreasPe View Post
As is stated when compiling the code, i also send this output at the beginning of the compilation:

Code:
This is a clean install

SWAK-DIRECTORY/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)

Reading variables from 'swakConfiguration'
Looking for Python 2
Found Python 2.7
Configuring Python 2.7
Using python2.7 at /usr/bin/python2.7-config for python2
Looking for Python 3
Found Python 3.4
Configuring Python 3.4
Using python3.4 at /usr/bin/python3.4-config for python3
Using our own Lua at SWAK-DIRECTORY/swak4Foam/privateRequirements
Checking swak4Foam-version and generating file
Swak version is 20xx.yy.0
hg info: 58b9a1dfa14c (develop) tip
which: no bear in PATH
No 'bear' installed
Bison: SWAK-DIRECTORY/swak4Foam/privateRequirements/bin/bison
Flex: /usr/bin/flex
Bison at SWAK-DIRECTORY/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4)
Flex is version 2.5.37 (Minor version: 37)
OpenFOAM-version: Major 2999 Minor 9 Patch -1 (-1 == x / 98) Fork: org
No swak4FoamParsers/foamVersion4swak.H. Generated
PS: I "censored" some of the path names for "data protection" reasons (FOAM_DIRECTORY, PATH, and SWAK_DIRECTORY...)

Aaaah. The major version 2999 means that the compilation script could not determine the OF-version that is used. For that it uses the content of the WM_PROJECT_VERSION environment variable. Check with
Code:
echo $WM_PROJECT_VERSION
which value that has. If it is not set and you're sure that you use OF 6 use
Code:
export WM_PROJECT_VERSION=6
before compilation
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   November 19, 2020, 12:14
Default
  #112
Member
 
Andreas P.
Join Date: May 2017
Posts: 41
Rep Power: 9
AndreasPe is on a distinguished road
Ah yeah! Thank you very much Bernhard!

Actually i slightly modified OpenFOAM-6 and therefor changed the WM_PROJECT_VERSION variable to something like 6-XYZ. Completely makes sense that it couldn't find out the project version then. I now reverted the change of WM_PROJECT_VERSION and the compilation seems to work fine.



Thanks again and have a nice evening
AndreasPe is offline   Reply With Quote

Old   May 24, 2021, 07:53
Default error of compling
  #113
Senior Member
 
kimy
Join Date: Mar 2019
Location: https://t.me/pump_upp
Posts: 164
Rep Power: 7
qi.yang@polimi.it is on a distinguished road
Send a message via ICQ to qi.yang@polimi.it Send a message via AIM to qi.yang@polimi.it Send a message via Yahoo to qi.yang@polimi.it
Hi guys, I executed two times of ./Allwmake and the following messages came to me. I did not find the solution after I read your posts. Please give me some suggestions regarding this issue. I failed to compile it on the cluster although I tried a lot of ways. Any help will be greatly appreciated!
Code:
Previously compiled for OpenFOAM (v2012)

/galileo/home/userexternal/qyang001/OpenFOAM/qyang001-v2012/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)

No file 'swakConfiguration'. Python etc won't work. See README for details
Try 'ln -s swakConfiguration.automatic swakConfiguration' for automatic configuration. BEWARE: this does not work on some systems
Checking swak4Foam-version and generating file
Swak version is 0.4.1
Bison is version 2.7.12-4996
Flex is version 2.5.37 (Minor version: 37)
OpenFOAM-version: Major 2999 Minor 9 Patch -1 (-1 == x / 98) Fork: openfoam
No change to swak4FoamParsers/foamVersion4swak.H
wmake libso swak4FoamParsers
icpc -std=c++11 -pthread -fp-trap=common -fp-model precise -DOPENFOAM=2012 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-unknown-pragmas -diag-disable 327,654,1125,1292,2289,2304,11062,11074,11076  -O3 -xCORE-AVX2  -DNoRepository -IMake/linux64IccDPInt32OptBDW      -I/cineca/prod/opt/applications/openfoam+/v2012/intelmpi--2018--binary/OpenFOAM-v2012+/src/finiteVolume/lnInclude -I/cineca/prod/opt/applications/openfoam+/v2012/intelmpi--2018--binary/OpenFOAM-v2012+/src/surfMesh/lnInclude -I/cineca/prod/opt/applications/openfoam+/v2012/intelmpi--2018--binary/OpenFOAM-v2012+/src/sampling/lnInclude -I/cineca/prod/opt/applications/openfoam+/v2012/intelmpi--2018--binary/OpenFOAM-v2012+/src/fileFormats/lnInclude -I/cineca/prod/opt/applications/openfoam+/v2012/intelmpi--2018--binary/OpenFOAM-v2012+/src/triSurface/lnInclude -I/cineca/prod/opt/applications/openfoam+/v2012/intelmpi--2018--binary/OpenFOAM-v2012+/src/dynamicMesh/lnInclude -I/cineca/prod/opt/applications/openfoam+/v2012/intelmpi--2018--binary/OpenFOAM-v2012+/src/lagrangian/basic/lnInclude -I/cineca/prod/opt/applications/openfoam+/v2012/intelmpi--2018--binary/OpenFOAM-v2012+/src/surfMesh/lnInclude -I/cineca/prod/opt/applications/openfoam+/v2012/intelmpi--2018--binary/OpenFOAM-v2012+/src/meshTools/lnInclude -I../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/ -iquote. -IlnInclude -I/cineca/prod/opt/applications/openfoam+/v2012/intelmpi--2018--binary/OpenFOAM-v2012+/src/OpenFOAM/lnInclude -I/cineca/prod/opt/applications/openfoam+/v2012/intelmpi--2018--binary/OpenFOAM-v2012+/src/OSspecific/POSIX/lnInclude   -fPIC -c helpers/exprString.C -o Make/linux64IccDPInt32OptBDW/helpers/exprString.o
In file included from helpers/exprString.C(39):
./CommonValueExpressionDriver.H(716): error: class "Foam::meshToMesh" has no member "imCellVolumeWeight"
          meshToMesh::imCellVolumeWeight
                      ^

compilation aborted for helpers/exprString.C (code 2)
make: *** [Make/linux64IccDPInt32OptBDW/helpers/exprString.o] Error 2
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
Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard
qi.yang@polimi.it is offline   Reply With Quote

Old   June 15, 2021, 09:35
Default Paser library issue with OF 4.x
  #114
New Member
 
Gregoire Varillon
Join Date: May 2021
Posts: 3
Rep Power: 5
gregvar is on a distinguished road
Dear all,


It seems that I have the same Parser library compilation issue than others in this thread. I tried the solution strategies explained above but none of them succeeded. Here is my configuration:
> Ubuntu 20.04.2 LTS
> OpenFOAM 4.x
> swak4Foam development version (as specified on the wiki https://openfoamwiki.net/index.php/I...OAM_4.0_to_4.x)

Code:
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam (cd swak4Foam && hg update develop)

Then I followed the instructions, namely
Code:
./maintainanceScripts/compileRequirements.sh
./Allwmake > log.make 2>&1

The compilation ends on the message "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"


Here is the first (and only!) error message:
Code:
/home/Me/OpenFOAM/OpenFOAM-4.x/src/OpenFOAM/lnInclude/PackedListI.H:550:13: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
  550 |     return *this;
         |                 ^~~~

And this is the head of the log.make:
Code:
Current OpenFOAM version is 4.x.
Previously compiled for OpenFOAM (4.x)

/home/Me/OpenFOAM/Me-4.x/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)

No file 'swakConfiguration'. Python etc won't work. See README for details
Try 'ln -s swakConfiguration.automatic swakConfiguration' for automatic configuration. BEWARE: this does not work on some systems
Checking swak4Foam-version and generating file
Swak version is 202x.yy.0
hg info: c90337bb9368 (develop) tip
No 'bear' installed
Bison: /home/Me/OpenFOAM/Me-4.x/swak4Foam/privateRequirements/bin/bison
Flex: /usr/bin/flex
Bison at /home/Me/OpenFOAM/Me-4.x/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4)
Flex is version 2.6.4 (Minor version: 4)
OpenFOAM-version: Major 4 Minor 0 Patch 0 (-1 == x / 0) Fork: org
No change to swak4FoamParsers/foamVersion4swak.H

I also went the "Understanding Error Messages" page, but nothing seems to workaround.


> Do you have any insight about this issue?
> The wiki specifies some patches for OF 4.0. Is it also necessary for OF 4.x? (since it is not the case for OF 4.1)
> If yes, I am still a bit lost on how to use these two files as "patches"



The complete log.make exceeds the limit size for attachement by 15KB so I removed some parts of the log.make attached (symbolized by [...] in the file). But I can send the full version by any other mean.



Looking forward to reading you.
Grégoire
Attached Files
File Type: txt log.make.txt (191.2 KB, 0 views)
gregvar is offline   Reply With Quote

Old   June 15, 2021, 12:14
Default
  #115
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by gregvar View Post
Dear all,


It seems that I have the same Parser library compilation issue than others in this thread. I tried the solution strategies explained above but none of them succeeded. Here is my configuration:
> Ubuntu 20.04.2 LTS
> OpenFOAM 4.x
> swak4Foam development version (as specified on the wiki https://openfoamwiki.net/index.php/I...OAM_4.0_to_4.x)

Code:
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam (cd swak4Foam && hg update develop)
Then I followed the instructions, namely
Code:
./maintainanceScripts/compileRequirements.sh
./Allwmake > log.make 2>&1
The compilation ends on the message "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"


Here is the first (and only!) error message:
Code:
/home/Me/OpenFOAM/OpenFOAM-4.x/src/OpenFOAM/lnInclude/PackedListI.H:550:13: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
  550 |     return *this;
         |                 ^~~~
And this is the head of the log.make:
Code:
Current OpenFOAM version is 4.x.
Previously compiled for OpenFOAM (4.x)

/home/Me/OpenFOAM/Me-4.x/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)

No file 'swakConfiguration'. Python etc won't work. See README for details
Try 'ln -s swakConfiguration.automatic swakConfiguration' for automatic configuration. BEWARE: this does not work on some systems
Checking swak4Foam-version and generating file
Swak version is 202x.yy.0
hg info: c90337bb9368 (develop) tip
No 'bear' installed
Bison: /home/Me/OpenFOAM/Me-4.x/swak4Foam/privateRequirements/bin/bison
Flex: /usr/bin/flex
Bison at /home/Me/OpenFOAM/Me-4.x/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4)
Flex is version 2.6.4 (Minor version: 4)
OpenFOAM-version: Major 4 Minor 0 Patch 0 (-1 == x / 0) Fork: org
No change to swak4FoamParsers/foamVersion4swak.H
I also went the "Understanding Error Messages" page, but nothing seems to workaround.


> Do you have any insight about this issue?
> The wiki specifies some patches for OF 4.0. Is it also necessary for OF 4.x? (since it is not the case for OF 4.1)
> If yes, I am still a bit lost on how to use these two files as "patches"



The complete log.make exceeds the limit size for attachement by 15KB so I removed some parts of the log.make attached (symbolized by [...] in the file). But I can send the full version by any other mean.



Looking forward to reading you.
Grégoire

Hm. The oldest foundation-release that I currently have installed is 5. So I can't directly reproduce your problem. The PackedList-error is a problem in the OpenFOAM-sources. Where did you get that 4.x from (maybe it is an unstable git-version)
gregvar likes this.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   June 15, 2021, 12:22
Default
  #116
New Member
 
Gregoire Varillon
Join Date: May 2021
Posts: 3
Rep Power: 5
gregvar is on a distinguished road
Dear Bernhard,


Thank you for your prompt answer. I got OF 4.x from https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04, precisely


git clone https://github.com/OpenFOAM/OpenFOAM-4.x.git

git clone https://github.com/OpenFOAM/ThirdParty-4.x.git


The instructions that I've followed for swak4Foam also come from Openfoamwiki.net.


Best,
Grégoire
gregvar is offline   Reply With Quote

Old   June 15, 2021, 17:14
Default
  #117
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by gregvar View Post
Dear Bernhard,


Thank you for your prompt answer. I got OF 4.x from https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04, precisely


git clone https://github.com/OpenFOAM/OpenFOAM-4.x.git

git clone https://github.com/OpenFOAM/ThirdParty-4.x.git


The instructions that I've followed for swak4Foam also come from Openfoamwiki.net.


Best,
Grégoire

There is nothing I can do. The OpenFOAM sources (not swak) you use are plain broken. At https://github.com/OpenFOAM/OpenFOAM.../PackedListI.H line 550 the compiler complains about the return statement in a function that is not supposed to return anything (void). I checked: the next version that I have (5.0) has the same function without the offending return-statement.



Is there a particular reason to use an outdated development version of OpenFOAM?

I recommend sticking to released versions (these are also the only ones I test swak4Foam against) or the newest development versions. But stay clear of the .x versions unless you are prepared to fix compilation problems yourself
gregvar likes this.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   June 16, 2021, 04:11
Default
  #118
New Member
 
Gregoire Varillon
Join Date: May 2021
Posts: 3
Rep Power: 5
gregvar is on a distinguished road
Ok thank you for your insights. I'll deal with this information.
gregvar is offline   Reply With Quote

Old   October 14, 2022, 17:00
Default
  #119
New Member
 
I. L.
Join Date: Aug 2022
Location: Germany
Posts: 5
Rep Power: 4
i.linch is on a distinguished road
Quote:
Originally Posted by AnkitRK View Post
Dear all,


I am new to the Linux and trying to install Swak4foam for openfoam2.1. During the build I got the following error.

Include/patchedInterpolation2DTable.C(38): error: call of an object of a class type without appropriate operator() or conversion functions to pointer-to-function type
reader_()(fName, *this);
^
detected during:
instantiation of "void Foam::interpolation2DTable<Type>::readTable() [with Type=Foam::scalar={Foam::doubleScalar={double}}]" at line 101
instantiation of "Foam::interpolation2DTable<Type>::interpolation2D Table(const Foam::dictionary &) [with Type=Foam::scalar={Foam::doubleScalar={double}}]" at line 1624 of "CommonValueExpressionDriver.C"
instantiation of "void Foam::CommonValueExpressionDriver::readTables(Foam ::Istream &, Foam::HashTable<TableType, Foam::word, Foam::string::hash> &, bool) [with TableType=Foam::interpolation2DTable<Foam::scalar= {Foam::doubleScalar={double}}>]" at line 389 of "CommonValueExpressionDriver.C"

lnInclude/patchedInterpolation2DTable.C(377): error: identifier "lessOp" is undefined
label x0i = Xi(lessOp<scalar>(), valueX, false);
^

lnInclude/patchedInterpolation2DTable.C(377): error: type name is not allowed
label x0i = Xi(lessOp<scalar>(), valueX, false);
^

lnInclude/patchedInterpolation2DTable.C(377): error: expected an expression
label x0i = Xi(lessOp<scalar>(), valueX, false);
^

lnInclude/patchedInterpolation2DTable.C(378): error: identifier "greaterOp" is undefined
label x1i = Xi(greaterOp<scalar>(), valueX, true);
^

lnInclude/patchedInterpolation2DTable.C(378): error: type name is not allowed
label x1i = Xi(greaterOp<scalar>(), valueX, true);
^

lnInclude/patchedInterpolation2DTable.C(378): error: expected an expression
label x1i = Xi(greaterOp<scalar>(), valueX, true);
^

compilation aborted for CommonValueExpressionDriver.C (code 2)
CommonValueExpressionDriver.dep:543: recipe for target 'Make/linux64IccDPOpt/CommonValueExpressionDriver.o' failed
make: *** [Make/linux64IccDPOpt/CommonValueExpressionDriver.o] Error 2
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
Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard


It would be helpful if you can guide me how to handle this error.

Thank you in advance
Hi,

I experience the same problems as AnkitRK, while trying to build Swak4Foam for OF-2.1.x

If you ask me, why do I need OF 2.1.x... Well, I implemented some solvers years ago and didn't touch OpenFOAM (and CFD in general) for a very long time. Now, I need to reactivate them. Actually, I don't mind moving to a newer OF version, but I'm afraid that wouldn't be straightforward and easy. So first I need to make my old implementation work and do plenty of reverse engineering to recall all the stuff I did.

Since I failed to build the newest Swak4Foam on my system (Ubuntu 16.04.7 LTS), I also tried to build two other old versions of Swak4Foam I found in my old backup. These where v0.1.6 and v0.2.4 and I was apparently using them back that day with the same OF-version. But on my current system I was not able to build them either.

I would appreciate your help!

Cheers
Attached Files
File Type: gz log.Allwmake.v2021.05.0.tar.gz (1.7 KB, 0 views)
File Type: gz log.compileRequirements.v2021.05.0.tar.gz (434 Bytes, 0 views)
File Type: gz log.Allwmake.v0.1.6.tar.gz (5.6 KB, 0 views)
File Type: gz log.Allwmake.v0.2.4.tar.gz (2.8 KB, 0 views)

Last edited by i.linch; October 17, 2022 at 04:12.
i.linch is offline   Reply With Quote

Old   October 17, 2022, 09:18
Default
  #120
New Member
 
I. L.
Join Date: Aug 2022
Location: Germany
Posts: 5
Rep Power: 4
i.linch is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Hm. I guess there is a reason that you use a 8 year old version of OF. The oldest version that I have currently available is 2.3 and that compiles without problems (it is the oldest version that I test against). The file you're having problems with is in swa since 2015 and hasn't been changed since. So I guess all swak-versions since 2015 break with OF 2.1.
So your best chance is going back to a version that was released before October 2015 and try to compile that (of course the latest features features would be missing)
Or if you're hardcore: find the relevant commit, try to reverse apply it and hope that compiles without these changes (if that makes you go "hä?" then you're probably not hardcore)
I also tried to compile s4F with OF 2.3 as you mentioned that it compiles without errors. But I couldn't wangle it either
Attached Files
File Type: gz logs_of231_s4F-2021.05.0.tar.gz (5.3 KB, 0 views)

Last edited by i.linch; October 18, 2022 at 12:12.
i.linch is offline   Reply With Quote

Reply

Tags
swak4faom, swak4foam error


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] Installing swak4Foam 0.4.0 on ubuntu 14.04 JFM OpenFOAM Community Contributions 1 October 30, 2016 10:43
[swak4Foam] Installing swak4Foam on ubuntu 12.04 fluidflowsteel OpenFOAM Community Contributions 1 June 28, 2016 15:02
[swak4Foam] Installing swak4Foam with openFoam v3.0+ RebelLion OpenFOAM Community Contributions 0 March 11, 2016 20:10
[swak4Foam] fails in parallel with -otherTime? Phicau OpenFOAM Community Contributions 3 June 26, 2013 14:00
[swak4Foam] Installing swak4Foam to OpenFOAM in mac Kaquesang OpenFOAM Community Contributions 22 January 21, 2013 12:51


All times are GMT -4. The time now is 00:44.