Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 948058 - sys-devel/gcc-15.0.0_pre20250112-r1 fails to compile
Summary: sys-devel/gcc-15.0.0_pre20250112-r1 fails to compile
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2025-01-13 19:35 UTC by David Goudou
Modified: 2025-04-25 22:27 UTC (History)
2 users (show)

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


Attachments
emerge --info (emergeinfo.txt,5.94 KB, text/plain)
2025-01-13 19:35 UTC, David Goudou
Details
build log (build.log.xz,118.63 KB, application/x-xz)
2025-01-13 20:34 UTC, David Goudou
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Goudou 2025-01-13 19:35:46 UTC
Created attachment 916464 [details]
emerge --info

make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/build/gcc'
rm gfdl.pod gcc.pod gfortran.pod gcov-dump.pod gcov-tool.pod fsf-funding.pod gpl.pod cpp.pod gcov.pod lto-dump.pod
make[2]: *** [Makefile:4794: all-stage3-gcc] Error 2
make[1]: *** [Makefile:24934: stage3-bubble] Error 2
make: *** [Makefile:25009: bootstrap-lean] Error 2
Comment 1 Paul Zander 2025-01-13 19:49:02 UTC
Attach the full build.log please.
Comment 2 David Goudou 2025-01-13 19:50:16 UTC
log seems to be too large to upload (14.8 MiB)
Comment 3 David Goudou 2025-01-13 19:53:04 UTC
this might work: https://filebin.net/rmfyhf7n0me4sat4
Comment 4 Paul Zander 2025-01-13 20:15:18 UTC
xz -9e <build.log>
Comment 5 David Goudou 2025-01-13 20:34:03 UTC
Created attachment 916466 [details]
build log
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-14 02:07:07 UTC
```
make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/build/gcc'
make[3]: Entering directory '/var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/build/gcc'
/var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/build/./prev-gcc/xg++ -B/var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -nostdinc++ -B/var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -B/var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs  -isystem /var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu  -isystem /var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include  -isystem /var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/gcc-15-20250112/libstdc++-v3/libsupc++ -L/var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs  -fPIE -c -DDEF_GENTOO_SCP -DDEF_GENTOO_ZNOW -DEXTRA_OPTIONS_CF -DEXTRA_OPTIONS -DGENTOO_FORTIFY_SOURCE_LEVEL=3 -DDEF_GENTOO_GLIBCXX_ASSERTIONS     -m64 -march=x86-64-v3 -pipe -O2 -fchecking=1 -fcf-protection -DIN_GCC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-error=narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings  -DHAVE_CONFIG_H -fPIE -I. -I. -I/var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/gcc-15-20250112/gcc -I/var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/gcc-15-20250112/gcc/. -I/var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/gcc-15-20250112/gcc/../include  -I/var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/gcc-15-20250112/gcc/../libcpp/include -I/var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/gcc-15-20250112/gcc/../libcody  -I/var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/gcc-15-20250112/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/gcc-15-20250112/gcc/../libdecnumber/bid -I../libdecnumber -I/var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/gcc-15-20250112/gcc/../libbacktrace  -D_GENTOO_TIME64_FORCE=0 -o rtlhooks.o -MT rtlhooks.o -MMD -MP -MF ./.deps/rtlhooks.TPo /var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/gcc-15-20250112/gcc/rtlhooks.cc
In file included from /var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/gcc-15-20250112/libstdc++-v3/include/bits/unique_ptr.h:37,
                 from /var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/gcc-15-20250112/libstdc++-v3/include/std/memory:80,
                 from /var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/gcc-15-20250112/gcc/system.h:228,
                 from /var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/gcc-15-20250112/gcc/rtlhooks.cc:21:
/var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/gcc-15-20250112/libstdc++-v3/include/std/tuple:835:7: internal compiler error: in linemap_macro_map_lookup, at libcpp/line-map.cc:1167
  835 |       using _Inherited = _Tuple_impl<0, _Elements...>;
      |       ^~~~~
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <https://bugs.gentoo.org/> for instructions.
make[3]: *** [Makefile:1210: rtlhooks.o] Error 1
make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/build/gcc'
make[3]: *** Waiting for unfinished jobs....
make[3]: Entering directory '/var/tmp/portage/sys
```

Your emerge --info shows..
```
sys-devel/gcc:             15.0.0_pre20250112::gentoo
```

Nothing in libcpp has changed since then. Does it fail if you re-try? What if you cd into /var/tmp/portage/sys-devel/gcc-15.0.0_pre20250112-r1/work/build/gcc and run that failing command I pasted manually?
Comment 7 David Goudou 2025-01-14 02:46:20 UTC
Hi Sam, I rebuit binutils after commit 29cd0fdd2da82cda5d9575f5028f50a024a9b9a4 (Revert "sys-devel/binutils: workaround ifcombine bug")

and so far it looks like gcc-15.0.0_pre20250112-r1 will finish successfully

it might just be third time lucky (failed twice prior)
Comment 8 David Goudou 2025-01-14 03:01:42 UTC
yup all went well

sys-devel/gcc:             15.0.0_pre20250112-r1::gentoo
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-14 07:47:03 UTC
Very good. I'm afraid it does sound a bit like failing memory though -- maybe do a memtest?

Thanks for testing 15.
Comment 10 David Goudou 2025-01-14 14:36:11 UTC
will do a memtest for sure

gcc-15.0.0_pre20250112-r2 built first run, perhaps I have my MAKEOPTS set too high also?

```
MAKEOPTS="-j16 -l16"
EMERGE_DEFAULT_OPTS="--jobs=16 --load-average=16 --complete-graph=y"
```