This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: Fail to build crosscompiler for sparc-wrs-vxworks


Dear All,

Due to the assembling error, I re-builded the binutility for my target and
got the excuitable files to use:
"sparc-wrs-vxworks-as, sparc-wrs-vxworks-ld ,sparc-wrs-vxworks-nm
,sparc-wrs-vxworks-objdump ......."
However, I still cann't prevent the assembling error when doing the "make".
The following is the make message and I hope someone can give me some
advices :

**********************************
$./configure --target=sparc-wrs-vxworks --with-headers=/tornado/target/h --w
ith-gnu-ld --with-gnu-as
$./make

<skip....>

make
GCC_FOR_TARGET="/root/gcc-3.2.2/gcc/xgcc -B/root/gcc-3.2.2/gcc/ -B/usr/local
/sparc-wrs-vxworks/bin/ -B/usr/local/sparc-wrs-vxworks/lib/ -isystem
/usr/local/sparc-wrs-vxworks/include" \
  HOST_PREFIX="" HOST_PREFIX_1="loser-" \
  AR_FOR_TARGET="sparc-wrs-vxworks-ar" \
  AR_CREATE_FOR_TARGET="sparc-wrs-vxworks-ar  rc" \
  AR_FLAGS_FOR_TARGET="" \


CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-protot
ypes -Wtraditional -pedantic -Wno-long-long" \
  RANLIB_FOR_TARGET="sparc-wrs-vxworks-ranlib" \
  RANLIB_TEST_FOR_TARGET="[ -f sparc-wrs-vxworks-ranlib ] || ( [
"i686-pc-linux-gnu" = "sparc-wrs-vxworks" ] && [ -f /usr/bin/ranlib -o -f
/bin/ranlib ] )" \
  NM_FOR_TARGET="/usr/local/sparc-wrs-vxworks/bin/nm" AWK="gawk" \


LIBGCC2_CFLAGS="-O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Ws
trict-prototypes -Wmissing-prototypes -isystem
./include  -Dexit=unused_exit -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FL
OAT_NOT_NEEDED " \
  INCLUDES="-I. -I. -I. -I./. -I./config -I./../include" \
  CONFIG_H="config.h auto-host.h ./../include/ansidecl.h
./config/sparc/sparc.h ./config/aoutos.h ./config/sparc/aout.h
./config/gofast.h ./config/sparc/vxsparc.h defaults.h insn-constants.h
insn-flags.h" MACHMODE_H="machmode.h machmode.def" \
  LIB1ASMSRC='' \
  MAKEOVERRIDES= \
  -f libgcc.mk all
make[2]: Entering directory `/root/gcc-3.2.2/gcc'
for d in libgcc soft libgcc/soft v8 libgcc/v8 soft/v8 libgcc/soft/v8; do \
  if [ -d $d ]; then true; else /bin/sh ./mkinstalldirs $d; fi; \
done
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/root/gcc-3.2.2/gcc/xgcc -B/root/gcc-3.2.2/gcc/ -B/usr/local/sparc-wrs-vxwor
ks/bin/ -B/usr/local/sparc-wrs-vxworks/lib/ -isystem
/usr/local/sparc-wrs-vxworks/include -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wal
l -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
./include  -Dexit=unused_exit -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FL
OAT_NOT_NEEDED  -I. -I. -I. -I./. -I./config -I./../include  -DL_divdi3 -c
./libgcc2.c -fexceptions -fnon-call-exceptions -o libgcc/./_divdi3.o
make[2]: Leaving directory `/root/gcc-3.2.2/gcc'
make[1]: Leaving directory `/root/gcc-3.2.2/gcc'
/tmp/ccF93Vjv.s: Assembler messages:
/tmp/ccF93Vjv.s:739: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/tmp/ccF93Vjv.s:755: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
make[2]: *** [libgcc/./_divdi3.o] Error 1
make[1]: *** [stmp-multilib] Error 2
make: *** [all-gcc] Error 2

----- Original Message -----
From: "Puff Chuang - ²ø°êºÕ" <puff at sd dot liteonit dot com dot tw>
To: <gcc at gcc dot gnu dot org>
Sent: Sunday, April 13, 2003 10:48 PM
Subject: Fail to build crosscompiler for sparc-wrs-vxworks


>
>  Dear All,
>
>  I would appreciate if anybody could give me an advice to configure gcc as
> cross compiler for the target of SPARC on VxWorks.
>
> I'm using the gcc of Redhat 8.0 to build the downloaded gcc 3.2.2(and I
try
> gcc 2.95 too) as crosscompiler for the target of SPARC on VxWorks.
> (using
> ./configure --target=sparc-wrs-vxworks --with-headers=/tornado/target/h)
> Everything looks fine until the "make" come to doing the assembling.
>
> Does anyone know what can result in the assemble error?
>
> Thanks in advance,
>
>  Puff Chuang
>
>



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