Bug #39995

rgw: make check is failing because of linker error on Ubuntu

Added by Tatjana Dehler 25 days ago. Updated 18 days ago.

Target version:
Start date:
Due date:
% Done:


3 - minor
Affected Versions:
Pull request ID:


It happens only on Ubuntu, CentOS is fine:

/usr/bin/ld: warning:, needed by //opt/ceph/lib/x86_64-linux-gnu/, not found (try using -rpath or -rpath-link)
//opt/ceph/lib/x86_64-linux-gnu/ undefined reference to `jump_fcontext'
//opt/ceph/lib/x86_64-linux-gnu/ undefined reference to `make_fcontext'
collect2: error: ld returned 1 exit status

Link Error: RGW library not found
  LINK test/unit/lib/iscsi/init_grp.c/init_grp_ut
src/pybind/rgw/CMakeFiles/cython_rgw.dir/build.make:57: recipe for target 'src/pybind/rgw/CMakeFiles/cython_rgw' failed
make[3]: *** [src/pybind/rgw/CMakeFiles/cython_rgw] Error 1
CMakeFiles/Makefile2:5456: recipe for target 'src/pybind/rgw/CMakeFiles/cython_rgw.dir/all' failed
make[2]: *** [src/pybind/rgw/CMakeFiles/cython_rgw.dir/all] Error 2


#2 Updated by Nathan Cutler 25 days ago

  • Related to Bug #39981: "source" not found added

#3 Updated by Nathan Cutler 25 days ago

Maybe this is the root cause? #39981

#4 Updated by Nathan Cutler 24 days ago

All of the console logs are from a single PR:

And "make check" just passed in that PR following merge of which is. . . a positive sign.

#6 Updated by Nathan Cutler 24 days ago

Still happening:

So I'm removing the related-to link to #39981.

#7 Updated by Nathan Cutler 24 days ago

  • Related to deleted (Bug #39981: "source" not found)

#9 Updated by Sebastian Wagner 24 days ago

  • Assignee set to Casey Bodley

(Ceasy, assigned to you, just to make you aware of this.)

#12 Updated by Casey Bodley 23 days ago

I set up a fresh bionic vm and was able to build master successfully. The ubuntu flavors of master and nautilus are still succeeding in It looks like the difference here is the use of WITH_SYSTEM_BOOST and the ceph-libboost-* packages.

From the logs of failures, I do see that cmake is able to find the boost context component:

-- Boost version: 1.67.0
-- Found the following Boost libraries:
--   atomic
--   chrono
--   thread
--   system
--   regex
--   random
--   program_options
--   date_time
--   iostreams
--   python27
--   context
--   coroutine
--   filesystem
--   timer

But the failure implies that isn't present under /opt/ceph/:

/usr/bin/ld: warning:, needed by //opt/ceph/lib/x86_64-linux-gnu/, not found (try using -rpath or -rpath-link)

#13 Updated by Casey Bodley 22 days ago

The logs of failures seem to be using xenial:

++ VERSION='16.04.4 LTS (Xenial Xerus)'

So I created a xenial vm and again built successfully with:

#14 Updated by Luis Henriques 22 days ago

Maybe just a shot in the dark, but can't the problem be in the libboost-* libs being installed? The "undefined reference" error occurs in, which is installed from some URL. Are these libs sane, or could they be already broken?

#15 Updated by Kefu Chai 20 days ago

td;dr ceph-libboost1.67-dev_1.67.0-7_amd64.deb was not sane.

long story,

  1. before was merged, we could consistently reproduce this issue.
  2. I tried to fix it by rebuilding the ceph-libboost* packages and uploading them to chacra. but i failed to reinstall them to all xenial builders.
  3. and re-running cannot help because:
  4. i reinstalled the new package of ceph-libboost1.67-dev_1.67.0-7_amd64.deb on all ubuntu builders by reissuing "retest this please" command to jenkins, and ensuring all ubuntu builders are running the build job of

#16 Updated by Nathan Cutler 19 days ago

  • Assignee changed from Casey Bodley to Kefu Chai

Thanks for fixing the issue, Kefu! Can this be marked Resolved now?

#17 Updated by Casey Bodley 19 days ago

  • Assignee changed from Kefu Chai to Casey Bodley

Thanks Kefu, you are my hero.

#18 Updated by Casey Bodley 18 days ago

  • Status changed from Verified to Resolved

Also available in: Atom PDF