Article ID: 000096218 Content Type: Error Messages Last Reviewed: 08/21/2023

Why does the setvars.sh script fail?

Environment

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Description

Due to a problem in the Intel® OneAPI Base Toolkit (Base Kit) version 2023.2 in the DevCloud Environment, you might see an error like this when running the setvars.sh script.

bash: eval:51: syntax error near unexpected token

This problem occurs when you have ( ) in the $PATH environment variable.

 

Resolution

To work around this problem, download and install the 2023.2.1 patch from the links below

  1. Determine where the 2023.2 oneAPI base toolkit is installed. The FPGA Add-on will be located inside of the toolkit installation directory in the ‘oclfpga’ folder.
    1. For Linux, this will be ‘<install-dir>/intel/oneapi/compiler/2023.2.0/linux/lib/oclfpga’, where <install-dir> is typically either ‘/opt’ or ‘~’.
    2. For Windows, this will usually be ‘C:\Program Files (x86)\Intel\oneAPI\compiler\2023.2.0\windows\lib\oclfpga’.
  2. Rename the existing ‘oclfpga’ directory to something else, e.g., ‘oclfpga.bak’ or ‘oclfpga.prev’.
  3. Unpack the given archive, .tar.gz for Linux and .zip for Windows, to extract the ‘oclfpga’ folder and place it in ‘intel/oneapi/compiler/2023.2.0/<platform>/lib’, where <platform> is either ‘windows’ or ‘Linux’ (see above).
  4. (Optional) Remove the backup folder created in Step ‘2’ after testing.

This problem is scheduled to be fixed in a future release of the Intel® OneAPI Base Toolkit (Base Kit).

Related Products

This article applies to 1 products

Intel® Programmable Devices