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
Fix Windows build #45272
Fix Windows build #45272
Conversation
"dlfcn.h" is not available on Windows, so Ceph provides a drop-in replacement through "dlfcn_compat.h". The issue is that directly importing "dlfcn.h" fails at the moment, for which reason we'll simply add a file called "dlfcn.h" that includes "dlfcn_compat.h". Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
A recent commit [1] changed the way in which libceph-common is built. Previously, it was always built statically but now it uses the "CEPH_SHARED" flag. Static Windows builds are now failing. For now, we'll just revert the previous behavior and always build libceph-common dinamically on Windows. [1] 22fefb2 Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
/cc @djgalloway to raise awareness about the recent Windows build failures in the CI. Could you please help us ping the appropriate people to have this reviewed and merged ? |
jenkins test docs |
Hello @petrutlucian94, is this the failure that this PR is fixing? https://tracker.ceph.com/issues/54453 If so, can you link the tracker in your commit? |
Indeed, thanks for mentioning the tracker issue. |
@ljflores Forgive my ignorance but how can one fulfill the needs-qa tag? teuthology run? Any specific suite? |
@djgalloway thanks for asking. It's tricky because there's not a specific suite that covers this, but I see that the commit this PR reverts went through testing in the rados suite: #44321 (comment). I think it would be wise to test this one in the rados suite as well to ensure the same results. |
Okay. I'm building packages now. https://shaman.ceph.com/builds/ceph/wip-45272/ |
Only one job failure http://qa-proxy.ceph.com/teuthology/dgalloway-2022-03-09_02:34:58-rados-wip-45272-distro-basic-smithi/6727560/teuthology.log Could it be related to this change? |
One of the OSDs is down but it seems unrelated, in fact this change shouldn't affect Linux builds at all.
|
I'll take a look |
Yeah, definitely not related. |
@djgalloway I see this was already merged, I agree it's not related. Here is a summary of the other tracked failures: https://tracker.ceph.com/issues/45423 |
You rock. Thank you. |
Hi, I wondered if this PR should be backported to quincy to possibly solve the issue |
Definitely! The check was made required for both master and quincy. I'll do it. |
cheers! @idryomov |
Fix Windows build
The Windows build is currently failing because of the following issues:
[1] 22fefb2
Fixes: https://tracker.ceph.com/issues/54453
Signed-off-by: Lucian Petrut lpetrut@cloudbasesolutions.com