TCL8.5a5 does not cross- compile for ARM processor




HI All,

I can sucessfully compile the latest release of 8.4 but when I try to
compile 8.5a5 I get compilation errors. I have set:

set path= ( $path /usr/local/opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-
unknown-linux-gnu/bin )
setenv CC /usr/local/opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-unknown-
linux-gnu/bin/arm-unknown-linux-gnu-gcc
../configure --host=arm

make

/usr/local/opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-unknown-linux-gnu/
bin/arm-unknown-linux-gnu-gcc -pipe -c -O2 -Wall -Wno-implicit-int -
fPIC -I. -I/arm/software/tcl8.5a5/unix/../unix -I/arm/software/
tcl8.5a5/unix/../generic -DTCL_TOMMATH -DMP_PREC=4 -I/arm/software/
tcl8.5a5/unix/../libtommath -DPACKAGE_NAME=\"tcl\" -DPACKAGE_TARNAME=
\"tcl\" -DPACKAGE_VERSION=\"8.5\" -DPACKAGE_STRING=\"tcl\ 8.5\" -
DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -
DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -
DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -
DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -
DHAVE_SYS_PARAM_H=1 -DTCL_CFGVAL_ENCODING=\"iso8859-1\" -
DPEEK_XCLOSEIM=1 -DTCL_SHLIB_EXT=\".so\" -DTCL_CFG_OPTIMIZED=1 -
DTCL_CFG_DEBUG=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\
long -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -
DHAVE_TYPE_OFF64_T=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRTOL=1 -
DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -
DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -
DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_MKTIME=1
-DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -
DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1 -Dstrtod=fixstrtod -
DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_CHFLAGS=1 -
DHAVE_SYS_IOCTL_H=1 -DTCL_UNLOAD_DLLS=1 /arm/software/tcl8.5a5/
unix/../compat/memcmp.c
In file included from /arm/software/tcl8.5a5/unix/../generic/tclPort.h:
27,
from /arm/software/tcl8.5a5/unix/../compat/memcmp.c:
14:
../tclUnixPort.h:666: error: syntax error before 'struct'
../tclUnixPort.h:667: error: syntax error before 'struct'
../tclUnixPort.h:668: error: syntax error before 'struct'
../tclUnixPort.h:669: error: syntax error before 'struct'
../tclUnixPort.h:670: error: syntax error before 'struct'
../tclUnixPort.h:671: error: syntax error before 'struct'
make: *** [memcmp.o] Error 1

A simplist attempt just removing the offending code gets further, but
then:

fixstrtod.o: In function `fixstrtod':
fixstrtod.c:(.text+0x0): multiple definition of `fixstrtod'
strtod.o:strtod.c:(.text+0x0): first defined here
/usr/local/opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-unknown-linux-gnu/
bin/../lib/gcc/arm-unknown-linux-gnu/4.0.1/../../../../arm-unknown-
linux-gnu/bin/ld: Warning: size of symbol `fixstrtod' changed from 744
in strtod.o to 72 in fixstrtod.o
collect2: ld returned 1 exit status
make: *** [libtcl8.5.so] Error 1

Any ideas ?

Much appreciated

Gertjan Hofman

.



Relevant Pages

  • undefined refrence to a function
    ... I have been trying to compile some source code that is supposed to be ... working and getting some compilation errors. ... using gcc -lm helped to resolve the problems with defining the ... is using C99 VS C90 library. ...
    (comp.lang.c)
  • How do I deal with code that doesnt compile?
    ... I was trying to get cells to compile, with sbcl (I also tried ... I did the same using the excellent slime, things were no better, even ... compilation errors, but basically compile the thing using asdf (or, as ...
    (comp.lang.lisp)
  • Re: Finding Date Difference
    ... Please refrain form top-posting Mick, I find it nost confusing.. ... That would depend on the compilation errors, ... specific than 'not compile' amd actually reference line numbers. ...
    (comp.lang.java.programmer)
  • upad128_t in s10_b48 on i32 machines?
    ... I am trying to compile the latest gdb CVS snapshot on my Solaris s10_b48 ... machine and keep getting compilation errors on the files ... I can't compile programs that include. ...
    (comp.unix.solaris)