-
Notifications
You must be signed in to change notification settings - Fork 302
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
DAOS-16826 build: Fix compiling issues in gcc 14 #15531
Conversation
Change-Id: Ie542b568eadc5052c76f8bd278f0c0e0545717ae
Ticket title is 'Fixed various compiling issue seen by latest gcc' |
Test stage Build on Leap 15.5 with Intel-C and TARGET_PREFIX completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15531/1/execution/node/372/log |
Test stage Build RPM on Leap 15.5 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15531/1/execution/node/273/log |
Test stage Build RPM on EL 9 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15531/1/execution/node/348/log |
Test stage Build RPM on EL 8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15531/1/execution/node/323/log |
Test stage Build DEB on Ubuntu 20.04 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15531/1/execution/node/326/log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks to have been released in August, Fedora is typically the most up-to-date distro but it looks to be using 13 still.
There are failures in CI on leap that will need addressing.
src/client/dfuse/il/intercept.h
Outdated
_Pragma("GCC diagnostic push") \ | ||
_Pragma("GCC diagnostic ignored \"-Wmissing-attributes\"") \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we've seen something along these lines before, what's the actual issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it was complaining about fseek64()
at https://codebrowser.dev/glibc/glibc/libio/stdio.h.html#780, where it has __nonnull((1))
attribute but ours doesn't have it.
BTW, I have gcc-13 installed as well, and it will hit the same issue; not sure why it can compile on Fedora . I'm using a Debian based system.
Test stage Build on Leap 15.5 with Intel-C and TARGET_PREFIX completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15531/2/execution/node/387/log |
Test stage Build RPM on Leap 15.5 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15531/2/execution/node/318/log |
Test stage Build RPM on EL 9 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15531/2/execution/node/366/log |
Test stage Build DEB on Ubuntu 20.04 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15531/2/execution/node/334/log |
Test stage Build RPM on EL 8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15531/2/execution/node/367/log |
Test stage Build on Leap 15.5 with Intel-C and TARGET_PREFIX completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15531/3/execution/node/387/log |
Test stage Build RPM on Leap 15.5 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15531/3/execution/node/336/log |
Test stage Build RPM on EL 9 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15531/3/execution/node/340/log |
Test stage Build RPM on EL 8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15531/3/execution/node/374/log |
Test stage Build DEB on Ubuntu 20.04 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15531/3/execution/node/349/log |
FYI the DAOS/NLT GHA is being fixed in #15538, which also requires the build fixes in this PR. |
src/client/dfuse/il/intercept.h
Outdated
/* clang-format off */ | ||
#define IOIL_FORWARD_DECL(type, name, params) \ | ||
_Pragma("GCC diagnostic push") \ | ||
_Pragma("GCC diagnostic ignored \"-Wmissing-attributes\"") \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this fails on leap 15 clang, probably doesn't like the particular warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might be able to fix it by also adding
_Pragma("GCC diagnostic ignored "-Wpragmas"")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another option here would be to fix the actual issue. If an attribute is required (and consistent), we could just add another argument to IOIL_FORWARD_DECL
Required-githooks: true Signed-off-by: Jeff Olivier <[email protected]>
Test stage Build on Leap 15.5 with Intel-C and TARGET_PREFIX completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15531/4/execution/node/387/log |
Test stage Build on Leap 15.5 with Intel-C and TARGET_PREFIX completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15531/5/execution/node/387/log |
Test stage Build RPM on Leap 15.5 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15531/5/execution/node/343/log |
Test stage Build RPM on EL 9 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15531/5/execution/node/338/log |
Test stage Build RPM on EL 8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15531/5/execution/node/372/log |
Required-githooks: true Signed-off-by: Jeff Olivier <[email protected]>
Required-githooks: true
Required-githooks: true Signed-off-by: Jeff Olivier <[email protected]>
Required-githooks: true Signed-off-by: Jeff Olivier <[email protected]>
@@ -4,6 +4,7 @@ | |||
|
|||
DESIRED_FLAGS = ['-fstack-usage', | |||
'-Wno-sign-compare', | |||
'-Wno-missing-attributes', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool. thanks for fixing it.
DAOS/NLT failure proven to be fixed by this PR + #15538 |
@daos-stack/client-api-owners @mchaarawi Any issue with this? |
* Fix compiling issues in gcc 14 Signed-off-by: Jinshan Xiong <[email protected]> Co-authored-by: Jeff Olivier <[email protected]>
* Fix compiling issues in gcc 14 Signed-off-by: Jinshan Xiong <[email protected]> Co-authored-by: Jeff Olivier <[email protected]>
@jolivier23 I think we need to backport this to 2.6, right? |
* Fix compiling issues in gcc 14 Signed-off-by: Jinshan Xiong <[email protected]> Co-authored-by: Jeff Olivier <[email protected]>
* Fix compiling issues in gcc 14 Signed-off-by: Jinshan Xiong <[email protected]> Co-authored-by: Jeff Olivier <[email protected]> Signed-off-by: Dalton Bohning <[email protected]>
* Fix compiling issues in gcc 14 Signed-off-by: Jinshan Xiong <[email protected]> Co-authored-by: Jeff Olivier <[email protected]> Signed-off-by: Dalton Bohning <[email protected]>
* Fix compiling issues in gcc 14 Signed-off-by: Jinshan Xiong <[email protected]> Co-authored-by: Jeff Olivier <[email protected]> Signed-off-by: Dalton Bohning <[email protected]>
* Fix compiling issues in gcc 14 Signed-off-by: Jinshan Xiong <[email protected]> Co-authored-by: Jeff Olivier <[email protected]>
* Fix compiling issues in gcc 14 Signed-off-by: Jinshan Xiong <[email protected]> Co-authored-by: Jeff Olivier <[email protected]> Signed-off-by: Dalton Bohning <[email protected]>
* Fix compiling issues in gcc 14 Signed-off-by: Jinshan Xiong <[email protected]> Co-authored-by: Dalton Bohning <[email protected]> Co-authored-by: Jeff Olivier <[email protected]>
This PR tends to fix the compilation issue we discovered in gcc 14. I have checked all the errors and I think they are legit.
Change-Id: Ie542b568eadc5052c76f8bd278f0c0e0545717ae
Before requesting gatekeeper:
Features:
(orTest-tag*
) commit pragma was used or there is a reason documented that there are no appropriate tags for this PR.Gatekeeper: