From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 0K+nHu1cE2UYLQEA9RJhRA:P1 (envelope-from ) for ; Wed, 27 Sep 2023 00:36:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0K+nHu1cE2UYLQEA9RJhRA (envelope-from ) for ; Wed, 27 Sep 2023 00:36:29 +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 33E0640749 for ; Wed, 27 Sep 2023 00:36:29 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail2 header.b=ttUkDWkW; 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"; dmarc=pass (policy=none) header.from=elenq.tech ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695767789; 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=iZ0pS8iQEIoBaQF/+R8AlxgmGvmpr236wsZ0fhw9xG8=; b=pCvnz88oq5bkiywOAEltcF5ceq9pxrHhyVJ420U7jJTL01wXcZo6imam2Y4L2edNoGFlZE fpeVClxCrYR0Xpu18XwZbplk7JaKtjYe4tkpsVHpjIMEiX03uj5VkNZNg0vrWzcjPYt6LD gYVXfsYKKykXrm7+0VqsMNUKt/k9dK/35q6Dam7y+PmCE/Ls5Og4RF76E5WFWPQMZcYV68 EPTvefd0MGPCWxGDkcfnsHr+fnV9ReQxeJkkkHrUIu5o18H0OFvviyv4Pai+fdhN18Nn0/ ePkbIn6mu7QElIwOT6TNA3ujLqvP0X3sx8JnDms5NqOI2Fh4ga8TkXJmGnpehA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695767789; a=rsa-sha256; cv=none; b=bbaTiyDRAKhixhDLdn+J0ZFUxHvcQu+AVXVcN+QEQD1Wyaq2JX0Rsp/WCmdeYFC16zRdAY iDp4g6B9q8KIRFtllp79ygndMbsjqm7rR3VlwpsDphc5JnG7pL1YIbjxfkes0XFRSzRrY5 S52DOcbnJ524Zhl/ccPGZwnEZwJM/X0jVq0l6bEp0kOcyhIqjOFkFi8iGLpoCCemwGkbbS jzfmRd08i53LQnRpp4+Gs41t5YjUDAzfvafZO3KvU+KsZnXFPEpHWYlzncvvk79T24xmpt dyj9CYlSwxC1LpnIdnKFuKTxFjZcAW5mTaaAO41USEaJ9LKdEsPsAMCOLpmX5A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail2 header.b=ttUkDWkW; 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"; dmarc=pass (policy=none) header.from=elenq.tech Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qlGen-0004pr-N1; Tue, 26 Sep 2023 18:35: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 1qlGek-0004pU-JC for help-guix@gnu.org; Tue, 26 Sep 2023 18:35:50 -0400 Received: from mail-4317.proton.ch ([185.70.43.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qlGei-0003RI-0X for help-guix@gnu.org; Tue, 26 Sep 2023 18:35:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail2; t=1695767744; x=1696026944; bh=iZ0pS8iQEIoBaQF/+R8AlxgmGvmpr236wsZ0fhw9xG8=; 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:BIMI-Selector; b=ttUkDWkW4OoASOnhgB6QrDhSaiY2RdjyyZ2Sybos6XPDtQjWXRK52buKV5GaitFEg 2RphTzFhTdRUAHDOcvR+l4s5ODTU1JO0FfBP3gXRy91+HbofTqAyvkg0VEagfy8oQx MwGGADQRJP2bcSQuUBAJ+y7zOVB1x5cDXJtzn0LVfyDrLmAuIRKbOzw+RVBuyot3zU 7/TIW1sy+CakIbGbK+Xbk5uGez1sX1w2D2sVT7Uus7/g74YyPVIoRPYW87O20xMwpc nDeMRyysuP002HJlmacbTRiQmzY9qMNyoyGrG+7sNs42WtvnDGeuKQuGFlCxupiaz3 PiwYQOCGMllQQ== Date: Tue, 26 Sep 2023 22:35:23 +0000 To: Ekaitz Zarraga From: Ekaitz Zarraga Cc: "help-guix\\\\@gnu.org" Subject: Re: arm-none-eabi-toolchain: stdlib.h not found Message-ID: In-Reply-To: References: Feedback-ID: 3263582: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.43.17; envelope-from=ekaitz@elenq.tech; helo=mail-4317.proton.ch X-Spam_score_int: 0 X-Spam_score: -0.1 X-Spam_bar: / X-Spam_report: (-0.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, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TO_EQ_FM_DIRECT_MX=1.969 autolearn=no 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: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -9.37 X-Migadu-Spam-Score: -9.37 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Queue-Id: 33E0640749 X-TUID: 8c01NqgMPt0Z ElenQ Technology ------- Original Message ------- On Tuesday, September 26th, 2023 at 22:28, Ekaitz Zarraga wrote: >=20 > ------- Original Message ------- > On Tuesday, September 5th, 2023 at 18:09, Ekaitz Zarraga ekaitz@elenq.tec= h wrote: >=20 >=20 >=20 > > Hi, > >=20 > > If I guix shell to arm-none-eabi-toolchain: > >=20 > > `Ekaitz@tuxedo ~/projects/TESTS$ guix shell arm-none-eabi-toolchain` > >=20 > > arm-none-eabi-toolchain can't use cstdlib because: > >=20 > > ``` > > Ekaitz@tuxedo ~/projects/TESTS [env]$ cat a.c > > #include > >=20 > > void operator delete(void *p) { std::free(p); } > >=20 > > Ekaitz@tuxedo ~/projects/TESTS [env]$ arm-none-eabi-g++ a.c > > In file included from a.c:1:0: > > /gnu/store/6bq6svar4b2mkp2k3laxqqs1nsxykrvf-profile/arm-none-eabi/inclu= de/c++/cstdlib:75:15: fatal error: stdlib.h: No such file or directory > > #include_next > >=20 > > ^~~~~~~~~~ > > compilation terminated. > > Ekaitz@tuxedo ~/projects/TESTS [env]$ > > `But:` > > Ekaitz@tuxedo ~/projects/TESTS [env]$ ls $CROSS_C_INCLUDE_PATH | grep s= tdlib > > stdlib.h > > ``` > >=20 > > Ideas? >=20 >=20 >=20 > Hi, >=20 > I dug a little bit further and I found a very interesting behavior: >=20 > Preprocessor doesn't work vanilla: >=20 > ``` > Ekaitz@tuxedo ~/projects/rp2040/TESTS/RANDOM [env]$ arm-none-eabi-cpp a.c > # 1 "a.c" > # 1 "" >=20 > # 1 "" >=20 > # 1 "a.c" > a.c:1:10: fatal error: cstdlib: No such file or directory > #include >=20 > ^~~~~~~~~ > compilation terminated. > `We have CROSS_CPLUS_INCLUDE_PATH correctly set:` > Ekaitz@tuxedo ~/projects/rp2040/TESTS/RANDOM [env]$ echo $CROSS_CPLUS_INC= LUDE_PATH > /gnu/store/6zcm3xq6d3a0j6pnjd09b3zj1c9qbmrl-profile/arm-none-eabi/include= :/gnu/store/6zcm3xq6d3a0j6pnjd09b3zj1c9qbmrl-profile/arm-none-eabi/include/= c++:/gnu/store/6zcm3xq6d3a0j6pnjd09b3zj1c9qbmrl-profile/arm-none-eabi/inclu= de/c++/arm-none-eabi > `If we insert exactly the same directories pointed by CROSS_CPLUS_INCLUDE= _PATH manually to the preprocessor it works!` > Ekaitz@tuxedo ~/projects/rp2040/TESTS/RANDOM [env]$ arm-none-eabi-cpp a.c= -I/gnu/store/6zcm3xq6d3a0j6pnjd09b3zj1c9qbmrl-profile/arm-none-eabi/includ= e -I/gnu/store/6zcm3xq6d3a0j6pnjd09b3zj1c9qbmrl-profile/arm-none-eabi/inclu= de/c++ -I/gnu/store/6zcm3xq6d3a0j6pnjd09b3zj1c9qbmrl-profile/arm-none-eabi/= include/c++/arm-none-eabi > # 1 "a.c" > # 1 "" >=20 > # 1 "" >=20 > # 1 "a.c" > # 1 "/gnu/store/6zcm3xq6d3a0j6pnjd09b3zj1c9qbmrl-profile/arm-none-eabi/in= clude/c++/cstdlib" 1 > # 39 "/gnu/store/6zcm3xq6d3a0j6pnjd09b3zj1c9qbmrl-profile/arm-none-eabi/i= nclude/c++/cstdlib" >=20 > # 40 "/gnu/store/6zcm3xq6d3a0j6pnjd09b3zj1c9qbmrl-profile/arm-none-eabi/i= nclude/c++/cstdlib" 3 >=20 > # 1 "/gnu/store/6zcm3xq6d3a0j6pnjd09b3zj1c9qbmrl-profile/arm-none-eabi/in= clude/c++/arm-none-eabi/bits/c++config.h" 1 3 > # 533 "/gnu/store/6zcm3xq6d3a0j6pnjd09b3zj1c9qbmrl-profile/arm-none-eabi/= include/c++/arm-none-eabi/bits/c++config.h" 3 > # 1 "/gnu/store/6zcm3xq6d3a0j6pnjd09b3zj1c9qbmrl-profile/arm-none-eabi/in= clude/c++/arm-none-eabi/bits/os_defines.h" 1 3 > # 534 "/gnu/store/6zcm3xq6d3a0j6pnjd09b3zj1c9qbmrl-profile/arm-none-eabi/= include/c++/arm-none-eabi/bits/c++config.h" 2 3 >=20 >=20 > # 1 "/gnu/store/6zcm3xq6d3a0j6pnjd09b3zj1c9qbmrl-profile/arm-none-eabi/in= clude/c++/arm-none-eabi/bits/cpu_defines.h" 1 3 > # 537 "/gnu/store/6zcm3xq6d3a0j6pnjd09b3zj1c9qbmrl-profile/arm-none-eabi/= include/c++/arm-none-eabi/bits/c++config.h" 2 3 > # 42 "/gnu/store/6zcm3xq6d3a0j6pnjd09b3zj1c9qbmrl-profile/arm-none-eabi/i= nclude/c++/cstdlib" 2 3 > # 75 "/gnu/store/6zcm3xq6d3a0j6pnjd09b3zj1c9qbmrl-profile/arm-none-eabi/i= nclude/c++/cstdlib" 3 > ... > ``` >=20 > Anyone has an idea of what I'm missing here and why isn't it just automag= ic? >=20 > It should just work, or am I superwrong? >=20 > Thanks! Oh! Too fast! It was a different problem! ``` Ekaitz@tuxedo ~/projects/rp2040/TESTS/RANDOM [env]$ arm-none-eabi-g++ -I/g= nu/store/6zcm3xq6d3a0j6pnjd09b3zj1c9qbmrl-profile/arm-none-eabi/include -I/= gnu/store/6zcm3xq6d3a0j6pnjd09b3zj1c9qbmrl-profile/arm-none-eabi/include/c+= + -I/gnu/store/6zcm3xq6d3a0j6pnjd09b3zj1c9qbmrl-profile/arm-none-eabi/inclu= de/c++/arm-none-eabi a.c In file included from a.c:1:0: /gnu/store/6zcm3xq6d3a0j6pnjd09b3zj1c9qbmrl-profile/arm-none-eabi/include/c= ++/cstdlib:75:15: fatal error: stdlib.h: No such file or directory #include_next ^~~~~~~~~~ compilation terminated. ``` The problem is with C++ only. With C, as per the previous email, I managed to pass the preprocessing step= , but in C++ it doesn't! It doesn't really matter if I play with the -I flag. It just doesn't work :(