compile failure, egcs-latest
Zack Weinberg
zack@rabi.phys.columbia.edu
Fri Mar 13 13:21:00 GMT 1998
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
More information about the Gcc-bugs
mailing list