[Ecls-list] Cross-compilation status update

Juan Jose Garcia-Ripoll worm at arrakis.es
Tue Jul 29 00:37:10 UTC 2003


On Friday 25 July 2003 15:51, Eugene Zaikonnikov wrote:
> The toolchain problem was fixed by copying a few header files.
>
> Currently, the problem is at the link stage at build/cmp/. After a
> flood of unresolved symbol messages it prints:
> [...]
>  (SYSTEM "/opt/snow-gcc/bin/mipsel-linux-gcc  -o
> /home/viking/work/ecl-0.9/build/cmp.so -L/home/viking/work/ecl-0.9/build/
> [...]
> /home/viking/work/ecl-0.9/build/cmp/cmpcfg.o  ") returned non-zero value 1
> Broken at C::SAFE-SYSTEM.

From here I see that your system is trying to compile with support for shared 
libraries. Try disabling it by _not_ setting SHARED_LDFLAGS in  aclocal.m4.

> Also, what is the best way to check endianness of a CPU? So far I
> compile for low-endian, but am not completely certain about that.

Have a look at the source code for autoconf. I would guess that a simple way 
to check for endianness is

	int foo = 0x01;
	char *p = (char*)(&foo);
	if (*p == 0x01) {
		printf("LOW ENDIAN");
	} else {
		printf("BIG ENDIAN");
	}

Regards,

Juanjo




More information about the ecl-devel mailing list