AR# 69362

|

2017.1 - SDx - SDAccel tests fails on Ubuntu with $XILINX_SDX/runtime/include/1_2/CL/cl2.hpp:5638:1: error: expected identifier before ‘{’ token

描述

When running SDAccel tests on Ubuntu it fails with several errors:

/proj/xbuilds/2017.1_sdx_0509_1/installs/lin64/SDx/2017.1/runtime/include/1_2/CL/cl2.hpp:5638:1: error: expected identifier before { token
/proj/xbuilds/2017.1_sdx_0509_1/installs/lin64/SDx/2017.1/runtime/include/1_2/CL/cl2.hpp:5648:12: error: size_type does not name a type
static size_type size(const LocalSpaceArg& value)
{ return value.size_; }
^
/proj/xbuilds/2017.1_sdx_0509_1/installs/lin64/SDx/2017.1/runtime/include/1_2/CL/cl2.hpp:5659:7: error: cl::Local declared as an inline variable
Local(size_type size)
^
/proj/xbuilds/2017.1_sdx_0509_1/installs/lin64/SDx/2017.1/runtime/include/1_2/CL/cl2.hpp:5659:7: error: size_type was not declared in this scope

解决方案

The issue is caused by a new requirement to specify std=c+14 when using the new xcpp g+ wrapper.

This standard is apparently required to avoid compiler errors on some newer Ubuntu installs.

If the dialect is not otherwise specified in the GUI, the fix is to add this flag to the command line. 

The standard can still be overridden using the toolchain setup.

AR# 69362
日期 11/09/2018
状态 Active
Type 综合文章
Tools
People Also Viewed