cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
677 Views
Registered: ‎08-01-2019

xclbinutil ERROR: unrecognied option '--target' (Alveo U280 Vitis 2020.1)

I am building one of the Vitis Accel Exampes on Vitis 2020.1 for Alveo U280 on Ubuntu 18.04. Building for Hardware Emulation gives me the following error.

INFO: [v++ 60-1443] [11:31:12] Run run_link: Step xclbinutil: Started
INFO: [v++ 60-1453] Command Line: xclbinutil --add-section DEBUG_DATA:RAW:/home/nikhil/vitis_nik20/nik/Emulation-HW/matmul.build/link/int/consolidated.cf --add-section BITSTREAM:RAW:/home/nikhil/vitis_nik20/nik/Emulation-HW/matmul.build/link/int/behav.xse --force --target hw_emu --key-value SYS:dfx_enable:false --add-section :JSON:/home/nikhil/vitis_nik20/nik/Emulation-HW/matmul.build/link/int/matmul.rtd --append-section :JSON:/home/nikhil/vitis_nik20/nik/Emulation-HW/matmul.build/link/int/appendSection.rtd --add-section CLOCK_FREQ_TOPOLOGY:JSON:/home/nikhil/vitis_nik20/nik/Emulation-HW/matmul.build/link/int/matmul_xml.rtd --add-section BUILD_METADATA:JSON:/home/nikhil/vitis_nik20/nik/Emulation-HW/matmul.build/link/int/matmul_build.rtd --add-section EMBEDDED_METADATA:RAW:/home/nikhil/vitis_nik20/nik/Emulation-HW/matmul.build/link/int/matmul.xml --add-section SYSTEM_METADATA:RAW:/home/nikhil/vitis_nik20/nik/Emulation-HW/matmul.build/link/int/systemDiagramModelSlrBaseAddress.json --output /home/nikhil/vitis_nik20/nik/Emulation-HW/matmul.xclbin
INFO: [v++ 60-1454] Run Directory: /home/nikhil/vitis_nik20/nik/Emulation-HW/matmul.build/link/run_link
ERROR: unrecognised option '--target'

 

INFO: [v++ 60-1442] [11:31:12] Run run_link: Step xclbinutil: Failed
Time (s): cpu = 00:00:00.02 ; elapsed = 00:00:00.03 . Memory (MB): peak = 1347.746 ; gain = 0.000 ; free physical = 20187 ; free virtual = 62504
ERROR: [v++ 60-661] v++ link run 'run_link' failed
ERROR: [v++ 60-626] Kernel link failed to complete
ERROR: [v++ 60-703] Failed to finish linking
INFO: [v++ 60-1653] Closing dispatch client.
make: *** [matmul.xclbin] Error 1
makefile:102: recipe for target 'matmul.xclbin' failed

 

 

Any recommendations to get rid of the error?

I have attached the entire log file here for reference

0 Kudos
9 Replies
Highlighted
Xilinx Employee
Xilinx Employee
645 Views
Registered: ‎10-19-2015

Hi @nikhil_vasant 

Does the project build for sw_emu or hw builds? 

The target option is valid so I'm wondering if this is just a hw_emu problem or an overall setup problem.

Have you installed the u280 development shell? 

Regards,

M

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Highlighted
Observer
Observer
594 Views
Registered: ‎08-01-2019

Thank you for the reply.

No the project does not build for sw_emu , hw_emu or hw.It gives me the same error.

And yes I have installed the U280 Development shell.

The same project builds and runs fine on Vitis 2019.2.

0 Kudos
Highlighted
Moderator
Moderator
583 Views
Registered: ‎11-04-2010

Hi, @nikhil_vasant ,

Have you sourced the xrt environment settings?

%source xrt/setup.sh

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Highlighted
Observer
Observer
509 Views
Registered: ‎08-01-2019

Yes have sourced the xrt environment settings but am still getting the same error.

Does Vitis 2020.1 need an updated seperate xrt installation? Am sourcing the same settings that were being used for 2019.2 builds.

0 Kudos
Highlighted
Contributor
Contributor
468 Views
Registered: ‎04-27-2018

Hi, @nikhil_vasant

Did you solve this issue? I'm experiencing the same thing after installing Vitis 2020.1 and building for U280. Copy&paste of the xclbinutil command from the log into command line terminal works fine but fails with --target error in GUI
0 Kudos
Highlighted
Moderator
Moderator
456 Views
Registered: ‎11-04-2010

Please update the XRT to the latest version and try again.

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
Highlighted
441 Views
Registered: ‎02-19-2019

Hi All,

I have the same  “ ERROR: unrecognised option '--target'” but on the ZCU104 dev board. If you find a solution please let us know.

Cheers,

Matt

0 Kudos
Highlighted
Observer
Observer
436 Views
Registered: ‎08-01-2019

So I did manage to resolve this issue with help from Xilinx support which basically involved doing exactly what @hongh has mentioned above.

I first tried installing the default xrt 2020 package from Xilinx but it failed due to some dependencies having incompatible versions on the Ubuntu system I am using.

So I downloaded the latest xrt repo from git and built it and installed the generated package.

Now Vitis 2020.1 for U280 development seems to be running fine.

Highlighted
Contributor
Contributor
405 Views
Registered: ‎04-27-2018

That's right, updating XRT solves the issue, thanks!
0 Kudos