Opened 3 years ago
Closed 3 years ago
#65013 closed defect (fixed)
gindent @2.2.12: error: variable 'paren_level' set but not used [-Werror,-Wunused-but-set-variable]
Reported by: | physicsbeany | Owned by: | larryv (Lawrence Velázquez) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.2 |
Keywords: | monterey haspatch | Cc: | larryv (Lawrence Velázquez), mascguy (Christopher Nielsen) |
Port: | gindent |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
Hi. Trying to install gnuplot on a fresh MacPorts installation on MacOS Monterey, but it quickly fails when installing the dependency port "gindent". Looking at the error log, it seems that the compiler flags are too stringent, killing the build because a variable is declared but not used:
:info:build output.c:843:8: error: variable 'paren_level' set but not used [-Werror,-Wunused-but-set-variable]
Full log file attached to this ticket.
Attachments (1)
Change History (5)
Changed 3 years ago by physicsbeany
Attachment: | gnuplot_x11_installation_failure.log added |
---|
comment:1 follow-up: 2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Keywords: | monterey added; gindent gnuplot paren_level removed |
Owner: | set to larryv |
Status: | new → assigned |
Summary: | gindent won't build -- paren_level not used error → gindent @2.2.12: error: variable 'paren_level' set but not used [-Werror,-Wunused-but-set-variable] |
This kind of thing is the reason why we recommend ports don't build with -Werror
.
Since this isn't a MacPorts-specific problem, please report it to the developers of gindent at https://savannah.gnu.org/bugs/?group=indent.
comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | haspatch added |
---|
Replying to ryandesign:
This kind of thing is the reason why we recommend ports don't build with
-Werror
.
https://github.com/macports/macports-ports/pull/14607
Since this isn't a MacPorts-specific problem, please report it to the developers of gindent at https://savannah.gnu.org/bugs/?group=indent.
comment:3 Changed 3 years ago by mascguy (Christopher Nielsen)
Cc: | mascguy added |
---|
comment:4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
logfile from failed installation of gnuplot +x11, at point of gindent failure