Hello.

I just successfully cross-compiled ECL head (git revision 
09ae1f43c0cf244cdba5c9690e301c8a1aab2458) for ARM (arm9tdmi, linux).

Minor fixes were required.

1. chmod + ecl_min and dpp in the installation of "build" ecl, in the directory 
{prefix}/lib/ecl-10.7.1/ 

2. Fixes in the generated build/cross_config (my resulting cross_config is 
attached)

2.a) Add CL_INT_BITS and CL_LONG_BITS declaration (similar to CL_FIXNUM_BITS)
2.b) The declaration ECL_LONG_LONG_BITS=no geneted by default doesn't work (the 
     relevant build error log is attached). Probably it was meant to have _T 
instead of _BITS 
     (by analogy with other settings in this section). I defined both 
ECL_LONG_LONG_T and 
     ECL_LONG_LONG_BITS (my environment has the long long type, therefore I 
specified concrete values here).
2.c) It looks like the default declarations for ECL_INT16_T, ECL_INT32_T must 
use int16_1, int32_t, but not uint16_t, uint32_t.

Best regards,
- Anton
dpp: /home/anton/ecl-head/src/c/number.d -> tmp.c
arm-9tdmi-linux-gnu-gcc -DECLDIR="\"/home/anton/ecl-bin-cross/lib/ecl-10.7.1\"" 
-I. -I/home/anton/ecl-head/build -I/home/anton/ecl-head/src/c -I../ecl/gc 
-DECL_API -DECL_NO_LEGACY    -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -g -fPIC 
-D_THREAD_SAFE -Dlinux -c -o number.o tmp.c
/home/anton/ecl-head/src/c/number.d:24:1: warning: "_GNU_SOURCE" redefined
<command line>:10:1: warning: this is the location of the previous definition
/home/anton/ecl-head/src/c/number.d: In function `ecl_to_unsigned_long_long':
/home/anton/ecl-head/src/c/number.d:378: error: `no' undeclared (first use in 
this function)
/home/anton/ecl-head/src/c/number.d:378: error: (Each undeclared identifier is 
reported only once
/home/anton/ecl-head/src/c/number.d:378: error: for each function it appears 
in.)
/home/anton/ecl-head/src/c/number.d:379: error: union has no member named `bit'
/home/anton/ecl-head/src/c/number.d: In function `ecl_to_long_long':
/home/anton/ecl-head/src/c/number.d:410: error: `no' undeclared (first use in 
this function)
/home/anton/ecl-head/src/c/number.d:411: error: union has no member named `bit'
make[2]: *** [number.o] Error 1
make[2]: Leaving directory `/home/anton/ecl-head/build/c'
make[1]: *** [libeclmin.a] Error 2
make[1]: Leaving directory `/home/anton/ecl-head/build'
make: *** [all] Error 2

Attachment: cross_config
Description: Binary data

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list

Reply via email to