TCL8.5a5 does not cross- compile for ARM processor
- From: ghofman@xxxxxxxxx
- Date: 30 Jan 2007 10:33:00 -0800
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
.
- Prev by Date: Re: if else else
- Next by Date: Re: Tcl bytecode
- Previous by thread: UI design for Tk app--PNG's or GIF's for icons?
- Next by thread: tcl code parser for moinmoin wiki anyone?
- Index(es):
Relevant Pages
|