From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#30756: gcc7 doesn't find stdlib.h Date: Fri, 09 Mar 2018 13:42:40 +0100 Message-ID: <87fu59zagv.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euHMZ-0002O9-Jy for bug-guix@gnu.org; Fri, 09 Mar 2018 07:43:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euHMU-0002Fo-OA for bug-guix@gnu.org; Fri, 09 Mar 2018 07:43:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:43929) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1euHMU-0002FI-IZ for bug-guix@gnu.org; Fri, 09 Mar 2018 07:43:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1euHMU-0003A8-6r for bug-guix@gnu.org; Fri, 09 Mar 2018 07:43:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (julien lepiller's message of "Fri, 09 Mar 2018 13:10:58 +0100") 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: julien lepiller Cc: 30756@debbugs.gnu.org julien lepiller skribis: > I'm trying to build a software that requires gcc>=3D7.2. Unfortunately, > the process crashes and ends with: > > /gnu/store/a4vwdk8r6p6l2mnffz4yaqlr1z6z6w3r-gcc-7.3.0/include/c++/cstdlib= :75:15: > fatal error: stdlib.h: No such file or directory. On IRC Marius mentioned this bug report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D70129#c3 Note that we use C_INCLUDE_PATH, which is equivalent to =E2=80=98-isystem= =E2=80=99. Quoth (gnu packages gcc): (native-search-paths ;; Use the language-specific variables rather than 'CPATH' because t= hey ;; are equivalent to '-isystem' whereas 'CPATH' is equivalent to '-I= '. ;; The intent is to allow headers that are in the search path to be ;; treated as "system headers" (headers exempt from warnings) just l= ike ;; the typical /usr/include headers on an FHS system. (list (search-path-specification (variable "C_INCLUDE_PATH") (files '("include"))) (search-path-specification (variable "CPLUS_INCLUDE_PATH") (files '("include"))) (search-path-specification (variable "LIBRARY_PATH") (files '("lib" "lib64"))))) Ludo=E2=80=99.