In the project-based operator development scenario, when you are building an operator project, one of the following error messages is displayed:
1 2 3 4 5 6 7 8 9 10 11 |
ERROR: failed to create temporary archive: /tmp/mkself336430.tar CMake Error at /addcustom/cmake/makeself.cmake:12 (message): CPack Command error: 1 Header is 672 lines long tar: ./packages/vendors/customize/op_proto/inc/my_very_long_and_detailed_c_plus_plus_project_source_code_file_containing_advanced_features_and_implementations.h: file name is too long (cannot be split); not dumped tar: Exiting with failure status due to previous errors |
1 2 3 4 5 6 7 8 9 |
ERROR: failed to create temporary archive: /tmp/mkself133003.tar CMake Error at /root/r00882787/Customproj/addcustom/cmake/makeself.cmake:12 (message): CPack Command error: 1 Header is 672 lines long tar: ./packages/vendors/ProjectX_FeatureY_Z_20241118_Monday_Development_BranchA1_Commit56789_AlphaVersion_ABCDEFGHIJKLM/op_impl/ai_core/tbe/ProjectX_FeatureY_Z_20241118_Monday_Development_BranchA1_Commit56789_AlphaVersion_ABCDEFGHIJKLM_impl/dynamic/add_custom.cpp: file name is too long (max 256); not dumped |
During build, the length of the file name or path exceeds the system limit. As a result, an error occurs when the tar command is used to pack the file generated by the operator project.
If such an error is reported, reduce the length of the file name or path based on the error message.
The solutions to common errors are as follows:
If vendor_name is configured in the CMakePresets.json file when you complete project build configuration, a path named after vendor_name is generated in the vendor directory during build. If an error is reported because the file path is too long, reduce the length of vendor_name.