Re: RFC: Building RTEMS/RISC-V with LLVM/Clang

2019-11-14 Thread Sebastian Huber
On 14/11/2019 10:53, Hesham Almatary wrote: To which directory NEWLIB_SYSROOT in the /opt/rtems/5 installation tree must this point? riscv-rtems5. Or the corresponding multilib directory for your RISC-V BSP. So, if I use --sysroot=/opt/rtems/5/riscv-rtems5, then clang will pick up

Re: RFC: Building RTEMS/RISC-V with LLVM/Clang

2019-11-14 Thread Hesham Almatary
On Thu, 14 Nov 2019 at 07:27, Sebastian Huber wrote: > > Hello Hesham, > > On 13/11/2019 16:32, Hesham Almatary wrote: > > On Wed, 13 Nov 2019 at 14:48, Sebastian Huber > > wrote: > >> > >> Hello Hesham, > >> > >> On 23/10/2019 15:50, Hesham Almatary wrote: > >>> Hi, > >>> > >>> I submitted a

Re: RFC: Building RTEMS/RISC-V with LLVM/Clang

2019-11-13 Thread Sebastian Huber
Hello Hesham, On 13/11/2019 16:32, Hesham Almatary wrote: On Wed, 13 Nov 2019 at 14:48, Sebastian Huber wrote: Hello Hesham, On 23/10/2019 15:50, Hesham Almatary wrote: Hi, I submitted a RFC patch series to be able to build RTEMS/RISC-V with LLVM/Clang. I'd appreciate your feedback on

Re: RFC: Building RTEMS/RISC-V with LLVM/Clang

2019-11-13 Thread Hesham Almatary
On Wed, 13 Nov 2019 at 14:48, Sebastian Huber wrote: > > Hello Hesham, > > On 23/10/2019 15:50, Hesham Almatary wrote: > > Hi, > > > > I submitted a RFC patch series to be able to build RTEMS/RISC-V with > > LLVM/Clang. I'd appreciate your feedback on that. > > > > A sample configure line to

Re: RFC: Building RTEMS/RISC-V with LLVM/Clang

2019-11-13 Thread Sebastian Huber
Hello Hesham, On 23/10/2019 15:50, Hesham Almatary wrote: Hi, I submitted a RFC patch series to be able to build RTEMS/RISC-V with LLVM/Clang. I'd appreciate your feedback on that. A sample configure line to build RTEMS with LLVM/Clang is: ../rtems/configure --target=riscv-rtems6

Re: RFC: Building RTEMS/RISC-V with LLVM/Clang

2019-10-28 Thread Chris Johns
On 29/10/19 12:51 am, Hesham Almatary wrote: > On Mon, 28 Oct 2019 at 10:33, Sebastian Huber > wrote: >> >> On 28/10/2019 11:16, Hesham Almatary wrote: >>> Hi Sebastian, >>> >>> The *_clang ones aren't expected to be compiled by GCC (and the native >>> *.cfg won't compile with clang). Is there a

Re: RFC: Building RTEMS/RISC-V with LLVM/Clang

2019-10-28 Thread Hesham Almatary
On Mon, 28 Oct 2019 at 10:33, Sebastian Huber wrote: > > On 28/10/2019 11:16, Hesham Almatary wrote: > > Hi Sebastian, > > > > The *_clang ones aren't expected to be compiled by GCC (and the native > > *.cfg won't compile with clang). Is there a reason they should be? > > You can build all BSPs

Re: RFC: Building RTEMS/RISC-V with LLVM/Clang

2019-10-28 Thread Sebastian Huber
On 28/10/2019 11:16, Hesham Almatary wrote: Hi Sebastian, The *_clang ones aren't expected to be compiled by GCC (and the native *.cfg won't compile with clang). Is there a reason they should be? You can build all BSPs of an architecture with: ../configure --target=riscv-rtems5 This no

Re: RFC: Building RTEMS/RISC-V with LLVM/Clang

2019-10-28 Thread Hesham Almatary
Hi Sebastian, The *_clang ones aren't expected to be compiled by GCC (and the native *.cfg won't compile with clang). Is there a reason they should be? On Mon, 28 Oct 2019 at 07:42, Sebastian Huber wrote: > > Hello, > > when you build the new clang variants with GCC you get: > > gmake[3]:

Re: RFC: Building RTEMS/RISC-V with LLVM/Clang

2019-10-28 Thread Sebastian Huber
Hello, when you build the new clang variants with GCC you get: gmake[3]: Leaving directory '/build/git-build/b-all-riscv-5/riscv-rtems5/c/rv32i_clang' checking for RTEMS_CPU_MODEL... checking for RTEMS_BSP_FAMILY... riscv checking for CPU_CFLAGS... (cached) -march=rv32i -mabi=ilp32 -target

Re: RFC: Building RTEMS/RISC-V with LLVM/Clang

2019-10-24 Thread Hesham Almatary
Hi Sebastian, On Thu, 24 Oct 2019 at 12:48, Sebastian Huber wrote: > > Hello, > > I work currently on a new build system based on waf and Doorstop. It > would be good to have the clang support at the top level of the build > system. Doing this for the current build system is probably a waste of

Re: RFC: Building RTEMS/RISC-V with LLVM/Clang

2019-10-24 Thread Sebastian Huber
Hello, I work currently on a new build system based on waf and Doorstop. It would be good to have the clang support at the top level of the build system. Doing this for the current build system is probably a waste of time. In general, I am fine with your changes. It would be great if you

RFC: Building RTEMS/RISC-V with LLVM/Clang

2019-10-23 Thread Hesham Almatary
Hi, I submitted a RFC patch series to be able to build RTEMS/RISC-V with LLVM/Clang. I'd appreciate your feedback on that. A sample configure line to build RTEMS with LLVM/Clang is: ../rtems/configure --target=riscv-rtems6 --enable-rtemsbsp=rv64imafdc_clang CC_FOR_TARGET="clang"