cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jcortiz
Visitor
Visitor
170 Views
Registered: ‎11-25-2019

Vitis 2021.1 error Makefile

Hi everyone,

I have migrated my project to Vivado 2021 and I'm trying to build HW with Vitis 2021.1. This project is working with Vivado 2020.2 and Vitis 2020.2. However, I have problems with Makefiles.


I have seen this AR, but problem continues after doing what that AR says.

https://www.xilinx.com/support/answers/75527.html

This is the error:

"Compiling ARM_SYSTEM..."

arm-xilinx-eabi-gcc.exe: error: *.c: Invalid argument
arm-xilinx-eabi-gcc.exe: fatal error: no input files
compilation terminated.
make[2]: *** [Makefile:20: libs] Error 1
make[1]: *** [Makefile:46: ps7_cortexa9_0/libsrc/ARM_SYSTEM_v1_0/src/make.libs] Error 2
make: *** [Makefile:18: all] Error 2

This is my makefile:

COMPILER=
ARCHIVER=
CP=cp
COMPILER_FLAGS=
EXTRA_COMPILER_FLAGS=
LIB=libxil.a

RELEASEDIR=../../../lib
INCLUDEDIR=../../../include
INCLUDES=-I./. -I${INCLUDEDIR}

INCLUDEFILES=*.h
LIBSOURCES=*.c
OUTS = *.o
OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c)))
ASSEMBLY_OBJECTS = $(addsuffix .o, $(basename $(wildcard *.S)))

libs:
echo "Compiling ARM_SYSTEM..."
$(COMPILER) $(COMPILER_FLAGS) $(EXTRA_COMPILER_FLAGS) $(INCLUDES) $(LIBSOURCES)
$(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS} ${ASSEMBLY_OBJECTS}
make clean

include:
${CP} $(INCLUDEFILES) $(INCLUDEDIR)

clean:
rm -rf ${OBJECTS} ${ASSEMBLY_OBJECTS}

I have modified it in these paths:
- HW/hw/drivers/ARM_SYSTEM_v1_0/src/Makefile
- HW/ps7_cortexa9_0/standalone_ps7_cortexa9_0/bsp/ps7_cortexa9_0/libsrc/ARM_SYSTEM_v1_0/src/Makefile
- HW/ps7_cortexa9_0/standalone_ps7_cortexa9_1/bsp/ps7_cortexa9_1/libsrc/ARM_SYSTEM_v1_0/src/Makefile
- HW/zynq_fsbl/zynq_fsbl_bsp/ps7_cortexa9_0/libsrc/ARM_SYSTEM_v1_0/src/Makefile

Thanks for your reply!

0 Kudos
1 Reply
yzhang
Moderator
Moderator
85 Views
Registered: ‎05-11-2010

Can you upload your xsa file?

0 Kudos