View Issue Details

IDProjectCategoryView StatusLast Update
0003858OpenFOAMPatchpublic2023-04-18 09:28
ReporterTZirwes Assigned Towill  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSOtherOS Version(please specify)
Product Version10 
Fixed in Version10 
Summary0003858: OpenFOAM 10 cannot be compiled with 64 bits labels
DescriptionIn a couple of places, invalid function calls are generated when compiling OpenFOAM 10 with 64 bit labels. A patch is attached that casts some of the literals ("0", "1" and "-1") into the "label" type to resolve the compiler errors.
Steps To ReproduceCompile OpenFOAM 10 with 64 bit labels -> compiler errors occur
Apply the patch and compile again -> compiles without errors
Additional InformationTested on OpenSuse, Ubuntu WSL and RedHat with gcc 7.1 and gcc 11
TagsNo tags attached.

Relationships

has duplicate 0003975 closedhenry Allwmake fails when WM_LABEL_SIZE=64 is set 

Activities

TZirwes

2022-07-13 01:56

reporter  

label64.patch (3,256 bytes)   

will

2022-07-13 09:29

manager   ~0012673

Thanks for the report. Fixed in version 10 and in dev.

https://github.com/OpenFOAM/OpenFOAM-10/commit/d5b54df1766f2f6a6d268a4c8a60cb7499f80348
https://github.com/OpenFOAM/OpenFOAM-dev/commit/eb7b8763c4ea42239e0cf2f0eb5c72857cc7168d

Issue History

Date Modified Username Field Change
2022-07-13 01:56 TZirwes New Issue
2022-07-13 01:56 TZirwes File Added: label64.patch
2022-07-13 09:29 will Assigned To => will
2022-07-13 09:29 will Status new => resolved
2022-07-13 09:29 will Resolution open => fixed
2022-07-13 09:29 will Fixed in Version => 10
2022-07-13 09:29 will Note Added: 0012673
2023-04-18 09:28 henry Relationship added has duplicate 0003975