C.7 Errors of assembling/linking stage

This section lists errors that occur when the compiler is processing the command line or handling the configuration files.

Warning: Source operating system redefined

The source operating system is redefined.
Info: Assembling (pipe) arg1

Assembling using a pipe to an external assembler.
Error: Can’t create assembler file: arg1

The mentioned file cannot be created. Check if you have access permissions to create this file.
Error: Can’t create object file: arg1 (error code: arg2)

The mentioned file cannot be created. Check if you have got access permissions to create this file.
Error: Can’t create archive file: arg1

The mentioned file cannot be created. Check if you have access permissions to create this file.
Error: Assembler arg1 not found, switching to external assembling

The assembler program was not found. The compiler will produce a script that can be used to assemble and link the program.
Using assembler: arg1

An informational message saying which assembler is being used.
Error: Error while assembling exitcode arg1

There was an error while assembling the file using an external assembler. Consult the documentation of the assembler tool to find out more information on this error.
Error: Can’t call the assembler, error arg1 switching to external assembling

An error occurred when calling an external assembler. The compiler will produce a script that can be used to assemble and link the program.
Info: Assembling arg1

An informational message stating which file is being assembled.
Info: Assembling with smartlinking arg1

An informational message stating which file is being assembled using smartlinking.
Warning: Object arg1 not found, Linking may fail !

One of the object files is missing, and linking will probably fail. Check your paths.
Warning: Library arg1 not found, Linking may fail !

One of the library files is missing, and linking will probably fail. Check your paths.
Error: Error while linking

Generic error while linking.
Error: Can’t call the linker, switching to external linking

An error occurred when calling an external linker. The compiler will produce a script that can be used to assemble and link the program.
Info: Linking arg1

An informational message, showing which program or library is being linked.
Error: Util arg1 not found, switching to external linking

An external tool was not found. The compiler will produce a script that can be used to assemble and link or postprocess the program.
Using util arg1

An informational message, showing which external program (usually a postprocessor) is being used.
Error: Creation of Executables not supported

Creating executable programs is not supported for this platform, because it was not yet implemented in the compiler.
Error: Creation of Dynamic/Shared Libraries not supported

Creating dynamically loadable libraries is not supported for this platform, because it was not yet implemented in the compiler.
Error: Creation of Static Libraries not supported

Creating static libraries is not supported for this platform, because it was not yet implemented in the compiler.
Info: Closing script arg1

Informational message showing when writing of the external assembling and linking script is finished.
Error: Resource compiler ”arg1” not found, switching to external mode

An external resource compiler was not found. The compiler will produce a script that can be used to assemble, compile resources and link or postprocess the program.
Info: Compiling resource arg1

An informational message, showing which resource is being compiled.
Unit arg1 cannot be statically linked, switching to smart linking

Static linking was requested, but a unit which is not statically linkable was used.
Unit arg1 cannot be smart linked, switching to static linking

Smart linking was requested, but a unit which is not smart-linkable was used.
Unit arg1 cannot be shared linked, switching to static linking

Shared linking was requested, but a unit which is not shared-linkable was used.
Error: Unit arg1 cannot be smart or static linked

Smart or static linking was requested, but a unit which cannot be used for either was used.
Error: Unit arg1 cannot be shared or static linked

Shared or static linking was requested, but a unit which cannot be used for either was used.
Calling resource compiler ”arg1” with ”arg2” as command line

An informational message showing which command line is used for the resource compiler.
Error: Error while compiling resources

The resource compiler or converter returned an error.
Error: Can’t call the resource compiler ”arg1”, switching to external mode

An error occurred when calling a resource compiler. The compiler will produce a script that can be used to assemble, compile resources and link or postprocess the program.
Error: Can’t open resource file ”arg1”

An error occurred resource file cannot be opened.
Error: Can’t write resource file ”arg1”

An error occurred resource file cannot be written.
Note: File ”arg1” not found for backquoted cat command

The compiler did not find the file that should be expanded into linker parameters
Warning: ”arg1” not found, this will probably cause a linking failure

The compiler adds certain startup code files to the linker only when they are found. If they are not found, they are not added and this might cause a linking failure. If the system has gcc installed, running gcc --print-file-name <filename> might return the path to the file. Add this path in your fpc.cfg using the switch -Fl to fix this error. This requires though, that gcc targets the same target as FPC.