Build issues for custom target file in 2024b verions. Error in "emmintrin.h"
96 views (last 30 days)
Show older comments
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
0 Comments
Accepted Answer
Githin George
on 3 Oct 2024
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.
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!