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

[Other] swak4foam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 30, 2024, 15:29
Default swak4foam
  #1
New Member
 
Karol Celinski
Join Date: Feb 2024
Location: UK
Posts: 11
Rep Power: 2
kac24 is on a distinguished road
Hi,

I am trying to compile swak4Foam for version v2306, by using the commands:

hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam

cd swak4Foam

./AllwmakeAll

This is the error I am getting:

This script is rather crude. If it doesn't work try the steps by hand. And be sure to run it from the root of the swak-installation (as ./maintainanceScripts/compileRequirements.sh). Otherwise it probably won't work

Bison already installed/compiled
Bison successfully compiled
Lua already installed/compiled
Lua successfully compiled

Add /home/k/kac24/codes/swak4Foam/privateRequirements/bin to PATH-variable. The ./Allwmake-script will use this directory automatically

Current OpenFOAM version is v2306.
Previously compiled for OpenFOAM (v2306)

/home/k/kac24/codes/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)

Reading variables from 'swakConfiguration'
Automatic settings from ./swakConfiguration.automatic
Looking for Python 2
Looking for Python 3
Found Python 3.9
Configuring Python 3.9
Using python3.9 at /cm/local/apps/python3/bin/python3.9-config for python3
Python3 Includes: -I/cm/local/apps/python39/include/python3.9 -I/cm/local/apps/python39/include/python3.9 -Wno-unused-result -Wsign-compare -I/cm/local/apps/openssl/include -I/usr/include/libxml2 -DNDEBUG -g -fwrapv -O3 -Wall
Python3 Link: -L/cm/local/apps/python39/lib -lcrypt -ldl -lm -lm -lpython3.9
Using our own Lua at /home/k/kac24/codes/swak4Foam/privateRequirements
Checking swak4Foam-version and generating file
Swak version is 202x.yy.0
hg info: fde145032783 (develop) tip
/usr/bin/which: no bear in (/home/k/kac24/codes/swak4Foam/privateRequirements/bin:/cm/local/apps/python3/bin:/cm/shared/spack/opt/spack/linux-rocky9-x86_64_v3/gcc-12.3.0/openmpi-4.1.5-fzc7xdfepana44icr3ejhbewibepbjkt/bin:/home/k/kac24/codes/v2306-alice3/ThirdParty-v2306/platforms/linux64Gcc/ADIOS2-2.8.3/bin:/home/k/kac24/OpenFOAM/kac24-v2306/platforms/linux64GccDPInt32Opt/bin:/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/site/2306/platforms/linux64GccDPInt32Opt/bin:/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/platforms/linux64GccDPInt32Opt/bin:/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/bin:/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/wmake:/cm/shared/spack/opt/spack/linux-rocky9-x86_64_v3/gcc-11.3.1/gcc-12.3.0-yxgv2blf2cvrmgglf5c3kja4eye5hsbb/bin:/cm/shared/spack/bin:/home/k/kac24/.local/bin:/home/k/kac24/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/home/k/kac24/codes/ParaView/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin)
No 'bear' installed
Bison: /home/k/kac24/codes/swak4Foam/privateRequirements/bin/bison
Flex: /usr/bin/flex
Bison at /home/k/kac24/codes/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4)
Flex is version 2.6.4 (Minor version: 4)
OpenFOAM-version: Major 2306 Minor 0 Patch 0 (-1 == x / 0) Fork: com
No change to swak4FoamParsers/foamVersion4swak.H

Please include the output above when reporting a problem in the compilation. It helps diagnosing the problem


wmake libso swak4FoamParsers
g++ -std=c++11 -m64 -pthread -DOPENFOAM=2306 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPInt32Opt -I/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/finiteVolume/lnInclude -I/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/surfMesh/lnInclude -I/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/sampling/lnInclude -I/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/fileFormats/lnInclude -I/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/dynamicMesh/lnInclude -I/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/lagrangian/basic/lnInclude -I/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/surfMesh/lnInclude -I/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/meshTools/lnInclude -I../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/ -iquote. -IlnInclude -I/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude -I/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OSspecific/POSIX/lnInclude -fPIC -c ../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/outputFilterOutputControl.C -o Make/linux64GccDPInt32Opt/../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/outputFilterOutputControl.o
In file included from /home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude/objectRegistry.H:678,
from /home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude/Time.H:45,
from ../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/outputFilterOutputControl.H:40,
from ../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/outputFilterOutputControl.C:30:
/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude/objectRegistryTemplates.C:1:1: error: expected unqualified-id before '/' token
1 | /home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude/objectRegistryTemplates.C/*---------------------------------------------------------------------------*\
| ^
/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude/objectRegistryTemplates.C: In member function 'Foam::label Foam:bjectRegistry::count(const MatchPredicate&) const':
/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude/objectRegistryTemplates.C:239:41: error: 'predicates' has not been declared
239 | return countImpl(*this, matchClass, predicates::always());
| ^~~~~~~~~~
/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude/objectRegistryTemplates.C: In member function 'Foam::UPtrList<const Type> Foam:bjectRegistry::csorted() const':
/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude/objectRegistryTemplates.C:301:47: error: 'predicates' has not been declared
301 | return objectsTypeImpl<const Type>(*this, predicates::always());
| ^~~~~~~~~~
/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude/objectRegistryTemplates.C: In member function 'Foam::UPtrList<const Type> Foam:bjectRegistry::sorted() const':
/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude/objectRegistryTemplates.C:309:47: error: 'predicates' has not been declared
309 | return objectsTypeImpl<const Type>(*this, predicates::always());
| ^~~~~~~~~~
/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude/objectRegistryTemplates.C: In member function 'Foam::UPtrList<T> Foam:bjectRegistry::sorted()':
/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude/objectRegistryTemplates.C:317:41: error: 'predicates' has not been declared
317 | return objectsTypeImpl<Type>(*this, predicates::always());
| ^~~~~~~~~~
/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude/objectRegistryTemplates.C: In member function 'Foam::wordList Foam:bjectRegistry::names(const MatchPredicate&) const':
/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude/objectRegistryTemplates.C:361:41: error: 'predicates' has not been declared
361 | return namesImpl(*this, matchClass, predicates::always(), false);
| ^~~~~~~~~~
/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude/objectRegistryTemplates.C: In member function 'Foam::wordList Foam:bjectRegistry::names() const':
/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude/objectRegistryTemplates.C:379:39: error: 'predicates' has not been declared
379 | return namesTypeImpl<Type>(*this, predicates::always(), false);
| ^~~~~~~~~~
/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude/objectRegistryTemplates.C: In member function 'Foam::wordList Foam:bjectRegistry::sortedNames(const MatchPredicate&) const':
/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude/objectRegistryTemplates.C:399:41: error: 'predicates' has not been declared
399 | return namesImpl(*this, matchClass, predicates::always(), true);
| ^~~~~~~~~~
/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude/objectRegistryTemplates.C: In member function 'Foam::wordList Foam:bjectRegistry::sortedNames() const':
/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude/objectRegistryTemplates.C:417:39: error: 'predicates' has not been declared
417 | return namesTypeImpl<Type>(*this, predicates::always(), true);
| ^~~~~~~~~~
make: *** [/home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/wmake/rules/General/transform:38: Make/linux64GccDPInt32Opt/../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/outputFilterOutputControl.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


Thanks in advance
kac24 is offline   Reply With Quote

Old   April 2, 2024, 15:01
Default solution
  #2
New Member
 
Karol Celinski
Join Date: Feb 2024
Location: UK
Posts: 11
Rep Power: 2
kac24 is on a distinguished road
For those who come across this thread the solution was to delete whatever was before file header in /home/k/kac24/codes/v2306-alice3/OpenFOAM-v2306/src/OpenFOAM/lnInclude/objectRegistryTemplates.C
kac24 is offline   Reply With Quote

Reply

Tags
openfoam v2306, 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] difficulties installing swak4foam newbie29 OpenFOAM Community Contributions 120 October 21, 2022 04:01
OpenFoam Case crashes using swak4Foam Miguel.Mendez Main CFD Forum 2 March 23, 2021 23:42
InterDyMFoam+simpleFunctionObject Elham OpenFOAM Running, Solving & CFD 5 July 10, 2017 11:59
source term in near wall cell rajcfd OpenFOAM Pre-Processing 5 February 1, 2016 10:31
[swak4Foam] fails in parallel with -otherTime? Phicau OpenFOAM Community Contributions 3 June 26, 2013 13:00


All times are GMT -4. The time now is 20:12.