[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cross compilation




On 20-Jan-00 Michael Shalayeff wrote:
> Making, drinking tea and reading an opus magnum from Todd T. Fries:
>> On Thu, Jan 20, 2000 at 02:18:33AM +0100, Thierry Deval wrote:
>> ...
>> > Well, make TARGET=alpha cross-tools does indeed not succeed.
>> > 
>> > Here is an excerpt of the last line of my log :
>> [..]
>> > mv: rename libgcc1.a to libgcc1.cross: No such file or directory
>> > You must find a way to make libgcc1.a
>> 
>> Actually, the fix for cross-tools for hppa should apply here as well.  To
>> get cross-tools working for hppa currently just comment out
>> LIBGCC1_TEST in src/gnu/egcs/gcc/Makefile.in ...
> this is two different kinds of problems.
> hppa needs some symbols to link libgcc1 test which are not available
> at the moment, and alpha's gcc just does not build libgcc at all...
> 

Well, with the slight following mods to /usr/src/Makefile (I dare), the
cross-tools build did almost succeed.

Index: Makefile
===================================================================
RCS file: /cvs/src/Makefile,v
retrieving revision 1.52
diff -u -p -d -b -w -r1.52 Makefile
--- Makefile    1999/12/22 21:25:24     1.52
+++ Makefile    2000/01/20 21:49:52
@@ -299,11 +299,12 @@ cross-gcc:        cross-dirs
            --prefix ${CROSSDIR}/usr \
            --target `cat ${CROSSDIR}/TARGET_CANON` && \
            ${MAKE} BISON=yacc LANGUAGES=c LDFLAGS=${LDSTATIC} \
-           build_infodir=. \
+           build_infodir=. LIBGCC1_TEST= \
            GCC_FOR_TARGET="./xgcc -B./ -I${CROSSDIR}/usr/include" && \
            ${MAKE} BISON=yacc LANGUAGES=c LDFLAGS=${LDSTATIC} \
            GCC_FOR_TARGET="./xgcc -B./ -I${CROSSDIR}/usr/include" \
-           build_infodir=. INSTALL_MAN= INSTALL_HEADERS_DIR= install)
+           build_infodir=. INSTALL_MAN= INSTALL_HEADERS_DIR= \
+           LIBGCC1_TEST= install)
        ln -sf ${CROSSDIR}/usr/bin/`cat ${CROSSDIR}/TARGET_CANON`-gcc \
            ${CROSSDIR}/usr/bin/cc
        CPP=`${CROSSDIR}/usr/bin/cc -print-libgcc-file-name | \


cross-tools stop in cross-lib with libcurses++ complaining about a malformed
libcurses.o.o file.
I'll try to reproduce it, and maybe fix it.

More to come
(reminder: build alpha on iX86)