[PATCH v1 0/1] Update rtems-llvm to version 11.1.0
Jan.Sommer at dlr.de
Jan.Sommer at dlr.de
Mon Feb 13 12:12:16 UTC 2023
> -----Original Message-----
> From: Joel Sherrill <joel at rtems.org>
> Sent: Freitag, 10. Februar 2023 15:21
> To: Sommer, Jan <Jan.Sommer at dlr.de>
> Cc: devel at rtems.org
> Subject: Re: [PATCH v1 0/1] Update rtems-llvm to version 11.1.0
>
>
>
> On Fri, Feb 10, 2023 at 3:16 AM Jan Sommer <jan.sommer at dlr.de
> <mailto:jan.sommer at dlr.de> > wrote:
>
>
> Hello,
>
> I couldn't get the rtems-llvm buildset to work.
> As it was building llvm8 which is not that modern, I just tried to build
> a more recent version with the scripts.
> It works with llvm11. Are there any objections to updating?
>
>
>
> Nope. Please feel free to add this.
>
>
> And should we keep the rtems-llvm-8.cfg or should I remove this
> with
> this patch?
>
>
>
> My main concern is if the architectures that built with llvm 8 still build with
> llvm 11. I think that's only SPARC and RISC-V. Are there others?
>
> I guess that points to me not knowing the list of architectures that are
> expected to work. I wonder where we would keep this information. Any
> thoughts?
>
Thanks for the information.
I tried to build those to check if they still work and failed, but given that the information I could find is sparse I could very well be the problem.
What I did is:
- Build the gcc toolchains for sparc and riscv (as far as I understand we need the binutils and libc from that)
- Build the rtems-llvm build set
- Generate a config for waf using: ./waf bspdefaults --rtems-bsps='sparc/gr712rc' --rtems-compiler=clang > sparc.cfg
- Configure the build with the config: ./waf configure --rtems-config=sparc.cfg -$INSTALL_DIR
- Run ./waf
- I also tried with some riscv BSPs with the same results.
The build fails with missing std headers (stddef.h).
Looking at the generated config file there are only small differences to the one for gcc (essentially the compiler name changed to clang).
And the verbose output confirms that the gcc toolchain is not part of the include paths.
I didn't find an obvious option in "waf configure" to add this.
If you say that building worked only for few BSPs. Do you remember which ones and if there was some magic to do first?
Then I could try to reproduce this with the llvm11 compiler.
Best regards,
Jan
> --joel
>
>
> Have a nice weekend,
>
> Jan
>
> Jan Sommer (1):
> rtems-tools: Update rtems-llvm to version 11.1.0
>
> rtems/config/6/rtems-llvm.bset | 2 +-
> rtems/config/tools/rtems-llvm-11.1.0.cfg | 21
> +++++++++++++++++++++
> source-builder/config/llvm-common-1.cfg | 6 +++---
> 3 files changed, 25 insertions(+), 4 deletions(-)
> create mode 100644 rtems/config/tools/rtems-llvm-11.1.0.cfg
>
> --
> 2.25.1
>
> _______________________________________________
> devel mailing list
> devel at rtems.org <mailto:devel at rtems.org>
> http://lists.rtems.org/mailman/listinfo/devel
>
More information about the devel
mailing list