Xilinx / Vitis_Libraries

Vitis Libraries
https://docs.xilinx.com/r/en-US/Vitis_Libraries
Apache License 2.0
863 stars 349 forks source link

GCC version check does not work for GCC version 10.2 #67

Open goekce opened 3 years ago

goekce commented 3 years ago

I'm trying to build Vitis_Libraries/vision/L2/examples/resize. Following line does not work on newer GCC versions like 10.2.0:

https://github.com/Xilinx/Vitis_Libraries/blob/eff2d5dd627c8d6c7ef566567a96f263d2f801cc/vision/L2/examples/resize/utils.mk#L77

For example:

$ g++ -dumpversion 
10.2.0
$ expr 10 \>= 5
1
$ expr 10.2.0 \>= 5
0

On my computer, make TARGET=hw DEVICE=xc7z020-1clg400 outputs:

...
utils.mk:79: *** [ERROR]: g++ version older. Please use 5.0 or above.  Stop.

Workaround is to use the GCC shipped with the Vivado installation.

vt-lib-support commented 3 years ago

Hi, Thanks for reporting the issue!

We found the string produced by -dumpversion option may contain minor release and bug fix number or not depending on build-time configuration of GCC. We will implement a universal compiler version test in makefile.

All the best, Vitis Libraries