Closed RedHatTurtle closed 4 months ago
Hi @redhatturtle, thanks for posting this. I suspect this has to do with your gcc version, but your patch is exactly how I would fix the issue.
Feel free to open a PR for it and ping me to review.
Resolved with https://github.com/chapel-lang/chapel/pull/25056
Thanks Jade!
Summary of Problem
Description: I get an error when compiling Chapel-Py and therefore the Chapel Language Server and ChplCheck
Steps to Reproduce
Source Code: The offending function is on
./tools/chapel-py/src/core-types-gen.cpp
, lines 53 to 59.I guess it just needs a default?
Compile command: It only stops compilation because this flag is enabled by default
-Werror=return-type
Execution command: I'm just running
make chapel-py-venv
I'm confused about how I'm the only one with this error, should this flag not be enabled by default?Workaround
Just add a default to the switch statement.
It compiles both in 2.0.1 and 2.1-pre but I have no idea if it's the right fix :shrug:
Configuration Information
Happens on both 2.0.1 and the pre-release 2.1.0 (f1676da73c)
Output of
chpl --version
:Output of
$CHPL_HOME/util/printchplenv --anonymize
:Back-end compiler and version, e.g.
gcc --version
orclang --version
: