Build issues for custom target file in 2024b verions. Error in "emmintrin.h"

조회 수: 92 (최근 30일)
Hi, We are using a custom target file. The model builds without issues in 2016b version. IF the same model is exported to 2024b, it has build issues. Same tmf / tlc file is used between 2016b and 2024b.
fatal error: could not open source file "emmintrin.h"
Model Build Reason Status Build Duration
===================================================================================================================================
sktSAST Information cache folder or artifacts were missing. Failed to build. For more information, see build log. 0d

채택된 답변

Githin George
Githin George 2024년 10월 3일
Hello Kiruthika,
The file "emmintrin.h" is a header file associated with Intel x86_64 instruction set extensions for SIMD, specifically SSE2 (Streaming SIMD Extensions 2). If a non-Intel processor is being used (e.g. an ARM processor), then these extensions will not be available (and "emmintrin.h" will not exist).
The “emmintrin.h” header file might be generated in the code based on the setting “Leverage target hardware instruction set extensions” in the model’s configuration parameters. Please verify that this setting is set to ‘None’ and see if that generates code without that extra header file. This setting is found in:
Configuration parameters > Code Generation > Optimizations > Leverage target hardware instruction sets.
Please find more information on the “leverage target hardware instruction set extensions” setting via the link below. You may also take a look at the section “Limitations” which states that custom toolchains must set the “Instruction set extensions” to “None”:
I hope this helps.
  댓글 수: 1
Kiruthika
Kiruthika 2024년 10월 4일
Hi George,
Thanks for the reply. Yes, the above solution works. However, it is now carried by a different error.
I have a .tlc/tmf file created for 64-bit. It is building the model successfully. But if I rename the files, it throws error "Dot indexing is not supported for variables of this type".
Note : The content inside the tlc/tmf files are same. Only the file name is changed. (from 'C671xR20_64' to 'C671xR24_M64_P64')
Any leads will be appreciated.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by