Post Go back to editing

AD9361 no-os Windows build fail (SDK 2019.1, Vitis 2021.1) - missing xilinx header files

I am trying to build ADI's No-OS project for the AD9361 chip on Windows. I am using the following resources

  • NO-OS software: branch 2019_R2
  • system_top.hdf from ADI's HDL git repo: branch 2019_R2
  • Vivado 2019.1
  • SDK 2019.1
  • building no-OS/project/ad9361

The build process fails because the file "xil_io.h" is not found. Is it possible to just find this file somewhere and leave it in my project directory, or is there some bigger issue?

FYI, also tried building this using Vitis/Vivado 2021.1 and had similar issues, but was missing the following files:

  • xil_types.h
  • xstatus.h
  • xparameters_ps.h
  • xil_io.h

Here is the build output for 2019.1:

C:\Users\steenha\local\adi\no-OS\projects\ad9361>C:\Xilinx\SDK\2019.1\settings64.bat

C:\Users\steenha\local\adi\no-OS\projects\ad9361>make
[00:00:00] Building for xilinx
[00:00:00] Evaluating hardware: system_top.hdf
[00:00:00] Creating and configuring the IDE project
ambiguous command name "clean": clean_build clean_project
while executing
"clean -type all"
(procedure "_xsdk_project" line 21)
invoked from within
"_xsdk_project"
(procedure "create_project" line 8)
invoked from within
"$function"
(file "C:/Users/steenha/local/adi/no-OS/tools/scripts/platform/xilinx/util.tcl" line 279)
[00:00:00] Linking srcs to created project
[00:00:00] [CC] no_os_gpio.c
[00:00:00] [CC] no_os_irq.c
[00:00:00] [CC] no_os_spi.c
[00:00:00] [CC] axi_adc_core.c
[00:00:00] [CC] axi_dac_core.c
[00:00:00] [CC] axi_dmac.c
[00:00:00] [CC] axi_io.c
C:/Users/steenha/local/adi/no-OS/projects/ad9361/build/app/noos/drivers/platform/xilinx/axi_io.c:44:10: fatal error: xil_io.h: No such file or directory
#include <xil_io.h>
^~~~~~~~~~
compilation terminated.
make[1]: *** [../../tools/scripts/generic.mk:317: C:/Users/steenha/local/adi/no-OS/projects/ad9361/build/objs/ad9361/build/app/noos/drivers/platform/xilinx/axi_io.o] Error 1
make: *** [../../tools/scripts/generic.mk:295: all] Error 2

C:\Users\steenha\local\adi\no-OS\projects\ad9361>

 

C:\Users\steenha\local\adi\no-OS\projects\ad9361>C:\Xilinx\SDK\2019.1\settings64.bat

C:\Users\steenha\local\adi\no-OS\projects\ad9361>make
[00:00:00] Building for xilinx
[00:00:00] Evaluating hardware: system_top.hdf
[00:00:00] Creating and configuring the IDE project
ambiguous command name "clean": clean_build clean_project
    while executing
"clean -type all"
    (procedure "_xsdk_project" line 21)
    invoked from within
"_xsdk_project"
    (procedure "create_project" line 8)
    invoked from within
"$function"
    (file "C:/Users/steenha/local/adi/no-OS/tools/scripts/platform/xilinx/util.tcl" line 279)
[00:00:00]  Linking srcs to created project
[00:00:00] [CC] no_os_gpio.c
[00:00:00] [CC] no_os_irq.c
[00:00:00] [CC] no_os_spi.c
[00:00:00] [CC] axi_adc_core.c
[00:00:00] [CC] axi_dac_core.c
[00:00:00] [CC] axi_dmac.c
[00:00:00] [CC] axi_io.c
C:/Users/steenha/local/adi/no-OS/projects/ad9361/build/app/noos/drivers/platform/xilinx/axi_io.c:44:10: fatal error: xil_io.h: No such file or directory
 #include <xil_io.h>
          ^~~~~~~~~~
compilation terminated.
make[1]: *** [../../tools/scripts/generic.mk:317: C:/Users/steenha/local/adi/no-OS/projects/ad9361/build/objs/ad9361/build/app/noos/drivers/platform/xilinx/axi_io.o] Error 1
make: *** [../../tools/scripts/generic.mk:295: all] Error 2

C:\Users\steenha\local\adi\no-OS\projects\ad9361>

Build output for 2021.1 included here:

C:\Users\steenha\Perforce\steenha_AUSSTEENHALT01_digital-dra0\chips\dr\a0\fpga\fmcomms4\adi_no_OS_build\no-OS\projects\ad9361>C:\Xilinx\Vitis\2021.1\settings64.bat

C:\Users\steenha\Perforce\steenha_AUSSTEENHALT01_digital-dra0\chips\dr\a0\fpga\fmcomms4\adi_no_OS_build\no-OS\projects\ad9361>make
[00:00:00] Building for xilinx
[00:00:00] Evaluating hardware: system_top.hdf
[00:00:00] Creating and configuring the IDE project
ERROR: [Hsi 55-1433] Error boost::filesystem::copy_file: The system cannot find the path specified: "C:/Xilinx/Vitis/2021.1/data/embeddedsw\lib\bsp\standalone_v7_5/src\arm\ARMv8\64bit\platform\versal\armclang\translation_table.S", "C:\Users\steenha\Perforce\steenha_AUSSTEENHALT01_digital-dra0\chips\dr\a0\fpga\fmcomms4\adi_no_OS_build\no-OS\projects\ad9361\build\hw\zynq_fsbl\zynq_fsbl_bsp\ps7_cortexa9_0/libsrc/standalone_v7_5/src\arm\ARMv8\64bit\platform\versal\armclang\translation_table.S"
xcoresightpsdcc.c:42:10: fatal error: xil_types.h: No such file or directory
   42 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:29: ../../../lib/xcoresightpsdcc.o] Error 1
make[3]: *** [Makefile:45: ps7_cortexa9_0/libsrc/coresightps_dcc_v1_8/src/make.libs] Error 2
make[3]: *** Waiting for unfinished jobs....
In file included from xdevcfg.h:144,
                 from xdevcfg.c:66:
xdevcfg_hw.h:41:10: fatal error: xil_types.h: No such file or directory
   41 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:27: ../../../lib/xdevcfg.o] Error 1
make[4]: *** Waiting for unfinished jobs....
xdmaps.c:58:10: fatal error: xstatus.h: No such file or directory
   58 | #include "xstatus.h"
      |          ^~~~~~~~~~~
compilation terminated.
In file included from xdevcfg.h:144,
                 from  ake[4]: *** [Makefile:31: ../../../libxdevcfg_sinit.c:29/ dmaps.o] Error 1
:
ma e[4]: *** Waiting for unfinished jobs....
xdevcfg_hw.h:41:10: fatal error: xil_types.h: No such file or directory
   41 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:27: ../../../lib/xdevcfg_sinit.o] Error 1
In file included from xemacps_g.c:16:
../../../include/xparameters.h:19:10: fatal error: xparameters_ps.h: No such file or directory
   19 | #include "xparameters_ps.h"
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
xdmaps_sinit.c:28:10: fatal error: xstatus.h: No such file or directory
   28 | #include "xstatus.h"
      |          ^~~~~~~~~~~
compilation terminated.
In file included from xdevcfg.h:144,
                 from xdevcfg_selftest.c:30:
xdevcfg_hw.h:41:10: fatal error: xil_types.h: No such file or directory
   41 | #include "xil_types.h"
      |           ake[4]: *** [Makefile:31: ../../../lib/^~~~~~~~~~~~~x maps_sinit.o] Error 1

compilation terminated.
make[4]: *** [Makefile:27: ../../../lib/xdevcfg_selftest.o] Error 1
make[4]: *** [Makefile:make[3]: *** [Ma31: ../../../lib/xemacps_kefile:46: ps7_g.o] Errcortexa9_0/libsrcor 1
/devcfg_v3_7/src/make.libs] Error 2
make[4]: *** Waiting for unfinished jobs....
In file included from xemacps.c:41:
xemacps.h:326:10: fatal error: xil_types.h: No such file or directory
  326 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:31: ../../../lib/xemacps.o] Error 1
xdmaps_selftest.c:27:10: fatal error: xstatus.h: No such file or directory
   27 | #include "xstatus.h"
      |          ^~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:31: ../../../lib/xdmaps_selftest.o] Error 1
make[3]: *** [Makefile:46: ps7_cortexa9_0/libsrc/dmaps_v2_8/src/make.libs] Error 2
In file included from xgpiops.c:43:
xgpiops.h:111:10: fatal error: xstatus.h: No such file or directory
  111 | #include "xstatus.h"
      |          ^~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:29: ../../../lib/xgpiops.o] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from xemacps_sinit.c:29:
xemacps.h:326:10: fatal error: xil_types.h: No such file or directory
  326 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:31: ../../../lib/xemacps_sinit.o] Error 1
In file included from xgpiops_sinit.c:32:
xgpiops.h:111:10: fatal error: xstatus.h: No such file or directory
  111 | #include "xstatus.h"
      |          ^~~~~~~~~~~
compilation terminated.
In file included from xiic.c:66:
xiic.h:299:10: fatal error: xil_types.h: No such file or directory
  299 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:29: ../../../lib/xgpiops_sinit.o] Error 1
In file included from xemacps_intr.c:41:
 ake[4]: *** [Makefile:29: ../../../lib/xxemacps.h:326:10:ii .o] Error 1
 m ke[4]: *** Waiting for unfinished jobs....
fatal error: xil_types.h: No such file or directory
  326 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:31: ../../../lib/xemacps_intr.o] Error 1
make[3]: *** [Makefile:46: ps7_cortexa9_0/libsrc/emacps_v3_14/src/make.libs] Error 2
In file included from xiic_multi_master.c:37:
xiic.h:299:10: fatal error: xil_types.h: No such file or directory
  299 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:29: ../../../lib/xiic_multi_master.o] Error 1
xgpiops_selftest.c:35:10: fatal error: xstatus.h: No such file or directory
   35 | #include "xstatus.h"
      |          ^~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:29: ../../../lib/xgpiops_selftest.o] Error 1
xiic_sinit.c:34:10: fatal error: xstatus.h: No such file or directory
   34 | #include "xstatus.h"
      |          ^~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:29: ../../../lib/xiic_sinit.o] Error 1
In file included from xgpiops_hw.c:35:
xgpiops_hw.h:40:10: fatal error: xil_types.h: No such file or directory
   40 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
In file included from xiic_master.c:42:
xiic.h:299:10: fatal error: xil_types.h: No such file or directory
  299 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilatimake[4]: *** [Makefile:29: ../../../lib/xgpiops_hw.o] Error 1
on terminated.
make[3]: *** [Makefile:46: ps7_cortexa9_0/libsrc/gpiops_v3_9/src/make.libs] Error 2
make[4]: *** [Makefile:29: ../../../lib/xiic_master.o] Error 1
In file included from xiic_selftest.c:47:
xiic.h:299:10: fatal error: xil_types.h: No such file or directory
  299 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:29: ../../../lib/xiic_selftest.o] Error 1
make[3]: *** [Makefile:46: ps7_cortexa9_0/libsrc/iic_v3_8/src/make.libs] Error 2
make[2]: *** [Makefile:19: all] Error 2
xcoresightpsdcc.c:42:10: fatal error: xil_types.h: No such file or directory
   42 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
make[5]: *** [Makefile:29: ../../../lib/xcoresightpsdcc.o] Error 1
make[4]: *** [Makefile:45: ps7_cortexa9_0/libsrc/coresightps_dcc_v1_8/src/make.libs] Error 2
make[4]: *** Waiting for unfinished jobs....
In file included from xdevcfg.h:144,
                 from xdevcfg.c:66:
xdevcfg_hw.h:41:10: fatal error: xil_types.h: No such file or directory
   41 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
make[5]: *** [Makefile:27: ../../../lib/xdevcfg.o] Error 1
make[5]: *** Waiting for unfinished jobs....
In file included from xdevcfg.h:144,
                 from xdevcfg_sinit.c:29:
xdevcfg_hw.h:41:10: fatal error: xil_types.h: No such file or directory
   41 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
make[5]: *** [Makefile:27: ../../../lib/xdevcfg_sinit.o] Error 1
xdmaps.c:58:10: fatal error: xstatus.h: No such file or directory
   58 | #include "xstatus.h"
      |          ^~~~~~~~~~~
compilation terminated.
In file included from xemacps_g.c:16:
../../../include/xparameters.h:19:10: fatal error: xparameters_ps.h: No such file or directory
   19 | #include "xparameters_ps.h"
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from xdevcfg.h:144,
                 from xdevcfg_selftest.c:30:
xdevcfg_hw.h:41:10: fatal error: xil_types.h: No such file or directory
   41 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
make[5]: *** [Makefile:31: ../../../lib/xemacps_g.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: *** [Makefile:27: ../../../lib/xdevcfg_selftest.o] Error 1
xdmaps_sinit.c:28:10: fatal error: xstatus.h: No such file or directory
   28 | #include "xstatus.h"
      |          ^~~~~~~~~~~
compilation terminated.
In file included from ma  [5]: *** [Makefile:31: ../../../lib/xdmaps.o] Error 1
xemacps.c:41 ake[5]: *** Waiting for unfinished jobs....
:
 ake[5]: *** [Makefile:31: ../../../lib/xdmaps_sinit.o] Error 1
xemacps.h:326:10: fatal error: xil_types.h: No such file or directory
  326 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
make[5]: *** [Makefile:31: ../../../lib/xemacps.o] Error 1
In file included from xdevcfg_hw.c:26:
xdevcfg_hw.h:41:10: fatal error: xil_types.h: No such file or directory
   41 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
make[5]: *** [Makefile:27: ../../../lib/xdevcfg_hw.o] Error 1
make[4]: *** [Makefile:46: ps7_cortexa9_0/libsrc/devcfg_v3_7/src/make.libs] Error 2
In file included from xgpiops.c:43:
xgpiops.h:111:10: fatal error: xstatus.h: No such file or directory
  111 | #include "xstatus.h"
      |          ^~~~~~~~~~~
compilation terminated.
In file included from xiic.c:66:
xiic.h:299:10: fatal error: xil_types.h: No such file or directory
  299 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
make[5]: *** [Makefile:29: ../../../lib/xgpiops.o] Error 1
make[5]: *** Waiting for unfinished jobs....
In file included from xemacps_sinit.c:29:
xemacps.h:326:10: fatal error: xil_types.h: No such file or directory
  326 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
make[5]: *** [Makefile:29: ../../../lib/xiic.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: *** [Makefile:31: ../../../lib/xemacps_sinit.o] Error 1
make[4]: *** [Makefile:46: ps7_cortexa9_0/libsrc/emacps_v3_14/src/make.libs] Error 2
xdmaps_selftest.c:27:10: fatal error: xstatus.h: No such file or directory
   27 | #include "xstatus.h"
      |          ^~~~~~~~~~~
compilation terminated.
make[5]: *** [Makefile:31: ../../../lib/xdmaps_selftest.o] Error 1
make[4]: *** [Makefile:46: ps7_cortexa9_0/libsrc/dmaps_v2_8/src/make.libs] Error 2
In file included from xgpiops_sinit.c:32:
xgpiops.h:111:10: fatal error: xstatus.h: No such file or directory
  111 | #include "xstatus.h"
      |          ^~~~~~~~~~~
compilation terminated.
In file included from xiic_multi_master.c:37:
xiic.h:299:10: fatal error: xil_types.h: No such file or directory
  299 | #include  ake[5]: *** [Makefile:29: ../../../lib/xgpio"xil_types.h"p _sinit.o] Error 1

      |          ^~~~~~~~~~~~~
compilation terminated.
make[5]: *** [Makefile:29: ../../../lib/xiic_multi_master.o] Error 1
xgpiops_selftest.c:35:10: fatal error: xstatus.h: No such file or directory
   35 | #include "xstatus.h"
      |          ^~~~~~~~~~~
compilation terminated.
xiic_sinit.c:34:10: fatal error: xstatus.h: No such file or directory
   34 | #include "xstatus.h"
      |          m ke[5]: *** [Makefile:29: ../../../lib/xgpiops_selftest.o] Error 1
^~~~~~~~~~~
compilation terminated.
In file included from xiic_master.c:42:
xiic.h:299:10: fatal error: xil_types.h: No such file or directory
  299 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
make[5]: *** [Makefile:29: ../../../lib/xiic_sinit.o] Error 1
In file included from xgpiops_hw.c:35:
xgpiops_hw.h:40:10: fatal error: xil_types.h: No such file or directory
   40 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilatmake[5]: *** [Makefile:29: ../../../lib/xiic_master.o] Error 1
ion terminated.
make[4]: *** [Makefile:46: ps7_cortexa9_0/libsrc/iic_v3_8/src/make.libs] Error 2
make[5]: *** [Makefile:29: ../../../lib/xgpiops_hw.o] Error 1
make[4]: *** [Makefile:46: ps7_cortexa9_0/libsrc/gpiops_v3_9/src/make.libs] Error 2
make[3]: *** [Makefile:19: all] Error 2
make[2]: *** [Makefile:30: zynq_fsbl_bsp/ps7_cortexa9_0/lib/libxil.a] Error 2
xcoresightpsdcc.c:42:10: fatal error: xil_types.h: No such file or directory
   42 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:29: ../../../lib/xcoresightpsdcc.o] Error 1
make[3]: *** [Makefile:45: ps7_cortexa9_0/libsrc/coresightps_dcc_v1_8/src/make.libs] Error 2
make[3]: *** Waiting for unfinished jobs....
In file included from xdevcfg.h:144,
                 from xdevcfg.c:66:
xdevcfg_hw.h:41:10: fatal error: xil_types.h: No such file or directory
   41 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:27: ../../../lib/xdevcfg.o] Error 1
make[4]: *** Waiting for unfinished jobs....
xdmaps.c:58:10: fatal error: xstatus.h: No such file or directory
   58 | #include "xstatus.h"
      |          ^~~~~~~~~~~
compilation terminated.
In file included from xdevcfg.h:144,
                 from xdevcfg_sinit.c:29:
xdevcfg_hw.h:41:10: fatal error: xil_types.h: No such file or directory
   41 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:31: ../../../lib/xdmaps.o] Error 1
make[4]: *** Waiting for unfinished jmake[4]: *** [Makefile:27: ../../../lib/xdevcfg_sinit.o] Error 1
obs....
xdmaps_sinit.c:28:10: fatal error: xstatus.h: No such file or directory
   28 | #include "xstatus.h"
      |          ^~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:31: ../../../lib/xdmaps_sinit.o] Error 1
In file included from xemacps_g.c:16:
../../../include/xparameters.h:19:10: fatal error: xparameters_ps.h: No such file or directory
   19 | #include "xparameters_ps.h"
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from xdevcfg.h:144,
                 from xdevcfg_selftest.c:30:
xdevcfg_hw.h:41:10: fatal error: xil_types.h: No such file or directory
   41 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
xdmaps_selftest.c:27:10: fatal error: xstatus.h: No such file or directory
   27 | #include "xstatus.h"
      |          m ke[4]: *** [Makefile:27: .^~~~~~~~~~~. ../../lib/xdevcfg_selfte
st.o] Errorc 1
ompilation terminated.
In file included from xemacps.c:41make[3]: *** [Make:
fi e:46: ps7_corxemacps.h:326:10:t xa9_0/libsrc/devcfg_v3_7/src/ ma e[4]: *** [Makefile:31: ../../../lifatal error: m ke.libs] Error 2
b/xemacps_g.o] Error 1
make[4]: *** [Makefile:31: ../../../lib/xdmaps_selftest.o] Error 1
mxil_types.h: No such file or directory
  326 | #include ake 4]: *** Waiting for "xil_types.h"un inished jobs....

      |          ^~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:31: ../../../lib/xemacps.o] Error 1
In file included from xgpiops.c:43:
xgpiops.h:111:10: fatal error: xstatus.h: No such file or directory
  111 | #include "xstatus.h"
      |          ^~~~~~~~~~~
compilation terminated.
In file included from xdmaps_g.c:16:
../../../include/xparameters.h:19:10: fatal error: xparameters_ps.h: No such file or directory
   19 | #include "xparameters_ps.h"
      |          ^~~~~~~~~~~~~~~~~~
compilmake[4]: *** [Makefaile:29: .t./../../libi/xgpiops.o] Error 1
omake[4]: *** Waiting for unfinished jobs....
n terminated.
make[4]: *** [Makefile:31: ../../../lib/xdmaps_g.o] Error 1
In file included from xiic.c:66:
xiic.h:299:10: fatal error: xil_types.h: No such file or directory
  299 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilmake[3]: *** [Makefile:46: ps7_cortexa9_0/libsrc/dmaapts_v2_8/src/makei.liobsn] Error 2
 terminated.
In file included from xgpiops_sinit.c:32:
xgpiops.h:111:10: ma e[4]: *** [Makefile:29: ../../../lib/xiic.o] Errorfatal error:  1
xstatus.h: No such file or directory
  111 | #include m ke[4"xstatus.h"]  *** Waiting for unfinished jobs....

      |          ^~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:29: ../../../lib/xgpiops_sinit.o] Error 1
In file included from xemacps_sinit.c:29:
xemacps.h:326:10: fatal error: xil_types.h: No such file or directory
  326 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:31: ../../../lib/xemacps_sinit.o] Error 1
make[3]: *** [Makefile:46: ps7_cortexa9_0/libsrc/emacps_v3_14/src/make.libs] Error 2
In file included from xiic_multi_master.c:37:
xiic.h:299:10: fatal error: xil_types.h: No such file or directory
  299 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
xgpiops_selftest.c:35:10: fatal error: xstatus.h: No such file or directory
   35 | #include "xstatus.h"
      |          ^~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:29: ../../../lib/xiic_multi_master.o] Error 1
make[4]: *** [Makefile:29: ../../../lib/xgpiops_selftest.o] Error 1
xiic_sinit.c:34:10: fatal error: xstatus.h: No such file or directory
   34 | #include "xstatus.h"
      |          ^~~~~~~~~~~
compilation terminated.
In file included from xgpiops_hw.c:35:
xgpiops_hw.h:40:10: fatal error: xil_types.h: No such file or directory
   40 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~
compilation terminated.make[4]: *** [Makefile:29: ../../../lib/xiic_sinit.o] Error 1

make[4]: *** [Makefile:29: ../../../lib/xgpiops_hw.o] Error 1
In file included from xiic_master.c:42:
xiic.h:299:10: fatal error: xil_types.h: No such file or directory
  299 | #include "xil_types.h"
      |          ^~~~~~~~~~~~~ma e[3]: ***
[Makefile:46: ps7_cortexa9_0/libsrc/gpiops_v3_9/src/make.libs] Error 2
compilation terminated.
make[4]: *** [Makefile:29: ../../../lib/xiic_master.o] Error 1
make[3]: *** [Makefile:46: ps7_cortexa9_0/libsrc/iic_v3_8/src/make.libs] Error 2
make[2]: *** [Makefile:19: all] Error 2
Failed to build  the bsp sources for domain - bsp
Failed to generate the platform.
Reason: Failed to build the  zynq_fsbl application.
    while executing
"builtin_platform -generate full"
    (procedure "::scw::platform" line 542)
    invoked from within
"::scw::platform generate"
    (procedure "::sdk::createapp" line 76)
    invoked from within
"sdk createapp                                                   -name app                                              -hwproject hw                                            -proc $cpu                                              -os standalone                                          -lang C                                                         -app {Empty Application}                                -bsp bsp"
    (procedure "_xsdk_project" line 10)
    invoked from within
"_xsdk_project"
    (procedure "create_project" line 8)
    invoked from within
"$function"
    (file "C:/Users/steenha/Perforce/steenha_AUSSTEENHALT01_digital-dra0/chips/dr/a0/fpga/fmcomms4/adi_no_OS_build/no-OS/tools/scripts/platform/xilinx/util.tcl" line 279)
[00:00:00]  Linking srcs to created project
[00:00:00] [CC] no_os_gpio.c
[00:00:00] [CC] no_os_irq.c
[00:00:00] [CC] no_os_spi.c
[00:00:00] [CC] axi_adc_core.c
[00:00:00] [CC] axi_dac_core.c
[00:00:00] [CC] axi_dmac.c
[00:00:00] [CC] axi_io.c
C:/Users/steenha/Perforce/steenha_AUSSTEENHALT01_digital-dra0/chips/dr/a0/fpga/fmcomms4/adi_no_OS_build/no-OS/projects/ad9361/build/app/noos/drivers/platform/xilinx/axi_io.c:44:10: fatal error: xil_io.h: No such file or directory
   44 | #include <xil_io.h>
      |          ^~~~~~~~~~
compilation terminated.
make[1]: *** [../../tools/scripts/generic.mk:317: C:/Users/steenha/Perforce/steenha_AUSSTEENHALT01_digital-dra0/chips/dr/a0/fpga/fmcomms4/adi_no_OS_build/no-OS/projects/ad9361/build/objs/ad9361/build/app/noos/drivers/platform/xilinx/axi_io.o] Error 1
make: *** [../../tools/scripts/generic.mk:295: all] Error 2

C:\Users\steenha\Perforce\steenha_AUSSTEENHALT01_digital-dra0\chips\dr\a0\fpga\fmcomms4\adi_no_OS_build\no-OS\projects\ad9361>cd C:\Users\steenha\local\adi\no-OS\projects\ad9361

C:\Users\steenha\local\adi\no-OS\projects\ad9361>make
[00:00:00] Building for xilinx
[00:00:00] Evaluating hardware: system_top.hdf
[00:00:00] Creating and configuring the IDE project
xtime_l.c:45:9: note: '#pragma message: For the sleep routines, Global timer is being used'
   45 | #pragma message ("For the sleep routines, Global timer is being used")
      |         ^~~~~~~
arm-none-eabi-ar: creating ps7_cortexa9_0/lib/libxil.a
xtime_l.c:45:9: note: '#pragma message: For the sleep routines, Global timer is being used'
   45 | #pragma message ("For the sleep routines, Global timer is being used")
      |         ^~~~~~~
arm-none-eabi-ar: creating ps7_cortexa9_0/lib/libxil.a
Empty Application is not valid application template name
 use repo -apps to get the available templates
    while executing
"error "$params(template) is not valid application template name\n use repo -apps to get the available templates""
    (procedure "app" line 275)
    invoked from within
"app create -name $params(name) -lang $params(lang) -template $params(app) -platform $platform_name -domain $domain_name"
    (procedure "::sdk::createapp" line 93)
    invoked from within
"sdk createapp                                                   -name app                                              -hwproject hw                                            -proc $cpu                                              -os standalone                                          -lang C                                                         -app {Empty Application}                                -bsp bsp"
    (procedure "_xsdk_project" line 10)
    invoked from within
"_xsdk_project"
    (procedure "create_project" line 8)
    invoked from within
"$function"
    (file "C:/Users/steenha/local/adi/no-OS/tools/scripts/platform/xilinx/util.tcl" line 279)
[00:00:00]  Linking srcs to created project
[00:00:00] [CC] no_os_gpio.c
[00:00:00] [CC] no_os_irq.c
[00:00:00] [CC] no_os_spi.c
[00:00:00] [CC] axi_adc_core.c
[00:00:00] [CC] axi_dac_core.c
[00:00:00] [CC] axi_dmac.c
[00:00:00] [CC] axi_io.c
C:/Users/steenha/local/adi/no-OS/projects/ad9361/build/app/noos/drivers/platform/xilinx/axi_io.c:44:10: fatal error: xil_io.h: No such file or directory
   44 | #include <xil_io.h>
      |          ^~~~~~~~~~
compilation terminated.
make[1]: *** [../../tools/scripts/generic.mk:317: C:/Users/steenha/local/adi/no-OS/projects/ad9361/build/objs/ad9361/build/app/noos/drivers/platform/xilinx/axi_io.o] Error 1
make: *** [../../tools/scripts/generic.mk:295: all] Error 2

C:\Users\steenha\local\adi\no-OS\projects\ad9361>



added txt file for 2019.1 build output
[edited by: AbeSteez at 8:40 PM (GMT -4) on 1 Apr 2022]
  • From the logs you posted, it could be that there is something wrong with the .hdf generation, either bad sources or bad build process. Can you please detail how exactly you built that .hdf ?

  • I built the hdf using the Building HDL guide. I used windows, with the Cygwin terminal so that I could run 'make'. From there, I just copied the .hdf file that was generated into my no-os project directory and tried to build there.

  • I just performed a build on no-OS 2019_R2 branch under projects/ad9361 using an adrv9361z7035_ccfmc_lvds 2019_R2 hdf and the build went fine.


    Can you please provide me the .hdf you produced ? I will attempt a build on my side with it and report back.

  • Hmm, interesting.I built this using the Building HDL guide(I linked above) and built for the Zedboard & fmcomms2 system. I have both the Zed and ZC706, but the build for my zc706 is not working for some reason.
    Here is my system_top.hdf, found in the fmcomms2_zed.sdk folder:
    ADI_repo/system_top.hdf at main · AbrahamSteenhoek/ADI_repo (github.com)

  • I just performed a build using your .hdf on a Linux OS with XSDK 2019.1.
    The project builds fine so it seems there is no obvious problem with the hdf.

    The culprit could then be the environment. Either there is something wrong in the Windows Path environment variable or (in my opinion even more likely) you might have a bad installation of SDK 2019.1 and might need to reinstall. See if you have xil_io.h file in your SDK instlalation directory. Here's an output that I got when searching for that file.


    By the way, I think trying to build projects with Vitis and .hdf won't work. We only support .xsa when using Vitis builds and to use Vitis you'd need to be on master branch anyway.

    $ make TINYIIOD=y
    [09:06:23] Building for xilinx
    [09:06:23] Evaluating hardware: system_top.hdf
    [09:06:28] Creating and configuring the IDE project
    [09:06:59]  Linking srcs to created project
    [09:06:59] [CC] axi_adc_core.c
    [09:07:00] [CC] axi_dac_core.c
    [09:07:00] [CC] axi_dmac.c
    [09:07:00] [CC] gpio.c
    [09:07:01] [CC] axi_io.c
    [09:07:01] [CC] delay.c
    [09:07:01] [CC] irq.c
    [09:07:01] [CC] uart.c
    [09:07:01] [CC] xilinx_gpio.c
    [09:07:01] [CC] xilinx_spi.c
    [09:07:02] [CC] ad9361.c
    [09:07:05] [CC] ad9361_api.c
    [09:07:06] [CC] ad9361_conv.c
    [09:07:06] [CC] ad9361_util.c
    [09:07:06] [CC] spi.c
    /home/dari/Work/no-OS2/projects/ad9361/build/app/noos/drivers/spi/spi.c: In function 'spi_transfer':
    /home/dari/Work/no-OS2/projects/ad9361/build/app/noos/drivers/spi/spi.c:98:11: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
      int32_t  ret;
               ^~~
    [09:07:06] [CC] iio_ad9361.c
    [09:07:07] [CC] iio_axi_adc.c
    [09:07:07] [CC] iio_axi_dac.c
    [09:07:08] [CC] iio.c
    [09:07:08] [CC] parser.c
    [09:07:08] [CC] tinyiiod.c
    [09:07:09] [CC] main.c
    [09:07:09] [CC] fifo.c
    [09:07:09] [CC] list.c
    [09:07:10] [CC] util.c
    [09:07:10] [LD] axi_adc_core.o axi_dac_core.o axi_dmac.o gpio.o axi_io.o delay.o irq.o uart.o xilinx_gpio.o xilinx_spi.o ad9361.o ad9361_api.o ad9361_conv.o ad9361_util.o spi.o iio_ad9361.o iio_axi_adc.o iio_axi_dac.o iio.o parser.o tinyiiod.o main.o fifo.o list.o util.o
    make[2]: Nothing to be done for 'post_build'.
    [09:06:23] Done (build/ad9361.elf)
    
    $ md5sum system_top.hdf 
    d4ac61d5dced8c4179a64199dc2ff7d9  system_top.hdf

  • Thanks for looking into this. My main problem is with running this on Windows (my environment requires it). I do see the xil_io.h file in all of the standalone_X folders:

    I've tried reinstalling my tools, and sourcing the following settings scripts:

    • C:\Xilinx\Vivado\2019.1\settings64.bat
    • C:\Xilinx\SDK\2019.1\settings64.bat

    And then changing my CWD to the relevant project, as advised by the no-OS build guide, and ran make, but the same error came up.

    I also tried running with TINYIIOD=y, but then the "iio.h" file was missing:

    C:\Users\steenha\local\adi\no-OS\projects\ad9361>make TINYIIOD=y
    [00:00:00] Building for xilinx
    [00:00:00] Evaluating hardware: system_top.hdf
    [00:00:00] Creating and configuring the IDE project
    ambiguous command name "clean": clean_build clean_project
        while executing
    "clean -type all"
        (procedure "_xsdk_project" line 21)
        invoked from within
    "_xsdk_project"
        (procedure "create_project" line 8)
        invoked from within
    "$function"
        (file "C:/Users/steenha/Perforce/steenha_AUSSTEENHALT01_digital-dra0/chips/dr/a0/fpga/fmcomms4/adi_no_OS_build/no-OS/tools/scripts/platform/xilinx/util.tcl" line 279)
    [00:00:00]  Linking srcs to created project
    [00:00:00] [CC] no_os_gpio.c
    [00:00:00] [CC] no_os_irq.c
    [00:00:00] [CC] no_os_spi.c
    [00:00:00] [CC] axi_adc_core.c
    [00:00:00] [CC] axi_dac_core.c
    [00:00:00] [CC] axi_dmac.c
    [00:00:00] [CC] iio_axi_adc.c
    C:/Users/steenha/Perforce/steenha_AUSSTEENHALT01_digital-dra0/chips/dr/a0/fpga/fmcomms4/adi_no_OS_build/no-OS/projects/ad9361/build/app/noos/drivers/axi_core/iio_axi_adc/iio_axi_adc.c:50:10: fatal error: iio.h: No such file or directory
     #include "iio.h"
              ^~~~~~~
    compilation terminated.
    make[1]: *** [../../tools/scripts/generic.mk:317: C:/Users/steenha/Perforce/steenha_AUSSTEENHALT01_digital-dra0/chips/dr/a0/fpga/fmcomms4/adi_no_OS_build/no-OS/projects/ad9361/build/objs/ad9361/build/app/noos/drivers/axi_core/iio_axi_adc/iio_axi_adc.o] Error 1
    make: *** [../../tools/scripts/generic.mk:295: all] Error 2
    
    C:\Users\steenha\Perforce\steenha_AUSSTEENHALT01_digital-dra0\chips\dr\a0\fpga\fmcomms4\adi_no_OS_build\no-OS\projects\ad9361>https://wiki.analog.com/resources/no-os/build

    UPDATE: I did find a linux machine to run this on, and had the same issue with not finding the "xil_io.h" file.

  • Hello,

    Are you using cygwin to build the no-Os project too?

    If so, can you try building it with Powershell or CMD?

  • I have been using Cygwin to build the HDL, and CMD(run as admin) to build the no-OS project.

    I tried in powershell, but it does not work because 'xsct' is not found in the powershell environment.

    I tried in Cygwin, but running 'make' makes the terminal unresponsive, and the make command never completes.

    UPDATE: I've been able to build this using the Xilinx SDK GUI application by copy-pasting the necessary .c and .h files (very messy process), but am still having the same issues with the 'make' flow, both in linux and windows. I am using the same 'system_top.hdf' file for my Xilinx SDK builds.

  • I tried in powershell, but it does not work because 'xsct' is not found in the powershell environment.

    xsct is only found after running the settings64.bat file

    I tried in Cygwin, but running 'make' makes the terminal unresponsive, and the make command never completes.

    ok, that's kind of expected, don't use cygwin for no-OS build, it'd unsupported and untested

    still having the same issues with the 'make' flow, both in linux and windows

    can you share the `echo $PATH` on linux ? before and after running `source [...]/settings64.sh`

  • For the prototyping that I'm doing, I think building with the Xilinx SDK GUI is sufficient. If I need to pursue the 'make' flow further, then I will definitely reach out. Thanks for your help.