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

Fixing XRT issue for Ubuntu 23.10 #7841

Merged
merged 4 commits into from
Dec 14, 2023

Conversation

haghilin
Copy link
Collaborator

@haghilin haghilin commented Dec 8, 2023

Problem solved by the commit:
There was compilation issues on Ubuntu 23.10 which was reported in issue #7806.

Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered
issue #7806

How problem was solved, alternative solutions (if any) and why they were rejected
Risks (if any) associated the changes in the commit
What has been tested and how, request additional testing if necessary

Signed-off-by: Homa Aghilinasab <haghilin@amd.com>
@haghilin
Copy link
Collaborator Author

haghilin commented Dec 8, 2023

Hi @keryell,
Thanks for the comment. I could also replicate the issue during the test on my side. We will work on fixing "dpkg-shlibdeps: error". I guess at the moment build is fine.

Thanks for reporting the issue

Signed-off-by: Homa Aghilinasab <haghilin@amd.com>
@gbuildx
Copy link
Collaborator

gbuildx commented Dec 8, 2023

Build failed :(

@haghilin
Copy link
Collaborator Author

haghilin commented Dec 8, 2023

retest this please!

Copy link
Collaborator

@stsoe stsoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@gbuildx
Copy link
Collaborator

gbuildx commented Dec 9, 2023

Build failed :(

Copy link
Member

@keryell keryell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. The compilation is good now.
Just remaining #7806 (comment)

@haghilin
Copy link
Collaborator Author

retest this please!

@gbuildx
Copy link
Collaborator

gbuildx commented Dec 11, 2023

Build failed :(

@stsoe
Copy link
Collaborator

stsoe commented Dec 12, 2023

retest this please

@gbuildx
Copy link
Collaborator

gbuildx commented Dec 12, 2023

Build failed :(

@haghilin
Copy link
Collaborator Author

retest this please

Signed-off-by: Homa Aghilinasab <haghilin@amd.com>
@keryell
Copy link
Member

keryell commented Dec 12, 2023

I have just tried and I still have

CMake Error at /usr/share/cmake-3.27/Modules/Internal/CPack/CPackDeb.cmake:348 (message):
  CPackDeb: dpkg-shlibdeps: 'dpkg-shlibdeps: error: no dependency information
  found for opt/xilinx/xrt/lib/libxdp_core.so.2 (used by
  ./opt/xilinx/xrt/lib/xrt/module/libxdp_hw_emu_pl_deadlock_plugin.so)

  Hint: check if the library actually comes from a package.

  ';

  executed command: '/usr/bin/dpkg-shlibdeps -O
  ./opt/xilinx/xrt/bin/mpd;./opt/xilinx/xrt/bin/msd;./opt/xilinx/xrt/bin/unwrapped/xbmgmt2;./opt/xilinx/xrt/bin/unwrapped/xbutil2;./opt/xilinx/xrt/bin/unwrapped/xclbinutil;./opt/xilinx/xrt/bin/xbflash.qspi;./opt/xilinx/xrt/lib/libsched_em.so.2.17.0;./opt/xilinx/xrt/lib/libsched_em_v30.so.2.17.0;./opt/xilinx/xrt/lib/libxdp_core.so.2.17.0;./opt/xilinx/xrt/lib/libxilinxopencl.so.2.17.0;./opt/xilinx/xrt/lib/libxma2api.so.2.17.0;./opt/xilinx/xrt/lib/libxma2plugin.so.2.17.0;./opt/xilinx/xrt/lib/libxrt++.so.2.17.0;./opt/xilinx/xrt/lib/libxrt_core.so.2.17.0;./opt/xilinx/xrt/lib/libxrt_coreutil.so.2.17.0;./opt/xilinx/xrt/lib/libxrt_hwemu.so.2.17.0;./opt/xilinx/xrt/lib/libxrt_noop.so.2.17.0;./opt/xilinx/xrt/lib/libxrt_swemu.so.2.17.0;./opt/xilinx/xrt/lib/xrt/module/libxdp_aie_profile_plugin.so;./opt/xilinx/xrt/lib/xrt/module/libxdp_aie_trace_plugin.so;./opt/xilinx/xrt/lib/xrt/module/libxdp_appdebug_plugin.so;./opt/xilinx/xrt/lib/xrt/module/libxdp_debug_plugin.so;./opt/xilinx/xrt/lib/xrt/module/libxdp_device_offload_plugin.so;./opt/xilinx/xrt/lib/xrt/module/libxdp_hal_api_interface_plugin.so;./opt/xilinx/xrt/lib/xrt/module/libxdp_hal_device_offload_plugin.so;./opt/xilinx/xrt/lib/xrt/module/libxdp_hal_plugin.so;./opt/xilinx/xrt/lib/xrt/module/libxdp_hw_emu_device_offload_plugin.so;./opt/xilinx/xrt/lib/xrt/module/libxdp_hw_emu_pl_deadlock_plugin.so;./opt/xilinx/xrt/lib/xrt/module/libxdp_lop_plugin.so;./opt/xilinx/xrt/lib/xrt/module/libxdp_native_plugin.so;./opt/xilinx/xrt/lib/xrt/module/libxdp_noc_plugin.so;./opt/xilinx/xrt/lib/xrt/module/libxdp_opencl_counters_plugin.so;./opt/xilinx/xrt/lib/xrt/module/libxdp_opencl_trace_plugin.so;./opt/xilinx/xrt/lib/xrt/module/libxdp_pl_deadlock_plugin.so;./opt/xilinx/xrt/lib/xrt/module/libxdp_power_plugin.so;./opt/xilinx/xrt/lib/xrt/module/libxdp_system_compiler_plugin.so;./opt/xilinx/xrt/lib/xrt/module/libxdp_user_plugin.so;./opt/xilinx/xrt/lib/xrt/module/libxdp_vart_plugin.so;./opt/xilinx/xrt/python/pyxrt.cpython-311-x86_64-linux-gnu.so';

@mamin506 suggested me it might be in @jvillarre backyard.

@gbuildx
Copy link
Collaborator

gbuildx commented Dec 12, 2023

Build failed :(

@dayeh-xilinx
Copy link

retest this please

@gbuildx
Copy link
Collaborator

gbuildx commented Dec 13, 2023

Build failed :(

Signed-off-by: Homa Aghilinasab <haghilin@amd.com>
@gbuildx
Copy link
Collaborator

gbuildx commented Dec 13, 2023

Build Passed!

@stsoe stsoe merged commit 283155b into Xilinx:master Dec 14, 2023
19 checks passed
@qberthet qberthet mentioned this pull request Dec 19, 2023
@dirksavage88
Copy link

Could this fix be backported to 2022.x?

@keryell
Copy link
Member

keryell commented Apr 22, 2024

Could this fix be backported to 2022.x?

@dirksavage88 You would probably need some other PRs too.
Is there an issue about using the latest XRT?

@dirksavage88
Copy link

dirksavage88 commented Apr 22, 2024

@keryell not the latest XRT, but 2022.1/2022.2 when using ubuntu 22.04 (which should be supported?) on kernel 6.5. Please see the full debug output attachment here: #8093

The original issue with ubuntu 23.10 resulted in a build fail during xocl. I am experiencing a similar build fail but it occurs randomly in the build process.

@keryell
Copy link
Member

keryell commented Apr 22, 2024

I was unclear. My question is : does the latest XRT from master branch works for you?
It should work up to 6.8 kernel. I run Ubuntu 23.10 and Linux 6.8.7.
Do you really need an obsolete XRT for some reason?

@dirksavage88
Copy link

master fails with this error:
/usr/bin/ld: cannot find -ludev: No such file or directory collect2: error: ld returned 1 exit status make[2]: *** [runtime_src/core/pcie/tools/cloud-daemon/CMakeFiles/mpd.dir/build.make:148: runtime_src/core/pcie/tools/cloud-daemon/mpd] Error 1 make[1]: *** [CMakeFiles/Makefile2:2591: runtime_src/core/pcie/tools/cloud-daemon/CMakeFiles/mpd.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs....

I am following the docs that say to use XRT version that matches the Vitis version (of which I am using Vitis 2022.1)

@keryell
Copy link
Member

keryell commented Apr 23, 2024

Usually recent XRT works with older Vitis. But you could give a try to Vitis 2023.2. :-)
https://github.com/Xilinx/XRT/blob/master/src/runtime_src/doc/toc/build.rst mentions https://github.com/Xilinx/XRT/blob/master/src/runtime_src/tools/scripts/xrtdeps.sh which installs a lot of requirement, including the libudev-dev package which seems to be missing on your system.

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

Successfully merging this pull request may close these issues.

None yet

7 participants