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)

gnuplot_x11_installation_failure.log (30.2 KB) - added by physicsbeany 3 years ago.
logfile from failed installation of gnuplot +x11, at point of gindent failure

Download all attachments as: .zip

Change History (5)

Changed 3 years ago by physicsbeany

logfile from failed installation of gnuplot +x11, at point of gindent failure

comment:1 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: newassigned
Summary: gindent won't build -- paren_level not used errorgindent @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 in reply to:  1 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.

https://savannah.gnu.org/bugs/index.php?62326

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: assignedclosed

In cd32604600fe9fc24bcd9623b38e85dac6f6fb56/macports-ports (master):

gindent: Don't use -Werror

Closes: #65013

Note: See TracTickets for help on using tickets.