public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* about armv5b toolchain building problem
       [not found] <1044572991.9613.ezmlm@gcc.gnu.org>
@ 2003-02-06 23:33 ` Ken Chuang
  2003-02-07  5:17   ` Alexey V. Neyman
  0 siblings, 1 reply; 2+ messages in thread
From: Ken Chuang @ 2003-02-06 23:33 UTC (permalink / raw)
  To: gcc-help

Hi all,
   I am currently trying to build a toolchain for
--target=armv5b-linux, but I got stuck on building
g++. Here are the source codes I used, the way I
configured them and the error message I got. I think
the problem might be about generated code wasn't
big-endian. Hope you would be available to give me
some hints about solving this problem. Thanks.

Ken

binutils-2.11
~/configure --host=i686-pc-linux-gnu
--target=armv5b-linux --prefix=/opt/tools/armv5b-linux
--with-cpu=xscale --without-fp

gcc-3.0.2-1
~/configure --host=i686-pc-linux-gnu
--target=armv5b-linux --prefix=/opt/tools/armv5b-linux
--disable-shared --enable-languages=c
--disable-threads --with-headers=/armv5b-linux/include
--with-gnu-as --with-gnu-ld --with-cpu=xscale
--without-fp

glibc-2.2.5
~/configure  armv5b-linux --target=armv5b-linux
--enable-add-ons
--with-headers=/opt/tools/armv5b-linux/include
--prefix=/opt/tools/armv5b-linux --with-cpu=xscale
--without-fp

gcc-3.0.2-2
~/configure  --host=i686-pc-linux-gnu
--target=armv5b-linux --prefix=/opt/tools/armv5b-linux
--enable-shared --enable-languages=c,c++
--enable-threads=posix --with-gnu-as --with-gnu-ld
--with-cpu=xscale --without-fp

I could compile the armv5b-linux-gcc and glibc without
any error. However, I got the error message after
reconfiguring the gcc. The error message shows as
below:

if [ -f stmp-dirs ]; then true; else touch stmp-dirs;
fi
/GNU/build/armv5b-linux/gcc2/gcc/xgcc
-B/export/home/kchuang/GNU/build/armv5b-linux/gcc2/gcc/
-B/opt/tools/armv5b-linux/armv5b-linux/bin/
-B/opt/tools/armv5b-linux/armv5b-linux/lib/ -isystem
/opt/tools/armv5b-linux/armv5b-linux/include -O2 
-DCROSS_COMPILE -DIN_GCC    -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -isystem
./include  -fomit-frame-pointer -fPIC  -g0
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -shared
-nodefaultlibs -Wl,--soname=libgcc_s.so.1
-Wl,--version-script=libgcc.map -o libgcc_s.so  
libgcc/./_udivsi3.o libgcc/./_divsi3.o
libgcc/./_umodsi3.o libgcc/./_modsi3.o
libgcc/./_dvmd_lnx.o libgcc/./_muldi3.o
libgcc/./_divdi3.o libgcc/./_moddi3.o
libgcc/./_udivdi3.o libgcc/./_umoddi3.o
libgcc/./_negdi2.o libgcc/./_lshrdi3.o
libgcc/./_ashldi3.o libgcc/./_ashrdi3.o
libgcc/./_ffsdi2.o libgcc/./_clz.o
libgcc/./_udiv_w_sdiv.o libgcc/./_udivmoddi4.o
libgcc/./_cmpdi2.o libgcc/./_ucmpdi2.o
libgcc/./_floatdidf.o libgcc/./_floatdisf.o
libgcc/./_fixunsdfsi.o libgcc/./_fixunssfsi.o
libgcc/./_fixunsdfdi.o libgcc/./_fixdfdi.o
libgcc/./_fixunssfdi.o libgcc/./_fixsfdi.o
libgcc/./_fixxfdi.o libgcc/./_fixunsxfdi.o
libgcc/./_floatdixf.o libgcc/./_fixunsxfsi.o
libgcc/./_fixtfdi.o libgcc/./_fixunstfdi.o
libgcc/./_floatditf.o libgcc/./_clear_cache.o
libgcc/./_trampoline.o libgcc/./__main.o
libgcc/./_exit.o libgcc/./_absvsi2.o
libgcc/./_absvdi2.o libgcc/./_addvsi3.o
libgcc/./_addvdi3.o libgcc/./_subvsi3.o
libgcc/./_subvdi3.o libgcc/./_mulvsi3.o
libgcc/./_mulvdi3.o libgcc/./_negvsi2.o
libgcc/./_negvdi2.o libgcc/./_ctors.o
libgcc/./unwind-dw2.o libgcc/./unwind-dw2-fde.o
libgcc/./unwind-sjlj.o -lc && rm -f libgcc_s.so.1 &&
ln -s libgcc_s.so libgcc_s.so.1
/opt/tools/armv5b-linux/lib/libc.so.6: could not read
symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [libgcc_s.so] Error 1
make[2]: Leaving directory
`GNU/build/armv5b-linux/gcc2/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory
`GNU/build/armv5b-linux/gcc2/gcc'
make: *** [all-gcc] Error 2


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: about armv5b toolchain building problem
  2003-02-06 23:33 ` about armv5b toolchain building problem Ken Chuang
@ 2003-02-07  5:17   ` Alexey V. Neyman
  0 siblings, 0 replies; 2+ messages in thread
From: Alexey V. Neyman @ 2003-02-07  5:17 UTC (permalink / raw)
  To: Ken Chuang, gcc-help

Hi Ken,

On 7 February 2003 02:33, Ken Chuang wrote:
> libgcc/./unwind-sjlj.o -lc && rm -f libgcc_s.so.1 &&
> ln -s libgcc_s.so libgcc_s.so.1
> /opt/tools/armv5b-linux/lib/libc.so.6: could not read symbols: Invalid operation

Please verify that /opt/tools/armv5b-linux/lib/libc.so.6 is actually
a target (armv5b), not host (i686) binary.

Alexey.

-- 
,----------------------------------------,
| A quoi ca sert d'etre sur la terre     | Alexey V. Neyman
| Si c'est pour faire nos vies a genoux! | mailto:alex.neyman@auriga.ru
`------------------( Les Rois du Monde )-'

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-02-07  5:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1044572991.9613.ezmlm@gcc.gnu.org>
2003-02-06 23:33 ` about armv5b toolchain building problem Ken Chuang
2003-02-07  5:17   ` Alexey V. Neyman

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).