This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

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


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