AR# 50482


14.1 EDK, SDK - Modifying the compiler library options corrupts the project (ld.exe: cannot find -l-Wl)


Modifying one of the following options in SDK corrupts the SDK project:

C/C++ General -> Paths and Symbols -> Libraries
C/C++ Build -> Settings ->Tool Settings -> ARM gcc linker -> Libraries
C/C++ Build -> Settings ->Tool Settings -> ARM gcc linker -> Inferred Options -> Software Platform

The error is similar to the following:

Building target: hello_world_0.elf
Invoking: ARM gcc linker
arm-xilinx-eabi-gcc -Wl,-T -Wl,../src/lscript.ld -L../../standalone_bsp_0/ps7_cortexa9_0/lib -o"hello_world_0.elf"  ./src/helloworld.o ./src/platform.o   -l-Wl,--start-group,-lxil,-lgcc,-lc,--end-group
../lib/gcc/arm-xilinx-eabi/4.6.1/../../../../arm-xilinx-eabi/bin/ld.exe: cannot find -l-Wl,--start-group,-lxil,-lgcc,-lc,--end-group
collect2: ld returned 1 exit status
make: *** [hello_world_0.elf] Error 1

How do I resolve this issue?


The only known way to correct this problem is to re-create the SDK project.

This issue is planned to be fixed in EDK 14.2 and 2012.2 for the latter two methods above. 

Modifying the General setting (C/C++ General -> Paths and Symbols -> Libraries) will still corrupt the project.

AR# 50482
Date 09/15/2014
Status Active
Type General Article
People Also Viewed