Opened 2 years ago
Last modified 2 years ago
#65013 closed defect
gindent @2.2.12: error: variable 'paren_level' set but not used [-Werror,-Wunused-but-set-variable] — at Version 1
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) |
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.
Change History (2)
Changed 2 years ago by physicsbeany
Attachment: | gnuplot_x11_installation_failure.log added |
---|
comment:1 Changed 2 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.
Note: See
TracTickets for help on using
tickets.
logfile from failed installation of gnuplot +x11, at point of gindent failure