<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Oct 16, 2022 at 9:32 AM Alan Cudmore <<a href="mailto:alan.cudmore@gmail.com">alan.cudmore@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Oct 14, 2022 at 9:19 AM Joel Sherrill <<a href="mailto:joel@rtems.org" target="_blank">joel@rtems.org</a>> wrote:<br>
><br>
> Pushed. Thanks for pinging. It does help.<br>
><br>
> Since you are looking at the riscv BSPs, could you look at the four<br>
> BSP build failures reported here:<br>
><br>
> <a href="https://lists.rtems.org/pipermail/build/2022-September/036496.html" rel="noreferrer" target="_blank">https://lists.rtems.org/pipermail/build/2022-September/036496.html</a><br>
><br>
> I think they are all variants so one fix (maybe repeated) should do it.<br>
> The reported message isn't much help:<br>
><br>
>    1 smp riscv/rv32iac build:<br>
>       configure: /home/tester/rtems-cron-6/rtems/waf configure\<br>
>       --prefix=/home/tester/rtems-cron-6/tools/6/bsps --top=/home/tester\<br>
>       /rtems-cron-6/rtems --rtems-config=config-riscv-rv32iac-smp.ini<br>
>      error: ld/collect2:0 error: no error message found!<br>
><br>
<br>
I ran the bsp builder on the riscv BSPs with an updated toolchain and<br>
latest rtems master. I was able to reproduce only one of the failures<br>
with the rv32imafdc SMP configuration:<br>
Failures:<br>
   1 smp riscv/rv32imafdc build:<br>
      configure: /home/alan/rtems/test-build/rtems/waf configure\<br>
      --prefix=/home/alan/rtems/test-build/bsps\<br>
      --top=/home/alan/rtems/test-build/rtems --rtems-config=config-riscv-\<br>
      rv32imafdc-smp.ini<br>
     error: ld/collect2:0 error: no error message found!<br>
<br>
Average BSP Build Time: 0:00:26.253927<br>
Total Time 1:04:45.581263<br>
Passes: 147   Failures: 1<br>
<br>
This is the detail from the log:<br>
[1424/1437] Compiling ../../../rtems/testsuites/samples/nsecs/init.c<br>
start.o: in function `.L0 ':<br>
/home/alan/rtems/test-build/rtems/build/riscv/rv32imafdc/../../../bsps/riscv/shared/start/start.S:86:(.bsp_start_text+0x5<br>
c): relocation truncated to fit: R_RISCV_GPREL_I against symbol<br>
`bsp_section_bss_size' defined in *ABS* section in /home/<br>
alan/rtems/test-build/rtems/build/riscv/rv32imafdc/testsuites/samples/minimum.exe<br>
collect2: error: ld returned 1 exit status<br>
<br>
This seems to be similar to the error I get when I try to build the<br>
frdme310arty BSP with the testsuite and posix enabled:<br>
[4152/4326] Compiling testsuites/validation/tr-sem-surrender.c<br>
start.o: in function `.L0 ':<br>
/home/alan/rtems/test-build/rtems-tmp/build/riscv/frdme310arty/../../../bsps/riscv/shared/start/start.S:86:(.bsp_start_te<br>
xt+0x28): relocation truncated to fit: R_RISCV_GPREL_I against symbol<br>
`bsp_section_bss_size' defined in *ABS* section in<br>
/home/alan/rtems/test-build/rtems-tmp/build/riscv/frdme310arty/testsuites/validation/ts-validation-io-kernel.exe<br>
collect2: error: ld returned 1 exit status<br>
<br>
I need to investigate this more.<br></blockquote><div><br></div><div>There are two issues. </div><div><br></div><div>(1) The test in question does not fit on this target and needs to be disabled.</div><div><br></div><div>(2) Somewhere there is parsing of this output which may be able to be more helpful.</div><div><br></div><div>Chris... any pointers on (2)? Can the output of bsp builder be improved?</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> It might be nothing more than a test which doesn't fit in some section<br>
> but I have no idea beyond that they are all noted as SMP. Chris may be<br>
> helpful decoding the precise configuration.<br>
><br>
> --joel<br>
><br>
> On Thu, Oct 13, 2022 at 8:27 PM Alan Cudmore <<a href="mailto:alan.cudmore@gmail.com" target="_blank">alan.cudmore@gmail.com</a>> wrote:<br>
>><br>
>> Hi,<br>
>> Sorry, I did not set a message subject in my previous email.<br>
>><br>
>> Ping on this patch. I built all of the riscv/riscv BSPs that use it.<br>
>> It works for the generic riscv/qemu BSP, the PolarFire BSP, and the<br>
>> RISC-V BSP I am working on where the macro failed.<br>
>> <a href="https://lists.rtems.org/pipermail/devel/2022-September/073390.html" rel="noreferrer" target="_blank">https://lists.rtems.org/pipermail/devel/2022-September/073390.html</a><br>
>><br>
>> Thanks,<br>
>> Alan<br>
>> _______________________________________________<br>
>> devel mailing list<br>
>> <a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
>> <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div></div>