From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EDJ2LkcVVmM+iQAAbAwnHQ (envelope-from ) for ; Mon, 24 Oct 2022 06:32:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id YM4+LkcVVmNlHQEAauVa8A (envelope-from ) for ; Mon, 24 Oct 2022 06:32:07 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 71DE9369B2 for ; Mon, 24 Oct 2022 06:32:07 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omnd3-00049b-6V; Sun, 23 Oct 2022 22:55:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ommUA-000456-6o for help-guix@gnu.org; Sun, 23 Oct 2022 21:42:38 -0400 Received: from mail-40138.protonmail.ch ([185.70.40.138]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ommU7-0002UU-Jr for help-guix@gnu.org; Sun, 23 Oct 2022 21:42:37 -0400 Date: Mon, 24 Oct 2022 01:42:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1666575745; x=1666834945; bh=OAI4zxJiYFsgwPRxlO+sa1qkNvuin77eFK3ME9Hdld4=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=tbSAX7CfK73RoykrnbOAIxhHH3h3d0tqVPQcW3bfRmS37tMdb7FhDiRiZQtsxA/CL HXWqMdNqwaUkLxViO0r6Xi4JlqJawDQNUpWaC0479MZlJEvFlW2UzyzCoVXg/d1IgS fSuMpWYeOjPID+8b8dAIIN+pFmYT9+q19A6zCqWdi/i/EOa96pHgsEQU/MePfiCSr0 J818RsUj7GQ+FpPhqCfDYAoI2lOBnd50AcBHvvKqWl214gy1dLpxcDHLwL8YzuH5Hz dWC+BeyYPxGrV9N6g4z9M6TA/MBTCT2h93eWPZ2bcp0SVkCllhEjx8qKWB25eVyIyw CPaWoj+hiunhg== To: Ricardo Wurmus From: Mohamed Amine LEGHERABA Cc: help-guix@gnu.org Subject: Re : Re: no C_INCLUDE_PATH env variable defined : I can't compile C applications Message-ID: In-Reply-To: <87a65mb489.fsf@elephly.net> References: <87a65mb489.fsf@elephly.net> Feedback-ID: 8454746:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.138; envelope-from=mlegheraba@protonmail.com; helo=mail-40138.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Help-Guix" Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666585927; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=OAI4zxJiYFsgwPRxlO+sa1qkNvuin77eFK3ME9Hdld4=; b=ajVN78DgN/CJSMSgyC9TPoYmi/imskeICIehHTjBKBonOvxT8eCUptT/FqUThsjgfLUJoq 7hnAwkw6/SDJ+7g6Qtd9ujYP5sK85dEaoKE9C65AFNsJyuv3HUYafB5fMRPITOaolVSdX3 rvQNMagLbmd0mDN0eCjNka1rvJ2PYi4Mo9r4P2RRAgPkdqRxAEyXTuoCw4BR6toS5Urw5e S6nSuzgpFsNWoIk07MSa7mAx/aWjVtIJkG75cG0qrhBfE7/qNaze4l5kN4qBfK7BHPQBhn tRTto1XsapCvWJvDkgY7CZ/q16evC1ko4l2r+vsYFkmV2xMEz7FWVKKsEg2/wA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666585927; a=rsa-sha256; cv=none; b=ueFqgeU1fRA1KShbDdhCd0poN29o5h2vz3jpkTOWev68cO72e9u9UxlsB+8l5zT9mfnBk8 kvukuNUHfgaZ35j6j4JkKeQOhG3rr/PkRce3TO68f7YOc4dAnylevnvBTTMufGmOfQYs7s JUR0jYpYbBNeuUSoVcWQFbZxBEhPTfGkgBs7dxwNK8QovUMqUJeC6qFGqwHFKdN9OdTb6B 2QmhqWLt68R3TMuTyLOPv+NZWDHoOYjwf1adO3QLKYUzTWKTHJEe7i+2pLvj/bhAxt+DVo 1igucm3vxzx5CD7PUEZesrRK7E5e9UiZS21UksU9ocKq/JFVryd4/DazjGwwGw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=tbSAX7Cf; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.41 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=tbSAX7Cf; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 71DE9369B2 X-Spam-Score: -2.41 X-Migadu-Scanner: scn1.migadu.com X-TUID: VbP/jVE/IJLh Thanks Ricardo for your answer. Sorry if my message was not clear, I don't have the env variable C_INCLUDE_PATH in my guix system and I should= have it because I have the packages "gcc-toolchain" and "linux-libre-heade= rs" in my home profile. When I run a instance of guix shell with these 2 packages, for example with= the command "guix shell gcc-toolchain linux-libre-headers" I do have this = env variable defined (in fact a guix shell with only gcc-toolchain works al= so) so I don't know why I don't have this variable defined in my system. ------- Original Message ------- Le dimanche 23 octobre 2022 =C3=A0 11:48 PM, Ricardo Wurmus a =C3=A9crit=C2=A0: > Mohamed Amine LEGHERABA via help-guix@gnu.org writes: >=20 > > When I do "echo $C_INCLUDE_PATH" in my bash prompt (either my account o= r root), I have nothing. > >=20 > > When I run a custom guix shell (with gcc-toolchain) and I run "echo $C_= INCLUDE_PATH", > > I have "/gnu/store/1p21dbv408cb45zcc15v7wj0q7x99rz2-profile/include" > >=20 > > Without this env variable, C programs can't use "linux/limits.h" or > > other kernel related libraries. Any idea how to solve this problem ? >=20 >=20 > You say that =E2=80=9Cguix shell=E2=80=9D sets the variable as expected. = Its value > depends on the packages you add to the =E2=80=9Cguix shell=E2=80=9D invoc= ation. >=20 > You can also augment it manually to add whatever include directories you > need. >=20 > -- > Ricardo