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

Re: cross-tools compile for alpha fails

Jason Crawford wrote,

> I am trying to compile the cross-tools for alpha, on a i386 machine,
> howerver it fails pretty quick in trying to compile binutils. I typed
> the following command on my shell:
> $ sudo make cross-tools TARGET=alpha
> I get the following error:
> Making all in po
> make: don't know how to make fr.po. Stop in
> /usr/cross/alpha/usr/obj/gnu/usr.bin/binutils/bfd/po.
> *** Error code 1

Cross compiling is not very well supported, because it is only
used to get a new architecture running. 

Sometimes I play a little with cross compilers and successfully
build a chain for macppc/mac68k on OpenBSD 3.6.

You need attached patch. I use following command to build a new kernel,
I never tried a complete build:
make AS=/usr/cross/macppc/usr/bin/as MACHINE=powerpc \
MACHINE_ARCH=macppc CC=/usr/cross/macppc/usr/bin/cc \

Short test for alpha breaks now here:
mv libgcc1.a libgcc1.cross || (echo You must find a way to make
libgcc1.a; false)
mv: libgcc1.a: No such file or directory
You must find a way to make libgcc1.a
*** Error code 1

Stop in /usr/cross/alpha/usr/obj/gnu/egcs/gcc (line 1317 of
*** Error code 1

Stop in /usr/src (line 276 of Makefile).


Index: Makefile
RCS file: /stuff/OpenBSD/cvs/src/Makefile,v
retrieving revision 1.104
diff -d -u -r1.104 Makefile
--- Makefile    6 Aug 2004 22:30:54 -0000       1.104
+++ Makefile    30 Sep 2004 08:08:07 -0000
@@ -190,7 +190,7 @@
        export BSDSRCDIR=${.CURDIR}; \
            (cd ${CROSSDIR}/usr/obj/gnu/usr.bin/binutils; \
            /bin/sh ${BSDSRCDIR}/gnu/usr.bin/binutils/configure \
-           --prefix ${CROSSDIR}/usr \
+           --prefix=${CROSSDIR}/usr \
            --disable-nls --disable-gdbtk --disable-commonbfdlib \
            --target `cat ${CROSSDIR}/TARGET_CANON` && \
            ${MAKE} CFLAGS="${CFLAGS}" && ${MAKE} install )

CE94 5F99 BA88 65B1 25B9  8CD1 305A FF6B F8F8 1846
gpg --keyserver x-hkp://pgp.mit.edu --recv-keys F8F81846

*** http://www.openbsd.de/~wbx ***