This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

xscale cross-compiler linking(?) error


hi all!

i am a noob so pls go easy on me.
first off, Dan oodles of congrats for the crosstool. god bless.

ok the beef is as follows:
i am trying to use a working XScale simulator which is based on a hacked version of the ARM-SimpleScalar simulator.
effectivelly, this means (and according to the simulator author) that i have to install an arm cross-compiler to compile C source code on the arm cross-compiler for the xscale simulator to execute.


i have used the crosstool and _successfully_ built not just one but three tool-chains just to make sure, namely:
arm-xscale-linux-gnu-gcc (w/ demo-arm-xscale.sh)
arm-unknown-linux-gnu-gcc (w/ demo-arm.sh)
arm-9tdmi-linux-gnu-gcc (w/ demo-arm9tdmi.sh)


the xscale simulator is also _successfully_ up and running.

however, once i run a simple program like "helloworld.c" with any of the above cross-gcc's, i get the following error:

fatal: file is dynamically linked, compile with `-static'

i should mention that compilation gives no errors or warnings whatsoever.
if i compile again including the '-static' flag, then i get the following (expected) error:


warning: invalid/unimplemented syscall 221, PC=0x0000f53c, winging it
warning: invalid/unimplemented syscall 221, PC=0x0000f53c, winging it
warning: invalid/unimplemented syscall 221, PC=0x0000f53c, winging it
warning: invalid/unimplemented syscall 37, PC=0x0000ff80, winging it
warning: invalid/unimplemented syscall 201, PC=0x00015328, winging it
warning: invalid/unimplemented syscall 200, PC=0x00015330, winging it
warning: invalid/unimplemented syscall 202, PC=0x00015338, winging it
fatal: syscall: open: cannot decode flags: 0x00020014

the warning messages are expectedly generated by the "syscall.c" file of the simulator which contains proxy system-call handler routines
(e.g. see: http://staff.science.uva.nl/~andy/syscall.c).
so, clearly, in case "-static" is used, library linking has the problem.


i am at a loss as to what the problem is and have been been for quite some days.
i would appreciate your help and suggestions.


needless to say, the SimpleScalar simulator compiles and works like a charm in the same system while the XScale simulator has been reported to work properly in various occasions. so, it should not be a simulator problem but rather a cross-compiler problem.

kind regards,
Chris

ps: I am attaching the "arm-xscale-linux-gnu.crosstoolconfig.txt" contents so that you can the cross-compiler installation parameters:
========================================
AR=
BINUTILS_DIR=binutils-2.16.1
BINUTILS_EXTRA_CONFIG=
BUILD=i686-pc-linux-gnu
BUILD_DIR=/home/christos/xtrem4/crosstool-0.43/build/arm-xscale-linux-gnu/gcc-4.1.0-glibc-2.3.2
CC=
DEJAGNU=
EXTRA_TARGET_CFLAGS=
GCC_BUILD=
GCC_CORE_DIR=gcc-3.3.6
GCC_DIR=gcc-4.1.0
GCC_EXTRA_CONFIG=--with-cpu=xscale --enable-cxx-flags=-mcpu=xscale
GCC_HOST=
GCC_LANGUAGES=c,c++
GDB_DIR=gdb-6.5
GLIBC_ADDON_OPTIONS==linuxthreads,
GLIBC_DIR=glibc-2.3.2
GLIBC_EXTRA_CC_ARGS=
GLIBC_EXTRA_CONFIG= --with-tls --with-__thread --enable-kernel=2.4.18
GLIBC_EXTRA_ENV=
JUST_DOWNLOAD=
KERNELCONFIG=/home/christos/xtrem4/crosstool-0.43/arm.config
LINUX_DIR=linux-2.6.15.4
LINUX_SANITIZED_HEADER_DIR=linux-libc-headers-2.6.12.0
NO_DOWNLOAD=
PREFIX=/home/christos/xtrem4/crosstool/gcc-4.1.0-glibc-2.3.2/arm-xscale-linux-gnu
PTXDIST_DIR=
SHARED_MODE=--enable-shared
SRC_DIR=/home/christos/xtrem4/crosstool-0.43/build/arm-xscale-linux-gnu/gcc-4.1.0-glibc-2.3.2
TARBALLS_DIR=/home/christos/xtrem4/downloads
TARGET=arm-xscale-linux-gnu
TARGET_CFLAGS=-O
TOP_DIR=/home/christos/xtrem4/crosstool-0.43
USE_SYSROOT=
========================================



-- For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]