Bug 2149992 - Failure to compile std::u16string from libstdc++ 12.1 in c++20 mode
Summary: Failure to compile std::u16string from libstdc++ 12.1 in c++20 mode
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: clang
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom Stellard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-01 14:33 UTC by leigh scott
Modified: 2022-12-14 02:11 UTC (History)
15 users (show)

Fixed In Version: clang-14.0.5-2.fc36
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-12-14 02:11:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description leigh scott 2022-12-01 14:33:23 UTC
Description of problem: chromium-108 fails to compile.

[54374/54383] rm -f obj/chrome/browser/libbrowser.a && "llvm-ar" -T -r -c -s -D obj/chrome/browser/libbrowser.a @"obj/chrome/browser/libbrowser.a.rsp"
[54375/54383] /usr/bin/python3 "../../build/toolchain/gcc_link_wrapper.py" --output="./v8_context_snapshot_generator" -- clang++ -fuse-ld=lld -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--color-diagnostics -Wl,-mllvm,-instcombine-lower-dbg-declare=0 -flto=thin -Wl,--thinlto-jobs=all -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy=cache_size=10\%:cache_size_bytes=40g:cache_size_files=100000 -Wl,-mllvm,-import-instr-limit=30 -fwhole-program-vtables -Wl,--no-call-graph-profile-sort -m64 -Wl,-O2 -Wl,--gc-sections -rdynamic -Wl,-z,defs -Wl,--as-needed -Wl,--lto-O0 -pie -Wl,--disable-new-dtags -Wl,--icf=none -L/usr/lib64 -o "./v8_context_snapshot_generator" -Wl,--start-group @"./v8_context_snapshot_generator.rsp"  -Wl,--end-group  -latomic -ldl -lpthread -lrt -lgmodule-2.0 -lglib-2.0 -lgobject-2.0 -lgthread-2.0 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lresolv -lgio-2.0 -lexpat -luuid -lm -lz -lX11 -lXcomposite -lXdamage -lXext -lXfixes -lXrender -lXrandr -lXtst -lpipewire-0.3 -lgbm -lEGL -ldrm -lxcb -lxkbcommon -lXi -lpci -lffi -ldbus-1 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -lcairo -latk-1.0 -latk-bridge-2.0 -lasound -lpulse -latspi
FAILED: v8_context_snapshot_generator 
/usr/bin/python3 "../../build/toolchain/gcc_link_wrapper.py" --output="./v8_context_snapshot_generator" -- clang++ -fuse-ld=lld -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--color-diagnostics -Wl,-mllvm,-instcombine-lower-dbg-declare=0 -flto=thin -Wl,--thinlto-jobs=all -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy=cache_size=10\%:cache_size_bytes=40g:cache_size_files=100000 -Wl,-mllvm,-import-instr-limit=30 -fwhole-program-vtables -Wl,--no-call-graph-profile-sort -m64 -Wl,-O2 -Wl,--gc-sections -rdynamic -Wl,-z,defs -Wl,--as-needed -Wl,--lto-O0 -pie -Wl,--disable-new-dtags -Wl,--icf=none -L/usr/lib64 -o "./v8_context_snapshot_generator" -Wl,--start-group @"./v8_context_snapshot_generator.rsp"  -Wl,--end-group  -latomic -ldl -lpthread -lrt -lgmodule-2.0 -lglib-2.0 -lgobject-2.0 -lgthread-2.0 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lresolv -lgio-2.0 -lexpat -luuid -lm -lz -lX11 -lXcomposite -lXdamage -lXext -lXfixes -lXrender -lXrandr -lXtst -lpipewire-0.3 -lgbm -lEGL -ldrm -lxcb -lxkbcommon -lXi -lpci -lffi -ldbus-1 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -lcairo -latk-1.0 -latk-bridge-2.0 -lasound -lpulse -latspi
ld.lld: error: undefined symbol: void std::__cxx11::basic_string<char16_t, std::char_traits<char16_t>, std::allocator<char16_t> >::_M_construct<char16_t const*>(char16_t const*, char16_t const*, std::forward_iterator_tag)
>>> referenced by skeleton_generator.cc
>>>               thinlto-cache/llvmcache-74F39D4271E61E212B9DE8AF2A31A2A8E125F721:(SkeletonGenerator::MaybeRemoveDiacritics[abi:cxx11](base::BasicStringPiece<char16_t, std::char_traits<char16_t> >))
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
RPM build errors:


Version-Release number of selected component (if applicable): llvm-14.0.5-1.fc36


Additional info: https://github.com/llvm/llvm-project/issues/55560

Comment 1 Nicolas Chauvet (kwizart) 2022-12-01 14:38:53 UTC
Here is a backport done in pagure: (test in progress).
https://src.fedoraproject.org/rpms/llvm/pull-request/157

Comment 2 Nicolas Chauvet (kwizart) 2022-12-01 14:40:42 UTC
Koji scratch build for f36
https://koji.fedoraproject.org/koji/taskinfo?taskID=94789660

Comment 3 Nicolas Chauvet (kwizart) 2022-12-01 15:27:42 UTC
Okay, failed to apply the patch as appropriate:

https://src.fedoraproject.org/rpms/clang/pull-request/188
https://koji.fedoraproject.org/koji/taskinfo?taskID=94792137

Comment 4 Fedora Update System 2022-12-05 12:00:16 UTC
FEDORA-2022-291436cf64 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-291436cf64

Comment 5 Fedora Update System 2022-12-06 01:18:12 UTC
FEDORA-2022-291436cf64 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-291436cf64`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-291436cf64

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2022-12-14 02:11:29 UTC
FEDORA-2022-291436cf64 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.