Skip to content

Some examples of kencc errors/warnings being unintuitive wrt root cause

Notifications You must be signed in to change notification settings

henesy/kencc-errors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kencc errors/warnings

The kencc compiler suite, or, the Plan 9 compiler suite are pleasantly simple and non-posix.

This repository aims to document some potentially misleading or otherwise unintuitive errors/warnings which can be commonplace while using the kencc suite.

Note that with regular use and some knowledge about how compilers work under the hood may make some of these messages more intuitive.

These errors/warnings are, if nothing else, usually very literal.

Notes

Examples were performed on 9front/amd64.

Examples are provided with the relevant .c/.h files and a .txt file containing a build transcript for reference.

Mistakes causing the error/warning will be indicated with a comment in the form:

/* Bad part - {warning, error}

	Some explanation
	...
*/

There are notes on finding some compiler errors in hunting.md.

Usage

These examples should be built by hand. No mkfile is provided to this end.

Refer to 2c(1) and 2l(1) for the correct compiler/arguments regarding a specific platform or build.

Examples are given in terms of building/running for/on amd64.

% 6c foo.c
# Some errors or warnings
% 6l foo.6
# Maybe something here, too
% 6.out

References

About

Some examples of kencc errors/warnings being unintuitive wrt root cause

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages