NERSC logo National Energy Research Scientific Computing Center
  A DOE Office of Science User Facility
  at Lawrence Berkeley National Laboratory

Compiler Errors

Compiler errors are by far the easiest to fix. The compiler usually gives you an unambiguous description of the error and a specific line number on which the error occurred. The only disconcerting thing is that often a single syntax error will generate literally hundreds of other compiler errors. This gives the impression the code is riddled with bugs when only a single typo is the problem.

Error Messages

IBM SP

For dealing with xlf problems, see the xlf online User's Guide.

  • Chapter 11. Problem Determination and Debugging
  • Chapter 12. Understanding XL Fortran Compiler Listings

What Did You Change?

A common place that compiler errors crop up is during code development when many modifications are being made during a short period of time. The best way to have good records of code modifications is to use revision control. Revision control packages such as RCS, SCCS, and CVS are available on all NERSC machines in the GNU module and should be used, particularly when multiple people are working on the same code. Both of these are extremely simple to learn.


LBNL Home
Page last modified: Mon, 11 Jan 2010 21:29:11 GMT
Page URL: http://www.nersc.gov/nusers/help/tutorials/debug/compiler_errors.php
Web contact: webmaster@nersc.gov
Computing questions: consult@nersc.gov

Privacy and Security Notice
DOE Office of Science