View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004098 | OpenFOAM | Bug | public | 2024-06-13 11:51 | 2024-06-13 14:41 |
Reporter | peth | Assigned To | will | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Unix | OS | Other | OS Version | (please specify) |
Product Version | dev | ||||
Fixed in Version | dev | ||||
Summary | 0004098: OpenFOAM-dev compile error with WM_LABEL_SIZE=64 | ||||
Description | OS: 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 | ||||
Tags | No tags attached. | ||||
|
Thanks for the report. Fixed by https://github.com/OpenFOAM/OpenFOAM-dev/commit/ba42eb5248be07b2c45bd86bb567742f321d31e4. |