From: Attila Lendvai <attila@lendvai.name>
To: guix-devel <guix-devel@gnu.org>
Subject: arm-none-eabi toolchain and compiling C++ stuff
Date: Wed, 20 Dec 2023 20:28:52 +0000 [thread overview]
Message-ID: <lJXJckOIFmsPj75hwweoSYoQ24C2KP_U7a6Hzg46_c9zTxle-03yffteWx8zL2Bx0UWr0R4K84WEhHSoyscpGh47Nky9f1UDOM1Bg-Odb_o=@lendvai.name> (raw)
dear Guix,
i'm trying to compile something to a raspberry rp2040 microcontroller (https://codeberg.org/Riku_V/pico-serprog).
$ guix shell gcc-toolchain cmake make pkg-config -e "((@ (gnu packages embedded) make-arm-none-eabi-toolchain-7-2018-q2-update))"
$ cd _deps
$ git clone https://github.com/raspberrypi/pico-sdk.git pico_sdk-src
$ cd ..
$ cmake .
$ make
so far, so good. it compiles for a while, but then it fails with:
[ 14%] Building CXX object CMakeFiles/pico_serprog.dir/_deps/pico_sdk-src/src/rp2_common/pico_standard_link/new_delete.cpp.obj
In file included from pico-serprog/_deps/pico_sdk-src/src/rp2_common/pico_standard_link/new_delete.cpp:11:0:
/gnu/store/7i9fw82x6hljy6sb4g10v2dl53l7pybl-profile/arm-none-eabi/include/c++/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
if i read this right, it tries to cross compile some C++ stuff, but a header file is missing.
$ guix locate stdlib.h
[...]
gcc-toolchain@13.2.0 /gnu/store/dpfxpfyghkc19wz8jwaw31llhnvn8ngx-gcc-toolchain-13.2.0/include/stdlib.h
gcc-toolchain@11.3.0 /gnu/store/5vn4pkf70ql7v1svrfknfkfsh4m3737h-gcc-toolchain-11.3.0/include/stdlib.h
clang-toolchain@15.0.7 /gnu/store/6m5gi7l7bi93gnzm2j422q9wawq3p6al-clang-toolchain-15.0.7/include/stdlib.h
[...]
i.e. it's usually part of the gcc-toolchain package... but it's not part of the cross-compiling ones?
is that a bug in (gnu packages embedded)? shall i look into fixing it?
or am i the one who has invalid expectations?
--
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“If money is your hope for independence you will never have it. The only real security that a man will have in this world is a reserve of knowledge, experience, and ability.”
— Henry Ford (1863–1947)
next reply other threads:[~2023-12-20 20:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-20 20:28 Attila Lendvai [this message]
2023-12-20 20:53 ` arm-none-eabi toolchain and compiling C++ stuff Ekaitz Zarraga
2023-12-21 16:11 ` Ricardo Wurmus
-- strict thread matches above, loose matches on Subject: below --
2024-09-06 16:01 Rutherther
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='lJXJckOIFmsPj75hwweoSYoQ24C2KP_U7a6Hzg46_c9zTxle-03yffteWx8zL2Bx0UWr0R4K84WEhHSoyscpGh47Nky9f1UDOM1Bg-Odb_o=@lendvai.name' \
--to=attila@lendvai.name \
--cc=guix-devel@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).