public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* trouble crosscomnpiling for arm-coff with crtbegin.o
@ 2002-10-07 23:50 dipankar  das
  0 siblings, 0 replies; only message in thread
From: dipankar  das @ 2002-10-07 23:50 UTC (permalink / raw)
  To: gcc-help

sir
   i had problems building crosscompiler for ARM7(arm-coff) .i am 
using a linux2.
1 (and also 2.2-- i tried on two different machines) ix86 
machine

target==arm-coff
host=ix86-linux

i have downloaded the following for doing the 
crosscompilation-----
1.binutils-2.12
2.gcc-3.1.1
3.glibc-2.1.5

and i followed the instructions on your website and that on ----
http://www.objsw.com/CrossGCC/

i configured binutils first and did make all and it worked
i built the following directory heirarchy--
new_cross->build_gcc,gcc-3.1.1 
,build_binutils,binutils-2.12,build_glibc ,glibc-
2.1.5

for building gcc after building binutils(no problems) i did the 
following------
  [code@ppc build_gcc]$../gcc-3.1.1/configure --target=arm-coff 
--prefix=/home/co
de/arm/new_cross/ -v
[code@ppc build_gcc]$ export PATH = $PATH 
:/home/code/arm/new_cross/bin :/home/c
ode/arm/new_cross/
[code@ppc build_gcc]$ make all install
< many messages >
  ..............
<the error comes here>
/home/code/arm/new_cross/build_gcc/gcc/xgcc 
-B/home/code/arm/new_cross/build_gcc
/gcc/ -B/home/code/arm/new_cross//arm-coff/bin/ 
-B/home/code/arm/new_cross//arm-
coff/lib/ -isystem /home/code/arm/new_cross//arm-coff/include -O2 
-DIN_GCC -DCRO
SS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -
isystem ./include  -I. -I. -I../../gcc-3.1.1/gcc 
-I../../gcc-3.1.1/gcc/. -I../..
/gcc-3.1.1/gcc/config -I../../gcc-3.1.1/gcc/../include  -g0 
-finhibit-size-direc
tive -fno-inline-functions -fno-exceptions  \
   -Dinhibit_libc -c ../../gcc-3.1.1/gcc/crtstuff.c -DCRT_BEGIN 
\
   -o crtbegin.o
../../gcc-3.1.1/gcc/crtstuff.c:411:2: #error "What are you doing 
with crtstuff.c
"
make[3]: *** [crtbegin.o] Error 1
make[3]: Leaving directory 
`/home/code/arm/new_cross/build_gcc/gcc'
make[2]: *** [crtbegin.o] Error 2
make[2]: Leaving directory 
`/home/code/arm/new_cross/build_gcc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory 
`/home/code/arm/new_cross/build_gcc/gcc'
make: *** [all-gcc] Error 2
[code@ppc build_gcc]$
i checked out there was no crtbegin.o fomed anywhere although 
there was crtbegin
.asm in /gcc-3.1.1/gcc/config/ia64/crtbegin.asm
also "crtstuff.c" does not execute much portion of it's code with 
coff option --
may do with elf.
please help me out.

a larger portion of comments is given below-----


if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
make GCC_FOR_TARGET="/home/code/arm/new_cross/build_gcc/gcc/xgcc 
-B/home/code/ar
m/new_cross/build_gcc/gcc/ 
-B/home/code/arm/new_cross//arm-coff/bin/ -B/home/cod
e/arm/new_cross//arm-coff/lib/ -isystem 
/home/code/arm/new_cross//arm-coff/inclu
de" \
   AR_FOR_TARGET="arm-coff-ar" \
   AR_CREATE_FOR_TARGET="arm-coff-ar  rc" \
   AR_EXTRACT_FOR_TARGET="" \
   AR_FLAGS_FOR_TARGET="" \
   CC="gcc" CFLAGS="-g -O2 -W -Wall -Wwrite-strings 
-Wstrict-prototypes -Wmissing
-prototypes -Wtraditional -pedantic -Wno-long-long" \
   HOST_PREFIX="" \
   HOST_PREFIX_1="loser-" \
   LANGUAGES="" \
   LIBGCC2_CFLAGS="-O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall 
-Wwrite-strings -Wstr
ict-prototypes -Wmissing-prototypes -isystem ./include  
-Dinhibit_libc -fno-inli
ne -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc "  \
   MULTILIB_CFLAGS="" T= crtbegin.o
make[3]: Entering directory 
`/home/code/arm/new_cross/build_gcc/gcc'
if [ -f specs.ready ] ; then \
         true; \
else \
         echo timestamp > specs.ready; \
fi
/home/code/arm/new_cross/build_gcc/gcc/xgcc 
-B/home/code/arm/new_cross/build_gcc
/gcc/ -B/home/code/arm/new_cross//arm-coff/bin/ 
-B/home/code/arm/new_cross//arm-
coff/lib/ -isystem /home/code/arm/new_cross//arm-coff/include -O2 
-DIN_GCC -DCRO
SS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -
isystem ./include  -I. -I. -I../../gcc-3.1.1/gcc 
-I../../gcc-3.1.1/gcc/. -I../..
/gcc-3.1.1/gcc/config -I../../gcc-3.1.1/gcc/../include  -g0 
-finhibit-size-direc
tive -fno-inline-functions -fno-exceptions  \
   -Dinhibit_libc -c ../../gcc-3.1.1/gcc/crtstuff.c -DCRT_BEGIN 
\

   -o crtbegin.o
../../gcc-3.1.1/gcc/crtstuff.c:411:2: #error "What are you doing 
with crtstuff.c
"
make[3]: *** [crtbegin.o] Error 1
make[3]: Leaving directory 
`/home/code/arm/new_cross/build_gcc/gcc'
make[2]: *** [crtbegin.o] Error 2
make[2]: Leaving directory 
`/home/code/arm/new_cross/build_gcc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory 
`/home/code/arm/new_cross/build_gcc/gcc'
make: *** [all-gcc] Error 2

*********************************************************************
thank you
yours sincerely
dipankar das






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-08  6:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-07 23:50 trouble crosscomnpiling for arm-coff with crtbegin.o dipankar  das

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).