This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Importing Keil Project Linker C library files missing Error: L6218E: Undefined symbol

Hi ,

Imported a Keil UVISION (5.38) project to ARM DS 2023 using the import tool.

Using: 

Arm C Compiler for Embedded 6.16.2. LLM.

Arm FuSa RTS CM4_noMPU  

Solved  a lot of compiler issues, mostly missing  .h files, but now

I am getting a lot of these linker issues with c library:


Warning: L6320W: Ignoring --keep command. Cannot find argument '__cpp_initialize__aeabi_'.
Error: L6218E: Undefined symbol __aeabi_memclr4 (referred from adc.o).
Error: L6218E: Undefined symbol __aeabi_memcpy4 (referred from sha256.o).
Error: L6218E: Undefined symbol memcpy (referred from sha256.o).
Error: L6218E: Undefined symbol memset (referred from sha256.o).
Error: L6218E: Undefined symbol UTIL_PowerDriver (referred from stm32_lpm.o).
Error: L6218E: Undefined symbol strlen (referred from BleSt32wb55.o).
Error: L6218E: Undefined symbol __aeabi_memclr (referred from BootLoaderStack.o).
Error: L6218E: Undefined symbol memcmp (referred from ExtFlashIS25LP032D.o).
Error: L6218E: Undefined symbol __cpp_initialize__aeabi_ (referred from anon$$obj.o).
Error: L6218E: Undefined symbol __aeabi_d2f (referred from Stm32Wb55BleCmds.o).
Error: L6218E: Undefined symbol __aeabi_dsub (referred from Stm32Wb55BleCmds.o).
Error: L6218E: Undefined symbol isdigit (referred from BaseModem.o).
Error: L6218E: Undefined symbol snprintf (referred from BaseModem.o).
Error: L6218E: Undefined symbol strcmp (referred from BaseModem.o).
Error: L6218E: Undefined symbol strncmp (referred from BaseModem.o).
Error: L6218E: Undefined symbol memmove (referred from BaseNVM.o).
Error: L6218E: Undefined symbol strcpy (referred from BaseNVM.o).
Error: L6218E: Undefined symbol __aeabi_memcpy (referred from BaseParam.o).
Error: L6218E: Undefined symbol __aeabi_uldivmod (referred from Os.o).
Error: L6218E: Undefined symbol strrchr (referred from main.o).
Error: L6218E: Undefined symbol __scatterload_rt2 (referred from system_stm32wbxx.o).

Parents
  • Hi

    It looks like the linker cannot find the C libraries.

    I can reproduce similar errors if I link a test project with the option "--no_scanlib", or set "Prevent scanning of system libraries" in Project > Properties > C/C++ Build > Settings > Arm Linker 6 > Libraries.  Please check that option has not been set accidentally.

    If you need more help, please send your linker command-line.

    Stephen

Reply
  • Hi

    It looks like the linker cannot find the C libraries.

    I can reproduce similar errors if I link a test project with the option "--no_scanlib", or set "Prevent scanning of system libraries" in Project > Properties > C/C++ Build > Settings > Arm Linker 6 > Libraries.  Please check that option has not been set accidentally.

    If you need more help, please send your linker command-line.

    Stephen

Children
No data