cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
1,827 Views
Registered: ‎09-13-2018

Vitis make: *** [makefile:38: package] Error 1

Greetings,

 

I am trying to build an application project on Vitis 2020.1 running on Windows but Vitis does not compile my project and gives the following error: make*** [makefile38: package] Error 1. 

You may find console and vitis logs below. Any suggestions would be appreciated.

 

Regards,

Ömer Faruk Çetinkaya

////////////////////////////// Console //////////////////////

10:13:55 **** Incremental Build of configuration Debug for project i2c_embedded_system ****
make all
Generating bif file for the system project
generate_system_bif.bat 55366 C:/Users/test/Desktop/OFC/Vitis/vitis_zcu104/export/vitis_zcu104/vitis_zcu104.xpfm standalone_domain C:/Users/test/Desktop/OFC/Vitis/i2c_embedded_system/Debug/system.bif
sdcard_gen --xpfm C:/Users/test/Desktop/OFC/Vitis/vitis_zcu104/export/vitis_zcu104/vitis_zcu104.xpfm --sys_config vitis_zcu104 --bif C:/Users/test/Desktop/OFC/Vitis/i2c_embedded_system/Debug/system.bif --no_bitstream --elf C:/Users/test/Desktop/OFC/Vitis/i2c_embedded/Debug/i2c_embedded.elf,psu_cortexa53_0
ELF does not exist: C:/Users/test/Desktop/OFC/Vitis/i2c_embedded/Debug/i2c_embedded.elf
make: *** [makefile:38: package] Error 1

10:13:59 Build Finished (took 4s.19ms)

 

 

//////////////////// Vitis Log //////////////////

 

09:51:48 DEBUG : Registering SDKStatusHandler to handle trace exceptions.
09:51:48 DEBUG : Registered the core plugin as the backup plugin for storing repository paths.
09:51:48 INFO : Registering command handlers for Vitis TCF services
09:51:48 INFO : Launching XSCT server: xsct.bat -n -interactive C:\Users\test\Desktop\OFC\Vitis\temp_xsdb_launch_script.tcl
09:51:51 INFO : Platform repository initialization has completed.
09:51:51 INFO : XSCT server has started successfully.
09:51:51 INFO : Successfully done setting XSCT server connection channel
09:51:51 INFO : plnx-install-location is set to ''
09:51:51 INFO : Successfully done setting workspace for the tool.
09:51:51 INFO : Successfully done query RDI_DATADIR
10:00:41 INFO : Result from executing command 'getProjects': vitis_zcu104
10:00:41 INFO : Result from executing command 'getPlatforms':
10:07:40 INFO : Result from executing command 'getProjects': vitis_zcu104
10:07:40 INFO : Result from executing command 'getPlatforms': vitis_zcu104|C:/Users/test/Desktop/OFC/Vitis/vitis_zcu104/export/vitis_zcu104/vitis_zcu104.xpfm
10:07:40 INFO : Checking for BSP changes to sync application flags for project 'i2c_embedded'...
10:09:17 INFO : Checking for BSP changes to sync application flags for project 'i2c_embedded'...
10:12:18 INFO : Checking for BSP changes to sync application flags for project 'i2c_embedded'...
10:13:47 INFO : Checking for BSP changes to sync application flags for project 'i2c_embedded'...

0 Kudos
8 Replies
stephenm
Moderator
Moderator
1,816 Views
Registered: ‎09-12-2007

It is failing to build the boot image as the elf file is not created. 

Can you do a build all? do you see issues with the elf build?

0 Kudos
1,803 Views
Registered: ‎09-13-2018

Dear Stephenm,

Please find build console infos below. According to messages I thought It was a path error but I have tried to handle spaces in file system ( "Program Files (x86)" etc.) with escape characters i.e. "\" character and it didn't work.My application has windows.h and direct.h headers so that I have to use Windows libraries which exist on the path C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um

None of my trials was successfully to handle this issue. 

 

 

08:39:32 **** Incremental Build of configuration Debug for project i2c_embedded ****
make all
'Building file: ../src/hardware.c'
'Invoking: ARM v8 gcc compiler'
aarch64-none-elf-gcc -Wall -O0 -g3 -IC:/Users/test/Desktop/OFC/Vitis/vitis_zcu104/export/vitis_zcu104/sw/vitis_zcu104/standalone_domain/bspinclude/include -I"C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um" -I"C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/ucrt" -c -fmessage-length=0 -MT"src/hardware.o" -MMD -MP -MF"src/hardware.d" -MT"src/hardware.d" -o "src/hardware.o" "../src/hardware.c"
aarch64-xilinx-elf-gcc.exe: error: Files: No such file or directory
aarch64-xilinx-elf-gcc.exe: error: (x86)/Windows: No such file or directory
aarch64-xilinx-elf-gcc.exe: error: Kits/10/Include/10.0.19041.0/um: No such file or directory
aarch64-xilinx-elf-gcc.exe: error: Files: No such file or directory
aarch64-xilinx-elf-gcc.exe: error: (x86)/Windows: No such file or directory
aarch64-xilinx-elf-gcc.exe: error: Kits/10/Include/10.0.19041.0/ucrt: No such file or directory
'Finished building: ../src/hardware.c'
' '
'Building file: ../src/i2c_core.c'
'Invoking: ARM v8 gcc compiler'
aarch64-none-elf-gcc -Wall -O0 -g3 -c -fmessage-length=0 -MT"src/i2c_core.o" -IC:/Users/test/Desktop/OFC/Vitis/vitis_zcu104/export/vitis_zcu104/sw/vitis_zcu104/standalone_domain/bspinclude/include -MMD -MP -MF"src/i2c_core.d" -MT"src/i2c_core.o" -o "src/i2c_core.o" "../src/i2c_core.c"
../src/i2c_core.c: In function 'ispProcessI2C':
../src/i2c_core.c:101:15: warning: unused variable 'iMovingAlgoIndex' [-Wunused-variable]
101 | unsigned int iMovingAlgoIndex = 0;
| ^~~~~~~~~~~~~~~~
../src/i2c_core.c:100:6: warning: unused variable 'iLoopCount' [-Wunused-variable]
100 | int iLoopCount = 0;
| ^~~~~~~~~~
../src/i2c_core.c:95:16: warning: unused variable 'ucState' [-Wunused-variable]
95 | unsigned char ucState = 0;
| ^~~~~~~
../src/i2c_core.c: In function 'ispVMRead':
../src/i2c_core.c:672:33: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
672 | if((InData = (unsigned char *) malloc((a_uiDataSize+7)/8+1)) == NULL)
| ^~~~~~
../src/i2c_core.c:672:33: warning: incompatible implicit declaration of built-in function 'malloc'
../src/i2c_core.c:18:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
17 | #include "opcode.h"
+++ |+#include <stdlib.h>
18 |
../src/i2c_core.c:674:35: warning: incompatible implicit declaration of built-in function 'malloc'
674 | if((ReadData = (unsigned char *) malloc((a_uiDataSize+7)/8+1)) == NULL)
| ^~~~~~
../src/i2c_core.c:674:35: note: include '<stdlib.h>' or provide a declaration of 'malloc'
../src/i2c_core.c:727:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
727 | free(InData);
| ^~~~
../src/i2c_core.c:727:3: warning: incompatible implicit declaration of built-in function 'free'
../src/i2c_core.c:727:3: note: include '<stdlib.h>' or provide a declaration of 'free'
../src/i2c_core.c:732:5: warning: incompatible implicit declaration of built-in function 'free'
732 | free(ReadData);
| ^~~~
../src/i2c_core.c:732:5: note: include '<stdlib.h>' or provide a declaration of 'free'
../src/i2c_core.c:751:5: warning: incompatible implicit declaration of built-in function 'free'
751 | free(ReadData);
| ^~~~
../src/i2c_core.c:751:5: note: include '<stdlib.h>' or provide a declaration of 'free'
../src/i2c_core.c:761:5: warning: incompatible implicit declaration of built-in function 'free'
761 | free(ReadData);
| ^~~~
../src/i2c_core.c:761:5: note: include '<stdlib.h>' or provide a declaration of 'free'
../src/i2c_core.c:851:3: warning: incompatible implicit declaration of built-in function 'free'
851 | free(ReadData);
| ^~~~
../src/i2c_core.c:851:3: note: include '<stdlib.h>' or provide a declaration of 'free'
../src/i2c_core.c:671:17: warning: unused variable 'TmpReadData' [-Wunused-variable]
671 | unsigned char *TmpReadData = NULL;
| ^~~~~~~~~~~
../src/i2c_core.c: In function 'ispVMSend':
../src/i2c_core.c:880:38: warning: incompatible implicit declaration of built-in function 'malloc'
880 | if((g_pucInData = (unsigned char *) malloc((a_uiDataSize+7)/8+1)) == NULL)
| ^~~~~~
../src/i2c_core.c:880:38: note: include '<stdlib.h>' or provide a declaration of 'malloc'
../src/i2c_core.c:936:4: warning: incompatible implicit declaration of built-in function 'free'
936 | free(g_pucInData);
| ^~~~
../src/i2c_core.c:936:4: note: include '<stdlib.h>' or provide a declaration of 'free'
../src/i2c_core.c:969:3: warning: incompatible implicit declaration of built-in function 'free'
969 | free(g_pucInData);
| ^~~~
../src/i2c_core.c:969:3: note: include '<stdlib.h>' or provide a declaration of 'free'
../src/i2c_core.c: In function 'ispVMLoop':
../src/i2c_core.c:1001:15: warning: unused variable 'uiDataSize' [-Wunused-variable]
1001 | unsigned int uiDataSize = 0;
| ^~~~~~~~~~
'Finished building: ../src/i2c_core.c'
' '
'Building file: ../src/i2c_main.c'
'Invoking: ARM v8 gcc compiler'
aarch64-none-elf-gcc -Wall -O0 -g3 -IC:/Users/test/Desktop/OFC/Vitis/vitis_zcu104/export/vitis_zcu104/sw/vitis_zcu104/standalone_domain/bspinclude/include -I"C:\Program/ Files/ (x86)\Windows/ Kits\10\Include\10.0.19041.0\ucrt" -I"C:\Program/ Files/ (x86)\Windows/ Kits\10\Include\10.0.19041.0\um" -c -fmessage-length=0 -MT"src/i2c_main.o" -MMD -MP -MF"src/i2c_main.d" -MT"src/i2c_main.d" -o "src/i2c_main.o" "../src/i2c_main.c"
aarch64-xilinx-elf-gcc.exe: error: Files/: No such file or directory
aarch64-xilinx-elf-gcc.exe: error: (x86)\Windows/: No such file or directory
aarch64-xilinx-elf-gcc.exe: error: Kits\10\Include\10.0.19041.0\ucrt: No such file or directory
aarch64-xilinx-elf-gcc.exe: error: Files/: No such file or directory
aarch64-xilinx-elf-gcc.exe: error: (x86)\Windows/: No such file or directory
aarch64-xilinx-elf-gcc.exe: error: Kits\10\Include\10.0.19041.0\um: No such file or directory
'Finished building: ../src/i2c_main.c'
' '
'Building target: i2c_embedded.elf'
'Invoking: ARM v8 gcc linker'
aarch64-none-elf-gcc -Wl,-T -Wl,../src/lscript.ld -LC:/Users/test/Desktop/OFC/Vitis/vitis_zcu104/export/vitis_zcu104/sw/vitis_zcu104/standalone_domain/bsplib/lib -o "i2c_embedded.elf" ./src/hardware.o ./src/i2c_core.o ./src/i2c_main.o -Wl,--start-group,-lxil,-lgcc,-lc,--end-group
aarch64-xilinx-elf-gcc.exe: error: ./src/hardware.o: No such file or directory
aarch64-xilinx-elf-gcc.exe: error: ./src/i2c_main.o: No such file or directory
'Finished building target: i2c_embedded.elf'
' '
'Invoking: ARM v8 Print Size'
aarch64-none-elf-size i2c_embedded.elf |tee "i2c_embedded.elf.size"
aarch64-none-elf-size: 'i2c_embedded.elf': No such file
'Finished building: i2c_embedded.elf.size'
' '

08:39:38 Build Finished (took 6s.335ms)

 

0 Kudos
1,789 Views
Registered: ‎09-13-2018

Dear Stephenm,

If you were mentioning about "build all" (CTRL + B or build all click.) to compile and build my C project, I would like to let you know that the output(log and error) that I have given already was "build all" output.  First, I have created platform project for zcu104 and then I have created application project. Then I have built them all with CTRL + B.

 

Regards,

Ömer Faruk Çetinkaya

0 Kudos
sbors
Visitor
Visitor
1,443 Views
Registered: ‎10-05-2017

I get exactly the same error mesage. Did you find a solution?

Berna

0 Kudos
1,380 Views
Registered: ‎06-16-2008

@omerfcetinkayagmail and @sbors

Have you tried

sudo apt install make

0 Kudos
1,368 Views
Registered: ‎09-13-2018

Hi, unfortunately problem exists still. 

0 Kudos
bruce_li
Visitor
Visitor
1,112 Views
Registered: ‎12-27-2017

Hi stephenm, I got the same problem. Any solutions ?

0 Kudos
velidurmuscan
Visitor
Visitor
481 Views
Registered: ‎03-25-2020

Hi, I am facing with the same problem in Vitis 2020.1. I have tried "build all", regenerating .xsa and .bit files, recreating project but none of them did work.

Did you find a solution? @omerfcetinkayagmail , @stephenm 

Last 2 lines of the console output in Vitis 2020.1 is like this:

 

ELF does not exist: C:/Users/.................................elf
make: *** [makefile:39: package] Error 1

 

0 Kudos