Error File Format Not Recognized Using NI GNU C & C++ Compiler Toolchain

Updated Oct 21, 2026

Reported In

Driver

  • GNU C & C++ Compile Tools x64

Issue Details

When building an IPG CarMaker source code using GNU C & C++ Compilers for x64 Linux, the build fails and returns the following error:

 

libdl.a: file not recognized: file format not recognized

 

This behavior occurs during the final link stage when generating CarMaker.nilrt.so.

Environment details:

  • Host OS: Windows 10
  • Target OS: NI Linux Real-Time
  • Hardware: PXIe-1092, PXIe-8881
  • Software: VeriStand 2025Q4, GNU C & C++ Compilers for x64 Linux 2025Q4
  • Third-Party Software: IPG CarMaker 15.1, MSYS-2023 Office (from the IPG CarMaker installer)

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:

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

Additional Information

GNU C & C++ Compile Tools x64 2026Q4 has been fixed. If you are using 2024Q3 and older compile tool chain, you need to execute the step explained in Solution section.