Making all in pmx make[3]: Entering directory '/var/tmp/portage/ram/portage/app-text/texlive-core-2021-r1/work/texlive-core-2021_build/utils/pmx' x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"pmx\ \(TeX\ Live\)\" -DPACKAGE_TARNAME=\"pmx--tex-live-\" -DPACKAGE_VERSION=\"2.9.4a\" -DPACKAGE_STRING=\"pmx\ \(TeX\ Live\)\ 2.9.4a\" -DPACKAGE_BUGREPORT=\"tex-k@tug.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"pmx--tex-live-\" -DVERSION=\"2.9.4a\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_LONG_LONG=8 -I. -I/var/tmp/portage/ram/portage/app-text/texlive-core-2021-r1/work/texlive-20210325-source/utils/pmx -I/var/tmp/portage/ram/portage/app-text/texlive-core-2021-r1/work/texlive-20210325-source/utils/pmx/pmx-src/libf2c -DNON_UNIX_STDIO -march=haswell -mtune=haswell -O2 -pipe -fno-lto -Wl,-O1 -Wl,--as-needed -c -o pmx-src/pmxab.o /var/tmp/portage/ram/portage/app-text/texlive-core-2021-r1/work/texlive-20210325-source/utils/pmx/pmx-src/pmxab.c x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"pmx\ \(TeX\ Live\)\" -DPACKAGE_TARNAME=\"pmx--tex-live-\" -DPACKAGE_VERSION=\"2.9.4a\" -DPACKAGE_STRING=\"pmx\ \(TeX\ Live\)\ 2.9.4a\" -DPACKAGE_BUGREPORT=\"tex-k@tug.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"pmx--tex-live-\" -DVERSION=\"2.9.4a\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_LONG_LONG=8 -I. -I/var/tmp/portage/ram/portage/app-text/texlive-core-2021-r1/work/texlive-20210325-source/utils/pmx -I/var/tmp/portage/ram/portage/app-text/texlive-core-2021-r1/work/texlive-20210325-source/utils/pmx/pmx-src/libf2c -DNON_UNIX_STDIO -march=haswell -mtune=haswell -O2 -pipe -fno-lto -Wl,-O1 -Wl,--as-needed -c -o pmx-src/scor2prt.o /var/tmp/portage/ram/portage/app-text/texlive-core-2021-r1/work/texlive-20210325-source/utils/pmx/pmx-src/scor2prt.c terminate called after throwing an instance of 'std::out_of_range' what(): nonstd::string_view::substr() make[3]: *** [Makefile:1649: pmx-src/scor2prt.o] Aborted make[3]: *** Waiting for unfinished jobs.... terminate called after throwing an instance of 'std::out_of_range' what(): nonstd::string_view::substr() make[3]: *** [Makefile:1649: pmx-src/pmxab.o] Aborted make[3]: Leaving directory '/var/tmp/portage/ram/portage/app-text/texlive-core-2021-r1/work/texlive-core-2021_build/utils/pmx' make[2]: *** [Makefile:919: recurse] Error 1 make[2]: Leaving directory '/var/tmp/portage/ram/portage/app-text/texlive-core-2021-r1/work/texlive-core-2021_build/utils' make[1]: *** [Makefile:489: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/ram/portage/app-text/texlive-core-2021-r1/work/texlive-core-2021_build/utils' make: *** [Makefile:583: all-recursive] Error 1 * ERROR: app-text/texlive-core-2021-r1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=app-text/texlive-core-2021-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-text/texlive-core-2021-r1::gentoo'`. * The complete build log is located at '/var/tmp/portage/ram/portage/app-text/texlive-core-2021-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/ram/portage/app-text/texlive-core-2021-r1/temp/environment'. * Working directory: '/var/tmp/portage/ram/portage/app-text/texlive-core-2021-r1/work/texlive-core-2021_build' * S: '/var/tmp/portage/ram/portage/app-text/texlive-core-2021-r1/work/texlive-core-2021_build' * * The following package has failed to build, install, or execute postinst: * * (app-text/texlive-core-2021-r1:0/0::gentoo, ebuild scheduled for merge), Log file: * '/var/tmp/portage/ram/portage/app-text/texlive-core-2021-r1/temp/build.log' * Reproducible: Always
Created attachment 770081 [details] build.log
Created attachment 770084 [details] emerge_info
This was resolved for me by adding FEATURES="-ccache"
Was something on your machine built with GLIBCXX_ASSERTIONS?
Not intentionally. Is there a command I can use to find out?
It really seems to be a ccache issue: Setting CCACHE_RECACHE=1 doesn't solve the problem but disabling cacche completely does. I do have almost everything compiled with GLIBCXX_ASSERTIONS. At least, compiling only ccache without GLIBCXX_ASSERTIONS did not solve the problem, either.
*** Bug 862426 has been marked as a duplicate of this bug. ***
*** Bug 862354 has been marked as a duplicate of this bug. ***
Someone hitting this will need to report it upstream to ccache at https://github.com/ccache/ccache/issues.