Solution
This error occurs because the static library archives contain a Windows line-ending carriage return in their archive header (!<arch>\r\n), which causes the linker to reject the header format. Modifying each header to a Unix line ending (!<arch>\n) restores the archive format.
Static library using Windows line-ending carriage return (CRLF):
The correct Unix line ending formatting (LF):

Complete the following steps to update the archive files:
- Navigate to the library path of the cross-compile toolchain:
C:\build\2025Q4\x64\sysroots\core2-64-nilrt-linux\usr\lib\ - Open each of the following files using an editor that supports line ending modifications (such as Notepad++):
libanl.alibdl.alibpthread.alibutil.a
- Change the line ending of each file from Windows (
\r\n) to Unix (\n) so the 8-byte header reads !<arch>\n. - Save the modified files.
- Re-run the build to complete the compile and link process.