On 22/06/2020 08:38, Chris Johns wrote:
On 22/6/20 2:11 am, jan.som...@dlr.de wrote:
Hello,
I just tried to compile some riscv bsps with tests enabled and got a
compile time error for the dl06 test.
I tried with griscv and rv32imac with the following configure:
../rtems-5.0.0-m2006-2/configure --target=riscv-rtems5
--prefix../install/bsps --disable-networking --enable-tests
--enable-rtemsbsp=griscv
I got the following error:
rtems-ld -r
/localdata2/somm_ja/rtems/5-0-rc/build-riscv/riscv-rtems5/c/griscv \
-C riscv-rtems5-gcc -c "-march=rv32imafd -mabi=ilp32d" \
-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
Thank you for reporting this. I can reproduce it.
Please raise a ticket and assign it to the 5.2 milestone.
Is libdl supported at all on riscv? In the new build system I excluded
the libdl tests from the build for riscv. Do we need something like this:
diff --git a/testsuites/libtests/configure.ac
b/testsuites/libtests/configure.ac
index 3b5462600d..fa07269c1a 100644
--- a/testsuites/libtests/configure.ac
+++ b/testsuites/libtests/configure.ac
@@ -49,7 +49,7 @@ AM_CONDITIONAL(HAS_POSIX,test
x"${rtems_cv_RTEMS_POSIX_API}" = x"yes")
# Must match the list in cpukit.
AC_MSG_CHECKING([whether CPU supports libdl])
case $RTEMS_CPU in
- arm | i386 | m68k | mips | moxie | powerpc | riscv | sparc)
+ arm | i386 | m68k | mips | moxie | powerpc | sparc)
TEST_LIBDL=yes ;;
# bfin has an issue to resolve with libdl. See ticket #2252
bfin)
Plus a ticket to add libdl support for riscv?
I wonder why the BSP builder didn't surface this issue here.
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel