cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer
Observer
643 Views
Registered: ‎11-22-2011

ERROR: Centos or RHEL release *and* XILINX_XRT not defined

Jump to solution

There is a bug - or at least an inconsistency in the 2018.3 setup.sh file located in /opt/xilinx/xrt directory and the Alveo user guide.  This setup.sh file gets sourced when sdx is launched.

Table 1 in the Alveo Getting Started guide - UG1301, states "Minimum System Requirements" and shows the following:

Table 1: UG1301Table 1: UG1301

The setup.sh file contains the following code. Note the "echo" statement in red below implies CentOS versions greater than 7.4 is acceptable, but the script fails for 7.5-1804:

alveo_code.png

DesignLinx servers are running 7.5-1804:

centos_versions.png

 

Since the script gets exited for an OS greater than 7.5 (flat), the XILINX_XRT environment variable also never gets set. If you already have the paths set correctly prior to launching SDAccel, it will launch but you will get subtle errors while running the tool without the XILINX_XRT variable being set.  

Solution:  You need to modify the setup.sh file to execute correctly.  Or contact DesignLinx for a modified script until a Xilinx representative provides an official setup.sh file fix. 

Note:  Xilinx should also update the user guide documentation and the setup.sh file to be consistent. 

 

Don St. Pierre - Director, Engineering Solutions
info@designlinxhs.com
www.designlinxhs.com
Tags (1)
0 Kudos
1 Solution

Accepted Solutions
Xilinx Employee
Xilinx Employee
614 Views
Registered: ‎03-24-2010

回复: ERROR: Centos or RHEL release *and* XILINX_XRT not defined

Jump to solution

From your description, OSREL equals something like "7.5****". Then it should not match the test '$OSREL != "7.5"*' . Note there's a "*" in the script.

What's your "OSDIST" and "OSREL" as flollowing script? 

OSDIST=`lsb_release -i |awk -F: '{print tolower($2)}' | tr -d ' \t'`
OSREL=`lsb_release -r |awk -F: '{print tolower($2)}' |tr -d ' \t'`

if [[ $OSDIST == "ubuntu" ]]; then
if [[ $OSREL != "16.04" ]] && [[ $OSREL != "18.04" ]]; then
echo "ERROR: Ubuntu release version must be 16.04 or later"
return 1
fi
fi

if [[ $OSDIST == "centos" ]] || [[ $OSDIST == "redhat"* ]]; then
if [[ $OSREL != "7.4"* ]] && [[ $OSREL != "7.5"* ]]; then
echo "ERROR: Centos or RHEL release version must be 7.4 or later"
return 1
fi
fi

Regards,
brucey
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

View solution in original post

2 Replies
Xilinx Employee
Xilinx Employee
615 Views
Registered: ‎03-24-2010

回复: ERROR: Centos or RHEL release *and* XILINX_XRT not defined

Jump to solution

From your description, OSREL equals something like "7.5****". Then it should not match the test '$OSREL != "7.5"*' . Note there's a "*" in the script.

What's your "OSDIST" and "OSREL" as flollowing script? 

OSDIST=`lsb_release -i |awk -F: '{print tolower($2)}' | tr -d ' \t'`
OSREL=`lsb_release -r |awk -F: '{print tolower($2)}' |tr -d ' \t'`

if [[ $OSDIST == "ubuntu" ]]; then
if [[ $OSREL != "16.04" ]] && [[ $OSREL != "18.04" ]]; then
echo "ERROR: Ubuntu release version must be 16.04 or later"
return 1
fi
fi

if [[ $OSDIST == "centos" ]] || [[ $OSDIST == "redhat"* ]]; then
if [[ $OSREL != "7.4"* ]] && [[ $OSREL != "7.5"* ]]; then
echo "ERROR: Centos or RHEL release version must be 7.4 or later"
return 1
fi
fi

Regards,
brucey
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

View solution in original post

Highlighted
Observer
Observer
580 Views
Registered: ‎11-22-2011

回复: ERROR: Centos or RHEL release *and* XILINX_XRT not defined

Jump to solution

IT said installed 7.5 but turns out was 7.6

Don St. Pierre - Director, Engineering Solutions
info@designlinxhs.com
www.designlinxhs.com
0 Kudos