public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "glaubitz at physik dot fu-berlin.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/98189] New: [SH] ICE and segmentation fault with -O2 and without -fno-guess-branch-probability when building gdal
Date: Tue, 08 Dec 2020 00:10:50 +0000	[thread overview]
Message-ID: <bug-98189-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 98189
           Summary: [SH] ICE and segmentation fault with -O2 and without
                    -fno-guess-branch-probability when building gdal
           Product: gcc
           Version: 10.2.0
               URL: https://buildd.debian.org/status/fetch.php?pkg=gdal&ar
                    ch=sh4&ver=3.2.0%2Bdfsg-1%7Eexp1&stamp=1604338136&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: kkojima at gcc dot gnu.org, olegendo at gcc dot gnu.org
  Target Milestone: ---
            Target: sh*-*-*

Trying to build gdal on Debian unstable/sh4 fails with segmentation fault at
-O1 and -O2 optimization levels unless -fno-guess-branch-probability is
specified:

(sid-sh4-sbuild)root@epyc:/build/gdal-rdrvrf/gdal-3.2.0+dfsg/frmts/pcraster#
/bin/bash /build/gdal-rdrvrf/gdal-3.2.0+dfsg/libtool --mode=compile --silent
--tag=CXX g++ -I/build/gdal-rdrvrf/gdal-3.2.0+dfsg/port
-I/build/gdal-rdrvrf/gdal-3.2.0+dfsg/gcore
-I/build/gdal-rdrvrf/gdal-3.2.0+dfsg/alg
-I/build/gdal-rdrvrf/gdal-3.2.0+dfsg/ogr
-I/build/gdal-rdrvrf/gdal-3.2.0+dfsg/ogr/ogrsf_frmts
-I/build/gdal-rdrvrf/gdal-3.2.0+dfsg/gnm
-I/build/gdal-rdrvrf/gdal-3.2.0+dfsg/apps -g -O2
-fdebug-prefix-map=/build/gdal-rdrvrf/gdal-3.2.0+dfsg=.
-specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong -Wformat
-Werror=format-security -fvisibility=hidden  -Wall -Wextra -Winit-self
-Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral
-Wlogical-op -Wshadow -Werror=vla -Wdate-time -Wnull-dereference
-Wduplicated-cond -Wextra-semi -Wfloat-conversion -Wmissing-declarations
-Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names
-Wzero-as-null-pointer-constant -Wsuggest-override -Wimplicit-fallthrough   
-DGNM_ENABLED -Wdate-time -D_FORTIFY_SOURCE=2
-I/build/gdal-rdrvrf/gdal-3.2.0+dfsg/port -I/usr/include
-I/usr/include/openjpeg-2.3 -I/usr/include  -DGDAL_COMPILATION -DHAVE_XERCES
-I/usr/include -I/usr/include/xercesc -Wdate-time -D_FORTIFY_SOURCE=2
-I/build/gdal-rdrvrf/gdal-3.2.0+dfsg/port -I/usr/include
-I/usr/include/openjpeg-2.3 -I/usr/include  -DGDAL_COMPILATION -DUSE_IN_GDAL
-Ilibcsf -c -o ../o/pcrasterutil.lo pcrasterutil.cpp
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
/build/gdal-rdrvrf/gdal-3.2.0+dfsg/libtool: line 1764: warning: setlocale:
LC_ALL: cannot change locale (en_US.UTF-8)
during RTL pass: mach
pcrasterutil.cpp: In function 'void castValuesToBooleanRange(void*, size_t,
CSF_CR)':
pcrasterutil.cpp:674:1: internal compiler error: Segmentation fault
  674 | }
      | ^
mmap: Permission denied
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-10/README.Bugs> for instructions.
(sid-sh4-sbuild)root@epyc:/build/gdal-rdrvrf/gdal-3.2.0+dfsg/frmts/pcraster#
/bin/bash /build/gdal-rdrvrf/gdal-3.2.0+dfsg/libtool --mode=compile --silent
--tag=CXX g++ -I/build/gdal-rdrvrf/gdal-3.2.0+dfsg/port
-I/build/gdal-rdrvrf/gdal-3.2.0+dfsg/gcore
-I/build/gdal-rdrvrf/gdal-3.2.0+dfsg/alg
-I/build/gdal-rdrvrf/gdal-3.2.0+dfsg/ogr
-I/build/gdal-rdrvrf/gdal-3.2.0+dfsg/ogr/ogrsf_frmts
-I/build/gdal-rdrvrf/gdal-3.2.0+dfsg/gnm
-I/build/gdal-rdrvrf/gdal-3.2.0+dfsg/apps -g -O2
-fdebug-prefix-map=/build/gdal-rdrvrf/gdal-3.2.0+dfsg=.
-specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong -Wformat
-Werror=format-security -fvisibility=hidden  -Wall -Wextra -Winit-self
-Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral
-Wlogical-op -Wshadow -Werror=vla -Wdate-time -Wnull-dereference
-Wduplicated-cond -Wextra-semi -Wfloat-conversion -Wmissing-declarations
-Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names
-Wzero-as-null-pointer-constant -Wsuggest-override -Wimplicit-fallthrough   
-DGNM_ENABLED -Wdate-time -D_FORTIFY_SOURCE=2
-I/build/gdal-rdrvrf/gdal-3.2.0+dfsg/port -I/usr/include
-I/usr/include/openjpeg-2.3 -I/usr/include  -DGDAL_COMPILATION -DHAVE_XERCES
-I/usr/include -I/usr/include/xercesc -Wdate-time -D_FORTIFY_SOURCE=2
-I/build/gdal-rdrvrf/gdal-3.2.0+dfsg/port -I/usr/include
-I/usr/include/openjpeg-2.3 -I/usr/include  -DGDAL_COMPILATION -DUSE_IN_GDAL
-Ilibcsf -c -o ../o/pcrasterutil.lo pcrasterutil.cpp
-fno-guess-branch-probability
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
/build/gdal-rdrvrf/gdal-3.2.0+dfsg/libtool: line 1764: warning: setlocale:
LC_ALL: cannot change locale (en_US.UTF-8)
/build/gdal-rdrvrf/gdal-3.2.0+dfsg/libtool: line 1764: warning: setlocale:
LC_ALL: cannot change locale (en_US.UTF-8)
(sid-sh4-sbuild)root@epyc:/build/gdal-rdrvrf/gdal-3.2.0+dfsg/frmts/pcraster#

Attaching source and intermediate files.

             reply	other threads:[~2020-12-08  0:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-08  0:10 glaubitz at physik dot fu-berlin.de [this message]
2020-12-08  0:13 ` [Bug target/98189] " glaubitz at physik dot fu-berlin.de
2020-12-08  8:21 ` marxin at gcc dot gnu.org
2020-12-08 15:43 ` glaubitz at physik dot fu-berlin.de
2020-12-08 19:51 ` marxin at gcc dot gnu.org
2021-10-09 17:24 ` egallager at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-98189-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).