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 5A01D3B2C75 for ; Fri, 21 Aug 2020 04:32:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BXpWz1kycz4Qbm for ; Fri, 21 Aug 2020 04:32:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 3BA943B2B96; 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 3B7013B2A69 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 4BXpWz0rj0z4QLw 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 00A5B1FC2F 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 07L4WEbZ010288 for ; Fri, 21 Aug 2020 04:32:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 07L4WELB010287 for toolchain@FreeBSD.org; Fri, 21 Aug 2020 04:32:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: maintainer-feedback requested: [Bug 248795] std::random_shuffle broken with LLVM11 Date: Fri, 21 Aug 2020 04:32:14 +0000 X-Bugzilla-Type: request 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: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: 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 Tobias Kortkamp has asked freebsd-toolchain (Nobody) for maintainer-feedback: Bug 248795: std::random_shuffle broken with LLVM11 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248795 --- Description --- 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 >>>=09=09=20 /tmp/foo-6a4153.o:(std::__1::__independent_bits_engine::__eval(std::__1::integral_constant)) >>> referenced by foo.cc >>>=09=09=20 /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)