potential compiler issue with lemon
Reported as a spack issue with gcc 10.2.0
lemon: lemon.c:5139: SetAdd: Assertion `e>=0 && e<size' failed.
This really should not happen and haven't seen it happen elsewhere.
Possible remedy would be to drop the optimization level for C sources in the wmake toolchain, which now only include lemon.
For example, in the wmake/src/Makefile:
# Locally set optimized compilation WM_COMPILE_OPTION = Opt GENERAL_RULES = $(WM_DIR)/rules/General include $(GENERAL_RULES)/general # Override -O3 with something less aggressive? cOPT = -O2
Could even drop this down further since it only affects this one tool and does not affect OpenFOAM or the speed of the generated code.