Re: Compilation error in compiling RISC-V bsps

2020-11-12 Thread Joel Sherrill
The tests that start with dl are dynamic loader tests. They require
architecture specific support which sometimes breaks. That's why there is a
ticket until it gets addressed by someone. Things get fixed as either
volunteers step up or someone gets funded to fix them.

You should be to do "make -k" to ignore this error and continue or, more
cleanly, add a ".tcfg" file to the BSP's config directory to specify that
this test should be
excluded. bsps/riscv/riscv/config/rv64imafd-testsuite.tcfg which should
need only one line:

expected-fail: dl06

There are lots of other .tcfg files to look at for examples.

--joel



On Wed, Nov 11, 2020 at 10:42 PM somesh deshmukh 
wrote:

> Hi All,
> Gentle reminder!!
>
> Can you please give some update on this query?
> I am looking into developing a custom bsp for risc-v board and an update
> on this query will be very helpful.
>
> Regards,
> Somesh
>
>
> On Fri, Nov 6, 2020 at 8:03 PM somesh deshmukh 
> wrote:
>
>> Hi,
>>
>> I am trying to compile rv64imafd BSP and I am facing the following
>> issues.
>>
>> Error log pasted below:
>>
>> Making all-am in libtests
>> gmake[5]: Entering directory
>>
>> '/home/somesh/rtos/rtems/src/kernel/rv64imafd/riscv-rtems5/c/rv64imafd/testsuites/libtests'
>> rtems-ld -r
>> /home/somesh/rtos/rtems/src/kernel/rv64imafd/riscv-rtems5/c/rv64imafd \
>>-C riscv-rtems5-gcc -c "-march=rv64imafd -mabi=lp64d" \
>>-O rap -b dl06.pre -e rtems_main -s \
>>-o dl06.rap dl06-o1.o dl06-o2.o -lm
>> error: rap::object: Section index '0' not found: dl06-o1.o
>> gmake[5]: *** [Makefile:8479: dl06.rap] Error 10
>> gmake[5]: Leaving directory
>>
>> '/home/somesh/rtos/rtems/src/kernel/rv64imafd/riscv-rtems5/c/rv64imafd/testsuites/libtests'
>>
>> The command I used for building the BSP is pasted below:
>>
>>
>> *../rtems/configure --prefix=$HOME/rtos/rtems/5 --target=riscv-rtems5
>> --enable-rtemsbsp=rv64imafd --enable-tests --enable-posix
>> --disable-networking*
>>
>> I am using latest release of RTEMS v5.1 on ubuntu v20 system.
>>
>> I found the discussion related to similar issue at following link:
>> https://www.mail-archive.com/devel@rtems.org/msg24899.html
>>
>> There is a ticket raised for the same issue:
>> https://devel.rtems.org/ticket/4011
>> What is the status of this ticket?
>>
>> Regards,
>> Somesh
>>
>> ___
> users mailing list
> users@rtems.org
> http://lists.rtems.org/mailman/listinfo/users
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Compilation error in compiling RISC-V bsps

2020-11-12 Thread Chris Johns
On 13/11/20 3:00 am, Joel Sherrill wrote:
> The tests that start with dl are dynamic loader tests. They require 
> architecture
> specific support which sometimes breaks. That's why there is a ticket until it
> gets addressed by someone. Things get fixed as either volunteers step up or
> someone gets funded to fix them.
> 
> You should be to do "make -k" to ignore this error and continue or, more
> cleanly, add a ".tcfg" file to the BSP's config directory to specify that this
> test should be excluded. bsps/riscv/riscv/config/rv64imafd-testsuite.tcfg 
> which
> should need only one line:
> 
> expected-fail: dl06
> 
> There are lots of other .tcfg files to look at for examples.
> 

The expected fail state is a runtime state so the test still needs to build.

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

Re: Compilation error in compiling RISC-V bsps

2020-11-12 Thread Joel Sherrill
On Thu, Nov 12, 2020 at 4:16 PM Chris Johns  wrote:

> On 13/11/20 3:00 am, Joel Sherrill wrote:
> > The tests that start with dl are dynamic loader tests. They require
> architecture
> > specific support which sometimes breaks. That's why there is a ticket
> until it
> > gets addressed by someone. Things get fixed as either volunteers step up
> or
> > someone gets funded to fix them.
> >
> > You should be to do "make -k" to ignore this error and continue or, more
> > cleanly, add a ".tcfg" file to the BSP's config directory to specify
> that this
> > test should be
> excluded. bsps/riscv/riscv/config/rv64imafd-testsuite.tcfg which
> > should need only one line:
> >
> > expected-fail: dl06
> >
> > There are lots of other .tcfg files to look at for examples.
> >
>
> The expected fail state is a runtime state so the test still needs to
> build.
>

So temporarily it needs to be exclude?

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

Re: Compilation error in compiling RISC-V bsps

2020-11-12 Thread Chris Johns
On 13/11/20 10:55 am, Joel Sherrill wrote:
> On Thu, Nov 12, 2020 at 4:16 PM Chris Johns  > wrote:
> On 13/11/20 3:00 am, Joel Sherrill wrote:
> > The tests that start with dl are dynamic loader tests. They require
> architecture
> > specific support which sometimes breaks. That's why there is a ticket 
> until it
> > gets addressed by someone. Things get fixed as either volunteers step 
> up or
> > someone gets funded to fix them.
> >
> > You should be to do "make -k" to ignore this error and continue or, more
> > cleanly, add a ".tcfg" file to the BSP's config directory to specify 
> that this
> > test should be excluded. 
> bsps/riscv/riscv/config/rv64imafd-testsuite.tcfg
> which
> > should need only one line:
> >
> > expected-fail: dl06
> >
> > There are lots of other .tcfg files to look at for examples.
> 
> The expected fail state is a runtime state so the test still needs to 
> build.
> 
> So temporarily it needs to be exclude?  

I suppose it could if the ticket is updated to reflect the fact the test is
disabled and the exclude is commented with the ticket number?

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

Re: Compilation error in compiling RISC-V bsps

2020-11-12 Thread Joel Sherrill
On Thu, Nov 12, 2020, 8:49 PM Chris Johns  wrote:

> On 13/11/20 10:55 am, Joel Sherrill wrote:
> > On Thu, Nov 12, 2020 at 4:16 PM Chris Johns  > > wrote:
> > On 13/11/20 3:00 am, Joel Sherrill wrote:
> > > The tests that start with dl are dynamic loader tests. They require
> > architecture
> > > specific support which sometimes breaks. That's why there is a
> ticket until it
> > > gets addressed by someone. Things get fixed as either volunteers
> step up or
> > > someone gets funded to fix them.
> > >
> > > You should be to do "make -k" to ignore this error and continue
> or, more
> > > cleanly, add a ".tcfg" file to the BSP's config directory to
> specify that this
> > > test should be
> excluded. bsps/riscv/riscv/config/rv64imafd-testsuite.tcfg
> > which
> > > should need only one line:
> > >
> > > expected-fail: dl06
> > >
> > > There are lots of other .tcfg files to look at for examples.
> >
> > The expected fail state is a runtime state so the test still needs
> to build.
> >
> > So temporarily it needs to be exclude?
>
> I suppose it could if the ticket is updated to reflect the fact the test is
> disabled and the exclude is commented with the ticket number?
>

I was only suggesting this as a local fix for the poster. But that might be
acceptable if this is not fixed properly before the next 5.x release.


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

Re: Compilation error in compiling RISC-V bsps

2020-11-12 Thread somesh deshmukh
Hi Chris, Joel,

Thanks for all the comments/suggestions.
This issue exists with the released version 5.1 however when I tried with
the master branch source code, I did not faced this issue.

Regards,
Somesh

On Fri, Nov 13, 2020 at 10:07 AM Joel Sherrill  wrote:

>
>
> On Thu, Nov 12, 2020, 8:49 PM Chris Johns  wrote:
>
>> On 13/11/20 10:55 am, Joel Sherrill wrote:
>> > On Thu, Nov 12, 2020 at 4:16 PM Chris Johns > > > wrote:
>> > On 13/11/20 3:00 am, Joel Sherrill wrote:
>> > > The tests that start with dl are dynamic loader tests. They
>> require
>> > architecture
>> > > specific support which sometimes breaks. That's why there is a
>> ticket until it
>> > > gets addressed by someone. Things get fixed as either volunteers
>> step up or
>> > > someone gets funded to fix them.
>> > >
>> > > You should be to do "make -k" to ignore this error and continue
>> or, more
>> > > cleanly, add a ".tcfg" file to the BSP's config directory to
>> specify that this
>> > > test should be
>> excluded. bsps/riscv/riscv/config/rv64imafd-testsuite.tcfg
>> > which
>> > > should need only one line:
>> > >
>> > > expected-fail: dl06
>> > >
>> > > There are lots of other .tcfg files to look at for examples.
>> >
>> > The expected fail state is a runtime state so the test still needs
>> to build.
>> >
>> > So temporarily it needs to be exclude?
>>
>> I suppose it could if the ticket is updated to reflect the fact the test
>> is
>> disabled and the exclude is commented with the ticket number?
>>
>
> I was only suggesting this as a local fix for the poster. But that might
> be acceptable if this is not fixed properly before the next 5.x release.
>
>
>> Chris
>>
>
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Compilation error in compiling RISC-V bsps

2020-11-12 Thread Chris Johns
On 13/11/20 5:20 pm, somesh deshmukh wrote:
> Thanks for all the comments/suggestions.

No problem.

> This issue exists with the released version 5.1 however when I tried with the
> master branch source code, I did not faced this issue.

Oh that is interesting and thank you for checking master and reporting back. I
wonder what has changed to fix this  hmm

Could you please try the master version of `rtems-ld` with a 5.1 build of the
BSP with tests?

You should be able to copy the master version to your 5.1 tool set.

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