Link error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Link error

1,100 Views
jerrydurand
Contributor II

I just updated to version 10.1.0 on Linux (Ubuntu 64 bit).  I'm now getting a link error and can't find what broke.

[code]

Building target: X-42_Rev_1.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -L"/home/jerry/Shared/Clients/Products/X-42/firmware/CMSIS_CORE_LPC11xx/Debug" -Xlinker -Map="X-42_Rev_1.map" -Xlinker --gc-sections -mcpu=cortex-m0 -mthumb -T "X-42_Rev_1_Debug.ld" -o "X-42_Rev_1.axf"  ./src/FreeRTOS/portable/MemMang/heap_1.o  ./src/FreeRTOS/portable/GCC/ARM_CM0/port.o  ./src/FreeRTOS/croutine.o ./src/FreeRTOS/event_groups.o ./src/FreeRTOS/list.o ./src/FreeRTOS/queue.o ./src/FreeRTOS/tasks.o ./src/FreeRTOS/timers.o  ./src/Detection.o ./src/Display.o ./src/Front_Panel.o ./src/cr_startup_lpc11xx.o ./src/initialize.o ./src/main.o ./src/misc.o   -lCMSIS_CORE_LPC11xx
/usr/local/mcuxpressoide-10.1.0_589/ide/tools/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libcr_c.a(_deferredlazyseek.o): In function `__flsbuf':
_deferredlazyseek.c:(.text.__flsbuf+0x8e): undefined reference to `__sys_istty'
/usr/local/mcuxpressoide-10.1.0_589/ide/tools/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libcr_c.a(_writebuf.o): In function `_Cwritebuf':
makefile:33: recipe for target 'X-42_Rev_1.axf' failed
_writebuf.c:(.text._Cwritebuf+0x16): undefined reference to `__sys_flen'
_writebuf.c:(.text._Cwritebuf+0x26): undefined reference to `__sys_seek'
_writebuf.c:(.text._Cwritebuf+0x48): undefined reference to `__sys_write'
/usr/local/mcuxpressoide-10.1.0_589/ide/tools/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libcr_c.a(alloc.o): In function `_Csys_alloc':
alloc.c:(.text._Csys_alloc+0xe): undefined reference to `__sys_write'
alloc.c:(.text._Csys_alloc+0x12): undefined reference to `__sys_appexit'
/usr/local/mcuxpressoide-10.1.0_589/ide/tools/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libcr_c.a(fseek.o): In function `fseek':
fseek.c:(.text.fseek+0x1a): undefined reference to `__sys_istty'
fseek.c:(.text.fseek+0x86): undefined reference to `__sys_flen'
collect2: error: ld returned 1 exit status
make: *** [X-42_Rev_1.axf] Error 1

[/code]

Tags (1)
0 Kudos
1 Reply

710 Views
converse
Senior Contributor V
0 Kudos