GCC cross-kompilacia

Peter Luciak luciak na creon.profinet.sk
Středa Únor 26 21:02:05 CET 2003


Zdravim,

pokusam sa vytvorit cross-compilation environment pre MIPS na Debiane.
Postupujem viac-menej podla tejto stranky: http://people.debian.org/~debacle/cross.html
ale mam problem s buildom GCC-3.2. Pokusam sa ho prelozit pre
mips-dec-ultrix (hej, viem ze je obsolete), a nieco aj zbehne, ale potom v
casti "Configuring in mips-dec-ultrix/libiberty" mi to spadne s neprijemnou
hlaskou:
---
checking whether the C compiler
(/usr/src/gcc-mips-dec-ultrix-3.2/build/gcc/xgcc
-B/usr/src/gcc-mips-dec-ultrix-3.2/build/gcc/ -B/usr/mips-dec-ultrix/bin/
-B/usr/mips-dec-ultrix/lib/ -isystem /usr/mips-dec-ultrix/include -g -O2 )
works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.
make[1]: *** [configure-target-libiberty] Error 1
---

Pouzivam tieto prepinace:

CONFARGS = -v \
        --enable-languages=c,c++ \
        --prefix=/usr \
        --infodir=/usr/share/info \
        --mandir=/usr/share/man \
        --with-gxx-include-dir=/usr/$(TARGET)/include/g++ \
        --enable-shared \
        --with-gnu-as \
        --with-gnu-ld \
        --with-system-zlib \
        --enable-long-long \
        --enable-nls \
        --without-included-gettext \
        --disable-checking \
        --enable-obsolete \
        --build=$(DEB_BUILD_GNU_TYPE) \
        --host=$(DEB_HOST_GNU_TYPE) \
        --target=$(TARGET)

kde TARGET=mips-dec-ultrix, DEB_BUILD_GNU_TYPE=DEB_HOST_GNU_TYPE=i386-linux.

	Dik za kazdu pomoc, dost nutne to potrebujem rozchodit ;|

bye,
c.
-- 
Peter `cuco' Luciak
http://countx.host.sk/pubkey
+421 904 590 860

Canadian: An unarmed American with health care.


Další informace o konferenci Linux