Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 837818 - dev-util/ccache: terminate called after throwing an instance of 'std::out_of_range' when building e.g. app-text/texlive-core-2021-r1, dev-lang/ghc, ...
Summary: dev-util/ccache: terminate called after throwing an instance of 'std::out_of_...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 862354 862426 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-04-11 10:07 UTC by Michal Jakubowski
Modified: 2022-07-31 07:01 UTC (History)
8 users (show)

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


Attachments
build.log (build.log,530.25 KB, text/x-log)
2022-04-11 10:07 UTC, Michal Jakubowski
Details
emerge_info (emerge_info,9.00 KB, text/plain)
2022-04-11 10:08 UTC, Michal Jakubowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Jakubowski 2022-04-11 10:07:09 UTC
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
Comment 1 Michal Jakubowski 2022-04-11 10:07:38 UTC
Created attachment 770081 [details]
build.log
Comment 2 Michal Jakubowski 2022-04-11 10:08:42 UTC
Created attachment 770084 [details]
emerge_info
Comment 3 Ooblick 2022-04-13 05:13:20 UTC
This was resolved for me by adding FEATURES="-ccache"
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-13 05:32:18 UTC
Was something on your machine built with GLIBCXX_ASSERTIONS?
Comment 5 Ooblick 2022-04-13 20:00:25 UTC
Not intentionally. Is there a command I can use to find out?
Comment 6 Martin Väth 2022-06-05 03:59:47 UTC
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.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-31 06:51:10 UTC
*** Bug 862426 has been marked as a duplicate of this bug. ***
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-31 06:51:17 UTC
*** Bug 862354 has been marked as a duplicate of this bug. ***
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-31 06:55:35 UTC
Someone hitting this will need to report it upstream to ccache at https://github.com/ccache/ccache/issues.