Bug#1053826: gcc-12: internal compiler error with template specialization on floating point non-type-param in C++20 mode

2023-10-17 Thread Matthias Klose
This is fixed in GCC 13, available in testing and unstable.  Doesn't look like a 
regression, so it's unlikely to be backported.


On 12.10.23 09:20, Andre Naujoks wrote:

Package: gcc-12
Version: 12.3.0-10
Severity: normal
X-Debbugs-Cc: andre.nauj...@keysight.com

Hello.

The following piece of code generates a compiler error with gcc-12 in C++20
mode:

template 
struct F {
 static double foo() { return D; }
};

template 
struct F {
 static double foo() { return 1.0; }
};

int main()
{
 return F::foo();
}

gcc-13 in sid does compile this correctly. on godbolt only gcc-trunk, not
gcc-13, compiles this, so from my point of view, it may be a Debian patch in
gcc-13 in sid, which fixes this.

The error (on gcc-12 from sid) is this:

$ g++-12 -std=c++20 -o test test.cpp
test.cpp: In function ‘int main()’:
test.cpp:13:29: internal compiler error: in unify, at cp/pt.cc:24903
13 | return F::foo();
   | ^~
0x7f41729256c9 __libc_start_call_main
 ../sysdeps/nptl/libc_start_call_main.h:58
0x7f4172925784 __libc_start_main_impl
 ../csu/libc-start.c:360
Please submit a full bug report, with preprocessed source (by using -freport-
bug).
Please include the complete backtrace with any bug report.
See  for instructions.



gcc in bookworm looks a little different but should be the same bug:

$ g++ -std=c++20 -o test test.cpp
test.cpp: In function 'int main()':
test.cpp:13:29: internal compiler error: in unify, at cp/pt.cc:24832
13 | return F::foo();
   | ^~
0x1afaeb6 internal_error(char const*, ...)
 ???:0
0x69ec5a fancy_abort(char const*, int, char const*)
 ???:0
0x813491 most_specialized_partial_spec(tree_node*, int)
 ???:0
0x830231 instantiate_class_template(tree_node*)
 ???:0
0x86621b complete_type(tree_node*)
 ???:0
0x7f5c79 c_parse_file()
 ???:0
0x8e019d c_common_parse_file()
 ???:0
Please submit a full bug report, with preprocessed source (by using -freport-
bug).
Please include the complete backtrace with any bug report.
See  for instructions.

Thanks in advance!

Andre



-- System Information:
Debian Release: trixie/sid
   APT prefers unstable-debug
   APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.5.0-2-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gcc-12 depends on:
ii  binutils   2.41-6
ii  cpp-12 12.3.0-10
ii  gcc-12-base12.3.0-10
ii  libc6  2.37-12
ii  libcc1-0   13.2.0-5
ii  libgcc-12-dev  12.3.0-10
ii  libgcc-s1  13.2.0-5
ii  libgmp10   2:6.3.0+dfsg-2
ii  libisl23   0.26-3
ii  libmpc31.3.1-1
ii  libmpfr6   4.2.1-1
ii  libstdc++6 13.2.0-5
ii  libzstd1   1.5.5+dfsg2-2
ii  zlib1g 1:1.2.13.dfsg-3

Versions of packages gcc-12 recommends:
ii  libc6-dev  2.37-12

Versions of packages gcc-12 suggests:
ii  gcc-12-doc   12.2.0-1
pn  gcc-12-locales   
pn  gcc-12-multilib  

-- no debconf information




Bug#1053826: marked as done (gcc-12: internal compiler error with template specialization on floating point non-type-param in C++20 mode)

2023-10-17 Thread Debian Bug Tracking System
Your message dated Tue, 17 Oct 2023 15:50:51 +0200
with message-id <6de51b28-6dcf-4e63-a3a4-5e22fc6ff...@debian.org>
and subject line Re: Bug#1053826: gcc-12: internal compiler error with template 
specialization on floating point non-type-param in C++20 mode
has caused the Debian Bug report #1053826,
regarding gcc-12: internal compiler error with template specialization on 
floating point non-type-param in C++20 mode
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 ow...@bugs.debian.org
immediately.)


-- 
1053826: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053826
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: gcc-12
Version: 12.3.0-10
Severity: normal
X-Debbugs-Cc: andre.nauj...@keysight.com

Hello.

The following piece of code generates a compiler error with gcc-12 in C++20
mode:

template 
struct F {
static double foo() { return D; }
};

template 
struct F {
static double foo() { return 1.0; }
};

int main()
{
return F::foo();
}

gcc-13 in sid does compile this correctly. on godbolt only gcc-trunk, not
gcc-13, compiles this, so from my point of view, it may be a Debian patch in
gcc-13 in sid, which fixes this.

The error (on gcc-12 from sid) is this:

$ g++-12 -std=c++20 -o test test.cpp
test.cpp: In function ‘int main()’:
test.cpp:13:29: internal compiler error: in unify, at cp/pt.cc:24903
   13 | return F::foo();
  | ^~
0x7f41729256c9 __libc_start_call_main
../sysdeps/nptl/libc_start_call_main.h:58
0x7f4172925784 __libc_start_main_impl
../csu/libc-start.c:360
Please submit a full bug report, with preprocessed source (by using -freport-
bug).
Please include the complete backtrace with any bug report.
See  for instructions.



gcc in bookworm looks a little different but should be the same bug:

$ g++ -std=c++20 -o test test.cpp
test.cpp: In function 'int main()':
test.cpp:13:29: internal compiler error: in unify, at cp/pt.cc:24832
   13 | return F::foo();
  | ^~
0x1afaeb6 internal_error(char const*, ...)
???:0
0x69ec5a fancy_abort(char const*, int, char const*)
???:0
0x813491 most_specialized_partial_spec(tree_node*, int)
???:0
0x830231 instantiate_class_template(tree_node*)
???:0
0x86621b complete_type(tree_node*)
???:0
0x7f5c79 c_parse_file()
???:0
0x8e019d c_common_parse_file()
???:0
Please submit a full bug report, with preprocessed source (by using -freport-
bug).
Please include the complete backtrace with any bug report.
See  for instructions.

Thanks in advance!

Andre



-- System Information:
Debian Release: trixie/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.5.0-2-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gcc-12 depends on:
ii  binutils   2.41-6
ii  cpp-12 12.3.0-10
ii  gcc-12-base12.3.0-10
ii  libc6  2.37-12
ii  libcc1-0   13.2.0-5
ii  libgcc-12-dev  12.3.0-10
ii  libgcc-s1  13.2.0-5
ii  libgmp10   2:6.3.0+dfsg-2
ii  libisl23   0.26-3
ii  libmpc31.3.1-1
ii  libmpfr6   4.2.1-1
ii  libstdc++6 13.2.0-5
ii  libzstd1   1.5.5+dfsg2-2
ii  zlib1g 1:1.2.13.dfsg-3

Versions of packages gcc-12 recommends:
ii  libc6-dev  2.37-12

Versions of packages gcc-12 suggests:
ii  gcc-12-doc   12.2.0-1
pn  gcc-12-locales   
pn  gcc-12-multilib  

-- no debconf information
--- End Message ---
--- Begin Message ---
This is fixed in GCC 13, available in testing and unstable.  Doesn't look like a 
regression, so it's unlikely to be backported.


On 12.10.23 09:20, Andre Naujoks wrote:

Package: gcc-12
Version: 12.3.0-10
Severity: normal
X-Debbugs-Cc: andre.nauj...@keysight.com

Hello.

The following piece of code generates a compiler error with gcc-12 in C++20
mode:

template 
struct F {
 static double foo() { return D; }
};

template 
struct F {
 static double foo() { return 1.0; }
};

int main()
{
 return F::foo();
}

gcc-13 in sid does compile this correctly. on godbolt only gcc-trunk, not
gcc-13, compiles this, so from my point of view, it may be a Debian patch in
gcc-13 in sid, which fixes this.

The error (on gcc-12 from sid) is this:

$ g++-12 -std=c++20 -o test test.cpp
test.cpp: In function ‘int main()’:
test.cpp:13:29: internal compiler error: in unify, at cp/pt.cc

Bug#1053519: marked as done (gcc-12: ICE when compiling ghdl 3.0.0 on arm64)

2023-10-17 Thread Debian Bug Tracking System
Your message dated Tue, 17 Oct 2023 16:01:38 +0200
with message-id <92d813d4-5714-4336-b6ee-53c879210...@debian.org>
and subject line Re: Bug#1053519: gcc-12: ICE when compiling ghdl 3.0.0 on arm64
has caused the Debian Bug report #1053519,
regarding gcc-12: ICE when compiling ghdl 3.0.0 on arm64
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 ow...@bugs.debian.org
immediately.)


-- 
1053519: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053519
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: gcc-12
Version: 12.3.0-9
Severity: normal
Tags: upstream
Forwarded: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111704
X-Debbugs-Cc: s...@debian.org
Control: affects -1 = ghdl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hi,

GHDL steps on an ICE while compiling GHDL 3.0.0 on arm64:

aarch64-linux-gnu-gcc-12 -c -I./ -I../../src -I../../src/vhdl -I../../src/synth 
-I../../src/grt -I../../src/psl -I../../src/vhdl/translate -I../../src/ghdldrv 
-I../../src/ortho -I../../src/ortho/llvm6 -I../../src/synth -I../../src/ghdldrv 
-gnat12 -gnaty3befhkmr -g -gnatwa -gnatwC -gnatf -g -O2 
-ffile-prefix-map=/<>=. -fstack-protector-strong 
-fstack-clash-protection -mbranch-protection=standard -gno-record-gcc-switches 
-gnata -I- /<>/src/synth/synth-disp_vhdl.adb
/<>/src/ghdldrv/ghdldrv.adb: In function ‘Ghdldrv.Gen_Makefile’:
/<>/src/ghdldrv/ghdldrv.adb:2022:8: error: unrecognizable insn:
(insn 1387 147 204 13 (parallel [
(set (mem/c:SI (plus:DI (reg/f:DI 29 x29)
(const_int -260 [0xfefc])) [36 files_it+4 
S4 A32])
(reg:SI 2 x2 [244]))
(set (mem/c:SI (plus:DI (reg/f:DI 29 x29)
(const_int -256 [0xff00])) [36 files_it+8 
S4 A64])
(reg:SI 1 x1 [604]))
]) "/<>/src/ghdldrv/ghdldrv.adb":1926:19 -1
 (expr_list:REG_DEAD (reg:SI 2 x2 [244])
(expr_list:REG_DEAD (reg:SI 1 x1 [604])
(nil
during RTL pass: cprop_hardreg

Full build log is at 
https://buildd.debian.org/status/fetch.php?pkg=ghdl&arch=arm64&ver=3.0.0%2Bdfsg2-1&stamp=1696130520&raw=0

I have already reported this to the GCC Bugzilla.

   Simon

- -- System Information:
Debian Release: 12.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'stable-debug'), (500, 'stable')
merged-usr: no
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf

Kernel: Linux 6.1.0-12-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages gcc-12 depends on:
ii  binutils   2.40-2
ii  cpp-12 12.2.0-14
ii  gcc-12-base12.2.0-14
ii  libc6  2.36-9+deb12u3
ii  libcc1-0   12.2.0-14
ii  libgcc-12-dev  12.2.0-14
ii  libgcc-s1  12.2.0-14
ii  libgmp10   2:6.2.1+dfsg1-1.1
ii  libisl23   0.25-1
ii  libmpc31.3.1-1
ii  libmpfr6   4.2.0-1
ii  libstdc++6 12.2.0-14
ii  libzstd1   1.5.4+dfsg2-5
ii  zlib1g 1:1.2.13.dfsg-1

Versions of packages gcc-12 recommends:
ii  libc6-dev  2.36-9+deb12u3

Versions of packages gcc-12 suggests:
pn  gcc-12-doc   
pn  gcc-12-locales   
pn  gcc-12-multilib  

- -- no debconf information

-BEGIN PGP SIGNATURE-

iQEzBAEBCgAdFiEEtjuqOJSXmNjSiX3Tfr04e7CZCBEFAmUexsEACgkQfr04e7CZ
CBHkYggArUJUHU/RlpTocoJ13EqLsENnfQGVlLuwcyX1lSEZRA06WGZk4HXa8Q85
V6TZNDtY1wjUdMQq/AWGPxyXJH/KqZRXHyx95L1fh7LY6BiI52/uajkzTQm0+V9M
HgUMDM2XrH23ocFNU/91vNmH4RH0bjYaV215ES4XHt+RV+YJpjjo9zFmjCYy99O/
PYFdq3XkIDKgNrFc7aN4hdPf94Xx0dFRZQ0JUA9X+y3Bzx5OIH7yUZkGEP4zrhv5
twIKAN0rdI6t89CCW/WhtIDaP2CYfraiB+vdMBtGdaOKCE09D8dVjpHB85CFqYyy
/MD/PclgY7KNaQvGj4fdk6AgWEIFPg==
=ijpm
-END PGP SIGNATURE-
--- End Message ---
--- Begin Message ---

On 05.10.23 16:22, Simon Richter wrote:

Package: gcc-12
Version: 12.3.0-9
Severity: normal
Tags: upstream
Forwarded: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111704
X-Debbugs-Cc: s...@debian.org
Control: affects -1 = ghdl

Hi,

GHDL steps on an ICE while compiling GHDL 3.0.0 on arm64:

aarch64-linux-gnu-gcc-12 -c -I./ -I../../src -I../../src/vhdl -I../../src/synth -I../../src/grt 
-I../../src/psl -I../../src/vhdl/translate -I../../src/ghdldrv -I../../src/ortho 
-I../../src/ortho/llvm6 -I../../src/synth -I../../src/ghdldrv -gnat12 -gnaty3befhkmr -g -gnatwa -gnatwC 
-gnatf -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong 
-fstack-clash-protection -mbranch-protection=standard -gno-record-gcc-switches -gnata -I- 
/<>/src

Processing of gcc-snapshot_20231017-1_source.changes

2023-10-17 Thread Debian FTP Masters
gcc-snapshot_20231017-1_source.changes uploaded successfully to localhost
along with the files:
  gcc-snapshot_20231017-1.dsc
  gcc-snapshot_20231017.orig.tar.gz
  gcc-snapshot_20231017-1.debian.tar.xz
  gcc-snapshot_20231017-1_source.buildinfo

Greetings,

Your Debian queue daemon (running on host usper.debian.org)



gcc-snapshot_20231017-1_source.changes ACCEPTED into unstable

2023-10-17 Thread Debian FTP Masters
Thank you for your contribution to Debian.



Accepted:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Format: 1.8
Date: Tue, 17 Oct 2023 15:44:11 +0200
Source: gcc-snapshot
Architecture: source
Version: 1:20231017-1
Distribution: unstable
Urgency: medium
Maintainer: Debian GCC Maintainers 
Changed-By: Matthias Klose 
Changes:
 gcc-snapshot (1:20231017-1) unstable; urgency=medium
 .
   * Snapshot, taken from the trunk (20231017).
Checksums-Sha1:
 ba464a3266a05304abdb9c44f3d64095d7082906 12798 gcc-snapshot_20231017-1.dsc
 8d8d19965c81059d8d20baf6d04e0aac8715eb6d 88938038 
gcc-snapshot_20231017.orig.tar.gz
 ab313cb08ee43d970fca9947a62a10f7b609116d 478868 
gcc-snapshot_20231017-1.debian.tar.xz
 1b189225d16e54894bdebdae863158d48e0232ad 9816 
gcc-snapshot_20231017-1_source.buildinfo
Checksums-Sha256:
 ff3511ec286d8d619e4a395645bfdfbd002a4528af3d4fa2799b9ab133a9a8fd 12798 
gcc-snapshot_20231017-1.dsc
 3b7cda5c238295cd7257623f940fbf1d639309ec30700b3efa7db5425b580eeb 88938038 
gcc-snapshot_20231017.orig.tar.gz
 6c9191ade6eae518e1ec44f182e6ed03c8e4748bb306706171b1252a411a5100 478868 
gcc-snapshot_20231017-1.debian.tar.xz
 236839232e2b6ad582f4da15e556d56e0ac040b2db1a11535d7fa8d0ef7306b0 9816 
gcc-snapshot_20231017-1_source.buildinfo
Files:
 85d37cfc1a60cbeac5bd631ba6836fa8 12798 devel optional 
gcc-snapshot_20231017-1.dsc
 f969300b3ba9743a27a396b2c03931de 88938038 devel optional 
gcc-snapshot_20231017.orig.tar.gz
 f63a6f02b4b5ed16c18c71b44b68fc30 478868 devel optional 
gcc-snapshot_20231017-1.debian.tar.xz
 7f101ef94157958c08d816172879b3f1 9816 devel optional 
gcc-snapshot_20231017-1_source.buildinfo

-BEGIN PGP SIGNATURE-

iQJEBAEBCgAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAmUukCYQHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9TjtD/4z9ZihRg9iL/V7u4SkcAS0iUi3rB6U22wy
X6QFuyQ1EbaND+EHn0HxBpeQGBj2MoV7z48SVjE9e24aWyVlF7AHZjtSZUtMnXwP
Hy0sNUSdexH6+CdBSwbx4TqBk5+32OP6OmK250JtBLfz2AkzfyS5tQ8YMwNM9Cs+
4vyvfSzaAx4ei/2AtXew2mOC6oVOw8qnrJgDeJVq9rzrIa9hD/cusx9sjWX1cPCg
h1EgUyOYas720tbMAETfZE02UfTCqaeyvuJLuK/z2vrWuwjKteUnw8J7Nu1IscWn
O0jY5vL+Rk76Zosu9UjRYgrNV2izJSOjrgV2hq3pOyo/AKpHtst72vRXzPhXXViy
L7VaeWgluY+5oTTjT8titw9mx2oUhPkno6Lk5a0tiDJbbbGHfk1oHyC1PuMe7V6f
iVrMHsquTYfIXBRosCQTSxA0iMyzLZTPcfEtb32/t2H/x5hPqGoXd1iF4EOocJxI
4t9g3YO5DpDrn+W1FOgxPDhgK1KEni5OMxGc5cBAuakoTQjJii/YYk0pZwTxeBVm
siFzcaIhyH2R93oK0fUr/rC9JswLyp0YrCebinE2vp/sZF1jKW3D1EIipLukf2L7
XWeMiB31am3np4SkO0jh0dvFK970c770egnZPyOK8ZD8JYpySvDJxOZvPpJbMCex
mdhRcyoaMA==
=azVt
-END PGP SIGNATURE-



Bug#847096: elfutils: Does not build when using eatmydata

2023-10-17 Thread Santiago Vila

Version: 0.183-1

Hello. According to my build logs, this is fixed at least in bullseye,
so I'm closing with this message.

Thanks.



Bug#847096: marked as done (elfutils: Does not build when using eatmydata)

2023-10-17 Thread Debian Bug Tracking System
Your message dated Wed, 18 Oct 2023 00:13:13 +0200
with message-id <2067c8ce-d0f6-481b-86b2-f5f325ea8...@debian.org>
and subject line Re: elfutils: Does not build when using eatmydata
has caused the Debian Bug report #847096,
regarding elfutils: Does not build when using eatmydata
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 ow...@bugs.debian.org
immediately.)


-- 
847096: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=847096
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: elfutils
Version: 0.166-2.2
Severity: wishlist

Dear maintainer:

I can't build this package from source when using eatmydata.

To reproduce, please use sbuild and a file
/etc/schroot/chroot.d/stretch-eatmydata like this:

[stretch-eatmydata]
type=directory
description=Debian stretch
directory=/chroot/stretch
groups=sbuild
root-groups=sbuild
preserve-environment=true
union-type=overlay
command-prefix=eatmydata

I attach two different build logs, one with eatmydata and another one
without it, on similarly configured machines.

Of course, it is not policy that packages should build with eatmydata
(which is why I'm filing this as wishlist), but this is something
that really helps to go a lot faster when doing archive rebuilds.

Thanks.

elfutils_0.166-2.2_amd64-20161205T150303Z.gz
Description: application/gzip


elfutils_0.166-2.2_amd64-20161205T150306Z.gz
Description: application/gzip
--- End Message ---
--- Begin Message ---

Version: 0.183-1

Hello. According to my build logs, this is fixed at least in bullseye,
so I'm closing with this message.

Thanks.--- End Message ---