Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in XRT build on Ubuntu 24.10 with default kernel Linux 6.11 #391

Open
jgmelber opened this issue Feb 25, 2025 · 1 comment
Open

Comments

@jgmelber
Copy link
Contributor

Test project /home/jmelber/xdna-driver/xrt/build/Release
      Start  1: xrt-smi
 1/29 Test  #1: xrt-smi .............................***Failed    0.00 sec
/home/jmelber/xdna-driver/xrt/build/Release/runtime_src/core/tools/xbutil2/xrt-smi: symbol lookup error: /home/jmelber/xdna-driver/xrt/build/Release/runtime_src/core/tools/xbutil2/xrt-smi: undefined symbol: _ZN8xrt_core3smi14get_smi_configB5cxx11Ev

      Start  2: xbmgmt2
 2/29 Test  #2: xbmgmt2 .............................***Failed    0.00 sec
/home/jmelber/xdna-driver/xrt/build/Release/runtime_src/core/tools/xbmgmt2/xbmgmt2: symbol lookup error: /home/jmelber/xdna-driver/xrt/build/Release/runtime_src/core/tools/xbmgmt2/xbmgmt2: undefined symbol: _ZN8xrt_core3smi14get_smi_configB5cxx11Ev

 3/29 Test  #3: python_binding ......................***Failed    0.10 sec
Traceback (most recent call last):
  File "/home/jmelber/xdna-driver/xrt/src/../tests/python/200_binding/200_main.py", line 16, in <module>
    import xrt_binding as xx
  File "/home/jmelber/xdna-driver/xrt/build/Release/opt/xilinx/xrt/python/xrt_binding.py", line 26, in <module>
    from xclbin_binding import *
  File "/home/jmelber/xdna-driver/xrt/build/Release/opt/xilinx/xrt/python/xclbin_binding.py", line 25, in <module>
    libc = ctypes.CDLL(os.environ['XILINX_XRT'] + "/lib/libxrt_core.so")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/ctypes/__init__.py", line 379, in __init__
    self._handle = _dlopen(self._name, mode)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: /home/jmelber/xdna-driver/xrt/build/Release/opt/xilinx/xrt/lib/libxrt_core.so: undefined symbol: _ZN8xrt_core3smi8smi_baseC2Ev

I encountered this after successfully fixing the errors reported here: Xilinx/XRT#8790

@maxzhen
Copy link
Collaborator

maxzhen commented Feb 25, 2025

You may have a different version of XRT installed on your build machine which is not compatible with the XRT in your workspace. See if you can successfully compile after removing the installed XRT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants