From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carl Dong Subject: bug#38061: [minimal reproducer included] libstdc++ mutex references cause clang builds to fail Date: Mon, 04 Nov 2019 20:29:46 +0000 Message-ID: Reply-To: Carl Dong Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:43659) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRj0C-0001JI-SK for bug-guix@gnu.org; Mon, 04 Nov 2019 15:31:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRj0B-0003MF-JS for bug-guix@gnu.org; Mon, 04 Nov 2019 15:31:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57015) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iRj0B-0003MA-GL for bug-guix@gnu.org; Mon, 04 Nov 2019 15:31:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iRj0B-0002ed-9n for bug-guix@gnu.org; Mon, 04 Nov 2019 15:31:03 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:43512) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRiz8-000158-08 for bug-guix@gnu.org; Mon, 04 Nov 2019 15:29:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRiz6-0002wv-PF for bug-guix@gnu.org; Mon, 04 Nov 2019 15:29:57 -0500 Received: from mail4.protonmail.ch ([185.70.40.27]:34638) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iRiz6-0002w0-Er for bug-guix@gnu.org; Mon, 04 Nov 2019 15:29:56 -0500 List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 38061@debbugs.gnu.org Hi all, I'm having another issue with the clang toolchain right now and I've come u= p with a minimal reproducer: Given the following manifest.scm: --8<---------------cut here---------------start------------->8--- (use-modules (gnu packages gcc) (gnu packages linux) (gnu packages llvm)) (packages->manifest (list clang (make-libstdc++ gcc) linux-libre-headers)) --8<---------------cut here---------------end--------------->8--- And test.cpp: --8<---------------cut here---------------start------------->8--- #include #include typedef std::once_flag once_flag; int main() { std::cout << "Hello, World\n"; } --8<---------------cut here---------------end--------------->8--- If you invoke: --8<---------------cut here---------------start------------->8--- guix environment --manifest=3Dmanifest.scm --container --pure -- clang++ te= st.cpp --8<---------------cut here---------------end--------------->8--- The output looks like: --8<---------------cut here---------------start------------->8--- test.cpp:4:14: error: no type named 'once_flag' in namespace 'std' typedef std::once_flag once_flag; ~~~~~^ 1 error generated. --8<---------------cut here---------------end--------------->8--- In my original non-minimal build, other things in also cause compil= ation errors, which seem odd to me. Any help would be very much appreciated! Cheers, Carl Dong contact@carldong.me "I fight for the users"