Rt-Thread 5.0.2 on Pico/RP2040 dynamic module not compiling

Created at 2024-01-19 13:02:17

Dear all,

I want to use dynamic modules, to load modules at runtime. I follow the instruction https://github.com/RT-Thread/rtthread-manual-doc/tree/master/dlmodule

on the pico BSP,
RT-Thread Components --->

   POSIX layer and C standard library  --->
       [*] Enable dynamic module with dlopen/dlsym/dlclose feature
       

and
RT-Thread Components --->

    Device virtual file system  --->
           [*] Using device virtual file system
           

But this seems not to be enough. Scons then report:
scons: Reading SConscript files ...
Newlib version: 2.4.0
Enter /home/micha/rt_thread/rt-thread/bsp/raspberry-pico/packages/raspberrypi-pico-sdk-latest
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: `.' is up to date.
scons: done building targets.
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build
...
CC build/kernel/components/libc/posix/libdl/dlmodule.o
...
LINK rtthread-pico.elf
build/kernel/components/libc/posix/libdl/dlmodule.o: In function `rt_system_dlmodule_init':
/home/micha/rt_thread/rt-thread/components/libc/posix/libdl/dlmodule.c:829: undefined reference to `__rtmsymtab_start'
/home/micha/rt_thread/rt-thread/components/libc/posix/libdl/dlmodule.c:829: undefined reference to `__rtmsymtab_end'
collect2: error: ld returned 1 exit status
scons: * [rtthread-pico.elf] Error 1
scons: building terminated because of errors.

Any hint how to get dynamic modules on the Pico with RT-Thread 5.0.2?

Thank you

More

Follower
0
Views
165
0 Answer
There is no answer, come and add the answer

Write Your Answer

Log in to publish your answer.,Click here to log in.

Create
Post

Share