knihovna newlib a gcc

Milan Malich kulich.bulich na worldonline.cz
Středa Květen 29 13:20:45 CEST 2002


Zdravím

Mám dotaz, jestli se někomu podařilo zprovoznit knihovnu newlib pod cygwinem. Chci ji použít jako knihovnu k memu cross copmileru. Zkompiloval jsem zdrojaky binutils a gcc s temito parametry --target=m68k-elf --host=i686-pc-cygwin a jeste nejake dodatky. Oba dva se uspesne zkompilovaly. Ale kdyz dam kompilovat newlib s temito parametry. Tak to chvili bezi a pak to hodi takovou hlasku. Dodavam zkracenou cast vypisu (na konci). 
Na konci jde videt, ze selhal test m68k-elf-gcc, ale ja jsem jej zkousel napr. takto: m68k-elf-gcc -c hello.c a kompiler v pohode zkompiloval. Kdyz se ale pokusim jej zkompilovat takto: m68k-elf-gcc hello.c tak mi hodi hlasku, ze nemuze nalezt objekt crt0 (coz je pokud se nemilim zavadeci kod). A jak jsem pochopil tak ten dostanu, teprve po kompilaci knihovny newlib. Nastaveni PATH mam spravne. Prolezl jsem hodne konferenci a howto, ale nikde jsem podobny problem nenasel.
Diky moc za kazdou radu.

Milan Malich

P.S. Verze: gcc-2.95.3-5-src.tar.bz2, binutils-20011002-1-src.tar.bz2, newlib-1.10.0

Makefile.am             ..linked
Makefile.in             ..linked
aclocal.m4              ..linked
configure               ..linked
configure.in            ..linked
write.c         ..linked
creating cache ../config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking host system type... m68k-unknown-elf
checking target system type... m68k-unknown-elf
checking build system type... i686-pc-cygwin
checking for gcc... m68k-elf-gcc -B/newlib-1.10.0/m68k-elf/m68000/newlib/ -isyst
em /newlib-1.10.0/m68k-elf/m68000/newlib/targ-include -isystem /newlib-1.10.0/ne
wlib/libc/include  -m68000
checking whether we are using GNU C... yes
checking whether m68k-elf-gcc -B/newlib-1.10.0/m68k-elf/m68000/newlib/ -isystem
/newlib-1.10.0/m68k-elf/m68000/newlib/targ-include -isystem /newlib-1.10.0/newli
b/libc/include  -m68000 accepts -g... yes
checking for ar... m68k-elf-ar
checking for ranlib... m68k-elf-ranlib
updating cache ../config.cache
creating ./config.status
creating Makefile
Adding multilib support to Makefile in .
with_multisubdir=m68000
configuring in libnosys
running /bin/sh ./configure  --with-multisubdir=m68000 --with-multisrctop=../ --
enable-multilib --host=m68k-elf --build=i686-pc-cygwin --with-newlib --with-cros
s-host=i686-pc-cygwin --prefix=/usr/local/gcc-cross/m68k --enable-multilib --wit
h-target-subdir=m68k-elf --cache-file=../../config.cache --srcdir=.
loading cache ../../config.cache
checking host system type... m68k-unknown-elf
checking target system type... m68k-unknown-elf
checking build system type... i686-pc-cygwin
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for .previous assembler directive...
checking for .popsection assembler directive...
checking for function prefix... no
checking for gcc... (cached) m68k-elf-gcc -B/newlib-1.10.0/m68k-elf/m68000/newli
b/ -isystem /newlib-1.10.0/m68k-elf/m68000/newlib/targ-include -isystem /newlib-
1.10.0/newlib/libc/include  -m68000
checking whether we are using GNU C... (cached) yes
checking whether m68k-elf-gcc -B/newlib-1.10.0/m68k-elf/m68000/newlib/ -isystem
/newlib-1.10.0/m68k-elf/m68000/newlib/targ-include -isystem /newlib-1.10.0/newli
b/libc/include  -m68000 accepts -g... (cached) yes
checking for ranlib... (cached) m68k-elf-ranlib
creating ./config.status
creating Makefile
creating config.h
Adding multilib support to Makefile in .
with_multisubdir=m68000
configuring in m68k
running /bin/sh ./configure  --with-multisubdir=m68000 --with-multisrctop=../ --
enable-multilib --host=m68k-elf --build=i686-pc-cygwin --with-newlib --with-cros
s-host=i686-pc-cygwin --prefix=/usr/local/gcc-cross/m68k --enable-multilib --wit
h-target-subdir=m68k-elf --cache-file=../../config.cache --srcdir=.
loading cache ../../config.cache
checking host system type... m68k-unknown-elf
checking target system type... m68k-unknown-elf
checking build system type... i686-pc-cygwin
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for gcc... (cached) m68k-elf-gcc -B/newlib-1.10.0/m68k-elf/m68000/newli
b/ -isystem /newlib-1.10.0/m68k-elf/m68000/newlib/targ-include -isystem /newlib-
1.10.0/newlib/libc/include  -m68000
checking whether the C compiler (m68k-elf-gcc -B/newlib-1.10.0/m68k-elf/m68000/n
ewlib/ -isystem /newlib-1.10.0/m68k-elf/m68000/newlib/targ-include -isystem /new
lib-1.10.0/newlib/libc/include  -m68000 -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot creat
e executables.
configure: error: ./configure failed for m68k


Další informace o konferenci Linux