Closed valiko-ua closed 2 months ago
I can't reproduce this using either 20.0 or 18.1.3 with assertions.
Can you reproduce this using snaphot builds from https://apt.llvm.org or your own build of main
from sources?
@llvm/issue-subscribers-clang-frontend
Author: Valentyn Shtronda (valiko-ua)
@llvm/issue-subscribers-c-1
Author: Valentyn Shtronda (valiko-ua)
I've made some more attempts to build it and one attempt succeeded. So this problem is intermittent.
I also see the following errors during configuration:
...
- cxx11_hdr_thread : yes [2]
- cxx11_hdr_regex : yes [2]
error: No best alternative for /home/username/prj/config/libraries/boost/boost_1_86_0/libs/predef/install with <abi>sysv <address-model>64 <architecture>x86 <asynch-exceptions>off <binary-format>elf <boost.beast.allow-deprecated>on <boost.beast.separate-compilation>on <boost.cobalt.executor>any_io_executor <boost.cobalt.pmr>std <boost.process.fs>boost <context-impl>fcontext <coverage>off <debug-symbols>off <exception-handling>on <extern-c-nothrow>off <inlining>full <known-warnings>hide <link>static <optimization>speed <os>LINUX <pch>on <preserve-test-targets>on <profiling>off <python-debugging>off <python>2.7 <rtti>on <runtime-debugging>off <runtime-link>shared <stdlib>native <strip>off <target-os>linux <testing.execute>on <threadapi>pthread <threading>multi <toolset-clang:platform>linux <toolset-clang:version>18 <toolset>clang <variant>release <vectorize>off <visibility>hidden <warnings-as-errors>off <warnings>on <x-deduced-platform>x86_64
matched: (empty)
matched: (empty)
- compiler supports SSE2 : yes [4]
- compiler supports SSE4.1 : yes [4]
...
- cxx11_hdr_thread : yes [4]
- cxx11_hdr_regex : yes [4]
error: No best alternative for /home/username/prj/config/libraries/boost/boost_1_86_0/libs/predef/install with <abi>sysv <address-model>64 <architecture>x86 <asynch-exceptions>off <binary-format>elf <boost.beast.allow-deprecated>on <boost.beast.separate-compilation>on <boost.cobalt.executor>any_io_executor <boost.cobalt.pmr>std <boost.process.fs>boost <context-impl>fcontext <coverage>off <debug-symbols>off <exception-handling>on <extern-c-nothrow>off <inlining>full <known-warnings>hide <link>shared <optimization>speed <os>LINUX <pch>on <preserve-test-targets>on <profiling>off <python-debugging>off <python>2.7 <rtti>on <runtime-debugging>off <runtime-link>shared <stdlib>native <strip>off <target-os>linux <testing.execute>on <threadapi>pthread <threading>multi <toolset-clang:platform>linux <toolset-clang:version>18 <toolset>clang <variant>release <vectorize>off <visibility>hidden <warnings-as-errors>off <warnings>on <x-deduced-platform>x86_64
matched: (empty)
matched: (empty)
[1] clang-18
[2] clang-linux-18/release/x86_64/link-static/python-2.7/threading-multi/visibility-hidden
[3] clang-linux-18/release/x86_64/build-no/link-static/python-2.7/threading-multi/visibility-hidden
[4] clang-linux-18/release/x86_64/python-2.7/threading-multi/visibility-hidden
[5] clang-linux-18/release/x86_64/build-no/python-2.7/threading-multi/visibility-hidden
...
I got back to 18.1.3 build in RelWithDebInfo configuration, but your reproducer didn't crash for me after 10 tries.
@Endilll If configuration phase errors that I mentioned in my previous post cannot cause such compiler crash, feel free to close this issue. Maybe it's caused by OS instability (Ubuntu 24.04) or my hardware malfunction.
Requested files are attached. Note that I replaced my username with "username" in them. The crash is reproducible on my side (tried twice).
files.zip