wangtao13 opened a new issue, #19728: URL: https://github.com/apache/nuttx/issues/19728
### Description I am trying to build nuttx 12.13.0 for mips with `CONFIG_ALLSYMS` enabled, but I hit following errors in linking. ``` /home/t/nuttx/nuttx/staging/libc.a(symtab_allsyms.o): In function `allsyms_findbyname': symtab/symtab_allsyms.c:(.text+0x34): undefined reference to `g_nallsyms' symtab/symtab_allsyms.c:(.text+0x38): undefined reference to `g_nallsyms' symtab/symtab_allsyms.c:(.text+0x4c): undefined reference to `g_allsyms' symtab/symtab_allsyms.c:(.text+0x60): undefined reference to `g_allsyms' /home/t/nuttx/nuttx/staging/libc.a(symtab_allsyms.o): In function `allsyms_findbyvalue': symtab/symtab_allsyms.c:(.text+0xfc): undefined reference to `g_nallsyms' symtab/symtab_allsyms.c:(.text+0x100): undefined reference to `g_nallsyms' /home/t/nuttx/nuttx/staging/libc.a(symtab_allsyms.o): In function `allsyms_findbyname': symtab/symtab_allsyms.c:(.text+0x3c): undefined reference to `g_allsyms' /home/t/nuttx/nuttx/staging/libc.a(symtab_allsyms.o): In function `allsyms_findbyvalue': symtab/symtab_allsyms.c:(.text+0x114): undefined reference to `g_allsyms' symtab/symtab_allsyms.c:(.text+0x104): undefined reference to `g_allsyms' symtab/symtab_allsyms.c:(.text+0x128): undefined reference to `g_allsyms' make[1]: *** [Makefile:106: nuttx] Error 1 make: *** [tools/Unix.mk:565: nuttx] Error 2 ``` I checked the `arch/tricore/src/Makefile`, and followed it to add `LINK_ALLSYMS` target into my Makefile, but it still failed. So what is the right way to build nuttx with `CONFIG_ALLSYMS` enabled (without KASAN enabled)? ### Verification - [x] I have verified before submitting the report. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
