This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Build failure cygwin -> sh-elf cross compiler
- From: "Hartmut Schirmer" <hartmut dot schirmer at arcor dot de>
- To: <gcc at gcc dot gnu dot org>
- Date: Thu, 26 Sep 2002 21:03:08 +0200
- Subject: Build failure cygwin -> sh-elf cross compiler
Hi,
building a cygwin -> sh-elf C cross compiler using the lastest snapshot
(gcc-core-20020923.tar.bz2) failed while building libgcc2
My environment doesn't supply a C lib so inhibit_libc is
defined. t-sh has this code
>>>
LIB2FUNCS_EXTRA=embed-bb.c
embed-bb.c: $(srcdir)/libgcc2.c
echo '#ifdef inhibit_libc' > $@
echo '#define L_bb' >> $@
echo '#undef inhibit_libc' >> $@
cat $< >> $@
echo '#endif' >> $@
<<<
looking for L_bb in in libgcc2.c:
>>>
#ifdef L_bb
[...]
#ifndef inhibit_libc
/* Arc profile dumper. Requires atexit and stdio. */
#undef NULL /* Avoid errors if stdio.h and our stddef.h mismatch. */
#include <stdio.h>
<<<
So even with inhibit_libc <stdio.h> is required
Hartmut