viewFactorsGen Make/options missing separator error in OpenFOAM v2212
Summary
Building OpenFOAM on macOS 11 (x86_64) fails with a missing separator
error caused by bad formatting in the wmake-generated build/darwin64ClangDPInt32Optapplications/utilities/preProcessing/viewFactorsGen/options
file.
This problem did not occur with previous releases of OpenFOAM, nor happens on another macOS variant I've tested (macOS 13 on arm64).
Steps to reproduce
Compile OpenFOAM (specifically, run applications/utilities/preProcessing/viewFactorsGen/Allwmake
)
Example case
N/A
What is the current bug behaviour?
.../build/darwin64ClangDPInt32Opt/applications/utilities/preProcessing/viewFactorsGen/options:22: *** missing separator
error, where lines 21-22 of that generated file are:
EXE_LIBS =
-lfiniteVolume -lsurfMesh -lmeshTools -ldistributed -lradiationModels
The newline (with no backslash) after EXE_LIBS =
explains the error.
What is the expected correct behavior?
Same lines of the generated .../viewFactorsGen/options
file on macOS 13 arm64, where this issue doesn't seem to be present:
EXE_LIBS = -lfiniteVolume -lsurfMesh -lmeshTools -ldistributed -lradiationModels
Relevant logs and/or images
wmake viewFactorsGen
54850
found CGAL -- enabling CGAL support.
54851
/Volumes/OpenFOAM-v2212/build/darwin64ClangDPInt32Opt/applications/utilities/preProcessing/viewFactorsGen/options:22: *** missing separator. Stop.
54852
/Volumes/OpenFOAM-v2212/build/darwin64ClangDPInt32Opt/applications/utilities/preProcessing/viewFactorsGen/options:22: *** missing separator. Stop.
54853
wmake error: file '/Volumes/OpenFOAM-v2212/build/darwin64ClangDPInt32Opt/applications/utilities/preProcessing/viewFactorsGen/sourceFiles' could not be created in /Volumes/OpenFOAM-v2212/applications/utilities/preProcessing/viewFactorsGen
54854
make[2]: *** [viewFactorsGen] Error 1
54855
make[1]: *** [preProcessing] Error 2
Environment information
- OpenFOAM version : v2212
- Operating system : macOS 11
- Hardware info : x86_64
- Compiler : clang
Possible fixes
Actually deleting this commented-out line in applications/utilities/preProcessing/viewFactorsGen/Make/options
appears to fix the issue when compiling with macOS 11