Bug 30808 - It would probably make sense to abort immediately after a file-not-found.
Summary: It would probably make sense to abort immediately after a file-not-found.
Status: RESOLVED DUPLICATE of bug 15638
Alias: None
Product: gcc
Classification: Unclassified
Component: preprocessor (show other bugs)
Version: 4.1.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-15 14:57 UTC by Peter Seebach
Modified: 2007-02-15 17:51 UTC (History)
3 users (show)

See Also:
Host: N/A
Target: N/A
Build: N/A
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Seebach 2007-02-15 14:57:07 UTC
One of the most common problems I face in compiling programs with many dependancies is that, if a dependency is missing, the resulting error messages almost invariably scroll off the screen instantly, and even apart from the scrolling, the single relevant error ("Cannot open <foo.h>: No such file or directory" or whatever) is buried under hundreds upon hundreds of lines of errors about variables not declared in scope, syntax errors in declarations, and so on.

In general, error cascades are virtually impossible to prevent.

However, it seems clear that, any time an include file is missing, we *know* that the build is doomed to failure.  I think it would be a nice option (and possibly a very good default) for gcc to simply abort immediately after any file-not-found message, on the grounds that, if you are missing a header file, there is simply no point in telling you that, without that header, your program doesn't work.
Comment 1 Andrew Pinski 2007-02-15 17:51:38 UTC

*** This bug has been marked as a duplicate of 15638 ***