UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor rutabagazuma
Visitor
185 Views
Registered: ‎04-02-2019

VCU TRD linux vs windows compile issues

Jump to solution

I am having trouble compiling the VCU TRD, vcu_hdmitx_proj.tcl design in linux.

I have created 3 separate environments all operating on an unzipped version of the same file, rdf0428-zcu106-vcu-trd-2018-3.zip

One is a virtualBox VM running ubuntu 18.04.2

The other is a native install of ubuntu 18.04.2 on dedicated HW

The third is win 10.

The native ubuntu and VM ubuntu both fail in the same way during synthesis on the same two blocks; vcu_hdmitx_v_mix_0_0_synth_1 and vcu_hdmitx_v_frmbuf_rd_0_0_synth_1.  Both fail to find this ‘features.h’ file during the build as per the logs (attached).  The third run is in windows with the project located off a root folder with the name shortened considerably to save in path name length.

 

The windows build synthesizes without error.   What could be wrong with the linux versions of this build?  I don’t think it is the installation of vivado since it behaves the same way on both the VM and the native environments.  I switched to a native linux environment to avoid the path name length issue in windows....

What is a good next step here?

 

<snip>

****** Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC v2018.3 (64-bit)

  **** SW Build 2405991 on Thu Dec  6 23:36:41 MST 2018

  **** IP Build 2404404 on Fri Dec  7 01:43:56 MST 2018

    ** Copyright 1986-2018 Xilinx, Inc. All Rights Reserved.

 

source /tools/Xilinx/Vivado/2018.3/scripts/vivado_hls/hls.tcl -notrace

INFO: [HLS 200-10] Running '/tools/Xilinx/Vivado/2018.3/bin/unwrapped/lnx64.o/vivado_hls'

INFO: [HLS 200-10] For user 'paul' on host 'paul-ThinkStation-S30' (Linux_x86_64 version 4.18.0-17-generic) on Thu Apr 18 10:13:06 EDT 2019

INFO: [HLS 200-10] On os Ubuntu 18.04.2 LTS

INFO: [HLS 200-10] In directory '/media/sf_FPGA/FPGA/rdf0428-zcu106-vcu-trd-2018-3/pl/vcu_hdmitx/vcu_hdmitx.runs/vcu_hdmitx_v_mix_0_0_synth_1'

INFO: [HLS 200-10] Creating and opening project '/media/sf_FPGA/FPGA/rdf0428-zcu106-vcu-trd-2018-3/pl/vcu_hdmitx/vcu_hdmitx.runs/vcu_hdmitx_v_mix_0_0_synth_1/vcu_hdmitx_v_mix_0_0'.

INFO: [HLS 200-10] Adding design file '/media/sf_FPGA/FPGA/rdf0428-zcu106-vcu-trd-2018-3/pl/vcu_hdmitx/vcu_hdmitx.srcs/sources_1/bd/vcu_hdmitx/ip/vcu_hdmitx_v_mix_0_0/src/v_mix_config.h' to the project

INFO: [HLS 200-10] Adding design file '/media/sf_FPGA/FPGA/rdf0428-zcu106-vcu-trd-2018-3/pl/vcu_hdmitx/vcu_hdmitx.srcs/sources_1/bd/vcu_hdmitx/ip/vcu_hdmitx_v_mix_0_0/src/v_mix.cpp' to the project

WARNING: [HLS 200-40] In file included from /media/sf_FPGA/FPGA/rdf0428-zcu106-vcu-trd-2018-3/pl/vcu_hdmitx/vcu_hdmitx.srcs/sources_1/bd/vcu_hdmitx/ip/vcu_hdmitx_v_mix_0_0/src/v_mix.cpp:6:

In file included from /media/sf_FPGA/FPGA/rdf0428-zcu106-vcu-trd-2018-3/pl/vcu_hdmitx/vcu_hdmitx.srcs/sources_1/bd/vcu_hdmitx/ip/vcu_hdmitx_v_mix_0_0/src/v_mix.h:4:

In file included from /tools/Xilinx/Vivado/2018.3/common/technology/autopilot/hls_video.h:48:

In file included from /tools/Xilinx/Vivado/2018.3/common/technology/autopilot/hls/hls_axi_io.h:39:

In file included from /tools/Xilinx/Vivado/2018.3/common/technology/autopilot/ap_axi_sdata.h:86:

In file included from /tools/Xilinx/Vivado/2018.3/common/technology/autopilot/ap_int.h:55:

In file included from /tools/Xilinx/Vivado/2018.3/common/technology/autopilot/ap_int_base.h:72:

In file included from /tools/Xilinx/Vivado/2018.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/cstddef:42:

In file included from /tools/Xilinx/Vivado/2018.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/c++config.h:393:

/tools/Xilinx/Vivado/2018.3/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu/bits/os_defines.h:40:10: fatal error: 'features.h' file not found

#include <features.h>

         ^

1 error generated.

Compilation of the xilinx IP core '/media/sf_FPGA/FPGA/rdf0428-zcu106-vcu-trd-2018-3/pl/vcu_hdmitx/vcu_hdmitx.srcs/sources_1/bd/vcu_hdmitx/ip/vcu_hdmitx_v_mix_0_0/src/v_mix.cpp' failed

    while executing

"source [lindex $::argv 1] "

    ("uplevel" body line 1)

    invoked from within

"uplevel \#0 { source [lindex $::argv 1] } "

 

INFO: [Common 17-206] Exiting vivado_hls at Thu Apr 18 10:13:12 2019...

 

<snip>

0 Kudos
1 Solution

Accepted Solutions
Visitor rutabagazuma
Visitor
75 Views
Registered: ‎04-02-2019

Re: VCU TRD linux vs windows compile issues

Jump to solution

It is true, my Ubuntu environment was missing an essential linux library which included the features.h file.  Once I added this library, the error was corrected.

0 Kudos
2 Replies
Moderator
Moderator
94 Views
Registered: ‎05-31-2017

Re: VCU TRD linux vs windows compile issues

Jump to solution

Hi @rutabagazuma,

It seems to be an environment specific issue to me. So, Can you try installing the glibc-devel.x86_64 and glibc-utils.x86_64  packages on your ubuntu machine and check if it helps ?

Visitor rutabagazuma
Visitor
76 Views
Registered: ‎04-02-2019

Re: VCU TRD linux vs windows compile issues

Jump to solution

It is true, my Ubuntu environment was missing an essential linux library which included the features.h file.  Once I added this library, the error was corrected.

0 Kudos