Summary: | std::random_shuffle broken with LLVM11 | ||
---|---|---|---|
Product: | Base System | Reporter: | Tobias Kortkamp <tobik> |
Component: | bin | Assignee: | Dimitry Andric <dim> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | CC: | emaste, thierry, toolchain |
Priority: | --- | Keywords: | regression |
Version: | CURRENT | Flags: | koobs:
mfc-stable12?
|
Hardware: | Any | ||
OS: | Any |
Description
Tobias Kortkamp
2020-08-21 04:32:14 UTC
Same error for the port math/hpcombi: [14/22] : && /usr/bin/c++ -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fstack-protector-strong -L/usr/local/lib benchmark/CMakeFiles/sort.dir/sort.cpp.o -o benchmark/sort -lbenchmark -lpthread && : FAILED: benchmark/sort : && /usr/bin/c++ -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fstack-protector-strong -L/usr/local/lib benchmark/CMakeFiles/sort.dir/sort.cpp.o -o benchmark/sort -lbenchmark -lpthread && : ld: error: undefined symbol: std::__1::__rs_default::~__rs_default() >>> referenced by algorithm:3112 (/usr/include/c++/v1/algorithm:3112) >>> benchmark/CMakeFiles/sort.dir/sort.cpp.o:(rand_perms(int)) >>> referenced by algorithm:3112 (/usr/include/c++/v1/algorithm:3112) >>> benchmark/CMakeFiles/sort.dir/sort.cpp.o:(rand_perms(int)) ld: error: undefined symbol: std::__1::__rs_get() >>> referenced by algorithm:3105 (/usr/include/c++/v1/algorithm:3105) >>> benchmark/CMakeFiles/sort.dir/sort.cpp.o:(rand_perms(int)) ld: error: undefined symbol: std::__1::__rs_default::operator()() >>> referenced by algorithm:2950 (/usr/include/c++/v1/algorithm:2950) >>> benchmark/CMakeFiles/sort.dir/sort.cpp.o:(long std::__1::uniform_int_distribution<long>::operator()<std::__1::__rs_default>(s td::__1::__rs_default&, std::__1::uniform_int_distribution<long>::param_type const&)) >>> referenced by algorithm:2950 (/usr/include/c++/v1/algorithm:2950) >>> benchmark/CMakeFiles/sort.dir/sort.cpp.o:(long std::__1::uniform_int_distribution<long>::operator()<std::__1::__rs_default>(s td::__1::__rs_default&, std::__1::uniform_int_distribution<long>::param_type const&)) >>> referenced by algorithm:2950 (/usr/include/c++/v1/algorithm:2950) >>> benchmark/CMakeFiles/sort.dir/sort.cpp.o:(long std::__1::uniform_int_distribution<long>::operator()<std::__1::__rs_default>(s td::__1::__rs_default&, std::__1::uniform_int_distribution<long>::param_type const&)) >>> referenced 1 more times c++: error: linker command failed with exit code 1 (use -v to see invocation) A commit references this bug: Author: dim Date: Sat Aug 22 12:05:12 UTC 2020 New revision: 364482 URL: https://svnweb.freebsd.org/changeset/base/364482 Log: Add a few new source files to libc++, in particular the implementation part of std::random_shuffle. These were split off at some point by upstream, but I forgot to add them to our Makefile. This should allow some ports which use std::random_shuffle to correctly link again. Reported by: thierry PR: 248795 MFC after: 6 weeks X-MFX-With: r364284 Changes: head/lib/libc++/Makefile A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=03a6f0068f1e2211252f4d4c2a8f41abcf81c190 commit 03a6f0068f1e2211252f4d4c2a8f41abcf81c190 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2020-08-22 12:05:11 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2021-12-22 09:58:33 +0000 Add a few new source files to libc++, in particular the implementation part of std::random_shuffle. These were split off at some point by upstream, but I forgot to add them to our Makefile. This should allow some ports which use std::random_shuffle to correctly link again. Reported by: thierry PR: 248795 MFC after: 6 weeks X-MFX-With: r364284 (cherry picked from commit c37f312d3b9950eb66602e669c548a0bfabd4b7d) lib/libc++/Makefile | 3 +++ 1 file changed, 3 insertions(+) Should this be closed now? |