all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ekaitz Zarraga <ekaitz@elenq.tech>
To: Attila Lendvai <attila@lendvai.name>, guix-devel <guix-devel@gnu.org>
Subject: Re: arm-none-eabi toolchain and compiling C++ stuff
Date: Wed, 20 Dec 2023 21:53:21 +0100	[thread overview]
Message-ID: <cad846b6-bc60-b7e1-3590-82a4468ca4c2@elenq.tech> (raw)
In-Reply-To: <lJXJckOIFmsPj75hwweoSYoQ24C2KP_U7a6Hzg46_c9zTxle-03yffteWx8zL2Bx0UWr0R4K84WEhHSoyscpGh47Nky9f1UDOM1Bg-Odb_o=@lendvai.name>



On 2023-12-20 21:28, Attila Lendvai wrote:
> 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?
> 

Hi Attila,

I reported the very same problem some time ago. This should just work in 
Guix. I don't think your expectations are wrong.
It should work.

In fact, there is a proposal:

https://lists.gnu.org/archive/html/guix-devel/2023-10/msg00014.html

That claims to fix this.
We should take a look into it.

Thanks for raising a little bit more of awareness on this... I have some 
Picos at home and they are literally unusable at this point :)

Cheers,
Ekaitz


  reply	other threads:[~2023-12-20 20:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-20 20:28 arm-none-eabi toolchain and compiling C++ stuff Attila Lendvai
2023-12-20 20:53 ` Ekaitz Zarraga [this message]
2023-12-21 16:11 ` Ricardo Wurmus

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cad846b6-bc60-b7e1-3590-82a4468ca4c2@elenq.tech \
    --to=ekaitz@elenq.tech \
    --cc=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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.