[Buildroot] [PATCHv3] package/rustc: needs C++ compiler with musl based toolchain

James Hilliard james.hilliard1 at gmail.com
Thu Sep 1 18:33:15 UTC 2022


On Tue, Aug 30, 2022 at 1:22 PM Yann E. MORIN <yann.morin.1998 at free.fr> wrote:
>
> James, All,
>
> On 2022-07-28 15:07 -0600, James Hilliard spake thusly:
> > On Wed, Jul 27, 2022 at 2:38 AM Romain Naour <romain.naour at smile.fr> wrote:
> > > While building host-rust with a musl based toolchain without C++ compiler,
> > > the build fail since libunwind bundled in rust sources needs a C++ compiler.
> > >
> > > cargo:warning=i686-buildroot-linux-musl-gcc.br_real: error: [...]/host-rust-1.62.0/src/llvm-project/libunwind/src/Unwind-EHABI.cpp: C++ compiler not installed on this system
> > AFAIU rust should be able to use normal(ie non-llvm) libunwind which doesn't
> > require C++:
> > https://github.com/buildroot/buildroot/blob/master/package/libunwind/libunwind.mk
>
> I've applied Romain's patch as a stop-gap measure, until someone comes
> up with a better solution, like implementing your proposal of using an
> unbundled libunwind.

FYI I sent some preliminary patches improving unbundled libunwind target
arch support:
https://patchwork.ozlabs.org/project/buildroot/patch/20220811063502.1823571-1-james.hilliard1@gmail.com/
https://patchwork.ozlabs.org/project/buildroot/patch/20220811063502.1823571-2-james.hilliard1@gmail.com/

>
> Regards,
> Yann E. MORIN.
>
> --
> .-----------------.--------------------.------------------.--------------------.
> |  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
> | +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
> | +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
> | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
> '------------------------------^-------^------------------^--------------------'



More information about the buildroot mailing list