Cause of error during build

An error comes out like this.

How to solve it??

https://drive.google.com/drive/folders/1hgNngqbynvcmKNgjQ2-wAjBdxcXhWVzV?usp=sharing

Building target: blinky.elf
Invoking: Cross ARM C Linker
arm-none-eabi-gcc -mcpu=cortex-m33 -march=armv8-m.main+dsp -mthumb -mfloat-abi=hard -mfpu=fpv5-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g -T “D:\Sourece\LSM\blinky/RTE/Device/RSL15/sections.ld” -nostartfiles -Xlinker --gc-sections -Wl,-Map,“blinky.map” -o “blinky.elf” -Wl,–start-group ./RTE/Device/RSL15/acs_write_asm.o ./RTE/Device/RSL15/clock.o ./RTE/Device/RSL15/flash_copier.o ./RTE/Device/RSL15/go_to_sleep_asm.o ./RTE/Device/RSL15/gpio_driver.o ./RTE/Device/RSL15/lsad.o ./RTE/Device/RSL15/power_modes.o ./RTE/Device/RSL15/rffe.o ./RTE/Device/RSL15/sassert.o ./RTE/Device/RSL15/sbrk.o ./RTE/Device/RSL15/start.o ./RTE/Device/RSL15/startup.o ./RTE/Device/RSL15/swmTrace.o ./RTE/Device/RSL15/swmTrace_wrapper.o ./RTE/Device/RSL15/system_rsl15.o ./RTE/Device/RSL15/trim.o ./RTE/Device/RSL15/uart.o ./RTE/Device/RSL15/uart_common.o ./RTE/CMSIS_Driver/uart_driver.o ./app.o -Wl,–end-group
c:/program files (x86)/onsemi/ide_v4.2.1.93/arm_tools/bin/…/lib/gcc/arm-none-eabi/10.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: c:/program files (x86)/onsemi/ide_v4.2.1.93/arm_tools/bin/…/lib/gcc/arm-none-eabi/10.2.1/…/…/…/…/arm-none-eabi/lib/thumb/v8-m.main+fp/hard\libg.a(lib_a-writer.o): in function _write_r': writer.c:(.text._write_r+0x14): undefined reference to _write’
c:/program files (x86)/onsemi/ide_v4.2.1.93/arm_tools/bin/…/lib/gcc/arm-none-eabi/10.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: c:/program files (x86)/onsemi/ide_v4.2.1.93/arm_tools/bin/…/lib/gcc/arm-none-eabi/10.2.1/…/…/…/…/arm-none-eabi/lib/thumb/v8-m.main+fp/hard\libg.a(lib_a-closer.o): in function _close_r': closer.c:(.text._close_r+0xc): undefined reference to _close’
c:/program files (x86)/onsemi/ide_v4.2.1.93/arm_tools/bin/…/lib/gcc/arm-none-eabi/10.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: c:/program files (x86)/onsemi/ide_v4.2.1.93/arm_tools/bin/…/lib/gcc/arm-none-eabi/10.2.1/…/…/…/…/arm-none-eabi/lib/thumb/v8-m.main+fp/hard\libg.a(lib_a-fstatr.o): in function _fstat_r': fstatr.c:(.text._fstat_r+0x12): undefined reference to _fstat’
c:/program files (x86)/onsemi/ide_v4.2.1.93/arm_tools/bin/…/lib/gcc/arm-none-eabi/10.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: c:/program files (x86)/onsemi/ide_v4.2.1.93/arm_tools/bin/…/lib/gcc/arm-none-eabi/10.2.1/…/…/…/…/arm-none-eabi/lib/thumb/v8-m.main+fp/hard\libg.a(lib_a-isattyr.o): in function _isatty_r': isattyr.c:(.text._isatty_r+0xc): undefined reference to _isatty’
c:/program files (x86)/onsemi/ide_v4.2.1.93/arm_tools/bin/…/lib/gcc/arm-none-eabi/10.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: c:/program files (x86)/onsemi/ide_v4.2.1.93/arm_tools/bin/…/lib/gcc/arm-none-eabi/10.2.1/…/…/…/…/arm-none-eabi/lib/thumb/v8-m.main+fp/hard\libg.a(lib_a-lseekr.o): in function _lseek_r': lseekr.c:(.text._lseek_r+0x14): undefined reference to _lseek’
c:/program files (x86)/onsemi/ide_v4.2.1.93/arm_tools/bin/…/lib/gcc/arm-none-eabi/10.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: c:/program files (x86)/onsemi/ide_v4.2.1.93/arm_tools/bin/…/lib/gcc/arm-none-eabi/10.2.1/…/…/…/…/arm-none-eabi/lib/thumb/v8-m.main+fp/hard\libg.a(lib_a-readr.o): in function _read_r': readr.c:(.text._read_r+0x14): undefined reference to _read’
c:/program files (x86)/onsemi/ide_v4.2.1.93/arm_tools/bin/…/lib/gcc/arm-none-eabi/10.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: c:/program files (x86)/onsemi/ide_v4.2.1.93/arm_tools/bin/…/lib/gcc/arm-none-eabi/10.2.1/…/…/…/…/arm-none-eabi/lib/thumb/v8-m.main+fp/hard\libg.a(lib_a-abort.o): in function abort': abort.c:(.text.abort+0xa): undefined reference to _exit’
c:/program files (x86)/onsemi/ide_v4.2.1.93/arm_tools/bin/…/lib/gcc/arm-none-eabi/10.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: c:/program files (x86)/onsemi/ide_v4.2.1.93/arm_tools/bin/…/lib/gcc/arm-none-eabi/10.2.1/…/…/…/…/arm-none-eabi/lib/thumb/v8-m.main+fp/hard\libg.a(lib_a-signalr.o): in function _kill_r': signalr.c:(.text._kill_r+0x12): undefined reference to _kill’
c:/program files (x86)/onsemi/ide_v4.2.1.93/arm_tools/bin/…/lib/gcc/arm-none-eabi/10.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe: c:/program files (x86)/onsemi/ide_v4.2.1.93/arm_tools/bin/…/lib/gcc/arm-none-eabi/10.2.1/…/…/…/…/arm-none-eabi/lib/thumb/v8-m.main+fp/hard\libg.a(lib_a-signalr.o): in function _getpid_r': signalr.c:(.text._getpid_r+0x0): undefined reference to _getpid’

@i0865

Would you please follow our Getting started video series at:

Thank you four using our community forum!

1 Like