* better error message

This commit is contained in:
florian 2021-11-11 22:52:10 +01:00
parent 1c7709e454
commit 550d0481b3
4 changed files with 412 additions and 403 deletions

View File

@ -3000,7 +3000,7 @@ asmw_e_illegal_use_of_sp=08036_E_Asm: ESP/RSP cannot be used as index register
#
# Executing linker/assembler
#
# 09035 is the last used one
# 09036 is the last used one
#
# BeginOfTeX
%
@ -3061,9 +3061,6 @@ exec_e_exe_not_supported=09018_E_Creation of Executables not supported
exec_e_dll_not_supported=09019_E_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.
exec_e_static_lib_not_supported=09035_E_Creation of Static Libraries not supported
% Creating static libraries is not supported for this platform, because it was
% not yet implemented in the compiler.
exec_i_closing_script=09020_I_Closing script $1
% Informational message showing when writing of the external assembling and linking script is finished.
exec_e_res_not_found=09021_E_Resource compiler "$1" not found, switching to external mode
@ -3101,6 +3098,12 @@ exec_w_init_file_not_found=09034_W_"$1" not found, this will probably cause a li
% If the system has gcc installed, running \var{gcc --print-file-name <filename>} might return the path to the file.
% Add this path in your \var{fpc.cfg} using the switch \var{-Fl} to fix this error. This requires though,
% that gcc targets the same target as FPC.
exec_e_static_lib_not_supported=09035_E_Creation of Static Libraries not supported
% Creating static libraries is not supported for this platform, because it was
% not yet implemented in the compiler.
exec_f_controllertype_expected=09036_F_To generate the correct linker call, a controller type must be set by the directive -Wp
% Xtensa micro controller require a detailed specification linker command which depends on the target controller.
% If no target controller is set, this command cannot be build and thus linking cannot be carried out.
%
%\end{description}
# EndOfTeX

View File

@ -920,7 +920,6 @@ const
exec_t_using_util=09017;
exec_e_exe_not_supported=09018;
exec_e_dll_not_supported=09019;
exec_e_static_lib_not_supported=09035;
exec_i_closing_script=09020;
exec_e_res_not_found=09021;
exec_i_compilingresource=09022;
@ -936,6 +935,8 @@ const
exec_e_cant_write_resource_file=09032;
exec_n_backquote_cat_file_not_found=09033;
exec_w_init_file_not_found=09034;
exec_e_static_lib_not_supported=09035;
exec_f_controllertype_expected=09036;
execinfo_f_cant_process_executable=09128;
execinfo_f_cant_open_executable=09129;
execinfo_x_codesize=09130;
@ -1146,7 +1147,7 @@ const
option_info=11024;
option_help_pages=11025;
MsgTxtSize = 88875;
MsgTxtSize = 88971;
MsgIdxMax : array[1..20] of longint=(
28,109,361,131,99,63,148,37,223,69,

File diff suppressed because it is too large Load Diff

View File

@ -1169,7 +1169,9 @@ begin
{$pop}
binstr:='gcc';
if (current_settings.controllertype = ct_esp32) then
if current_settings.controllertype = ct_none then
Message(exec_f_controllertype_expected)
else if current_settings.controllertype = ct_esp32 then
cmdstr:='-C -P -x c -E -o esp32_out.ld -I . $IDF_PATH/components/esp32/ld/esp32.ld'
else
cmdstr:='-C -P -x c -E -o esp8266_out.ld -I . $IDF_PATH/components/esp8266/ld/esp8266.ld';