Your message dated Tue, 29 Dec 2020 16:33:25 +0000
with message-id <[email protected]>
and subject line Bug#976795: fixed in gdal 3.2.1~rc1+dfsg-1~exp1
has caused the Debian Bug report #976795,
regarding gdal: Please build with -fno-guess-branch-probability on sh4 to 
prevent compiler segfault
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
976795: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=976795
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: gdal
Severity: normal
Tags: patch
User: [email protected]
Usertags: sh3 sh4
X-Debbugs-Cc: [email protected]

Hello!

Due to a bug in gcc, the compiler currently segfaults on sh4 with -O2 unless
-fno-guess-branch-probability is passed as well [1]:

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.

The attached patch for debian/rules works around this problem by passing the 
necessary
-fno-guess-branch-probability through DEB_CXXFLAGS_APPEND on sh4 (and sh3):

--- debian/rules.orig   2020-12-06 12:57:44.000000000 +0100
+++ debian/rules        2020-12-08 01:13:56.978960446 +0100
@@ -45,6 +45,11 @@
   WITH_HDF5:=
 endif
 
+# See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98189
+ifneq (,$(filter $(DEB_HOST_ARCH),sh3 sh4))
+  export DEB_CXXFLAGS_APPEND=-fno-guess-branch-probability
+endif
+
 ifneq (,$(filter $(DEB_HOST_ARCH),amd64 i386))
   WITH_SSE=yes
   WITH_SSSE3=yes

Could you include that change in the next upload?

Thanks,
Adrian

> [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98189

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [email protected]
`. `'   Freie Universitaet Berlin - [email protected]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
--- debian/rules.orig   2020-12-06 12:57:44.000000000 +0100
+++ debian/rules        2020-12-08 01:13:56.978960446 +0100
@@ -45,6 +45,11 @@
   WITH_HDF5:=
 endif
 
+# See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98189
+ifneq (,$(filter $(DEB_HOST_ARCH),sh3 sh4))
+  export DEB_CXXFLAGS_APPEND=-fno-guess-branch-probability
+endif
+
 ifneq (,$(filter $(DEB_HOST_ARCH),amd64 i386))
   WITH_SSE=yes
   WITH_SSSE3=yes

--- End Message ---
--- Begin Message ---
Source: gdal
Source-Version: 3.2.1~rc1+dfsg-1~exp1
Done: Bas Couwenberg <[email protected]>

We believe that the bug you reported is fixed in the latest version of
gdal, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bas Couwenberg <[email protected]> (supplier of updated gdal package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 29 Dec 2020 15:00:40 +0100
Source: gdal
Architecture: source
Version: 3.2.1~rc1+dfsg-1~exp1
Distribution: experimental
Urgency: medium
Maintainer: Debian GIS Project <[email protected]>
Changed-By: Bas Couwenberg <[email protected]>
Closes: 976795
Changes:
 gdal (3.2.1~rc1+dfsg-1~exp1) experimental; urgency=medium
 .
   * New upstream release candidate.
   * Apply patch by John Paul Adrian Glaubitz to fix FTBFS on sh4.
     (closes: #976795)
   * Update copyright file.
   * Use DEB_CXXFLAGS_MAINT_APPEND instead of DEB_CXXFLAGS_APPEND.
Checksums-Sha1:
 9d77b1c15eafc1c3b59896cbfb4186e9bf7bde25 3296 gdal_3.2.1~rc1+dfsg-1~exp1.dsc
 c4ed04639594b32fc71ee63c1599f21792da5ad3 9187428 
gdal_3.2.1~rc1+dfsg.orig.tar.xz
 6be8b82e6329bb92094daf914c47f8b3255f8080 245892 
gdal_3.2.1~rc1+dfsg-1~exp1.debian.tar.xz
 4f81af44cc436e73a5a854f90f592087a243a844 16885 
gdal_3.2.1~rc1+dfsg-1~exp1_amd64.buildinfo
Checksums-Sha256:
 0608e146c0337e94f92a6ba500bfb6b810ed70a3c25d399f4808d81deb77fc8f 3296 
gdal_3.2.1~rc1+dfsg-1~exp1.dsc
 c7a01e9e458640b4db56b952c538495e8f7a6514efcf16db6d4ff77ddbe7cb7c 9187428 
gdal_3.2.1~rc1+dfsg.orig.tar.xz
 30dc63ef89174f2600abc4a28994223c5b3db6183057144f0a244aee49eed3b6 245892 
gdal_3.2.1~rc1+dfsg-1~exp1.debian.tar.xz
 da8d9c63cdd62dec9b6991b32ba70e743c80d80a91554ca997025e4930f16098 16885 
gdal_3.2.1~rc1+dfsg-1~exp1_amd64.buildinfo
Files:
 6dd7dc866d92fc00d67e95a3e098c36e 3296 science optional 
gdal_3.2.1~rc1+dfsg-1~exp1.dsc
 8eefb188c43d5cc32eda0ca5ca1b9942 9187428 science optional 
gdal_3.2.1~rc1+dfsg.orig.tar.xz
 df830d968e3b8de4e4cb77f8ed6b9687 245892 science optional 
gdal_3.2.1~rc1+dfsg-1~exp1.debian.tar.xz
 a66e5996a12ee856a218b33756e349da 16885 science optional 
gdal_3.2.1~rc1+dfsg-1~exp1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEgYLeQXBWQI1hRlDRZ1DxCuiNSvEFAl/rVcYACgkQZ1DxCuiN
SvHV/xAApMnuXqmNL0eTq1+h7aX3gmQDNMDMGrx3DLc24SkPlE6qU0QhF3GzRhxg
2HplY/jUuPvNDWYC/UzYWfhTNBvmxfox8umra6h0eX+V4Dz2xtM9xISknu5nFiG9
meM+duyz4lH8HAflQmRfHRF/+f6/22SCR+cFvIKOQqFJ1mCE/qYQaZByiSGi08bF
ia2AJ5ZjIUgbUhDeT+T20WAQa0iTNLev3yRrepidm4UgL5e+hl6xF+4ms+PweZ2+
QlDB/08bh7I8MPfULuoThIPJYUcX9XzaDuwlj0pVvPzbGCIPzqguYpvH1LFJWvvO
lcc5fbqJ3BNs2v1P9LKgMo1h85zvVUaphudOQivDfKa/rByRiM2/QJ+n3ZafBdsB
yDTr383EqZlw6OQanR38GWsirLNC7ZTIZ4GOTf+n6znMeTapASp+tY+B4oRovAv0
micvI43SWDreGfM5lLyoMiY62tQArtmDTuGqLYrl5mLebnjw08Xm14sBj6sd/e+4
mskzHPPjCa/gSS5qfXJ9cOmgfBZlZfIuQgPsGH0ipc2Sz3Amg8pzeSLayQ4+KuLT
hPuAwQjheyQ2axZeuvDFoH4eO/YRbdPw5FY/uSd8o6hDYZYKpkXBOuY7eifeTzGn
OZP5USWhJWyb6t45uRytTl6AZeO9msOXumQBMJNUQM1/pZYumjg=
=4EOZ
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to