Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914998 - sys-devel/gcc-14.0.9999: fails to build (gcc/poly-int.h:453:5: error: too many initializers for ‘long int [1]’)
Summary: sys-devel/gcc-14.0.9999: fails to build (gcc/poly-int.h:453:5: error: too man...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-01 04:11 UTC by look
Modified: 2023-10-03 19:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
These are the build logs Emerge told me to attach. (gcc-build-logs.tar.xz,38.04 KB, application/x-xz)
2023-10-01 04:11 UTC, look
Details

Note You need to log in before you can comment on or make changes to this bug.
Description look 2023-10-01 04:11:42 UTC
Created attachment 871871 [details]
These are the build logs Emerge told me to attach.

Hi. The GCC verion I'm on is:

gcc (Gentoo 14.0.0 p, commit d0b55776a4e1d2f293db5ba0e4a04aefed055ec4) 14.0.0 20230926 (experimental) 0fb176ef0486d78b1bb473f0de794f6b8cc62ac3

But when updating, I get a compilation error. 
emerge --info output: https://0x0.st/HVhR.txt
environment file: https://0x0.st/HVh7.txt
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-01 04:20:32 UTC
Thanks.

```
g++  -fPIC -c    -march=skylake -pipe -O3     -DIN_GCC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -fPIC -I. -I. -I/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc -I/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/. -I/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/../include  -I/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/../libcpp/include -I/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/../libcody  -I/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/../libdecnumber/bid -I../libdecnumber -I/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/../libbacktrace   -o rtl-tests.o -MT rtl-tests.o -MMD -MP -MF ./.deps/rtl-tests.TPo /var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rtl-tests.cc
In file included from /var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/coretypes.h:480,
                 from /var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rtl-tests.cc:22:
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/poly-int.h: In instantiation of ‘constexpr poly_int<N, T>::poly_int(poly_int_full, const Cs& ...) [with Cs = {int, int}; unsigned int N = 1; C = long int]’:
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/poly-int.h:439:13:   required from here
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rtl-tests.cc:249:25:   in ‘constexpr’ expansion of ‘poly_int<1, long int>(1, 1)’
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/poly-int.h:453:5: error: too many initializers for ‘long int [1]’
  453 |   : coeffs { (typename poly_coeff_traits<C>::
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  454 |               template init_cast<Cs>::type (cs))... } {}
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:1190: rtl-tests.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/build-jit/gcc'
make[2]: *** Waiting for unfinished jobs....
```

This is https://gcc.gnu.org/PR111642 upstream.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-01 04:21:07 UTC
Given this is definitely an upstream bug and it's already been reported there and being worked on, I'll close this as UPSTREAM.

(If it weren't already being worked on/reported upstream, I wouldn't close it though, so the rpeort is valuable.)
Comment 4 Larry the Git Cow gentoo-dev 2023-10-03 19:03:52 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccf0a4e094c6cb18fdb7b4eb3dfb4692d2197ba6

commit ccf0a4e094c6cb18fdb7b4eb3dfb4692d2197ba6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-10-03 19:02:53 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-10-03 19:03:10 +0000

    sys-devel/gcc: backport USE=pgo bootstrap fix for 14.0.0_pre20231001
    
    Closes: https://bugs.gentoo.org/914998
    Signed-off-by: Sam James <sam@gentoo.org>

 .../gcc-14.0.0_pre20231001-pgo-bootstrap.patch     | 45 ++++++++++++++++++++++
 sys-devel/gcc/gcc-14.0.0_pre20231001.ebuild        |  1 +
 2 files changed, 46 insertions(+)