Infineon / platformio-infineonxmc

Scripts and examples for developing XMC Microcontroller Boards using Platform IO
MIT License
11 stars 13 forks source link

Getting Linker error on build #18

Closed timmornYE closed 3 months ago

timmornYE commented 1 year ago

Prerequisites

Anytime I try to build the continuous-mode example, I get a Linker error.

Description:

When building it exits with ld returned 1 exit status

Error:

[...]
Indexing .pio/build/xmc1100_xmc2go/libFrameworkArduino.a
Linking .pio/build/xmc1100_xmc2go/program.elf
~/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-abort.o): In function `abort':
abort.c:(.text.abort+0xa): undefined reference to `_exit'
~/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-signalr.o): In function `_kill_r':
signalr.c:(.text._kill_r+0xe): undefined reference to `_kill'
~/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-signalr.o): In function `_getpid_r':
signalr.c:(.text._getpid_r+0x2): undefined reference to `_getpid'
~/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-writer.o): In function `_write_r':
writer.c:(.text._write_r+0x10): undefined reference to `_write'
~/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-closer.o): In function `_close_r':
closer.c:(.text._close_r+0xc): undefined reference to `_close'
~/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-fstatr.o): In function `_fstat_r':
fstatr.c:(.text._fstat_r+0xe): undefined reference to `_fstat'
~/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-isattyr.o): In function `_isatty_r':
isattyr.c:(.text._isatty_r+0xc): undefined reference to `_isatty'
~/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-lseekr.o): In function `_lseek_r':
lseekr.c:(.text._lseek_r+0x10): undefined reference to `_lseek'
~/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb/v6-m/libc_nano.a(lib_a-readr.o): In function `_read_r':
readr.c:(.text._read_r+0x10): undefined reference to `_read'
collect2: error: ld returned 1 exit status
*** [.pio/build/xmc1100_xmc2go/program.elf] Error 1
============================================================= [FAILED] Took 2.29 seconds =============================================================

 *  The terminal process "platformio 'run', '--environment', 'xmc1100_xmc2go'" terminated with exit code: 1.

Steps to Reproduce:

  1. Setup continuous-mode example in platformio (I append my config files)

  2. Try to build

Expected Result:

Should build

Actual Result:

Does not build

Build/Commit:

infineon/XENSIV PAS CO2@^3.1.0

Target:

xmc2go

Host OS and Version:

Linux

Compiler:

PLATFORM: Infineon XMC (1.2.0) > XMC1100 XMC2Go HARDWARE: XMC1100 32MHz, 16KB RAM, 64KB Flash DEBUG: Current (jlink) On-board (jlink) PACKAGES:

Environment

platformio.ini

[env:xmc1100_xmc2go]
platform = infineon/infineonxmc@^1.2.0
board = xmc1100_xmc2go
framework = arduino
lib_deps = 
    infineon/XENSIV PAS CO2

main.cpp exactly like Example

THANKS!
github-actions[bot] commented 3 months ago

This issue is stale because it has been open more than 6 weeks with no activity. Please comment on this issue if it's still relevant or it will be closed automatically after 1 week.

github-actions[bot] commented 3 months ago

This issue was closed because it has been stalled for 1 week with no activity.