You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried to port Lua on Fuzix and looks like trigonometry Functions are incomplete :
arm-none-eabi-ld: ../../Library/libs/libmarmm0.a(sin.o): in function sin': /tmp/FUZIX2/FUZIX/Library/libs/sin.c:72: undefined reference to __sin'
arm-none-eabi-ld: /tmp/FUZIX2/FUZIX/Library/libs/sin.c:70: undefined reference to __rem_pio2' arm-none-eabi-ld: /tmp/FUZIX2/FUZIX/Library/libs/sin.c:73: undefined reference to __cos'
arm-none-eabi-ld: /tmp/FUZIX2/FUZIX/Library/libs/sin.c:74: undefined reference to __sin' arm-none-eabi-ld: /tmp/FUZIX2/FUZIX/Library/libs/sin.c:76: undefined reference to __cos'
longjmp/setjmp/mktime/strftime is also missing.
rgds
roman
The text was updated successfully, but these errors were encountered:
longjmp/setjmp are used by various base apps so definitely exist somewhere
strftime and mktime are not in the Fuzix libc. There is a mktime in Applications/util/setdate.c but it's GPLv2 not LGPL so can't go into the C library.
sin/cos is a bug in the library makefile I think. Some ports are not pulling in the helpers.
Found the longjmp/setjmp stuff, thanks for the hint.
sin/cos I think is more then just makefile. sin/cos has there helper functions __sin/__cos, they call __rem_pio2.
In __rem_pio2 is an macro called "STRICT_ASSIGN" and that one is missing:
Tried to port Lua on Fuzix and looks like trigonometry Functions are incomplete :
arm-none-eabi-ld: ../../Library/libs/libmarmm0.a(sin.o): in function
sin': /tmp/FUZIX2/FUZIX/Library/libs/sin.c:72: undefined reference to
__sin'arm-none-eabi-ld: /tmp/FUZIX2/FUZIX/Library/libs/sin.c:70: undefined reference to
__rem_pio2' arm-none-eabi-ld: /tmp/FUZIX2/FUZIX/Library/libs/sin.c:73: undefined reference to
__cos'arm-none-eabi-ld: /tmp/FUZIX2/FUZIX/Library/libs/sin.c:74: undefined reference to
__sin' arm-none-eabi-ld: /tmp/FUZIX2/FUZIX/Library/libs/sin.c:76: undefined reference to
__cos'longjmp/setjmp/mktime/strftime is also missing.
rgds
roman
The text was updated successfully, but these errors were encountered: