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

cmake: pass static linkflags to the linker who links libcommon #19763

Merged
merged 1 commit into from Jan 4, 2018

Conversation

tchaikov
Copy link
Contributor

@tchaikov tchaikov commented Jan 3, 2018

Signed-off-by: Kefu Chai kchai@redhat.com

@tchaikov
Copy link
Contributor Author

tchaikov commented Jan 3, 2018

@tchaikov tchaikov requested a review from cbodley January 3, 2018 15:00
@tchaikov tchaikov added the DNM label Jan 3, 2018
@tchaikov
Copy link
Contributor Author

tchaikov commented Jan 3, 2018

the test still fails. see http://qa-proxy.ceph.com/teuthology/kchai-2018-01-03_15:09:09-rados-wip-kefu-testing-2018-01-03-2154-distro-basic-mira/2019863/teuthology.log

2018-01-03T16:06:27.777 INFO:teuthology.orchestra.run.mira056.stdout: ceph-test : Depends: libradosstriper1 but it is not going to be installed
2018-01-03T16:06:27.777 INFO:teuthology.orchestra.run.mira056.stdout:             Depends: libstdc++6 (>= 6) but 5.4.0-6ubuntu1~16.04.5 is to be installed

@cbodley
Copy link
Contributor

cbodley commented Jan 3, 2018

@tchaikov looking at the teuthology log i'm seeing failures like Depends: libstdc++6 (>= 6) but 5.4.0-6ubuntu1~16.04.5 is to be installed. is the issue that our binaries were still pulling in the shared libstdc++, and that was somehow being reflected in the deb dependencies?

@tchaikov
Copy link
Contributor Author

tchaikov commented Jan 3, 2018

@cbodley sadly, yes. that's exactly what i am trying to fix here.

@cbodley
Copy link
Contributor

cbodley commented Jan 3, 2018

okay - is this happening on master too? i see that your testing branch includes adam's update to c++17, but i'm not sure what else in there would cause this. i also don't see where we're enabling this WITH_STATIC_LIBSTDCXX option for our builds

@tchaikov
Copy link
Contributor Author

tchaikov commented Jan 4, 2018

@cbodley this is happening on master too. WITH_STATIC_LIBSTDCXX is enabled at https://github.com/ceph/ceph-build/blob/master/scripts/build_utils.sh#L510 .

Signed-off-by: Kefu Chai <kchai@redhat.com>
@tchaikov
Copy link
Contributor Author

tchaikov commented Jan 4, 2018

being tested at http://pulpito.ceph.com/kchai-2018-01-04_11:59:52-rados-wip-kefu-testing-2018-01-04-1836-distro-basic-smithi/ . the fix works.

@cbodley thanks for your reminder. i checked the flags passed to cmake, the WITH_STATIC_LIBSTDCXX was missing! ceph/ceph-build@182455d should address this issue.

@tchaikov tchaikov requested a review from liewegas January 4, 2018 13:56
Copy link
Contributor

@cbodley cbodley left a comment

Choose a reason for hiding this comment

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

tested and working locally WITH_STATIC_LIBSTDCXX=ON

@liewegas liewegas merged commit 4edaf0a into ceph:master Jan 4, 2018
@tchaikov tchaikov deleted the wip-cmake branch January 4, 2018 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants