UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 60540

Vivado 2014.1 SDK compiler error if windows environmental variable LIB is set

Description

I am receiving an error which refers to "C:\Program" in the make compile commands for BSP and applications.

This is caused by an environment variable being used by Microsoft Visual Studio .NET 2003:

LIB=C:\Program Files (x86)\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib.

"Compiling devcfg"
arm-xilinx-eabi-ar: ../../../lib/C:\Program: Invalid argument
make[1]: *** [xdevcfg_libs] Error 1
make[1]: Target `libs' not remade because of errors.
make: *** [ps7_cortexa9_0/libsrc/devcfg_v3_0/src/make.libs] Error 2
"Running Make libs in ps7_cortexa9_0/libsrc/dmaps_v2_0/src"
make -C ps7_cortexa9_0/libsrc/dmaps_v2_0/src -s libs -e "SHELL=CMD" "COMPILER=arm-xilinx-eabi-gcc" "ARCHIVER=arm-xilinx-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-g"
"Compiling dmaps"
arm-xilinx-eabi-ar: ../../../lib/C:\Program: Invalid argument
make[1]: *** [xdmaps_libs] Error 1
make[1]: Target `libs' not remade because of errors.
make: *** [ps7_cortexa9_0/libsrc/dmaps_v2_0/src/make.libs] Error 2
"Running Make libs in ps7_cortexa9_0/libsrc/scugic_v2_0/src"
make -C ps7_cortexa9_0/libsrc/scugic_v2_0/src -s libs -e "SHELL=CMD" "COMPILER=arm-xilinx-eabi-gcc" "ARCHIVER=arm-xilinx-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-g"
"Compiling scugic"
arm-xilinx-eabi-ar: ../../../lib/C:\Program: Invalid argument
make[1]: *** [scugic_libs] Error 1
make[1]: Target `libs' not remade because of errors.
make: *** [ps7_cortexa9_0/libsrc/scugic_v2_0/src/make.libs] Error 2

Solution

To work around this issue, Insert the line "set LIB=" at the start of the XSDK.bat file.
AR# 60540
Date Created 05/06/2014
Last Updated 08/08/2014
Status Active
Type General Article
Devices
  • Zynq-7000
Tools
  • Vivado Design Suite - 2014.1