This is the mail archive of the crossgcc@sources.redhat.com 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] |
Werner- I tried your script with your versions. binutils-2.12.1 choked (sorry, but I nuked it before logging where - it was in the same "no targets for libiberty" that we've all seen before). I replaced binutils with 2.13 and everything built fine. I modified the sequence a little (Dan Kegel's autoconf fix, and a position- independent code patch for gcc-2.95.3). -Don # binutils-2.13.tar.gz # gcc-2.95.3.tar.gz # newlib-1.10.0.tar.gz # this patch is for PIC on m68k # gcc-2.95.3-full.patch # create 'build' directories for each tool mkdir build-binutils mkdir build-gcc # extract the sources tar zxf binutils-2.13.tar.gz tar zxf gcc-2.95.3.tar.gz tar zxf newlib-1.10.0.tar.gz # set some env vars export TARGET=m68k-elf export PREFIX=/usr/local/m68k-elf-2953 export PATH=${PREFIX}/bin:${PATH} # configure and build binutils cd build-binutils ../binutils-2.13/configure --target=$TARGET --prefix=$PREFIX make all install cd .. # move newlib into gcc for one-step build mv newlib-1.10.0/newlib gcc-2.95.3/newlib rm -r newlib-1.10.0 # patch autoconf with the following diff output (from Dan Kegel) # my cygwin installation uses: # /usr/autotool/stable/share/autoconf/acgeneral.m4 # (I actually did this step a while ago - just included here for completeness) --- /usr/share/autoconf2.13/acgeneral.m4.orig Thu Aug 22 18:26:58 2002 +++ acgeneral.m4 Thu Aug 22 19:03:12 2002 @@ -1510,11 +1510,13 @@ EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then [$2]=yes - # If we can't run a trivial program, we are probably using a cross compiler. - if (./conftest; exit) 2>/dev/null; then - [$3]=no - else - [$3]=yes + if test "$[$3]" != yes; then + # If we can't run a trivial program, we are probably using a cross compiler. + if (./conftest; exit) 2>/dev/null; then + [$3]=no + else + [$3]=yes + fi fi else echo "configure: failed program was:" >&AC_FD_CC # run autoconf in gcc-2.95.3/gcc and gcc-2.95.3/libiberty, so that the above # patch is used cd gcc-2.95.3/gcc autoconf cd ../libiberty autoconf cd ../.. # apply patch to gcc-2.95.3: patch -p0 <gcc-2.95.3-full.patch # build the C and C++ compilers, as well as newlib cd build-gcc ../gcc-2.95.3/configure --target=$TARGET --prefix=$PREFIX \ --with-newlib --with-gnu-as --with-gnu-ld --enable-languages=c,c++ #make all install #the above is replaced with the next 3 lines, per Dan Kegel make all-gcc ac_cv_prog_cc_cross=yes cross_compiling=yes make all-target make install ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |