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: unable to build glibc-2.2.5 with gcc-3.1 for ARM


ok, so this is a follow-on to my earlier post.  after the many people pointed
out i was building glibc-2.2.5 wrong, i successfully built and installed a
glibc-2.2.5 for my cross-environment.

now, however, gcc-3.1 won't re-build using the new glibc.  i get the following
errors:

using this configure command:

../gcc-3.1/configure --prefix=/usr/local/arm-v4l-linux/ --target=arm-v4l-linux --with-cpu=strongarm110 --program-transform-names=s,^,arm-v4l-linux-, --without-fp --with-softfloat-support=internal --enable-threads=posix --with-headers=/usr/local/arm-v4l-linux/include/

then, during build, it chugs along for a good while before stopping here:

mv libgcc/./tmp-libgcc.map libgcc/./libgcc.map
/tmp/skiff/new-gcc31/gcc-build-p2/gcc/xgcc -B/tmp/skiff/new-gcc31/gcc-build-p2/gcc/ -B/usr/local/arm-v4l-linux//arm-v4l-linux/bin/ -B/usr/local/arm-v4l-linux//arm-v4l-linux/lib/ -isystem /usr/local/arm-v4l-linux//arm-v4l-linux/include -O2  -DIN_GCC -DCROSS_COMPILE   -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  -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc/./libgcc.map -o libgcc_s.so.1   libgcc/./_udivsi3.o libgcc/./_divsi3.o libgcc/./_umodsi3.o libgcc/./_modsi3.o libgcc/./_dvmd_lnx.o libgcc/./_muldi3.o libgcc/./_negdi2.o libgcc/./_lshrdi3.o libgcc/./_ashldi3.o libgcc/./_ashrdi3.o libgcc/./_ffsdi2.o libgcc/./_clz.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/.
/!
                                                                                                                                     **********************************************
it looks that you should have installed glibc into /usr/local/arm-v4l-linux/arm-v4l-linux/
in stead of /usr/local/arm-v4l-linux/

_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/./_divdi3.o libgcc/./_moddi3.o libgcc/./_udivdi3.o libgcc/./_umoddi3.o libgcc/./_udiv_w_sdiv.o libgcc/./_udivmoddi4.o libgcc/./unwind-dw2.o libgcc/./unwind-dw2-fde-glibc.o libgcc/./unwind-sjlj.o -lc && rm -f libgcc_s.so && ln -s libgcc_s.so.1 libgcc_s.so
/usr/local/arm-v4l-linux//arm-v4l-linux/bin/ld: cannot open crti.o: No such file or directory
collect2: ld returned 1 exit status
make[2]: *** [libgcc_s.so] Error 1
note that the crti.o (and friends) are all located as expected in /usr/local/arm-v4l-linux/lib/
This is wrong :
it should be located in /usr/local/arm-v4l-linux/arm-v4l-linux/lib


and report themselves properly as ARM ELF files...

any insights on this? am i missing some key compiler flag?
Nope, wrong installation directories.

See here for a longer explanation : <http://gcc.gnu.org/ml/gcc/2002-05/msg02976.html>

thanks,

josh

PS>
this is a follow-on to an earlier post which shows all compile flags, etc,
on this list as Message-Id: <20020530110849.7350627c.fryman@cc.gatech.edu>
from 30-May-2002.



Greetings,
--
Jeroen Dobbelaere
Embedded Software Engineer

ACUNIA Embedded Solutions
http://www.acunia.com/aes



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