From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GJd3FW06VmN8fgAAbAwnHQ (envelope-from ) for ; Mon, 24 Oct 2022 09:10:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id P722FG06VmNOBgEAG6o9tA (envelope-from ) for ; Mon, 24 Oct 2022 09:10:37 +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 24F8C2D575 for ; Mon, 24 Oct 2022 09:10:37 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omrOt-0002cl-UT; Mon, 24 Oct 2022 02:57:32 -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 1omrOr-0002TH-7m for help-guix@gnu.org; Mon, 24 Oct 2022 02:57:29 -0400 Received: from mail.envs.net ([5.199.136.28]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omrOp-00038P-3e for help-guix@gnu.org; Mon, 24 Oct 2022 02:57:28 -0400 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id AF54338A0E83; Mon, 24 Oct 2022 06:57:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1666594641; bh=IyvcnDMZMVNdaBHSThd7zR7YIauL7V+ck2m++XMZsmc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=OwgwNzPA+whF+8MW1wXn/kC4Tfmwsj5zitet7MEwojqywIbYNhyXd30zjcf1TL/xq 1WYn+RyE5ttBIgRAg9Ui7XLEjrV0UbPJqBMW9Bw1PVypb40//81qQPt9ahM5tXt2ue z46mUP1F1CmMGuFv9SmWX25hwzvkTuVmbs5tkPLjIn5Q5JukDrrYM8kMLjTl7fWgKA /O+u75tOyd4bIn/J9Ntol7Giu+T50HuOfgbVRAydUjQWY3xNpJ8bjfPLRwtgCbMvP2 e8JJIsdae+9+lDVx8IUsGbOeWdBZHZ4L9FkMoikZSC5qPIcvPj6XBIjsLM/a3siP56 DnWBdk+RJKnU0nENqLhcCXZowb6XX9KhIbtqjV6TjC1mBKwpMusriQevdb8DAKEKJB VRBCSHzUSKCv5UY197kNKghMpllcm7cOh/3qFdRQ1gpisvHnwHyFSrVUClQnWsmDMj GzXBQjSvohTbPDXnI6lAwY9JQbaBTPJS0Xbn1FAO0ZUTua+TmZWyIqYy2+TouqiliZ 647A4tmar9reEbZms5glWLWsX5t7rt0RGuWu2T1jdetk8IgzBE454dB1fNm7BAfOwi j7C6huBb311Zq0PGEFpD4xeEYZvNQZg5tTE43/M3S3JZihflw4Rk0c3E8apyxfrq2i tSmBoGonDj9cb/J6AeO262Z0= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id R5K1vUdEDjep; Mon, 24 Oct 2022 06:57:17 +0000 (UTC) Received: from localhost (unknown [182.150.116.135]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Mon, 24 Oct 2022 06:57:17 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 1b3064cb; Mon, 24 Oct 2022 06:57:57 +0000 (UTC) From: =?utf-8?B?5a6L5paH5q2m?= To: Mohamed Amine LEGHERABA Cc: Ricardo Wurmus , help-guix@gnu.org Subject: Re: no C_INCLUDE_PATH env variable defined : I can't compile C applications References: <87a65mb489.fsf@elephly.net> Date: Mon, 24 Oct 2022 14:57:57 +0800 In-Reply-To: (Mohamed Amine LEGHERABA's message of "Mon, 24 Oct 2022 01:42:20 +0000") Message-ID: <87h6ztr9my.fsf@envs.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=5.199.136.28; envelope-from=iyzsong@envs.net; helo=mail.envs.net 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=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=1666595437; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=IyvcnDMZMVNdaBHSThd7zR7YIauL7V+ck2m++XMZsmc=; b=hdv5JHG4VuNNBJ6HoEo4ifM3zyxLKVDPxO+s7wv6M/f63v69pB8QfAPxzoklDYmSr0sELx yYU4Fnvz/3oOmR7Lb459iozKCTOBQGcsKE3ZokQ42jRGtA1zBdx0xy8qWST8SGMuXGGOg6 pIiXUYeLdSnYvSV9YRt3kQXBf+6MUdz6cZr90suDQZvhSZaeBWjBE22CJ5wilOEZsS0dM0 MC3iMBtivT7GuTEj9XMusnp5jGKZK4vtkm5hGoqHlV5g4oP5BfcPsZq9sWJK5mxTFlio+e OijR23ZD0tHwH0mGKQM1qAUkU0FeXVXea422teO89YfGdOjSrwhWKK0chlBa9g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666595437; a=rsa-sha256; cv=none; b=pZAOMMHICdsFsjc4FR15QipQ6WaXtaHp4Y2DFiSVe9Yu3hm8zSmf4FdWCGM7nWh1Gy1SdC R5pMnCxY2OPDFkUGNnaI8dyPprFPIOYiDFlpdLfVzd8h0T6+OALIIeCb6DOI3ybE6aGwQy hJLgfV4McfW8mDL59puAdkQCxBDUlHEQZgpPddBl9s8lecnjOSEUA2xF7nWkUdrm5PaXou NdCzsQ/6a68kPV42Xgyv3qkWiJJ/WkVPbPJw81b6ycT+CWh+5xMim4168SP5HDJ1rs2CsC 1nNXW00iauyCfOp2LxfDAkZtWZEfqgpA7jzl1b79spWJ0RThpYy6Qfd/e0l2nA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=envs.net header.s=modoboa header.b=OwgwNzPA; dmarc=pass (policy=quarantine) header.from=envs.net; 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: -4.40 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=envs.net header.s=modoboa header.b=OwgwNzPA; dmarc=pass (policy=quarantine) header.from=envs.net; 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: 24F8C2D575 X-Spam-Score: -4.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: APHTZA0lVZFG Mohamed Amine LEGHERABA writes: > 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-headers" 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 also) so I don't know why I don't have this > variable defined in my system. Hello, I think you're missing 'home-bash-service-type' in your home services, which should setup bash to source '$HOME_ENVIRONMENT/setup-environment', and 'setup-environment' will source '.guix-home/profile/etc/profile'. If gcc-toolchain is in the home profile, that '.guix-home/profile/etc/profile' should have C_INCLUDE_PATH in it. Hope this helps!