Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: magicloud on December 16, 2013, 09:08:24 PM

Title: 5.x gcc crash if the end of .c file is not newline.
Post by: magicloud on December 16, 2013, 09:08:24 PM
{standard input}: Assembler messages:
{standard input}:3983: Warning: end of file not at end of a line; newline inserted
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Title: Re: 5.x gcc crash if the end of .c file is not newline.
Post by: Rich on December 16, 2013, 10:22:05 PM
Hi magicloud
This does not sound like a bug to me. The compiler identified it did not like that the file did not end with a
newline and terminated compilation.
Title: Re: 5.x gcc crash if the end of .c file is not newline.
Post by: tinypoodle on December 16, 2013, 10:38:31 PM
One could call it a bug in the source ;)
Title: Re: 5.x gcc crash if the end of .c file is not newline.
Post by: magicloud on December 18, 2013, 04:17:57 AM
I think it is an issue of this gcc. The source is linux kernel 3.7.9. And it compiled very well with other version or build of gcc.

Forgot to mention, I am using 32 bit of 5.x.
Title: Re: 5.x gcc crash if the end of .c file is not newline.
Post by: Juanito on December 18, 2013, 05:02:24 AM
this version of gcc compiles linux-3.8.13 without similar problems...
Title: Re: 5.x gcc crash if the end of .c file is not newline.
Post by: Rich on December 18, 2013, 10:13:53 AM
Hi magicloud
On second thought, that was just a warning about a missing  linefeed  which it said it fixed. Maybe you just ran
out of memory.
Title: Re: 5.x gcc crash if the end of .c file is not newline.
Post by: magicloud on December 18, 2013, 10:09:33 PM
Hi magicloud
On second thought, that was just a warning about a missing  linefeed  which it said it fixed. Maybe you just ran
out of memory.
Let me check that.