Re: RSB LLVM Package (chr...@rtems.org)

2019-09-15 Thread Chris Johns
On 15/9/19 1:52 pm, yorda wrote:
> It’s great to hear about rtems has made some progress on LLVM.

Thanks

> I’m quite new to rtems,

Welcome.

> so I have questions about the rtems-llvm packages

Excellent :)

> 1. Can I use rtems-llvm clang compiler build application c code?

Not yet unless you can prove the ABI matches the RTEMS kernel which we currently
only support being built by gcc. The user manual section ...

https://docs.rtems.org/branches/master/user/exe/executables.html#machine-flags-and-abi

... describes how all parts of the executable need to match the ABI for your
target and this is controlled by the machine flags to the compiler.

So in theory you may be able too but I am not sure.

> 2. Does rtems code and newlib still need use arm gcc toolchain?

We still need to add support to ..

1. Build newlib with clang
2. Build RTEMS with clang and the clang built newlib

This patch is a step as it gives more developers easier access to the tool 
chain.

Note, gcc support will be maintain and a core focus because it supports more
architectures than clang.

Also adding LLVM as a package to the RSB means we can grow the support in
rtems-tools and deprecate the existing support with the efltoolchain over time.
The LLVM libraries give us fast clean DWARF support plus 64bit support.

Chris
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

SPARC tool chain failed for MX Linux

2019-09-15 Thread Himanshu Sekhar Nayak
Hi

Just wanted to test hello world program so went on to building SPARC tool
chain in MX Linux but looks like there is a build error for in
sparc-rtems4.11-gcc. Here is the build report and any idea why it is
throwing this error ?

https://paste.ofcode.org/GUNDyhZt8yAnkdPkVYcq3Q
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: SPARC tool chain failed for MX Linux

2019-09-15 Thread Joel Sherrill
Looking at this on my phone, it looks like you are compiling a relatively
old GCC with a very new compiler which is much pickier. Is there any
particular reason you're compiling the 4.11 tool set?

On Sun, Sep 15, 2019, 2:44 PM Himanshu Sekhar Nayak <
himanshuwindows...@gmail.com> wrote:

> Hi
>
> Just wanted to test hello world program so went on to building SPARC tool
> chain in MX Linux but looks like there is a build error for in
> sparc-rtems4.11-gcc. Here is the build report and any idea why it is
> throwing this error ?
>
> https://paste.ofcode.org/GUNDyhZt8yAnkdPkVYcq3Q
>
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel