AR# 45110

13.3 EDK - Building C-code in SDK results in "ld.exe: BFD 2.16 assertion fail" error

Description

I receive the following errorwhen building my C-code in SDK:

"\xilinx\13.3\sdk\sdk\gnu\microblaze\nt64\bin\..\lib\gcc\microblaze-xilinx-elf\4.1.2\..\..\..\..\microblaze-xilinx-elf\bin\ld.exe: BFD 2.16 assertion fail /proj/epdsw/gnu/mb_gnu/src/binutils/bfd/dwarf2.c:2058"

Solution

This error is related to debugging information in the assembler.

A work-around is to change the debugging level in SDK to "g1" or "none" by performing the following steps:

  1. Right-click on your application.
  2. Click on C/C++ Build Settings.
  3. From the "Tool Settings" tab, select MicroBlaze gcc compiler -> Debugging.
  4. Set the Debug level to "g1" or "none".
Alternatively, this issue is not seen on Linux systems. Therefore, you can use a support Linux OS instead.
AR# 45110
Date 12/15/2012
Status Active
Type General Article
Tools