cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
2,539 Views
Registered: ‎05-29-2017

SDK fails to build FSBL

Hello, 

 

After messing up something in the SDK setup. It cannot build FSBL or any C++ program. 

 

By opening up a new program > Zynq_FSBL > Standalone. 

SDK shows the following in the errors prompt. 

 

Description	Resource	Path	Location	Type
make: *** [ps7_cortexa9_0/libsrc/coresightps_dcc_v1_2/src/make.libs] Error 2	FSBL_bsp		 	C/C++ Problem
make: *** [ps7_cortexa9_0/libsrc/devcfg_v3_4/src/make.libs] Error 2	FSBL_bsp		 	C/C++ Problem
make: *** [ps7_cortexa9_0/libsrc/dmaps_v2_1/src/make.libs] Error 2	FSBL_bsp		 	C/C++ Problem
make: *** [ps7_cortexa9_0/libsrc/emacps_v3_2/src/make.libs] Error 2	FSBL_bsp		 	C/C++ Problem
make: *** [ps7_cortexa9_0/libsrc/gpiops_v3_1/src/make.libs] Error 2	FSBL_bsp		 	C/C++ Problem
make: *** [ps7_cortexa9_0/libsrc/qspips_v3_3/src/make.libs] Error 2	FSBL_bsp		 	C/C++ Problem
make: *** [ps7_cortexa9_0/libsrc/scugic_v3_3/src/make.libs] Error 2	FSBL_bsp		 	C/C++ Problem
make: *** [ps7_cortexa9_0/libsrc/scutimer_v2_1/src/make.libs] Error 2	FSBL_bsp		 	C/C++ Problem
make: *** [ps7_cortexa9_0/libsrc/scuwdt_v2_1/src/make.libs] Error 2	FSBL_bsp		 	C/C++ Problem
make: *** [ps7_cortexa9_0/libsrc/sdps_v2_8/src/make.libs] Error 2	FSBL_bsp		 	C/C++ Problem
make: *** [ps7_cortexa9_0/libsrc/standalone_v5_5/src/make.libs] Error 2	FSBL_bsp		 	C/C++ Problem
make: *** [ps7_cortexa9_0/libsrc/ttcps_v3_1/src/make.libs] Error 2	FSBL_bsp		 	C/C++ Problem
make: *** [ps7_cortexa9_0/libsrc/uartps_v3_1/src/make.libs] Error 2	FSBL_bsp		 	C/C++ Problem
make: *** [ps7_cortexa9_0/libsrc/usbps_v2_4/src/make.libs] Error 2	FSBL_bsp		 	C/C++ Problem
make: *** [ps7_cortexa9_0/libsrc/xadcps_v2_2/src/make.libs] Error 2	FSBL_bsp		 	C/C++ Problem
make: *** [ps7_cortexa9_0/libsrc/xilffs_v3_3/src/make.libs] Error 2	FSBL_bsp		 	C/C++ Problem
make: *** [src/fsbl_handoff.o] Error 1	FSBL		 	C/C++ Problem
make: Target `all' not remade because of errors.	FSBL_bsp		 	C/C++ Problem
make[1]: *** [cc932.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [diskio.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [ff.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [standalone_libs] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xadcps_g.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xadcps_intr.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xadcps_selftest.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xadcps_sinit.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xadcps.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xcoresightpsdcc.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xdevcfg_g.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xdevcfg_hw.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xdevcfg_intr.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xdevcfg_selftest.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xdevcfg_sinit.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xdevcfg.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xdmaps_g.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xdmaps_hw.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xdmaps_selftest.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xdmaps_sinit.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xdmaps.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xemacps_bdring.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xemacps_control.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xemacps_g.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xemacps_hw.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xemacps_intr.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xemacps_sinit.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xemacps.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xgpiops_g.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xgpiops_hw.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xgpiops_intr.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xgpiops_selftest.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xgpiops_sinit.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xgpiops.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xqspips_g.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xqspips_hw.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xqspips_options.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xqspips_selftest.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xqspips_sinit.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xqspips.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xscugic_g.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xscugic_hw.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xscugic_intr.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xscugic_selftest.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xscugic_sinit.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xscugic.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xscutimer_g.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xscutimer_selftest.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xscutimer_sinit.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xscutimer.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xscuwdt_g.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xscuwdt_selftest.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xscuwdt_sinit.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xscuwdt.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xsdps_g.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xsdps_options.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xsdps_sinit.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xsdps.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xttcps_g.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xttcps_options.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xttcps_selftest.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xttcps_sinit.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xttcps.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xuartps_g.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xuartps_hw.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xuartps_intr.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xuartps_options.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xuartps_selftest.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xuartps_sinit.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xuartps.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xusbps_endpoint.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xusbps_g.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xusbps_hw.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xusbps_intr.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xusbps_sinit.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: *** [xusbps.o] Error 1	FSBL_bsp		 	C/C++ Problem
make[1]: Target `libs' not remade because of errors.	FSBL_bsp		 	C/C++ Problem

 And this, in the console prompt:

 

make pre-build main-build 
a9-linaro-pre-build-step
 
Building file: ../src/fsbl_handoff.S
Invoking: ARM v7 gcc compiler
arm-none-eabi-gcc -Wall -O0 -g3 -I"/home/alpha/fpga-zynq/zedboard/zedboard_rocketchip_ZynqConfig/zedboard_rocketchip_ZynqConfig.sdk/rocketchip_wrapper_hw_platform_0" -c -fmessage-length=0 -MT"src/fsbl_handoff.o" -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -I../../FSBL_bsp/ps7_cortexa9_0/include -MMD -MP -MF"src/fsbl_handoff.d" -MT"src/fsbl_handoff.o" -o "src/fsbl_handoff.o" "../src/fsbl_handoff.S"
arm-none-eabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
make: *** [src/fsbl_handoff.o] Error 1

 How do I edit gcc parameters for SDK ? 

 

After source settings.sh in Vivado/2016.2 and in SDK/2016.2, my PATH is: 

 

 

/home/alpha/Xilinx/Vivado/2016.2/bin:/home/alpha/Xilinx/Vivado_HLS/2016.2/bin:/home/alpha/Xilinx/DocNav:/home/alpha/Xilinx/SDK/2016.2/bin:/home/alpha/Xilinx/SDK/2016.2/gnu/microblaze/lin/bin:/home/alpha/Xilinx/SDK/2016.2/gnu/arm/lin/bin:/home/alpha/Xilinx/SDK/2016.2/gnu/microblaze/linux_toolchain/lin64_be/bin:/home/alpha/Xilinx/SDK/2016.2/gnu/microblaze/linux_toolchain/lin64_le/bin:/home/alpha/Xilinx/SDK/2016.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin:/home/alpha/Xilinx/SDK/2016.2/gnu/aarch32/lin/gcc-arm-none-eabi/bin:/home/alpha/Xilinx/SDK/2016.2/gnu/aarch64/lin/aarch64-linux/bin:/home/alpha/Xilinx/SDK/2016.2/gnu/aarch64/lin/aarch64-none/bin:/home/alpha/Xilinx/SDK/2016.2/gnu/armr5/lin/gcc-arm-none-eabi/bin:/home/alpha/Xilinx/SDK/2016.2/tps/lnx64/cmake-3.3.2/bin:/home/alpha/Xilinx/Vivado/2016.2/bin:/home/alpha/Xilinx/Vivado_HLS/2016.2/bin:/home/alpha/Xilinx/DocNav:/home/alpha/Xilinx/SDK/2016.2/bin:/home/alpha/Xilinx/SDK/2016.2/gnu/microblaze/lin/bin:/home/alpha/Xilinx/SDK/2016.2/gnu/arm/lin/bin:/home/alpha/Xilinx/SDK/2016.2/gnu/microblaze/linux_toolchain/lin64_be/bin:/home/alpha/Xilinx/SDK/2016.2/gnu/microblaze/linux_toolchain/lin64_le/bin:/home/alpha/Xilinx/SDK/2016.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin:/home/alpha/Xilinx/SDK/2016.2/gnu/aarch32/lin/gcc-arm-none-eabi/bin:/home/alpha/Xilinx/SDK/2016.2/gnu/aarch64/lin/aarch64-linux/bin:/home/alpha/Xilinx/SDK/2016.2/gnu/aarch64/lin/aarch64-none/bin:/home/alpha/Xilinx/SDK/2016.2/gnu/armr5/lin/gcc-arm-none-eabi/bin:/home/alpha/Xilinx/SDK/2016.2/tps/lnx64/cmake-3.3.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin

The arm-xilinx-linux-gnueabi-gcc is found in this location: 

 

 

~/Xilinx/SDK/2016.2/gnu/arm/lin/bin$ 
alpha@alpha-VirtualBox:~/Xilinx/SDK/2016.2/gnu/arm/lin/bin$ which arm-xilinx-linux-gnueabi-gcc
/home/alpha/Xilinx/SDK/2016.2/gnu/arm/lin/bin/arm-xilinx-linux-gnueabi-gcc

I added it to the PATH: 

 

 

export PATH=/home/alpha/Xilinx/SDK/2016.2/gnu/arm/lin/bin:$PATH

 Still have the errors. Am I missing something else ? 

 

I would like to note also that I do not dispose of the CodeSourcery directory. But the arm-xilinx-linux-gnueabi-gcc is found in the above mentioned location. Do I still need to install CodeSourcery ? 

 

Thank you !

 

0 Kudos
1 Reply
Highlighted
Scholar
Scholar
2,528 Views
Registered: ‎03-22-2016

Re: SDK fails to build FSBL

@ninode  If you are building using the SDK, you should CLEAN the PATH, not add anything to it. 

 

vitorian.com --- We do this for fun. Always give kudos. Accept as solution if your question was answered.
I will not answer to personal messages - use the forums instead.
0 Kudos