[MacPorts] #69374: gcc13 optimizer bug in ncurses
MacPorts
noreply at macports.org
Sat Feb 24 00:46:00 UTC 2024
#69374: gcc13 optimizer bug in ncurses
---------------------------+--------------------
Reporter: ThomasDickey | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: gcc13 |
---------------------------+--------------------
Comment (by ThomasDickey):
Using gcc12 to report a redefinition tells me (on my Ventura machine)
{{{
../ncurses/./tty/tty_update.c:218: warning: "MB_LEN_MAX" redefined
218 | #define MB_LEN_MAX 20
|
In file included from
/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/machine/limits.h:9,
from
/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/limits.h:64,
from /opt/local/lib/gcc12/gcc/x86_64-apple-
darwin22/12.3.0/include-fixed/limits.h:203,
from /opt/local/lib/gcc12/gcc/x86_64-apple-
darwin22/12.3.0/include-fixed/syslimits.h:7,
from /opt/local/lib/gcc12/gcc/x86_64-apple-
darwin22/12.3.0/include-fixed/limits.h:34,
from ../ncurses/curses.priv.h:76,
from ../ncurses/./tty/tty_update.c:49:
/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/i386/limits.h:45:
note: this is the location of the previous definition
45 | #define MB_LEN_MAX 6 /* Allow 31 bit UTF2 */
|
}}}
but gcc13 doesn't see those files:
{{{
../ncurses/./tty/tty_update.c:218: warning: "MB_LEN_MAX" redefined
218 | #define MB_LEN_MAX 20
|
In file included from ../ncurses/curses.priv.h:76,
from ../ncurses/./tty/tty_update.c:49:
/opt/local/lib/gcc13/gcc/x86_64-apple-darwin22/13.2.0/include/limits.h:33:
note: this is the location of the previous definition
33 | #define MB_LEN_MAX 1
|
}}}
Since my Sonoma machine gives the same misbehavior in ncurses, I think
it's the same issue.
--
Ticket URL: <https://trac.macports.org/ticket/69374#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list