Compile fbc source for armv5tel

Linux specific questions.
Post Reply
Andy_bfisch
Posts: 11
Joined: Aug 09, 2009 20:20

Compile fbc source for armv5tel

Post by Andy_bfisch »

Hello,
i have follow the tutorial https://www.freebasic.net/forum/viewtop ... =5&t=21372

If i will compile the c files on the armv5tel cpu i become following errors:
src/compiler/symb-var.c: In function ‘SYMBADDIMPLICITVAR’:
src/compiler/symb-var.c:15:47: error: size of array ‘__$fb_structsizecheck’ is negative
15 | #define __FB_STATIC_ASSERT( expr ) extern int __$fb_structsizecheck[(expr) ? 1 : -1]
| ^~~~~~~~~~~~~~~~~~~~~
src/compiler/symb-var.c:1979:9: note: in expansion of macro ‘__FB_STATIC_ASSERT’
1979 | __FB_STATIC_ASSERT( sizeof( struct $8FBARRAY1I10FBARRAYDIME ) == 64 );
| ^~~~~~~~~~~~~~~~~~
src/compiler/symb-var.c: In function ‘SYMBCLONEVAR’:
src/compiler/symb-var.c:15:47: error: size of array ‘__$fb_structsizecheck’ is negative
15 | #define __FB_STATIC_ASSERT( expr ) extern int __$fb_structsizecheck[(expr) ? 1 : -1]
| ^~~~~~~~~~~~~~~~~~~~~
src/compiler/symb-var.c:2295:9: note: in expansion of macro ‘__FB_STATIC_ASSERT’
2295 | __FB_STATIC_ASSERT( sizeof( struct $8FBARRAY1I10FBARRAYDIME ) == 64 );
| ^~~~~~~~~~~~~~~~~~
The same errors have all c files.

The array size is negative.
What i must change to compile the c files?

Thank you for answer.
Post Reply