[MacPorts] #70410: gcc14: ICE on qdebug.h of Qt4: internal compiler error: in objc_eh_runtime_type, at objc/objc-next-runtime-abi-01.cc:2798

MacPorts noreply at macports.org
Sun Jul 21 07:52:35 UTC 2024


#70410: gcc14: ICE on qdebug.h of Qt4: internal compiler error: in
objc_eh_runtime_type, at objc/objc-next-runtime-abi-01.cc:2798
--------------------------+----------------------------
 Reporter:  barracuda156  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.9.3
 Keywords:                |       Port:  gcc14, qt4-mac
--------------------------+----------------------------
 Qt4 in `qdebug.h` has a chunk of code which sends GCC into ICE:
 {{{
     inline ~QDebug() {
         if (!--stream->ref) {
             if(stream->message_output) {
                 QT_TRY {
                     qt_message_output(stream->type,
 stream->buffer.toLocal8Bit().data());
                 } QT_CATCH(std::bad_alloc&) { /* We're out of memory -
 give up. */ }
             }
             delete stream;
         }
     }
 }}}

 What happens:
 {{{
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_tomahawk/tomahawk/work/tomahawk-0.8.4/src/tomahawk/mac/TomahawkApp_Mac.mm:163:25:
 warning: multi-character character constant [-Wmultichar]
   163 |           forEventClass:'WWW!'
       |                         ^~~~~~
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_tomahawk/tomahawk/work/tomahawk-0.8.4/src/tomahawk/mac/TomahawkApp_Mac.mm:164:25:
 warning: multi-character character constant [-Wmultichar]
   164 |              andEventID:'OURL'];
       |                         ^~~~~~
 during GIMPLE pass: eh
 In file included from
 /opt/local/libexec/qt4/include/QtNetwork/qabstractsocket.h:48,
                  from
 /opt/local/libexec/qt4/include/QtNetwork/qhostaddress.h:4,
                  from
 /opt/local/libexec/qt4/include/QtNetwork/qnetworkproxy.h:45,
                  from
 /opt/local/libexec/qt4/include/QtNetwork/QNetworkProxy:1,
                  from
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_tomahawk/tomahawk/work/tomahawk-0.8.4/src/libtomahawk/utils/TomahawkUtils.h:28,
                  from
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_tomahawk/tomahawk/work/tomahawk-0.8.4/src/libtomahawk/Result.h:28,
                  from
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_tomahawk/tomahawk/work/tomahawk-0.8.4/src/tomahawk/./TomahawkWindow.h:25,
                  from
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_tomahawk/tomahawk/work/tomahawk-0.8.4/src/tomahawk/mac/TomahawkApp_Mac.mm:24:
 /opt/local/libexec/qt4/include/QtCore/qdebug.h: In destructor
 'QDebug::~QDebug(':
 /opt/local/libexec/qt4/include/QtCore/qdebug.h:81:12: internal compiler
 error: in objc_eh_runtime_type, at objc/objc-next-runtime-abi-01.cc:2798
    81 |     inline ~QDebug() {
       |            ^
 Please submit a full bug report, with preprocessed source (by using
 -freport-bug).
 }}}

 Is there something wrong with Qt4 code here or is it actually a bug in
 GCC?

-- 
Ticket URL: <https://trac.macports.org/ticket/70410>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list