View Issue Details

IDProjectCategoryView StatusLast Update
0004098OpenFOAMBugpublic2024-06-13 14:41
Reporterpeth Assigned Towill  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformUnixOSOtherOS Version(please specify)
Product Versiondev 
Fixed in Versiondev 
Summary0004098: OpenFOAM-dev compile error with WM_LABEL_SIZE=64
DescriptionOS: arch linux
tested on: 13.06.2024

OpenFOAM-dev compile process results in the following error:

...
lnInclude/dictionaryTemplates.C:490:6: note: candidate: ‘template<class EntryType> void Foam::writeEntryIfDifferent(Ostream&, const word&, const EntryType&, const EntryType&)’
  490 | void Foam::writeEntryIfDifferent
      | ^~~~
lnInclude/dictionaryTemplates.C:490:6: note: template argument deduction/substitution failed:
distributions/unintegrable/unintegrable.C:389:26: note: deduced conflicting types for parameter ‘const EntryType’ (‘int’ and ‘Foam::label’ {aka ‘long int’})
  389 | writeEntryIfDifferent(os, "level", 16, level);
      | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
lnInclude/dictionaryTemplates.C:506:6: note: candidate: ‘template<class EntryType> void Foam::writeEntryIfDifferent(Ostream&, const word&, const unitConversion&, const EntryType&, const EntryType&)’
  506 | void Foam::writeEntryIfDifferent
      | ^~~~
lnInclude/dictionaryTemplates.C:506:6: note: candidate expects 5 arguments, 4 provided
...

note:
    - The OpenFOAM-dev compile process with the label size 32 does not produce this error
    - OpenFOAM-11 was successfully complied with WM_LABEL_SIZE=64 on the same system
Steps To Reproduce#dowload repositories
git clone https://github.com/OpenFOAM/ThirdParty-dev.git
git clone https://github.com/OpenFOAM/OpenFOAM-dev.git

#source OpenFOAM enviromental variables
source OpenFOAM-dev/etc/bashrc
#replacing the label size from 32 to 64
sed -i '89s/32/64/' $FOAM_ETC/bashrc
#source again the updated file
source $FOAM_ETC/bashrc

#compile third party
cd $WM_THIRD_PARTY_DIR && ./Allwmake -j6 2>&1 | tee wmake.log

#compile OF
cd $WM_PROJECT_DIR && ./Allwmake -j6 2>&1 | tee wmake.log
TagsNo tags attached.

Activities

Issue History

Date Modified Username Field Change
2024-06-13 11:51 peth New Issue
2024-06-13 14:41 will Assigned To => will
2024-06-13 14:41 will Status new => resolved
2024-06-13 14:41 will Resolution open => fixed
2024-06-13 14:41 will Fixed in Version => dev
2024-06-13 14:41 will Note Added: 0013260