[klibc] build klibc with gcc 2.96 fails
H. Peter Anvin
hpa at zytor.com
Wed Jan 19 16:53:28 PST 2005
Sam Ravnborg wrote:
> On Wed, Jan 19, 2005 at 12:32:39PM -0800, H. Peter Anvin wrote:
>>Greg KH wrote:
>>>I get the following error:
>>>make: Entering directory `/home/greg/src/klibc/klibc-0.196/klibc'
>>>gcc -Wp,-MT,__static_init.o,-MD,./.__static_init.o.d -march=i386 -Os -g
>>>-malign-functions=0 -malign-jumps=0 -malign-loops=0 -nostdinc
>>>-iwithprefix include -D__KLIBC__ -DBITSIZE=32 -I.. /include/arch/i386
>>>-I../include/bits32 -I../include -I../linux/include -I../linux/include2 -I
>>>../linux/include -DWITH_ERRLIST -W -Wall -Wpointer-arith -Wwrite-strings
>>>-Wstrict-prototypes -Winline -c -o __static_init.o __static_init.c
>>>Usage: cpp [switches] input output
>>Looks like gcc 2.96 doesn't support -MT, which is used for the
> Kernel use -MD - maybe you could change klibc to use that?
I use -MD (as you can see), but the problem is that the default file
names used with -MD are not the ones I want (-MT overrides this.) If I
recall correctly, it only matters for a handful of files, but it really
One option for dealing with that would be to move the files into place
after they are generated.
*Sigh* Okay, I'll look into this.
More information about the klibc