public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/102588] New: ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper
@ 2021-10-04  9:18 glaubitz at physik dot fu-berlin.de
  2021-10-04  9:19 ` [Bug target/102588] " glaubitz at physik dot fu-berlin.de
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: glaubitz at physik dot fu-berlin.de @ 2021-10-04  9:18 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102588

            Bug ID: 102588
           Summary: ICE: in smallest_mode_for_size, at stor-layout.c:356
                    when building openorienteering-mapper
           Product: gcc
           Version: 10.3.0
               URL: https://buildd.debian.org/status/fetch.php?pkg=openori
                    enteering-mapper&arch=sparc64&ver=0.9.5-1&stamp=163312
                    0814&raw=0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: glaubitz at physik dot fu-berlin.de
                CC: ebotcazou at gcc dot gnu.org, jrtc27 at jrtc27 dot com,
                    matorola at gmail dot com
  Target Milestone: ---
            Target: sparc64-*-*-*

Trying to build openorienteering-mapper on sparc64 fails on Debian unstable
with:

[ 68%] Building CXX object
src/CMakeFiles/Mapper_Common.dir/tools/edit_line_tool.cpp.o
cd /<<PKGBUILDDIR>>/obj-sparc64-linux-gnu/src && /usr/bin/c++
-DMAPPER_BIG_ENDIAN -DMAPPER_COMMON_LIB -DMAPPER_USE_GDAL
-DMAPPER_USE_NMEA_POSITION_PLUGIN -DMAPPER_USE_POWERSHELL_POSITION_PLUGIN
-DMAPPER_USE_SENSORS -DNDEBUG -DQT_CONCURRENT_LIB -DQT_CORE_LIB
-DQT_DISABLE_DEPRECATED_BEFORE=0x050500 -DQT_GUI_LIB -DQT_NETWORK_LIB
-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG
-DQT_NO_DEBUG_OUTPUT -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB
-DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DSCALING_ICON_ENGINE_PLUGIN -DUNICODE
-DWITH_COVE -D_USE_MATH_DEFINES
-I/<<PKGBUILDDIR>>/obj-sparc64-linux-gnu/src/Mapper_Common_autogen/include
-I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/3rd-party/cove
-I/<<PKGBUILDDIR>>/obj-sparc64-linux-gnu/src -isystem
/usr/include/sparc64-linux-gnu/qt5/QtCore/5.15.2 -isystem
/usr/include/sparc64-linux-gnu/qt5/QtCore/5.15.2/QtCore -isystem
/usr/include/sparc64-linux-gnu/qt5/QtGui/5.15.2 -isystem
/usr/include/sparc64-linux-gnu/qt5/QtGui/5.15.2/QtGui -isystem
/usr/include/polyclipping -isystem /usr/include/sparc64-linux-gnu/qt5 -isystem
/usr/include/sparc64-linux-gnu/qt5/QtWidgets -isystem
/usr/include/sparc64-linux-gnu/qt5/QtGui -isystem
/usr/include/sparc64-linux-gnu/qt5/QtCore -isystem
/usr/lib/sparc64-linux-gnu/qt5/mkspecs/linux-g++ -isystem
/usr/include/sparc64-linux-gnu/qt5/QtConcurrent -isystem
/<<PKGBUILDDIR>>/src/printsupport -isystem
/usr/include/sparc64-linux-gnu/qt5/QtPrintSupport -isystem
/usr/include/sparc64-linux-gnu/qt5/QtNetwork -g -O2
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpedantic
-Wextra -O3 -DNDEBUG -fPIC -std=gnu++14 -MD -MT
src/CMakeFiles/Mapper_Common.dir/tools/edit_line_tool.cpp.o -MF
CMakeFiles/Mapper_Common.dir/tools/edit_line_tool.cpp.o.d -o
CMakeFiles/Mapper_Common.dir/tools/edit_line_tool.cpp.o -c
/<<PKGBUILDDIR>>/src/tools/edit_line_tool.cpp
during RTL pass: expand
In file included from /<<PKGBUILDDIR>>/src/tools/cut_tool.h:34,
                 from /<<PKGBUILDDIR>>/src/tools/cut_tool.cpp:22:
/<<PKGBUILDDIR>>/src/core/objects/object.h: In member function
‘OpenOrienteering::ObjectPathCoord
OpenOrienteering::CutTool::findEditPoint(const OpenOrienteering::MapCoordF&,
int, int) const’:
/<<PKGBUILDDIR>>/src/core/objects/object.h:1275:50: internal compiler error: in
smallest_mode_for_size, at stor-layout.c:356
 1275 | : PathCoord { object->findPathCoordForIndex(index) }
      |                                                  ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-10/README.Bugs> for instructions.

Attaching preprocessed source.

Full log in:
https://buildd.debian.org/status/fetch.php?pkg=openorienteering-mapper&arch=sparc64&ver=0.9.5-1&stamp=1633120814&raw=0

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/102588] ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper
  2021-10-04  9:18 [Bug target/102588] New: ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper glaubitz at physik dot fu-berlin.de
@ 2021-10-04  9:19 ` glaubitz at physik dot fu-berlin.de
  2021-10-04  9:52 ` marxin at gcc dot gnu.org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: glaubitz at physik dot fu-berlin.de @ 2021-10-04  9:19 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102588

--- Comment #1 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> ---
Created attachment 51545
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51545&action=edit
Preprocessed source.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/102588] ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper
  2021-10-04  9:18 [Bug target/102588] New: ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper glaubitz at physik dot fu-berlin.de
  2021-10-04  9:19 ` [Bug target/102588] " glaubitz at physik dot fu-berlin.de
@ 2021-10-04  9:52 ` marxin at gcc dot gnu.org
  2021-10-04 15:05 ` marxin at gcc dot gnu.org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-10-04  9:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102588

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-10-04
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
                 CC|                            |marxin at gcc dot gnu.org

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, reducing that right now..

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/102588] ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper
  2021-10-04  9:18 [Bug target/102588] New: ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper glaubitz at physik dot fu-berlin.de
  2021-10-04  9:19 ` [Bug target/102588] " glaubitz at physik dot fu-berlin.de
  2021-10-04  9:52 ` marxin at gcc dot gnu.org
@ 2021-10-04 15:05 ` marxin at gcc dot gnu.org
  2021-10-04 21:12 ` pinskia at gcc dot gnu.org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-10-04 15:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102588

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Reduced test-case:

namespace std {
typedef int size_t;
template <typename> class vector {
public:
  typedef size_t size_type;
};
} // namespace std
typedef int quint32;
typedef double qreal;
class QPointF {
  qreal yp;
};
namespace OpenOrienteering {
class MapCoord;
class MapCoordF : QPointF {};
typedef std::vector<MapCoord> MapCoordVector;
class PathCoord {
public:
  using size_type = quint32;
  using length_type = float;
  using param_type = MapCoordF;
  size_type index;
  param_type param;
  length_type clen;
};
class PathObject {
public:
  PathCoord findPathCoordForIndex(MapCoordVector::size_type);
};
struct ObjectPathCoord : PathCoord {
  ObjectPathCoord(PathObject *, size_type);
};
ObjectPathCoord::ObjectPathCoord(PathObject *object, size_type)
    : PathCoord{object->findPathCoordForIndex(index)} {}
} // namespace OpenOrienteering

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/102588] ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper
  2021-10-04  9:18 [Bug target/102588] New: ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper glaubitz at physik dot fu-berlin.de
                   ` (2 preceding siblings ...)
  2021-10-04 15:05 ` marxin at gcc dot gnu.org
@ 2021-10-04 21:12 ` pinskia at gcc dot gnu.org
  2021-10-06  8:19 ` [Bug middle-end/102588] " ebotcazou at gcc dot gnu.org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-10-04 21:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102588

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|https://buildd.debian.org/s |
                   |tatus/fetch.php?pkg=openori |
                   |enteering-mapper&arch=sparc |
                   |64&ver=0.9.5-1&stamp=163312 |
                   |0814&raw=0                  |

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
https://buildd.debian.org/status/fetch.php?pkg=openorienteering-mapper&arch=sparc64&ver=0.9.5-1&stamp=1633120814&raw=0

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug middle-end/102588] ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper
  2021-10-04  9:18 [Bug target/102588] New: ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper glaubitz at physik dot fu-berlin.de
                   ` (3 preceding siblings ...)
  2021-10-04 21:12 ` pinskia at gcc dot gnu.org
@ 2021-10-06  8:19 ` ebotcazou at gcc dot gnu.org
  2021-10-06  8:40 ` [Bug target/102588] " ebotcazou at gcc dot gnu.org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2021-10-06  8:19 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102588

--- Comment #5 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
More reduced testcase:

class A
{
  int index;
  double param;
  float clen;
};

extern A Get ();

class B : A
{
  B ();
};

B::B () : A { Get () } {}

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/102588] ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper
  2021-10-04  9:18 [Bug target/102588] New: ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper glaubitz at physik dot fu-berlin.de
                   ` (4 preceding siblings ...)
  2021-10-06  8:19 ` [Bug middle-end/102588] " ebotcazou at gcc dot gnu.org
@ 2021-10-06  8:40 ` ebotcazou at gcc dot gnu.org
  2021-10-06  8:41 ` [Bug target/102588] ICE: in smallest_mode_for_size, at stor-layout.c:356 ebotcazou at gcc dot gnu.org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2021-10-06  8:40 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102588

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|middle-end                  |target

--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Reclassifying.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/102588] ICE: in smallest_mode_for_size, at stor-layout.c:356
  2021-10-04  9:18 [Bug target/102588] New: ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper glaubitz at physik dot fu-berlin.de
                   ` (5 preceding siblings ...)
  2021-10-06  8:40 ` [Bug target/102588] " ebotcazou at gcc dot gnu.org
@ 2021-10-06  8:41 ` ebotcazou at gcc dot gnu.org
  2021-10-12  9:21 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2021-10-06  8:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102588

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |ebotcazou at gcc dot gnu.org
             Status|NEW                         |ASSIGNED
            Summary|ICE: in                     |ICE: in
                   |smallest_mode_for_size, at  |smallest_mode_for_size, at
                   |stor-layout.c:356 when      |stor-layout.c:356
                   |building                    |
                   |openorienteering-mapper     |
                 CC|ebotcazou at gcc dot gnu.org       |

--- Comment #7 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Fixing.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/102588] ICE: in smallest_mode_for_size, at stor-layout.c:356
  2021-10-04  9:18 [Bug target/102588] New: ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper glaubitz at physik dot fu-berlin.de
                   ` (6 preceding siblings ...)
  2021-10-06  8:41 ` [Bug target/102588] ICE: in smallest_mode_for_size, at stor-layout.c:356 ebotcazou at gcc dot gnu.org
@ 2021-10-12  9:21 ` cvs-commit at gcc dot gnu.org
  2021-10-12  9:23 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-10-12  9:21 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102588

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Eric Botcazou <ebotcazou@gcc.gnu.org>:

https://gcc.gnu.org/g:a1a7d094307080c3d994209457f732005f59fa6a

commit r12-4348-ga1a7d094307080c3d994209457f732005f59fa6a
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Tue Oct 12 11:20:42 2021 +0200

    Fix PR target/102588

    We need a 32-byte wide integer mode (OImode) in order to handle structure
    returns in the 64-bit ABI.

    gcc/
            PR target/102588
            * config/sparc/sparc-modes.def (OI): New integer mode.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/102588] ICE: in smallest_mode_for_size, at stor-layout.c:356
  2021-10-04  9:18 [Bug target/102588] New: ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper glaubitz at physik dot fu-berlin.de
                   ` (7 preceding siblings ...)
  2021-10-12  9:21 ` cvs-commit at gcc dot gnu.org
@ 2021-10-12  9:23 ` cvs-commit at gcc dot gnu.org
  2021-10-12  9:23 ` cvs-commit at gcc dot gnu.org
  2021-10-12  9:28 ` ebotcazou at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-10-12  9:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102588

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Eric Botcazou
<ebotcazou@gcc.gnu.org>:

https://gcc.gnu.org/g:1cedb519613006014eeb1a7464a5fbc3509a3a63

commit r11-9098-g1cedb519613006014eeb1a7464a5fbc3509a3a63
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Tue Oct 12 11:20:42 2021 +0200

    Fix PR target/102588

    We need a 32-byte wide integer mode (OImode) in order to handle structure
    returns in the 64-bit ABI.

    gcc/
            PR target/102588
            * config/sparc/sparc-modes.def (OI): New integer mode.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/102588] ICE: in smallest_mode_for_size, at stor-layout.c:356
  2021-10-04  9:18 [Bug target/102588] New: ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper glaubitz at physik dot fu-berlin.de
                   ` (8 preceding siblings ...)
  2021-10-12  9:23 ` cvs-commit at gcc dot gnu.org
@ 2021-10-12  9:23 ` cvs-commit at gcc dot gnu.org
  2021-10-12  9:28 ` ebotcazou at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-10-12  9:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102588

--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Eric Botcazou
<ebotcazou@gcc.gnu.org>:

https://gcc.gnu.org/g:bde91c72cb2cc47cd169d2a59470177dd7a1d2b9

commit r10-10180-gbde91c72cb2cc47cd169d2a59470177dd7a1d2b9
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Tue Oct 12 11:20:42 2021 +0200

    Fix PR target/102588

    We need a 32-byte wide integer mode (OImode) in order to handle structure
    returns in the 64-bit ABI.

    gcc/
            PR target/102588
            * config/sparc/sparc-modes.def (OI): New integer mode.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/102588] ICE: in smallest_mode_for_size, at stor-layout.c:356
  2021-10-04  9:18 [Bug target/102588] New: ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper glaubitz at physik dot fu-berlin.de
                   ` (9 preceding siblings ...)
  2021-10-12  9:23 ` cvs-commit at gcc dot gnu.org
@ 2021-10-12  9:28 ` ebotcazou at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2021-10-12  9:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102588

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
   Target Milestone|---                         |10.4
             Status|ASSIGNED                    |RESOLVED

--- Comment #11 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-10-12  9:28 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-04  9:18 [Bug target/102588] New: ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper glaubitz at physik dot fu-berlin.de
2021-10-04  9:19 ` [Bug target/102588] " glaubitz at physik dot fu-berlin.de
2021-10-04  9:52 ` marxin at gcc dot gnu.org
2021-10-04 15:05 ` marxin at gcc dot gnu.org
2021-10-04 21:12 ` pinskia at gcc dot gnu.org
2021-10-06  8:19 ` [Bug middle-end/102588] " ebotcazou at gcc dot gnu.org
2021-10-06  8:40 ` [Bug target/102588] " ebotcazou at gcc dot gnu.org
2021-10-06  8:41 ` [Bug target/102588] ICE: in smallest_mode_for_size, at stor-layout.c:356 ebotcazou at gcc dot gnu.org
2021-10-12  9:21 ` cvs-commit at gcc dot gnu.org
2021-10-12  9:23 ` cvs-commit at gcc dot gnu.org
2021-10-12  9:23 ` cvs-commit at gcc dot gnu.org
2021-10-12  9:28 ` ebotcazou at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).