I'm also getting the same warning, but my install path doesn't have any spaces:
Environment Variable GCC_S32K_TOOL was not explicitly set. The generated code will be compiled using the default GCC compiler C:\Users\mgrif\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\tools\gcc-6.3-arm32-eabi
I have been building just fine until today and now make is throwing the following error:
C:\Users\mgrif\Documents\eMatrix\Software\RNA_BMS\RNA_BMS\Projects\BMS\Software\BMS_KML_mbd_rtw>"C:\Program Files\MATLAB\R2021b\bin\win64\gmake" -f BMS_KML.mk COPY_MDLREF_INCLUDES=0 GENERATE_ERT_S_FUNCTION=0 INCLUDE_MDL_TERMINATE_FCN=1 COMBINE_OUTPUT_UPDATE_FCNS=1 MULTI_INSTANCE_CODE=0 INTEGER_CODE=0 OPTS="-DTID01EQ=0" Cleaning... RELATIVE_PATH_TO_ANCHOR is .. ==== Removing object files from build directory ==== | was unexpected at this time. gmake: *** [SetupFiles] Error 255
I also have a lot of other make related warnings:
Warning: Found legacy make variables |>START_MDLREFINC_EXPAND_INCLUDES<|, |>END_MDLREFINC_EXPAND_INCLUDES<|, |>MODELREF_INC_PATH<| in the template makefile C:\Users\mgrif\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\mbdtbx_s32k\mbd_s32k.tmf. The variables are no longer required. You can remove the variables.
Warning: Found legacy make variables |>S_FUNCTIONS<|, |>S_FUNCTIONS_OBJ<| in the template makefile C:\Users\mgrif\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\mbdtbx_s32k\mbd_s32k.tmf. The variables are no longer required. You can remove the variables.
Warning: Found legacy make variables |>SHARED_BIN_DIR<|, |>SHARED_LIB<|, |>SHARED_SRC<|, |>SHARED_SRC_DIR<| in the template makefile C:\Users\mgrif\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\mbdtbx_s32k\mbd_s32k.tmf. The variables are no longer required. You can remove the variables.
Warning: The following preprocessor macros
MODEL_HAS_DYNAMICALLY_LOADED_SFCNS
are specified in the component's build information (RTW.BuildInfo) but the specified template makefile
C:\Users\mgrif\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\mbdtbx_s32k\mbd_s32k.tmf
does not contain the token |>DEFINES_OTHER<|.
Warning: Found legacy make variables |>START_MDLREFINC_EXPAND_INCLUDES<|, |>END_MDLREFINC_EXPAND_INCLUDES<|, |>MODELREF_INC_PATH<| in the template makefile C:\Users\mgrif\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\mbdtbx_s32k\mbd_s32k.tmf. The variables are no longer required. You can remove the variables.
Warning: Found legacy make variables |>S_FUNCTIONS<|, |>S_FUNCTIONS_OBJ<| in the template makefile C:\Users\mgrif\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\mbdtbx_s32k\mbd_s32k.tmf. The variables are no longer required. You can remove the variables.
Warning: Found legacy make variables |>SHARED_BIN_DIR<|, |>SHARED_LIB<|, |>SHARED_SRC<|, |>SHARED_SRC_DIR<| in the template makefile C:\Users\mgrif\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\mbdtbx_s32k\mbd_s32k.tmf. The variables are no longer required. You can remove the variables.
Warning: The make variables |>COPY_DEST_DIR<|, |>GCC_TARGET_ASM_OPTS<|, |>GCC_TARGET_CC_OPTS<|, |>GCC_TARGET_LIB_OPTS<|, |>GCC_TARGET_LINK_OPTS<|, |>GHS_TARGET_ASM_OPTS<|, |>GHS_TARGET_CC_OPTS<|, |>GHS_TARGET_LIB_OPTS<|, |>GHS_TARGET_LINK_OPTS<|, |>IAR_TARGET_ASM_OPTS<|, |>IAR_TARGET_CC_OPTS<|, |>IAR_TARGET_LIB_OPTS<|, |>IAR_TARGET_LINK_OPTS<|, |>LINKER_FILE_NAME<|, |>MC_LIB_NAME<|, |>SDK_TARGET_MCU<|, |>TARGET_COMPILER<|, |>TARGET_FPU<|, |>TARGET_MCU<|, |>TARGET_MEMORY<|, |>TBX_SRCS<| are used in the template makefile C:\Users\mgrif\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\mbdtbx_s32k\mbd_s32k.tmf, but they are not defined. You may have a mismatch between the system target file and the template makefile.
I would welcome any help. I don't understand why I have been able to build before. Could a change to my top level model cause this?
Thank you,
Matt