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 compilation Issue on Ubuntu 23.10 (issue #7806) #7834

Conversation

haghilin
Copy link
Collaborator

@haghilin haghilin commented Dec 6, 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>
Signed-off-by: Homa Aghilinasab <haghilin@amd.com>
@keryell
Copy link
Member

keryell commented Dec 6, 2023

Just curious, why has it been closed?
I was so happy you solved my issue! :-)

@haghilin
Copy link
Collaborator Author

haghilin commented Dec 6, 2023

Hi Keryell,

Yeah, sorry by mistake I added 5 files without change to the commit so was trying to remove them from the PR. Will create the PR again shortly. :)

Thanks

@haghilin haghilin reopened this Dec 6, 2023
@haghilin haghilin added the Please do not Review This PR has been created only for internal review. label Dec 6, 2023
@keryell
Copy link
Member

keryell commented Dec 6, 2023

You can just reopen the PR and just force-push again onto the same branch instead.

@haghilin haghilin removed the Please do not Review This PR has been created only for internal review. label Dec 6, 2023
@haghilin
Copy link
Collaborator Author

haghilin commented Dec 6, 2023

Thanks Keryell for the help. I reverted the commit. It is now available for review.

@@ -64,6 +64,10 @@
#include <utility>
using namespace std::chrono_literals;

#ifdef __linux__
#pragma GCC diagnostic ignored "-Woverloaded-virtual"
Copy link
Member

Choose a reason for hiding this comment

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

Would it be possible to fix the root cause instead of make the compiler blind?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Would it be possible to fix the root cause instead of make the compiler blind?

The warning isn't applicable here. A base class (B) has virtual methods (overloaded) foo() and foo(int) and some derived classes (D) redefine only a subset of these (say foo(int), so D->foo() won't work, but B->foo(10) does and the objects are used only through B. The warning is too aggressive IMO.

@gbuildx
Copy link
Collaborator

gbuildx commented Dec 6, 2023

Build failed :(

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. Let's not disable the warning in header files, targeted few .cpp is okay. Else pragma push/pop.

Comment on lines +14 to +16
#ifdef __linux__
#pragma GCC diagnostic ignored "-Woverloaded-virtual"
#endif
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not in header file, that disables for all compilation units that end up including this file.

Comment on lines +29 to +31
#ifdef __linux__
#pragma GCC diagnostic ignored "-Wpessimizing-move"
#endif
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ditto.

Comment on lines +32 to +34
#ifdef __linux__
#pragma GCC diagnostic ignored "-Wpessimizing-move"
#endif
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ditto

@keryell
Copy link
Member

keryell commented Dec 7, 2023

Thanks. With your branch I can compile but I hit later this issue:

Run CPack packaging tool...
CPack: Create package using DEB
CPack: Install projects
CPack: - Run preinstall target for: XRT
CPack: - Install project: XRT []
CPack: -   Install component: aws
CPack: -   Install component: azure
CPack: -   Install component: container
CPack: -   Install component: xbflash
CPack: -   Install component: xbflash2
CPack: -   Install component: xrt
CPack: Create package
CPackDeb: - Generating dependency list
CPackDeb: - Generating dependency list
CPackDeb: - Generating dependency list
CPackDeb: - Generating dependency list
CPackDeb: - Generating dependency list
CPackDeb: - Generating dependency list
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_aie_trace_plugin.so)

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

  ';

  executed command: '/usr/bin/dpkg-shlibdeps -O
[...]

@haghilin
Copy link
Collaborator Author

haghilin commented Dec 8, 2023

This PR cannot be built due to long branch name. I created another PR #7841.
Thanks.

@haghilin haghilin closed this Dec 8, 2023
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

4 participants