From unknown Sun Jun 15 08:51:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49350: gcc-toolchain compilation error with -nostdinc++ Resent-From: Ontje =?UTF-8?Q?L=C3=BCnsdorf?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 03 Jul 2021 12:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49350 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 49350@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162531389510163 (code B ref -1); Sat, 03 Jul 2021 12:05:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Jul 2021 12:04:55 +0000 Received: from localhost ([127.0.0.1]:37990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzeOB-0002dl-Hh for submit@debbugs.gnu.org; Sat, 03 Jul 2021 08:04:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:34024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzd5S-0006ro-F4 for submit@debbugs.gnu.org; Sat, 03 Jul 2021 06:41:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzd5S-0002kQ-6f for bug-guix@gnu.org; Sat, 03 Jul 2021 06:41:26 -0400 Received: from mout-p-201.mailbox.org ([2001:67c:2050::465:201]:38246) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1lzd5P-0000Vy-I2 for bug-guix@gnu.org; Sat, 03 Jul 2021 06:41:25 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4GH7lx3HfYzQk3C for ; Sat, 3 Jul 2021 12:41:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-type:content-type:mime-version:message-id:date:date :subject:subject:from:from:received; s=mail20150812; t= 1625308874; bh=0GEl/8ukeaJCe4eUQJ7y5KBKcbifoz5ATAa4hJWcIOU=; b=d a94MAYV8m36C+HDixpAKoVSmp/Sz3kfuvThqHCJ0h68yz90IYHFf++jRtytBc1d+ lt7HQgUYJctt+CaO6HBmVk9I1hOGh46XwpqC4OwrrneuWiHRRWLjqPBvO8fqT3W4 6lkmNTovZ8GT2buZKlnRLA9jBEoRjdVs1RwC+HiVcninfJXstWd7EkwLhvNUcVmH Oh0r2qhPfF/10erO0W2tR91WsybVEFIVhWc+n0UU8hSMfPiF92Try8qe3On8gmhe 9kftCcy2Zcxx4Dkhd29gHbFuFlBKKq/U+6s7gb3mLsF1SieyUfz+kWjEPnpa/US/ 44mxU6unyhQOX9EvbmPBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1625308875; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=abuQpLz1uaHwBAUQocdvRY9E4s4bkwLOqwz9ZIx2te4=; b=QBZRfBX6qhfzS7bTSuWTUqJuSaR/ESiTWKghlPf6KRfC2ZF6kfmg1X7wbKL3rYgY3DiFjJ xGJsMrHnXsM2XZs5866ht4i3l1J4CH+Mydcw42eyTjcPYToh2Ev2BTxhB8pFHsdWq49fJS b4HSEcda37VthP3P0qmu4eofOYp5inJEPmV701WTTHcRbX76fMwENFTruXf3wsnbxb1+b0 NWAv4d93A69Mng6btovIDPjba6UZMHSF4O92sXy5isaay4RWdNs4AJ/fjKpTlNJ2swxa8n j+/tchAApalfdWfm1j1vPxAhpbpe3NghCwJqviZxOV4BSn02AWQJsJtHzNDvYA== X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id JcrQqMd0L-51 for ; Sat, 3 Jul 2021 12:41:14 +0200 (CEST) From: Ontje =?UTF-8?Q?L=C3=BCnsdorf?= Date: Sat, 03 Jul 2021 12:41:11 +0200 Message-ID: <87k0m73cjc.fsf@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain X-MBO-SPAM-Probability: X-Rspamd-Score: -3.69 / 15.00 / 15.00 X-Rspamd-Queue-Id: 9745F1888 X-Rspamd-UID: 1c7e39 Received-SPF: pass client-ip=2001:67c:2050::465:201; envelope-from=oluensdorf@mailbox.org; helo=mout-p-201.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Sat, 03 Jul 2021 08:04:50 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi all, I've problems compiling LLVM manually with the gcc-toolchain. sanitizer_posix_libcdep.cpp is build with -nostdinc++ and fails to find bits/c++config.h. I think the issue can be reproduced with this example test.cpp: #include int main() { return 0; } c++ from archlinux compiles that file, while c++ from gcc-toolchain doesn't: $ c++ -nostdinc++ test.cpp $ guix environment --ad-hoc gcc-toolchain -- c++ -nostdinc++ test.cpp In file included from /gnu/store/nh9r04xhzmbk3hjsj92yhlhmjsp521g4-profile/include/c++/stdlib.h:36, from test.cpp:1: /gnu/store/nh9r04xhzmbk3hjsj92yhlhmjsp521g4-profile/include/c++/cstdlib:41:10: fatal error: bits/c++config.h: No such file or directory 41 | #include | ^~~~~~~~~~~~~~~~~~ compilation terminated. Is this expected and I'm doing something wrong? Thanks & best regards, Ontje From unknown Sun Jun 15 08:51:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49350: gcc-toolchain compilation error with -nostdinc++ Resent-From: Sarah Morgensen Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 06 Jul 2021 08:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49350 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ontje =?UTF-8?Q?L=C3=BCnsdorf?= Cc: 49350@debbugs.gnu.org Received: via spool by 49350-submit@debbugs.gnu.org id=B49350.162555844424208 (code B ref 49350); Tue, 06 Jul 2021 08:01:02 +0000 Received: (at 49350) by debbugs.gnu.org; 6 Jul 2021 08:00:44 +0000 Received: from localhost ([127.0.0.1]:47194 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0g0a-0006IN-EB for submit@debbugs.gnu.org; Tue, 06 Jul 2021 04:00:44 -0400 Received: from out0.migadu.com ([94.23.1.103]:12373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0g0W-0006ID-TH for 49350@debbugs.gnu.org; Tue, 06 Jul 2021 04:00:43 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1625558439; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Oage8twOQ5tgnxOBAl0F4GW6veJGr3TC3bspVfsPvgw=; b=PGRsGkz7m4Nbyzop3ou9QjJH5a6gknZ8+j0WlsKNN3go+z5/8VX5+NiFGzNZ7fUItiiekw Wz9X/WBMf7iWWMO2+r9Yh4YPxe/TaYNRqUsoYuHsQu6Wccf3DllBX3LI2R6n6KO1/Ze8jM 7NfLUM83vobPR+H9/xHRtdygh+wAmNI= From: Sarah Morgensen References: <87k0m73cjc.fsf@mailbox.org> Date: Tue, 06 Jul 2021 01:00:37 -0700 In-Reply-To: <87k0m73cjc.fsf@mailbox.org> ("Ontje =?UTF-8?Q?L=C3=BCnsdorf?="'s message of "Sat, 03 Jul 2021 12:41:11 +0200") Message-ID: <86pmvvkh22.fsf@mgsn.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: iskarian@mgsn.dev X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, Thanks for the report. Ontje L=C3=BCnsdorf writes: > Hi all, > > > I've problems compiling LLVM manually with the gcc-toolchain. > sanitizer_posix_libcdep.cpp is build with -nostdinc++ and fails to find > bits/c++config.h. > > I think the issue can be reproduced with this example test.cpp: > > #include > int main() { return 0; } I am able to repro with this test case on Guix System, both in and outside of a guix environment --pure. > > c++ from archlinux compiles that file, while c++ from gcc-toolchain doesn= 't: > > $ c++ -nostdinc++ test.cpp > $ guix environment --ad-hoc gcc-toolchain -- c++ -nostdinc++ test.cpp > In file included from /gnu/store/nh9r04xhzmbk3hjsj92yhlhmjsp521g4-profile= /include/c++/stdlib.h:36, > from test.cpp:1: > /gnu/store/nh9r04xhzmbk3hjsj92yhlhmjsp521g4-profile/include/c++/cstdlib:4= 1:10: fatal error: bits/c++config.h: No such file or directory > 41 | #include > | ^~~~~~~~~~~~~~~~~~ > compilation terminated. > > Is this expected and I'm doing something wrong? The issue seems to be with the (automatically set by Guix) CPLUS_INCLUDE_PATH environment variable. The following works as expected: guix environment --pure --ad-hoc gcc-toolchain -- CPLUS_INCLUDE_PATH=3D c= ++ -nostdinc++ test.cpp It seems that -nostdinc++ controls whether GCC decides to add the C++ std include paths internally, but it still looks in the paths indicated by CPLUS_INCLUDE_PATH. Guix sets CPLUS_INCLUDE_PATH and friends because there is no system-wide /include. I'm not sure how expected this specific behavior is, though... > > Thanks & best regards, > Ontje Hope that helps, Sarah From unknown Sun Jun 15 08:51:35 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ontje =?UTF-8?Q?L=C3=BCnsdorf?= Subject: bug#49350: closed (Re: bug#49350: gcc-toolchain compilation error with -nostdinc++) Message-ID: References: <87y29s89iy.fsf@mailbox.org> <87k0m73cjc.fsf@mailbox.org> X-Gnu-PR-Message: they-closed 49350 X-Gnu-PR-Package: guix Reply-To: 49350@debbugs.gnu.org Date: Tue, 27 Jul 2021 14:41:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1627396862-27493-1" This is a multi-part message in MIME format... ------------=_1627396862-27493-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #49350: gcc-toolchain compilation error with -nostdinc++ which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 49350@debbugs.gnu.org. --=20 49350: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D49350 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1627396862-27493-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 49350-done) by debbugs.gnu.org; 27 Jul 2021 14:40:57 +0000 Received: from localhost ([127.0.0.1]:53481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8OGO-000792-Ec for submit@debbugs.gnu.org; Tue, 27 Jul 2021 10:40:57 -0400 Received: from mout-p-101.mailbox.org ([80.241.56.151]:59378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8I7r-0007lP-Ov for 49350-done@debbugs.gnu.org; Tue, 27 Jul 2021 04:07:49 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4GYqCY3J45zQk9W; Tue, 27 Jul 2021 10:07:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-type:content-type:mime-version:message-id:date:date :references:in-reply-to:subject:subject:from:from:received; s= mail20150812; t=1627373254; bh=AtB624lUD043/x37/Vp5tXwh4H32KqYe6 FMr3qNAYjg=; b=T3ZqLchkXgqexqkSbL89VfW0yLTO6hp5ArxCtneVhrxVADDoV C0Rra5XeDc7AsbGt+p809a06AtxTwqbfp2U9JSZUOxG/EDvUnvb49PSL2EDr4C9x cAf0X01fVRcBsF8A4cRSq4ADgJ1lJm8ODcuSFuK9NaHPBs25IGXHfQmO46XDPmRu Z488ixj7I7Sd2k1IfJvJa5dpgFCBNaYttrd+p/MOYdnVqnyGetwAux6oLzFbuBg6 bNSf5Kz4Y2bULr9nt8Nmp12yHSFDd+3oqdlTNJWSd729ZjSJ/6qkEr+pBVuPRGtX zXzlCm0jqCL2uLk2oovZPBDM3Si75Ym3QJhWQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1627373255; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PACUPRCSkHSbuGq08Z28JLUKRSCXz3zmwmAHKMvxkEA=; b=If1AFvpmeHT5tM+eslMnNSp3LGtoLGip5nJJ+wjS1sxYImCgjXAgR2B59gbMyfkQJGlbhU QroofCIncQBjjJ9UOx9AhFQhONqDZ6RAhXWM8z4o3ZkCbXQ2ThcHs4LBVi6Y9WhdPOFlQj r71NREHjRCBZTop1oD3l89heDq23exq3zlpCe38IvAlVtULLtIjhtqVr0qovZMZerWWZUz lFvUbrhLyvXjdx4AzkiiEbhG005RlbnwX2qXKjKntYI/aIzflk9F0RsBHk2EPFj9YKH9ly tWgod4n0g5VpUlRCAM0S1k3MpjlpjbIvMWn5IgUzTkZySC1fVrKz4+GIgDl0/A== X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id 5PlvNSHcYTye; Tue, 27 Jul 2021 10:07:34 +0200 (CEST) From: Ontje =?utf-8?Q?L=C3=BCnsdorf?= To: Sarah Morgensen Subject: Re: bug#49350: gcc-toolchain compilation error with -nostdinc++ In-Reply-To: <86pmvvkh22.fsf@mgsn.dev> References: <87k0m73cjc.fsf@mailbox.org> <86pmvvkh22.fsf@mgsn.dev> Date: Tue, 27 Jul 2021 10:07:33 +0200 Message-ID: <87y29s89iy.fsf@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 625251887 X-Rspamd-UID: d8b334 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49350-done X-Mailman-Approved-At: Tue, 27 Jul 2021 10:40:55 -0400 Cc: 49350-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Sarah, Sarah Morgensen writes: > The issue seems to be with the (automatically set by Guix) > CPLUS_INCLUDE_PATH environment variable. The following works as > expected: > > guix environment --pure --ad-hoc gcc-toolchain -- CPLUS_INCLUDE_PATH= c++ -nostdinc++ test.cpp thanks, this solved my problem. Best regards, Ontje ------------=_1627396862-27493-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 Jul 2021 12:04:55 +0000 Received: from localhost ([127.0.0.1]:37990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzeOB-0002dl-Hh for submit@debbugs.gnu.org; Sat, 03 Jul 2021 08:04:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:34024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzd5S-0006ro-F4 for submit@debbugs.gnu.org; Sat, 03 Jul 2021 06:41:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzd5S-0002kQ-6f for bug-guix@gnu.org; Sat, 03 Jul 2021 06:41:26 -0400 Received: from mout-p-201.mailbox.org ([2001:67c:2050::465:201]:38246) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1lzd5P-0000Vy-I2 for bug-guix@gnu.org; Sat, 03 Jul 2021 06:41:25 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4GH7lx3HfYzQk3C for ; Sat, 3 Jul 2021 12:41:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-type:content-type:mime-version:message-id:date:date :subject:subject:from:from:received; s=mail20150812; t= 1625308874; bh=0GEl/8ukeaJCe4eUQJ7y5KBKcbifoz5ATAa4hJWcIOU=; b=d a94MAYV8m36C+HDixpAKoVSmp/Sz3kfuvThqHCJ0h68yz90IYHFf++jRtytBc1d+ lt7HQgUYJctt+CaO6HBmVk9I1hOGh46XwpqC4OwrrneuWiHRRWLjqPBvO8fqT3W4 6lkmNTovZ8GT2buZKlnRLA9jBEoRjdVs1RwC+HiVcninfJXstWd7EkwLhvNUcVmH Oh0r2qhPfF/10erO0W2tR91WsybVEFIVhWc+n0UU8hSMfPiF92Try8qe3On8gmhe 9kftCcy2Zcxx4Dkhd29gHbFuFlBKKq/U+6s7gb3mLsF1SieyUfz+kWjEPnpa/US/ 44mxU6unyhQOX9EvbmPBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1625308875; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=abuQpLz1uaHwBAUQocdvRY9E4s4bkwLOqwz9ZIx2te4=; b=QBZRfBX6qhfzS7bTSuWTUqJuSaR/ESiTWKghlPf6KRfC2ZF6kfmg1X7wbKL3rYgY3DiFjJ xGJsMrHnXsM2XZs5866ht4i3l1J4CH+Mydcw42eyTjcPYToh2Ev2BTxhB8pFHsdWq49fJS b4HSEcda37VthP3P0qmu4eofOYp5inJEPmV701WTTHcRbX76fMwENFTruXf3wsnbxb1+b0 NWAv4d93A69Mng6btovIDPjba6UZMHSF4O92sXy5isaay4RWdNs4AJ/fjKpTlNJ2swxa8n j+/tchAApalfdWfm1j1vPxAhpbpe3NghCwJqviZxOV4BSn02AWQJsJtHzNDvYA== X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id JcrQqMd0L-51 for ; Sat, 3 Jul 2021 12:41:14 +0200 (CEST) From: =?utf-8?Q?Ontje_L=C3=BCnsdorf?= To: bug-guix@gnu.org Subject: gcc-toolchain compilation error with -nostdinc++ Date: Sat, 03 Jul 2021 12:41:11 +0200 Message-ID: <87k0m73cjc.fsf@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain X-MBO-SPAM-Probability: X-Rspamd-Score: -3.69 / 15.00 / 15.00 X-Rspamd-Queue-Id: 9745F1888 X-Rspamd-UID: 1c7e39 Received-SPF: pass client-ip=2001:67c:2050::465:201; envelope-from=oluensdorf@mailbox.org; helo=mout-p-201.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 03 Jul 2021 08:04:50 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi all, I've problems compiling LLVM manually with the gcc-toolchain. sanitizer_posix_libcdep.cpp is build with -nostdinc++ and fails to find bits/c++config.h. I think the issue can be reproduced with this example test.cpp: #include int main() { return 0; } c++ from archlinux compiles that file, while c++ from gcc-toolchain doesn't: $ c++ -nostdinc++ test.cpp $ guix environment --ad-hoc gcc-toolchain -- c++ -nostdinc++ test.cpp In file included from /gnu/store/nh9r04xhzmbk3hjsj92yhlhmjsp521g4-profile/include/c++/stdlib.h:36, from test.cpp:1: /gnu/store/nh9r04xhzmbk3hjsj92yhlhmjsp521g4-profile/include/c++/cstdlib:41:10: fatal error: bits/c++config.h: No such file or directory 41 | #include | ^~~~~~~~~~~~~~~~~~ compilation terminated. Is this expected and I'm doing something wrong? Thanks & best regards, Ontje ------------=_1627396862-27493-1--