Summary: | llvm-core/clang-18: ICE when building net-im/telegram-desktop-5.0.4 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | cmvu <cmvu> |
Component: | Current packages | Assignee: | LLVM support project <llvm> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | bivsk, cmvu, parona, StormByte, xarblu |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 351559 | ||
Attachments: |
Compilation with O3
Compilation with normal flags base_url_scheme_linux.sh base_power_save_blocker_linux-1f9c4f.sh base_last_input_linux-0bc6ee.sh Tar archive with cpp files mentioned in build log. Part 1 Tar archive with cpp files mentioned in build log. Part 2 |
Description
cmvu
2024-06-03 21:04:03 UTC
Created attachment 895016 [details]
Compilation with O3
Created attachment 895017 [details]
Compilation with normal flags
Could you include these? (from the minimal flag build preferably) PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang++: note: diagnostic msg: /var/tmp/portage/net-im/telegram-desktop-5.0.4/temp/base_url_scheme_linux-0df093.cpp clang++: note: diagnostic msg: /var/tmp/portage/net-im/telegram-desktop-5.0.4/temp/base_url_scheme_linux-0df093.sh clang++: note: diagnostic msg: And this occurs with clang-17 as well? Created attachment 895019 [details]
base_url_scheme_linux.sh
Created attachment 895020 [details]
base_power_save_blocker_linux-1f9c4f.sh
Created attachment 895021 [details]
base_last_input_linux-0bc6ee.sh
I`ve attached sh files that are mentioned in build log. Unfortunately I cant attach cpp file because even compressed they are still over file size limit. Maybe there is a way to still post it here (for exmaple pastebin) Yes problem occurs on clang-17 and clang-18 in both flag configurations (o3 and O2) I'll try to replicate on my llvm machine. Will see if I'm able to minimise the reproducer. Something in system cppgir and how it interacts with telegram is tripping it. This problem also occurs on latest telegram version - 5.1.1 System installed cppgir version is dev-cpp/cppgir-2.0_p20240315 Just as test i`ll try to downgrade it Created attachment 895022 [details]
Tar archive with cpp files mentioned in build log. Part 1
Created attachment 895023 [details]
Tar archive with cpp files mentioned in build log. Part 2
Squeezed cpp files in. Its a zstd compressed tar archive. Use cat tg-933496.tar.zst00 tg-933496.tar.zst01 | tar --zstd --extract --file - to decompress I am running into this bug when compiling telegram-desktop-5.2.3 with Clang 18. (In reply to James McGeehan IV from comment #15) > I am running into this bug when compiling telegram-desktop-5.2.3 with Clang > 18. At least for the 5.2.3 version I found out that removing the patch ${FILESDIR}"/tdesktop-4.10.0-system-cppgir.patch from the ebuild makes it compile good. (In reply to David Carlos Manuelda from comment #16) > (In reply to James McGeehan IV from comment #15) > > I am running into this bug when compiling telegram-desktop-5.2.3 with Clang > > 18. > > At least for the 5.2.3 version I found out that removing the patch > ${FILESDIR}"/tdesktop-4.10.0-system-cppgir.patch from the ebuild makes it > compile good. Hm well, after posting my previous comment, I tried re-emerging, and it worked fine. No ICE. Not quite sure, but I'll keep an eye on it (and this bug report). Thanks I'm starting to believe this could be some sort of race condition. My desktop (Ryzen 9 7950X3D) consistently ran into this while my laptop (Core i5-1240P) didn't - the only toolchain difference between them is MAKEOPTS="-j32" vs MAKEOPTS="-j16". So I tried the lower MAKEOPTS="-j16" on desktop and now net-im/telegram-desktop-5.10.7 builds without issues using clang-19. |