This is the mail archive of the gcc-bugs@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]

compile failure, egcs-latest



If you configure egcs with --build=i?86-pc-linux-gnulibc1 and
--host=i?86-pc-linux-gnu then genattr.c doesn't get HAVE_STDLIB_H
defined because it includes hconfig.h not config.h.  This causes gcc
to error out compiling that file ("free undeclared").  Setting
CPPFLAGS=-DHAVE_STDLIB_H makes it work.  I don't know what the right
fix is.

(I constructed a "cross compiler" that invokes gcc with the
right options to compile and link with glibc, and was trying to use
that to build a compiler that uses glibc by default.  Both the
compiler and the library are installed in a corner of the filesystem
where they won't break anything.)

Environment:  Compiling egcs-latest against glibc-latest with
egcs-1.0.1 and binutils-2.8.1.0.23.

zw


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