From: Stefan <stefan-guix@vodafonemail.de>
To: ekaitz@elenq.tech, help-guix@gnu.org
Subject: arm-none-eabi-toolchain: stdlib.h not found
Date: Sat, 7 Oct 2023 13:44:39 +0200 [thread overview]
Message-ID: <491d386b-2a6e-f33e-e4ea-1885702c4d5d@vodafonemail.de> (raw)
Hi Ekaitz!
I tried to reproduce your problem, and indeed it produces the same error
you are encountering.
$ guix shell arm-none-eabi-toolchain
[env]$ ls
a.c
[env]$ cat a.c
#include <cstdlib>
void operator delete(void* p) {std::free(p);}
int main() {return 0;}
[env]$ arm-none-eabi-g++ -x c++ a.c
In file included from a.c:1:0:
/gnu/store/6bq6svar4b2mkp2k3laxqqs1nsxykrvf-profile/arm-none-eabi/include/c++/cstdlib:75:15:
fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^~~~~~~~~~
compilation terminated.
Then I tried it with my self build toolchain
gcc12-cross-newlib-arm-none-eabi-toolchain-12.2.0¹, which works as expected:
$ arm-none-eabi-g++ -x c++ -c a.c
$ ls
a.c a.o
$ arm-none-eabi-g++ -x c++ a.c -lg -lrdpmon
$ ls
a.c a.o a.out
$ file a.out
a.out: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV),
statically linked, with debug_info, not stripped
Bye
Stefan
¹ https://lists.gnu.org/archive/html/guix-devel/2023-10/msg00014.html
next reply other threads:[~2023-10-07 11:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-07 11:44 Stefan [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-09-06 21:32 arm-none-eabi-toolchain: stdlib.h not found Rutherther
2023-09-05 18:09 Ekaitz Zarraga
2023-09-26 22:28 ` Ekaitz Zarraga
2023-09-26 22:35 ` Ekaitz Zarraga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=491d386b-2a6e-f33e-e4ea-1885702c4d5d@vodafonemail.de \
--to=stefan-guix@vodafonemail.de \
--cc=ekaitz@elenq.tech \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).