Skip to content

Build: Options and Files

Codes that start with A2C:B: are about the build itself: the options you give, the files it reads and writes, and the tools it runs.

Numbers What
0001 to 0099 Errors
0100 to 0199 Warnings
9000 to 9099 Internal errors

A2C:B:E:0001 options

The options contradict each other or leave something open, such as a Lua file without a target. The message says what to change.

error A2C:B:E:0001: a Lua file needs a target: --target ams8|ams9|suf9-x86|suf9-x64|suf10-x86|suf10-x64

A2C:B:E:0002 module-name

The module name isn't valid. It becomes part of the name of a function in the DLL (luaopen_<name>), so it may only have letters, digits and _, and may not start with a digit.

A2C:B:E:0003 unknown-target

A project file names a target autoplay2c doesn't know. The targets are ams8, ams9, suf9-x86, suf9-x64, suf10-x86 and suf10-x64 (or suf10 for short).

A2C:B:E:0004 data-folder-name

The name given for the data folder can't be a folder name.

A2C:B:E:0005 no-compiler

The C backend is chosen, but tcc isn't where autoplay2c looks for it. The installer puts it in the tcc folder beside a2c; name another one with --tcc.

A2C:B:E:0006 file

A file can't be read or written. The message names the file and gives the reason Windows (or your system) gave.

error A2C:B:E:0006: tools.lua: The system cannot find the file specified. (os error 2)

A2C:B:W:0100 source-kept

The build wrote an intermediate file: the module's Lua source, the generated C, the IR listing or the native code listing. Each of them shows your program's code as plainly as the scripts themselves, so never publish one or give it away with the program. The warning names the file.

a2c-intermediate/core.intermediate.c: warning A2C:B:W:0100: this intermediate file holds the program's code: never publish it or give it away with the program

Turn the file off on the Compiler page (or leave it out of --emit) once you no longer need it: the next build removes it.

A2C:B:W:0101 source-check-off

The project is built without the startup check, so a program published with intermediate files gives its code away without a warning. Turn Warn at startup back on on the Compiler page, or leave out --no-source-check.

A2C:B:E:9000 build-internal

An internal error of the build. This is a bug in autoplay2c: please report it, with the project or script and the options you used.