cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
261 Views
Registered: ‎10-03-2018

Cannot compile fsbl

Hello.
I am using Arch Linux and Vitis 2020.1. I have created a simple project contained ZYNQ and was trying to set up a simple Vitis Platform project.
I am unable to compile even a simple platform project in order to obtain fsbl.

Here is Console output:

 

 

 

14:28:06 **** Build of project test1 ****
buildplatform.sh 40491 test1  
XSDB Server Channel: tcfchan#4
Building the zynq_fsbl application.
arm-none-eabi-gcc -MMD -MP       -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard   -O2 -c -c fsbl_hooks.c -o fsbl_hooks.o -Izynq_f
sbl_bsp/ps7_cortexa9_0/include -I.

arm-none-eabi-gcc -MMD -MP       -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard   -O2 -c -c image_mover.c -o image_mover.o -Izynq
_fsbl_bsp/ps7_cortexa9_0/include -I.

arm-none-eabi-gcc -MMD -MP       -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard   -O2 -c -c main.c -o main.o -Izynq_fsbl_bsp/ps7_
cortexa9_0/include -I.

arm-none-eabi-gcc -MMD -MP       -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard   -O2 -c -c nand.c -o nand.o -Izynq_fsbl_bsp/ps7_
cortexa9_0/include -I.

arm-none-eabi-gcc -MMD -MP       -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard   -O2 -c -c nor.c -o nor.o -Izynq_fsbl_bsp/ps7_co
rtexa9_0/include -I.

In file included from main.c:115:
zynq_fsbl_bsp/ps7_cortexa9_0/include/xtime_l.h:65:9: note: #pragma message: For the sleep routines, Global timer is being used
   65 | #pragma message ("For the sleep routines, Global timer is being used")
      |         ^~~~~~~
arm-none-eabi-gcc -o executable.elf  fsbl_hooks.o  image_mover.o  main.o  md5.o  nand.o  nor.o  pcap.o  ps7_init.o  qspi.o  rsa
.o  sd.o  fsbl_handoff.o -MMD -MP       -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard   -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=
hard -Wl,-build-id=none -specs=Xilinx.spec  -lrsa -Wl,--start-group,-lxil,-lgcc,-lc,--end-group -Wl,--start-group,-lrsa,-lxil,-
lgcc,-lc,--end-group -Wl,--start-group,-lxilffs,-lxil,-lgcc,-lc,--end-group                                    -Wl,--gc-section
s -Lzynq_fsbl_bsp/ps7_cortexa9_0/lib -L./ -Tlscript.ld

/home/m4rm/XILINX/Vitis/2020.1/gnu/aarch32/lin/gcc-arm-none-eabi/x86_64-oesdk-linux/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-ld.real: cannot find -lrsa
collect2.real: error: ld returned 1 exit status
make: *** [Makefile:29: executable.elf] Error 1
Building the BSP Library for domain  - standalone_domain on processor ps7_cortexa9_0
Running Make include in ps7_cortexa9_0/libsrc/cpu_cortexa9_v2_9/src

Running Make include in ps7_cortexa9_0/libsrc/coresightps_dcc_v1_7/src

make -C ps7_cortexa9_0/libsrc/coresightps_dcc_v1_7/src -s include  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-
none-eabi-as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-a
bi=hard -nostartfiles -g -Wall -Wextra"

Running Make include in ps7_cortexa9_0/libsrc/ddrps_v1_1/src

Running Make include in ps7_cortexa9_0/libsrc/devcfg_v3_6/src

make -C ps7_cortexa9_0/libsrc/cpu_cortexa9_v2_9/src -s include  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-non
e-eabi-as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=
hard -nostartfiles -g -Wall -Wextra"

Running Make include in ps7_cortexa9_0/libsrc/emacps_v3_11/src

make -C ps7_cortexa9_0/libsrc/ddrps_v1_1/src -s include  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-
as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -n
ostartfiles -g -Wall -Wextra"

Running Make include in ps7_cortexa9_0/libsrc/dmaps_v2_6/src

make -C ps7_cortexa9_0/libsrc/devcfg_v3_6/src -s include  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi
-as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -
nostartfiles -g -Wall -Wextra"

Running Make include in ps7_cortexa9_0/libsrc/gpiops_v3_7/src

make -C ps7_cortexa9_0/libsrc/dmaps_v2_6/src -s include  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-
as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -n
ostartfiles -g -Wall -Wextra"

make -C ps7_cortexa9_0/libsrc/emacps_v3_11/src -s include  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eab
i-as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard 
-nostartfiles -g -Wall -Wextra"

make -C ps7_cortexa9_0/libsrc/gpiops_v3_7/src -s include  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi
-as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -
nostartfiles -g -Wall -Wextra"

Running Make include in ps7_cortexa9_0/libsrc/qspips_v3_7/src

make -C ps7_cortexa9_0/libsrc/qspips_v3_7/src -s include  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi
-as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -
nostartfiles -g -Wall -Wextra"

Running Make include in ps7_cortexa9_0/libsrc/scugic_v4_2/src

make -C ps7_cortexa9_0/libsrc/scugic_v4_2/src -s include  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi
-as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -
nostartfiles -g -Wall -Wextra"

Running Make include in ps7_cortexa9_0/libsrc/scutimer_v2_2/src

make -C ps7_cortexa9_0/libsrc/scutimer_v2_2/src -s include  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-ea
bi-as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard
 -nostartfiles -g -Wall -Wextra"

Running Make include in ps7_cortexa9_0/libsrc/scuwdt_v2_2/src

make -C ps7_cortexa9_0/libsrc/scuwdt_v2_2/src -s include  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi
-as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -
nostartfiles -g -Wall -Wextra"

Running Make include in ps7_cortexa9_0/libsrc/standalone_v7_2/src

Running Make include in ps7_cortexa9_0/libsrc/sdps_v3_9/src

make -C ps7_cortexa9_0/libsrc/standalone_v7_2/src -s include  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-
eabi-as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=ha
rd -nostartfiles -g -Wall -Wextra"

make -C ps7_cortexa9_0/libsrc/sdps_v3_9/src -s include  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-a
s" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -no
startfiles -g -Wall -Wextra"

Running Make include in ps7_cortexa9_0/libsrc/usbps_v2_5/src

Running Make include in ps7_cortexa9_0/libsrc/uartps_v3_9/src

Running Make include in ps7_cortexa9_0/libsrc/ttcps_v3_11/src

make -C ps7_cortexa9_0/libsrc/ttcps_v3_11/src -s include  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi
-as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -
nostartfiles -g -Wall -Wextra"

make -C ps7_cortexa9_0/libsrc/uartps_v3_9/src -s include  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi
-as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -
nostartfiles -g -Wall -Wextra"

make -C ps7_cortexa9_0/libsrc/usbps_v2_5/src -s include  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-
as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -n
ostartfiles -g -Wall -Wextra"

Running Make include in ps7_cortexa9_0/libsrc/xadcps_v2_4/src

make -C ps7_cortexa9_0/libsrc/xadcps_v2_4/src -s include  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi
-as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -
nostartfiles -g -Wall -Wextra"

Running Make include in ps7_cortexa9_0/libsrc/xilffs_v4_3/src

make -C ps7_cortexa9_0/libsrc/xilffs_v4_3/src -s include  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi
-as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -
nostartfiles -g -Wall -Wextra"

Running Make include in ps7_cortexa9_0/libsrc/xilrsa_v1_6/src

make -C ps7_cortexa9_0/libsrc/xilrsa_v1_6/src -s include  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi
-as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -
nostartfiles -g -Wall -Wextra"

Running Make libs in ps7_cortexa9_0/libsrc/coresightps_dcc_v1_7/src

Running Make libs in ps7_cortexa9_0/libsrc/ddrps_v1_1/src

Running Make libs in ps7_cortexa9_0/libsrc/cpu_cortexa9_v2_9/src

Running Make libs in ps7_cortexa9_0/libsrc/dmaps_v2_6/src

make -C ps7_cortexa9_0/libsrc/ddrps_v1_1/src -s libs  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-as"
 "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nost
artfiles -g -Wall -Wextra"

Running Make libs in ps7_cortexa9_0/libsrc/devcfg_v3_6/src

make -C ps7_cortexa9_0/libsrc/cpu_cortexa9_v2_9/src -s libs  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-e
abi-as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=har
d -nostartfiles -g -Wall -Wextra"

make -C ps7_cortexa9_0/libsrc/devcfg_v3_6/src -s libs  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-as
" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nos
tartfiles -g -Wall -Wextra"

Running Make libs in ps7_cortexa9_0/libsrc/emacps_v3_11/src

make -C ps7_cortexa9_0/libsrc/coresightps_dcc_v1_7/src -s libs  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-non
e-eabi-as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=
hard -nostartfiles -g -Wall -Wextra"

Running Make libs in ps7_cortexa9_0/libsrc/gpiops_v3_7/src

make -C ps7_cortexa9_0/libsrc/dmaps_v2_6/src -s libs  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-as"
 "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nost
artfiles -g -Wall -Wextra"

make -C ps7_cortexa9_0/libsrc/emacps_v3_11/src -s libs  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-a
s" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -no
startfiles -g -Wall -Wextra"

make -C ps7_cortexa9_0/libsrc/gpiops_v3_7/src -s libs  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-as
" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nos
tartfiles -g -Wall -Wextra"

Compiling cpu_cortexa9

Compiling ddrps

Compiling devcfg

Compiling dmaps

Compiling emacps

Compiling coresightps_dcc

Compiling gpiops

Running Make libs in ps7_cortexa9_0/libsrc/qspips_v3_7/src

make -C ps7_cortexa9_0/libsrc/qspips_v3_7/src -s libs  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-as
" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nos
tartfiles -g -Wall -Wextra"

Compiling qspips

Running Make libs in ps7_cortexa9_0/libsrc/scugic_v4_2/src

make -C ps7_cortexa9_0/libsrc/scugic_v4_2/src -s libs  "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-as
" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS=  -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nos
tartfiles -g -Wall -Wextra"

Compiling scugic

/home/m4rm/XILINX/Vitis/2020.1/gnu/aarch32/lin/gcc-arm-none-eabi/bin/../x86_64-oesdk-linux/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-ar.real: xdevcfg.o: No such file or directory
/home/m4rm/XILINX/Vitis/2020.1/gnu/aarch32/lin/gcc-arm-none-eabi/bin/../x86_64-oesdk-linux/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-ar.real: xgpiops.o: No such file or directory
make[1]: *** [Makefile:31: xgpiops_libs] Error 1
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/gpiops_v3_7/src/make.libs] Error 2
make: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:31: xdevcfg_libs] Error 1
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/devcfg_v3_6/src/make.libs] Error 2
/home/m4rm/XILINX/Vitis/2020.1/gnu/aarch32/lin/gcc-arm-none-eabi/bin/../x86_64-oesdk-linux/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-ar.real: xdmaps_g.o: No such file or directory
make[1]: *** [Makefile:31: xdmaps_libs] Error 1
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/dmaps_v2_6/src/make.libs] Error 2
/home/m4rm/XILINX/Vitis/2020.1/gnu/aarch32/lin/gcc-arm-none-eabi/bin/../x86_64-oesdk-linux/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-ar.real: xscugic_hw.o: No such file or directory
make[1]: *** [Makefile:31: scugic_libs] Error 1
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/scugic_v4_2/src/make.libs] Error 2
/home/m4rm/XILINX/Vitis/2020.1/gnu/aarch32/lin/gcc-arm-none-eabi/bin/../x86_64-oesdk-linux/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-ar.real: xqspips_g.o: No such file or directory
make[1]: *** [Makefile:31: xqspips_libs] Error 1
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/qspips_v3_7/src/make.libs] Error 2
/home/m4rm/XILINX/Vitis/2020.1/gnu/aarch32/lin/gcc-arm-none-eabi/bin/../x86_64-oesdk-linux/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-ar.real: xemacps_bdring.o: No such file or directory
make[1]: *** [Makefile:31: xemacps_libs] Error 1
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/emacps_v3_11/src/make.libs] Error 2
Failed to build  the bsp sources for domain - standalone_domain
Failed to generate the platform.
Reason: Failed to build the  zynq_fsbl application.
    invoked from within
"::tcf::eval -progress {apply {{msg} {puts $msg}}} {tcf_send_command tcfchan#0 xsdb eval s es {{platform active test1; platform generate }}}"
    (procedure "::tcf::send_command" line 4)
    invoked from within
"tcf send_command $::xsdb::curchan xsdb eval s es [list "platform active $PLATFORM_NAME; platform generate $target"]"
    invoked from within
"if { $iswindows == 1 } {    

    set XSDB_PORT [lindex $argv 0]
    set PLATFORM_NAME [lindex $argv 1]
    set arglen [llength $argv]
    set lastind..."
    (file "/home/m4rm/XILINX/Vitis/2020.1/scripts/vitis/util/buildplatform.tcl" line 11)

14:28:13 Build Finished (took 6s.383ms)

Error list:

Description	Resource	Path	Location	Type
make: *** [Makefile:29: executable.elf] Error 1	test1		 	C/C++ Problem
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/devcfg_v3_6/src/make.libs] Error 2	test1		 	C/C++ Problem
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/dmaps_v2_6/src/make.libs] Error 2	test1		 	C/C++ Problem
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/emacps_v3_11/src/make.libs] Error 2	test1		 	C/C++ Problem
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/gpiops_v3_7/src/make.libs] Error 2	test1		 	C/C++ Problem
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/qspips_v3_7/src/make.libs] Error 2	test1		 	C/C++ Problem
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/scugic_v4_2/src/make.libs] Error 2	test1		 	C/C++ Problem
make: *** Waiting for unfinished jobs....	test1		 	C/C++ Problem
make[1]: *** [Makefile:31: scugic_libs] Error 1	test1		 	C/C++ Problem
make[1]: *** [Makefile:31: xdevcfg_libs] Error 1	test1		 	C/C++ Problem
make[1]: *** [Makefile:31: xdmaps_libs] Error 1	test1		 	C/C++ Problem
make[1]: *** [Makefile:31: xemacps_libs] Error 1	test1		 	C/C++ Problem
make[1]: *** [Makefile:31: xgpiops_libs] Error 1	test1		 	C/C++ Problem
make[1]: *** [Makefile:31: xqspips_libs] Error 1	test1		 	C/C++ Problem
#pragma message: For the sleep routines, Global timer is being used	xtime_l.h	/test1/zynq_fsbl/zynq_fsbl_bsp/ps7_cortexa9_0/include	line 65	C/C++ Problem

 

 

I am concerned about the constant messages such as that is, leaving directories without making anything.

 

 

make[2]: Entering directory '/home/m4rm/VITIS_WORKSPACE/test1/zynq_fsbl/zynq_fsbl_bsp/ps7_cortexa9_0/libsrc/cpu_cortexa9_v2_9/s
rc'

make[2]: Leaving directory '/home/m4rm/VITIS_WORKSPACE/test1/zynq_fsbl/zynq_fsbl_bsp/ps7_cortexa9_0/libsrc/cpu_cortexa9_v2_9/sr
c'

 

 

 Can you suggest anything I can do to resolve this problem?

0 Kudos
6 Replies
Highlighted
Moderator
Moderator
195 Views
Registered: ‎09-12-2007

FSBL is a baremetal application. Dont use the ARCH linux compiler here

0 Kudos
Highlighted
Visitor
Visitor
148 Views
Registered: ‎10-03-2018

I am not sure what you mean by "Dont use the ARCH linux compiler here"... I am runnig VItis under Arch Linux and I am using arm-none-eabi-gcc. By the way the same works on my home arch linux pc.

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
113 Views
Registered: ‎10-06-2016

Hi @alex_vd 

First of all I would start stating that ArchLinux is not within the supported OSs for Vitis, so you need to take into account is not tested or verified at all.

Could you provide bit more details on how did you generate the issue? I mean, it seems that you are just building a platform project with a XSA that you created in Vivado for Zynq-7000 device. Is that right?

The initial error points out that FSBL application build issue, and specifically to the fact that the librsa library cannot be found in the BSP.

/home/m4rm/XILINX/Vitis/2020.1/gnu/aarch32/lin/gcc-arm-none-eabi/x86_64-oesdk-linux/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-ld.real: cannot find -lrsa
collect2.real: error: ld returned 1 exit status

In theory the BSP for the FSBL project should have the rsa library built but you can take a look to it by yourself. Prior building the platform (just after create) the BSP should include the xilrsa library. Once built, the static library should be within the libs directory.

image.png

Regards

 


Ibai
Don’t forget to reply, kudo, and accept as solution.
0 Kudos
Highlighted
Visitor
Visitor
106 Views
Registered: ‎10-03-2018

Thanks for your answer, unfortunately, I do not see librsa.a as it is shown on your screen.
In order to deal with the problem, I started over.
1)I launch Vitis using by using source ./settings64.sh, then Vitis in case something wrong with PATH.
2) I create a platform project using build-in in Vitis (fixed_hwplatforms folder) zed.xsa file(standalone OS)
3) clean project (just in case)
4) build project

Results:
Don't have librsa.a as well,
errors:

 

 

Compiling gpiops

/opt/Xilinx/Vitis/2020.1/gnu/aarch32/lin/gcc-arm-none-eabi/bin/../x86_64-oesdk-linux/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-ar.real: creating ../../../lib/libxil.a
/opt/Xilinx/Vitis/2020.1/gnu/aarch32/lin/gcc-arm-none-eabi/bin/../x86_64-oesdk-linux/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-ar.real: xcoresightpsdcc.o: No such file or directory
make[1]: *** [Makefile:31: coresightps_dcc_comp_libs] Error 1
make: *** [Makefile:29: ps7_cortexa9_0/libsrc/coresightps_dcc_v1_7/src/make.libs] Error 2
make: *** Waiting for unfinished jobs....
/opt/Xilinx/Vitis/2020.1/gnu/aarch32/lin/gcc-arm-none-eabi/bin/../x86_64-oesdk-linux/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-ar.real: xdevcfg.o: No such file or directory
make[1]: *** [Makefile:31: xdevcfg_libs] Error 1
make: *** [Makefile:29: ps7_cortexa9_0/libsrc/devcfg_v3_6/src/make.libs] Error 2
/opt/Xilinx/Vitis/2020.1/gnu/aarch32/lin/gcc-arm-none-eabi/bin/../x86_64-oesdk-linux/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-ar.real: xdmaps.o: No such file or directory
make[1]: *** [Makefile:31: xdmaps_libs] Error 1
make: *** [Makefile:29: ps7_cortexa9_0/libsrc/dmaps_v2_6/src/make.libs] Error 2
/opt/Xilinx/Vitis/2020.1/gnu/aarch32/lin/gcc-arm-none-eabi/bin/../x86_64-oesdk-linux/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-ar.real: xemacps_bdring.o: No such file or directory
make[1]: *** [Makefile:31: xemacps_libs] Error 1
make: *** [Makefile:29: ps7_cortexa9_0/libsrc/emacps_v3_11/src/make.libs] Error 2
/opt/Xilinx/Vitis/2020.1/gnu/aarch32/lin/gcc-arm-none-eabi/bin/../x86_64-oesdk-linux/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-ar.real: xgpiops.o: No such file or directory
make[1]: *** [Makefile:31: xgpiops_libs] Error 1
make: *** [Makefile:29: ps7_cortexa9_0/libsrc/gpiops_v3_7/src/make.libs] Error 2
Failed to build  the bsp sources for domain - standalone_domain
Failed to generate the platform.
Reason: Failed to build the  zynq_fsbl application.
    invoked from within
"::tcf::eval -progress {apply {{msg} {puts $msg}}} {tcf_send_command tcfchan#0 xsdb eval s es {{platform active test002; platform generate }}}"
    (procedure "::tcf::send_command" line 4)
    invoked from within
"tcf send_command $::xsdb::curchan xsdb eval s es [list "platform active $PLATFORM_NAME; platform generate $target"]"
    invoked from within
"if { $iswindows == 1 } {    

    set XSDB_PORT [lindex $argv 0]
    set PLATFORM_NAME [lindex $argv 1]
    set arglen [llength $argv]
    set lastind..."
    (file "/opt/Xilinx/Vitis/2020.1/scripts/vitis/util/buildplatform.tcl" line 11)

16:13:37 Build Finished (took 6s.627ms)

 

 


The same procedure, executed on home arch Linux successfully builds, as I mentioned earlier. It is such an odd situation.

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
78 Views
Registered: ‎10-06-2016

Hi @alex_vd 

Definitively is an odd issue. I would suggest to do some testing deselecting the "Generate boot components" in the platform creation wizard. Right now the platform contains two domains + the FSBL application, when deselecting the mentioned checkbox it will just contain a single BSP. If you are not able to build the platform that way, at least it should be easier to debug bit more as there is a single software stack that is being built.

Regards


Ibai
Don’t forget to reply, kudo, and accept as solution.
0 Kudos
Highlighted
Visitor
Visitor
32 Views
Registered: ‎10-03-2018

After creating a new platform and removing the mentioned option  (which contains a BSP, without any libs) I seemingly,  have the same errors:

Compiling qspips

/opt/Xilinx/Vitis/2020.1/gnu/aarch32/lin/gcc-arm-none-eabi/bin/../x86_64-oesdk-linux/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-ar.real: xcoresightpsdcc.o: No such file or directory
make[1]: *** [Makefile:31: coresightps_dcc_comp_libs] Error 1
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/coresightps_dcc_v1_7/src/make.libs] Error 2
make: *** Waiting for unfinished jobs....
/opt/Xilinx/Vitis/2020.1/gnu/aarch32/lin/gcc-arm-none-eabi/bin/../x86_64-oesdk-linux/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-ar.real: xdevcfg.o: No such file or directory
make[1]: *** [Makefile:31: xdevcfg_libs] Error 1
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/devcfg_v3_6/src/make.libs] Error 2
/opt/Xilinx/Vitis/2020.1/gnu/aarch32/lin/gcc-arm-none-eabi/bin/../x86_64-oesdk-linux/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-ar.real: xdmaps.o: No such file or directory
make[1]: *** [Makefile:31: xdmaps_libs] Error 1
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/dmaps_v2_6/src/make.libs] Error 2
/opt/Xilinx/Vitis/2020.1/gnu/aarch32/lin/gcc-arm-none-eabi/bin/../x86_64-oesdk-linux/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-ar.real: xqspips.o: No such file or directory
make[1]: *** [Makefile:31: xqspips_libs] Error 1
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/qspips_v3_7/src/make.libs] Error 2
/opt/Xilinx/Vitis/2020.1/gnu/aarch32/lin/gcc-arm-none-eabi/bin/../x86_64-oesdk-linux/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-ar.real: xemacps_bdring.o: No such file or directory
make[1]: *** [Makefile:31: xemacps_libs] Error 1
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/emacps_v3_11/src/make.libs] Error 2
/opt/Xilinx/Vitis/2020.1/gnu/aarch32/lin/gcc-arm-none-eabi/bin/../x86_64-oesdk-linux/usr/bin/arm-xilinx-eabi/arm-xilinx-eabi-ar.real: xgpiops.o: No such file or directory
make[1]: *** [Makefile:31: xgpiops_libs] Error 1
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/gpiops_v3_7/src/make.libs] Error 2

 

Description	Resource	Path	Location	Type
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/coresightps_dcc_v1_7/src/make.libs] Error 2	test03		 	C/C++ Problem
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/devcfg_v3_6/src/make.libs] Error 2	test03		 	C/C++ Problem
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/dmaps_v2_6/src/make.libs] Error 2	test03		 	C/C++ Problem
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/emacps_v3_11/src/make.libs] Error 2	test03		 	C/C++ Problem
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/gpiops_v3_7/src/make.libs] Error 2	test03		 	C/C++ Problem
make: *** [Makefile:30: ps7_cortexa9_0/libsrc/qspips_v3_7/src/make.libs] Error 2	test03		 	C/C++ Problem
make: *** Waiting for unfinished jobs....	test03		 	C/C++ Problem
make[1]: *** [Makefile:31: coresightps_dcc_comp_libs] Error 1	test03		 	C/C++ Problem
make[1]: *** [Makefile:31: xdevcfg_libs] Error 1	test03		 	C/C++ Problem
make[1]: *** [Makefile:31: xdmaps_libs] Error 1	test03		 	C/C++ Problem
make[1]: *** [Makefile:31: xemacps_libs] Error 1	test03		 	C/C++ Problem
make[1]: *** [Makefile:31: xgpiops_libs] Error 1	test03		 	C/C++ Problem
make[1]: *** [Makefile:31: xqspips_libs] Error 1	test03		 	C/C++ Problem
0 Kudos