Fedora Account System
Red Hat Associate
Red Hat Customer
When we build ccache, gcc ICEs. The exact use case is building ccache-native with the Yocto Project, but I'll attach the preprocessed source as requested. Reproducible: Always Output from gcc: | FAILED: src/CMakeFiles/ccache_framework.dir/storage/local/LocalStorage.cpp.o | /home/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-2675876/tmp/hosttools/g++ -DUSE_XXH_DISPATCH -DXXH_STATIC_LINKING_ONLY -I/home/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-2675876/tmp/work/x86_64-linux/ccache-native/4.8-r0/build -I/home/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-2675876/tmp/work/x86_64-linux/ccache-native/4.8-r0/ccache-4.8/src -isystem/home/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-2675876/tmp/work/x86_64-linux/ccache-native/4.8-r0/recipe-sysroot-native/usr/include -O2 -pipe -DNDEBUG -std=c++17 -include /home/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-2675876/tmp/work/x86_64-linux/ccache-native/4.8-r0/build/config.h -Wall -MD -MT src/CMakeFiles/ccache_framework.dir/storage/local/LocalStorage.cpp.o -MF src/CMakeFiles/ccache_framework.dir/storage/local/LocalStorage.cpp.o.d -o src/CMakeFiles/ccache_framework.dir/storage/local/LocalStorage.cpp.o -c /home/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-2675876/tmp/work/x86_64-linux/ccache-native/4.8-r0/ccache-4.8/src/storage/local/LocalStorage.cpp | In file included from /home/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-2675876/tmp/work/x86_64-linux/ccache-native/4.8-r0/ccache-4.8/src/storage/local/LocalStorage.cpp:25: | /home/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-2675876/tmp/work/x86_64-linux/ccache-native/4.8-r0/ccache-4.8/src/storage/local/LocalStorage.cpp: In instantiation of ‘storage::local::LocalStorage::recompress(std::optional<signed char>, uint32_t, const storage::local::ProgressReceiver&)::<lambda(const auto:39&, const auto:40&)> [with auto:39 = unsigned char; auto:40 = std::function<void(double)>]’: | /usr/include/c++/12/type_traits:2559:26: required by substitution of ‘template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = storage::local::LocalStorage::recompress(std::optional<signed char>, uint32_t, const storage::local::ProgressReceiver&)::<lambda(const auto:39&, const auto:40&)>&; _Args = {unsigned char, const std::function<void(double)>&}]’ | /usr/include/c++/12/type_traits:2570:55: required from ‘struct std::__result_of_impl<false, false, storage::local::LocalStorage::recompress(std::optional<signed char>, uint32_t, const storage::local::ProgressReceiver&)::<lambda(const auto:39&, const auto:40&)>&, unsigned char, const std::function<void(double)>&>’ | /usr/include/c++/12/bits/std_function.h:348:9: recursively required by substitution of ‘template<class _Result, class _Ret> struct std::__is_invocable_impl<_Result, _Ret, true, std::__void_t<typename _CTp::type> > [with _Result = std::__invoke_result<storage::local::LocalStorage::recompress(std::optional<signed char>, uint32_t, const storage::local::ProgressReceiver&)::<lambda(const auto:39&, const auto:40&)>&, unsigned char, const std::function<void(double)>&>; _Ret = void]’ | /usr/include/c++/12/bits/std_function.h:348:9: required from ‘struct std::function<void(unsigned char, const std::function<void(double)>&)>::_Callable<storage::local::LocalStorage::recompress(std::optional<signed char>, uint32_t, const storage::local::ProgressReceiver&)::<lambda(const auto:39&, const auto:40&)>, storage::local::LocalStorage::recompress(std::optional<signed char>, uint32_t, const storage::local::ProgressReceiver&)::<lambda(const auto:39&, const auto:40&)>, std::__invoke_result<storage::local::LocalStorage::recompress(std::optional<signed char>, uint32_t, const storage::local::ProgressReceiver&)::<lambda(const auto:39&, const auto:40&)>&, unsigned char, const std::function<void(double)>&> >’ | /usr/include/c++/12/bits/std_function.h:353:8: required by substitution of ‘template<class _Res, class ... _ArgTypes> template<class _Cond, class _Tp> using _Requires = std::__enable_if_t<_Cond::value, _Tp> [with _Cond = std::function<void(unsigned char, const std::function<void(double)>&)>::_Callable<storage::local::LocalStorage::recompress(std::optional<signed char>, uint32_t, const storage::local::ProgressReceiver&)::<lambda(const auto:39&, const auto:40&)>, storage::local::LocalStorage::recompress(std::optional<signed char>, uint32_t, const storage::local::ProgressReceiver&)::<lambda(const auto:39&, const auto:40&)>, std::__invoke_result<storage::local::LocalStorage::recompress(std::optional<signed char>, uint32_t, const storage::local::ProgressReceiver&)::<lambda(const auto:39&, const auto:40&)>&, unsigned char, const std::function<void(double)>&> >; _Tp = void; _Res = void; _ArgTypes = {unsigned char, const std::function<void(double)>&}]’ | /usr/include/c++/12/bits/std_function.h:434:9: required by substitution of ‘template<class _Functor, class _Constraints> std::function<void(unsigned char, const std::function<void(double)>&)>::function(_Functor&&) [with _Functor = storage::local::LocalStorage::recompress(std::optional<signed char>, uint32_t, const storage::local::ProgressReceiver&)::<lambda(const auto:39&, const auto:40&)>; _Constraints = <missing>]’ | /home/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-2675876/tmp/work/x86_64-linux/ccache-native/4.8-r0/ccache-4.8/src/storage/local/LocalStorage.cpp:701:24: required from here | /home/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-2675876/tmp/work/x86_64-linux/ccache-native/4.8-r0/ccache-4.8/src/Logging.hpp:33:7: internal compiler error: Segmentation fault | 33 | Logging::log(std::string_view(message_)); \ | | ^~~~~~~ | /home/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-2675876/tmp/work/x86_64-linux/ccache-native/4.8-r0/ccache-4.8/src/Logging.hpp:39:27: note: in expansion of macro ‘LOG_RAW’ | 39 | #define LOG(format_, ...) LOG_RAW(fmt::format(FMT_STRING(format_), __VA_ARGS__)) | | ^~~~~~~ | /home/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-2675876/tmp/work/x86_64-linux/ccache-native/4.8-r0/ccache-4.8/src/storage/local/LocalStorage.cpp:710:13: note: in expansion of macro ‘LOG’ | 710 | LOG("Failed to acquire content lock for {}/{}", l1_index, l2_index); | | ^~~ | Please submit a full bug report, with preprocessed source. | See <http://bugzilla.redhat.com/bugzilla> for instructions. | Preprocessed source stored into /tmp/ccCNaot3.out file, please attach this to your bugreport.
Created attachment 1969086 [details] Crashing source code
This message is a reminder that Fedora Linux 37 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 37 on 2023-12-05. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '37'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 37 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.
The bug is fixed upstream and so fixed in f38