Subject: Re: can't compile empty files anymore
To: None <M.Drochner@fz-juelich.de>
From: Eric Christopher <echristo@redhat.com>
List: tech-toolchain
Date: 01/13/2005 16:22:20
> zel637: {21} ls -l mist.c
> -rw-r--r-- 1 drochner ca1 0 Jan 13 19:31 mist.c
> zel637: {22} cc -c mist.c
> mist.o: File truncated
> /var/tmp//ccYLeZtB.s: Assembler messages:
> /var/tmp//ccYLeZtB.s:3: FATAL: Can't write mist.o: File truncated
>
> This breaks kernel builds because some source files are effectively
> empty if certain options are not set. (eg tcp_debug.c, ip_htable.c).
>
> What might have caused this?
There were some patches that went into gcc at one point that caused this
to segfault. Does cc -v give you a datestamp from when it was pulled?
Also, can you use -save-temps to look at the .s file?
-eric