This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

newlib-1.10.0 compile for m68k-unknown-elf


Hi,

I'm attempting to compile newlib for a 68331 board with no OS. The c compiler is working and I can run code on the board. See configure and make output in the attachment. I am using m68k-unknown-elf as my target. My m68k-unknown-elf-gcc is version 2.95.3. It looks like one of the configure scripts is trying to compile an executable with a cross compiler.

--
James Roth
Shugyo Design Technologies
http://www.shugyodesign.com/

[james@pompano newlib-1.10.0]$ ./configure --target=m68k-unknown-elf
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /work/james/predator/src/newlib-1.10.0
Configuring texinfo...
No configuration information in texinfo
Configuring etc...
loading cache ../config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
creating ./config.status
creating Makefile
[james@pompano newlib-1.10.0]$ make
make[1]: Entering directory `/work/james/predator/src/newlib-1.10.0/etc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/work/james/predator/src/newlib-1.10.0/etc'
Configuring in m68k-unknown-elf/newlib
acinclude.m4		..linked
aclocal.m4		..linked
ChangeLog		..linked

<SNIP>

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-linux-gnu
checking for gcc... m68k-unknown-elf-gcc -B/work/james/predator/src/newlib-1.10.0/m68k-unknown-elf/m68000/newlib/ -isystem /work/james/predator/src/newlib-1.10.0/m68k-unknown-elf/m68000/newlib/targ-include -isystem /work/james/predator/src/newlib-1.10.0/newlib/libc/include  -m68000
checking whether we are using GNU C... yes
checking whether m68k-unknown-elf-gcc -B/work/james/predator/src/newlib-1.10.0/m68k-unknown-elf/m68000/newlib/ -isystem /work/james/predator/src/newlib-1.10.0/m68k-unknown-elf/m68000/newlib/targ-include -isystem /work/james/predator/src/newlib-1.10.0/newlib/libc/include  -m68000 accepts -g... no
checking for ar... m68k-unknown-elf-ar
checking for ranlib... m68k-unknown-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-unknown-elf --build=i686-pc-linux-gnu --with-newlib --enable-multilib --with-cross-host=i686-pc-linux-gnu --with-target-subdir=m68k-unknown-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-linux-gnu
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-unknown-elf-gcc -B/work/james/predator/src/newlib-1.10.0/m68k-unknown-elf/m68000/newlib/ -isystem /work/james/predator/src/newlib-1.10.0/m68k-unknown-elf/m68000/newlib/targ-include -isystem /work/james/predator/src/newlib-1.10.0/newlib/libc/include  -m68000
checking whether we are using GNU C... (cached) yes
checking whether m68k-unknown-elf-gcc -B/work/james/predator/src/newlib-1.10.0/m68k-unknown-elf/m68000/newlib/ -isystem /work/james/predator/src/newlib-1.10.0/m68k-unknown-elf/m68000/newlib/targ-include -isystem /work/james/predator/src/newlib-1.10.0/newlib/libc/include  -m68000 accepts -g... (cached) no
checking for ranlib... (cached) m68k-unknown-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-unknown-elf --build=i686-pc-linux-gnu --with-newlib --enable-multilib --with-cross-host=i686-pc-linux-gnu --with-target-subdir=m68k-unknown-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-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for gcc... (cached) m68k-unknown-elf-gcc -B/work/james/predator/src/newlib-1.10.0/m68k-unknown-elf/m68000/newlib/ -isystem /work/james/predator/src/newlib-1.10.0/m68k-unknown-elf/m68000/newlib/targ-include -isystem /work/james/predator/src/newlib-1.10.0/newlib/libc/include  -m68000
checking whether the C compiler (m68k-unknown-elf-gcc -B/work/james/predator/src/newlib-1.10.0/m68k-unknown-elf/m68000/newlib/ -isystem /work/james/predator/src/newlib-1.10.0/m68k-unknown-elf/m68000/newlib/targ-include -isystem /work/james/predator/src/newlib-1.10.0/newlib/libc/include  -m68000 -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
configure: error: ./configure failed for m68k
make[1]: Entering directory `/work/james/predator/src/newlib-1.10.0/m68k-unknown-elf/libgloss'
make[2]: Entering directory `/work/james/predator/src/newlib-1.10.0/m68k-unknown-elf/libgloss/doc'
make[2]: *** No targets.  Stop.
make[2]: Leaving directory `/work/james/predator/src/newlib-1.10.0/m68k-unknown-elf/libgloss/doc'
make[2]: Entering directory `/work/james/predator/src/newlib-1.10.0/m68k-unknown-elf/libgloss/libnosys'
make[2]: *** No targets.  Stop.
make[2]: Leaving directory `/work/james/predator/src/newlib-1.10.0/m68k-unknown-elf/libgloss/libnosys'
make[2]: Entering directory `/work/james/predator/src/newlib-1.10.0/m68k-unknown-elf/libgloss/m68k'
make[2]: *** No targets.  Stop.
make[2]: Leaving directory `/work/james/predator/src/newlib-1.10.0/m68k-unknown-elf/libgloss/m68k'
make[1]: *** [stmp-bsp] Error 2
make[1]: Leaving directory `/work/james/predator/src/newlib-1.10.0/m68k-unknown-elf/libgloss'
make: *** [all-target-libgloss] Error 2

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]