Re: Euphoria on ARM (and other processors)

new topic     » goto parent     » topic index » view thread      » older message » newer message
rkdavis said...

actually it looks like it might be a uClibc problem (the device uses uCLibc thus scratchbox uses it) and i seem to be erroring in some string stuff

gcc -c -w -DEUNIX -DELINUX -fsigned-char -ffast-math -fomit-frame-pointer -O2 -DESIMPLE_MALLOC -DELINUX be_main.c -o/home/zipitdev/euphoria-src-4.0b2/source/build/intobj/back/be_main.o In file included from be_main.c:97: alloc.h:67: error: conflicting types for 'strlcpy' /usr/include/string.h:430: error: previous declaration of 'strlcpy' was here alloc.h:68: error: conflicting types for 'strlcat' /usr/include/string.h:428: error: previous declaration of 'strlcat' was here make[1]: * [/home/zipitdev/euphoria-src-4.0b2/source/build/intobj/back/be_main.o] Error 1 make[1]: Leaving directory `/home/zipitdev/euphoria-src-4.0b2/source' make: * [interpreter] Error 2

We had an issue with some Unixes not defining strlcat() or strlcpy(). Since uClib seems to define them, just remove the "ELINUX" in the ifdef section for strlcat/strlcpy in alloc.h and in be_alloc.c

If you want, you can just comment out the entire sections in be_alloc.c and alloc.h

rkdavis said...

by the way what is the configure/make params just to do the translation part? i've tried the without-euphoria option to configure but it still seemed to try to do something with eui

The without-euphoria option is the opposite - it assumes the translation is already done and tries to do the remaining tests - the actual building of C source to final binary.

You need to do a 'make source' and then copy the tree over.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu