Problem using Mathwork's custom toolchain - Error during Simulink model build
10 views (last 30 days)
Show older comments
I tried creating a Custom Toolchain named ‘MinGW64 | gmake (Custom)’ with MinGW compiler(4.8.2) in another directory,
(To be precise need to refer MinGW compiler path to a View in the GIT repository)
and configured that new toolchain with similar settings to that of Mathwork’s MinGW compiler(6.3.0) ‘MinGW64 | gmake (64-bit Windows)’.
Registered this toolchain after it passed the tool validation (tc.Validate) without any errors.
Created a Test model and used ‘grt.tlc’ Target and linked new custom target and customized new Toolchain.
Built the model, but couldn’t succeed with the build process.
The error message is,
..### Starting build procedure for model: sample_mdl ### Generating code and artifacts to 'Model specific' folder structure
Code Generation
Elapsed: 22 sec
### Generating code into build folder: ..\sample_mdl_vp_rtw
Warning: File 'codedescriptor.dmr' not found. [4 similar]
### before_tlc build hook for 'sample_mdl'
### Invoking Target Language Compiler on sample_mdl.rtw
### Using System Target File: ..\grt.tlc
### Loading TLC function libraries
### Initial pass through model to cache user defined code
### Caching model source code
### Writing header file sample_mdl_types.h
### Writing header file sample_mdl.h
### Writing header file rtwtypes.h
### Writing header file builtin_typeid_types.h .
### Writing header file multiword_types.h
### Writing header file zero_crossing_types.h
### Writing source file sample_mdl.c
### Writing header file sample_mdl_private.h
### Writing header file rtmodel.h
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.c .
### Writing header file rt_defines.h
### Writing header file rtGetInf.h
### Writing source file rtGetInf.c
### Writing header file rtGetNaN.h
### Writing source file rtGetNaN.c
### TLC code generation complete.
### after_tlc build hook for 'sample_mdl'
### Creating HTML report file sample_mdl_codegen_rpt.html
### Build procedure for model: 'sample_mdl' aborted due to an error.
..\slprj\sample_mdl_check\_sharedutils>cd .
..\slprj\sample_mdl_check\_sharedutils>
if "" == "" ("C:\MATLAB\R2019b\bin\win64\gmake" -f rtwshared.mk all ) else ("C:\MATLAB\R2019b\bin\win64\gmake" -f rtwshared.mk )
"..\ViewName\xxx\environment\mingw\bin/gcc" -c -fwrapv -m64 -O0 -DCLASSIC_INTERFACE=1 -DALLOCATIONFCN=1 -DMAT_FILE=1
-DONESTEPFCN=0 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=1 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DFUNC_NAME=interfacee -DRT_MALLOC
-DMODEL=sample_mdl -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DRT -DUSE_RTMODEL @rtwshared_comp.rsp -o "rtGetInf.obj"
"../slprj/sample_mdl_check/_sharedutils/rtGetInf.c"
gmake: *** [rtGetInf.obj] Error 1
..\slprj\sample_mdl_check\_sharedutils>echo The make command returned an error of 2
The make command returned an error of 2
..\slprj\sample_mdl_check\_sharedutils>exit 1 Error(s) encountered while building "rtwshared":
end
### Failed to generate all binary outputs.
end
I am not sure where I did wrong in the toolchain configuration.
Any suggestions are appreciated.
0 Comments
Answers (0)
See Also
Categories
Find more on MATLAB Support for MinGW-w64 C/C++ Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!