maxime_andre
New member
Hi all,
i am trying to embed Lua 5.3.6 as an arduino library for different boards. Until now i have tested it on an esp32 dev module, and a pi pico, it works nice.
I would like it to support Teensy boards, especially the 4.1 since I am using it for a project of mine. But i have this linker error :
I could provide some dummy functions (I have tried for _gettimeofday, it get rids of the error message, but i find that a little bit dirty. let me know what you think!)
I have also tried to remove some Lua module functions, particularly in "os". There are less errors, but "open", "times", and "gettimeofday" are still there.
The most difficult for me seems to be "_open", since it can be used for i/o as well as files i suppose.
Some informations:
- link to the repo : https://github.com/max22-/loar
- board : teensy 4.1
- software setup : PlatformIO with version 4.16.0 of the teensy platform (i have also tried with the arduino IDE, but same error)
- OS : Debian testing
Cheers
Maxime
i am trying to embed Lua 5.3.6 as an arduino library for different boards. Until now i have tested it on an esp32 dev module, and a pi pico, it works nice.
I would like it to support Teensy boards, especially the 4.1 since I am using it for a project of mine. But i have this linker error :
Code:
/home/maxime/.platformio/packages/toolchain-gccarmnoneeabi@1.50401.190816/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7e-m/fpu/fpv5-d16/libc.a(lib_a-openr.o): In function `_open_r':
openr.c:(.text._open_r+0x12): undefined reference to `_open'
/home/maxime/.platformio/packages/toolchain-gccarmnoneeabi@1.50401.190816/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7e-m/fpu/fpv5-d16/libc.a(lib_a-timesr.o): In function `_times_r':
timesr.c:(.text._times_r+0x2): undefined reference to `_times'
/home/maxime/.platformio/packages/toolchain-gccarmnoneeabi@1.50401.190816/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7e-m/fpu/fpv5-d16/libc.a(lib_a-unlinkr.o): In function `_unlink_r':
unlinkr.c:(.text._unlink_r+0xc): undefined reference to `_unlink'
/home/maxime/.platformio/packages/toolchain-gccarmnoneeabi@1.50401.190816/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7e-m/fpu/fpv5-d16/libc.a(lib_a-gettimeofdayr.o): In function `_gettimeofday_r':
gettimeofdayr.c:(.text._gettimeofday_r+0x10): undefined reference to `_gettimeofday'
/home/maxime/.platformio/packages/toolchain-gccarmnoneeabi@1.50401.190816/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7e-m/fpu/fpv5-d16/libc.a(lib_a-linkr.o): In function `_link_r':
linkr.c:(.text._link_r+0x10): undefined reference to `_link'
/home/maxime/.platformio/packages/toolchain-gccarmnoneeabi@1.50401.190816/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7e-m/fpu/fpv5-d16/libc.a(lib_a-signalr.o): In function `_getpid_r':
signalr.c:(.text._getpid_r+0x0): undefined reference to `_getpid'
I could provide some dummy functions (I have tried for _gettimeofday, it get rids of the error message, but i find that a little bit dirty. let me know what you think!)
I have also tried to remove some Lua module functions, particularly in "os". There are less errors, but "open", "times", and "gettimeofday" are still there.
The most difficult for me seems to be "_open", since it can be used for i/o as well as files i suppose.
Some informations:
- link to the repo : https://github.com/max22-/loar
- board : teensy 4.1
- software setup : PlatformIO with version 4.16.0 of the teensy platform (i have also tried with the arduino IDE, but same error)
- OS : Debian testing
Cheers
Maxime