ACC Error Guide
TTGEN Error Messages
Disasters
Chapter 8 175
Disasters
Disaster 02: Problem in running C Pre-processor.
(Severity 3)
Explanation TTGEN uses the C-Pre-processor
(/opt/langtools/lbin/cpp) to pre-process the TTGEN
configuration file.
This error means that TTGEN cannot find cpp, or cpp
returns an error (e.g., bad “#” statements, or can’t
create temp files, etc.)
Action: Try correcting the problem with cpp (e.g., run cpp on
the configuration file without using TTGEN), or using
the TTGEN “-n” option to by-pass cpp.
Disaster 03: Can’t open file “%s”: %s
(Severity 3)
Explanation Can’t open TTGEN configuration file or temp file
generated from cpp. Problem with the input file or the
file system.
Action: Make sure file and directory are properly set up and
access permissions are correct.
Disaster 04: Can’t open output “%s”: %s
(Severity 3)
Explanation Can’t open TTGEN binary file. This may occur, for
example, if the binary output file exists without write
permission, or if the current directory does not have
write permission and thus cannot create the binary
output file.
Action: Make sure file and directory are ok and access
permissions are correct. Or specify “-o” option to
overwrite existing output file.
Disaster 05: “%s”(%d): Unexpected end of file
(Severity 3)
Explanation Missing “END$” to signify end of TTGEN definitions
Action: Add “END$” to the end of the configuration file.










