From owner-freebsd-toolchain@freebsd.org Fri Aug 21 04:32:15 2020 Return-Path: Delivered-To: freebsd-toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8BD4B3B2C84 for ; Fri, 21 Aug 2020 04:32:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BXpWz3D0lz4QSj for ; Fri, 21 Aug 2020 04:32:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 6E7FB3B2B97; Fri, 21 Aug 2020 04:32:15 +0000 (UTC) Delivered-To: toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6E4DC3B2999 for ; Fri, 21 Aug 2020 04:32:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BXpWz2Pc6z4QQM for ; Fri, 21 Aug 2020 04:32:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 329D01FE85 for ; Fri, 21 Aug 2020 04:32:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 07L4WF9e010292 for ; Fri, 21 Aug 2020 04:32:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 07L4WFoP010291 for toolchain@FreeBSD.org; Fri, 21 Aug 2020 04:32:15 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 248795] std::random_shuffle broken with LLVM11 Date: Fri, 21 Aug 2020 04:32:14 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tobik@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter cc flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Aug 2020 04:32:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248795 Bug ID: 248795 Summary: std::random_shuffle broken with LLVM11 Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Keywords: regression Severity: Affects Only Me Priority: --- Component: bin Assignee: toolchain@FreeBSD.org Reporter: tobik@freebsd.org CC: toolchain@FreeBSD.org Flags: maintainer-feedback?(toolchain@FreeBSD.org) CC: toolchain@FreeBSD.org The following example no longer compiles after the LLVM11 import. This affects a number of ports like x11/workrave, www/newsboat, japanese/zinnia, ... I can patch them to use shuffle instead, but even though random_shuffle is deprecated it should still work, right? $ cat foo.cc #include #include int main() { std::vector v =3D {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; std::random_shuffle(v.begin(), v.end()); } $ c++ foo.cc foo.cc:7:10: warning: 'random_shuffle>' is deprecated [-Wdeprecated-declarations] std::random_shuffle(v.begin(), v.end()); ^ /usr/include/c++/v1/algorithm:3095:1: note: 'random_shuffle>' has been explicitly marked deprecated here _LIBCPP_DEPRECATED_IN_CXX14 void ^ /usr/include/c++/v1/__config:991:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX14' # define _LIBCPP_DEPRECATED_IN_CXX14 _LIBCPP_DEPRECATED ^ /usr/include/c++/v1/__config:974:48: note: expanded from macro '_LIBCPP_DEPRECATED' # define _LIBCPP_DEPRECATED __attribute__ ((deprecated)) ^ 1 warning generated. ld: error: undefined symbol: std::__1::__rs_get() >>> referenced by foo.cc >>> /tmp/foo-6a4153.o:(void std::__1::random_shuffle >(std::__1::__wrap_iter, std::__1::__wrap_iter)) ld: error: undefined symbol: std::__1::__rs_default::~__rs_default() >>> referenced by foo.cc >>> /tmp/foo-6a4153.o:(void std::__1::random_shuffle >(std::__1::__wrap_iter, std::__1::__wrap_iter)) >>> referenced by foo.cc >>> /tmp/foo-6a4153.o:(void std::__1::random_shuffle >(std::__1::__wrap_iter, std::__1::__wrap_iter)) ld: error: undefined symbol: std::__1::__rs_default::operator()() >>> referenced by foo.cc >>> /tmp/foo-6a4153.o:(std::__1::__independent_bits_engine::__eval(std::__1::integral_constant)) >>> referenced by foo.cc >>> /tmp/foo-6a4153.o:(std::__1::__independent_bits_engine::__eval(std::__1::integral_constant)) c++: error: linker command failed with exit code 1 (use -v to see invocatio= n) --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.=