Project

General

Profile

Documentation #14070

admin/build-doc fails to build because of -lrbd

Added by Loic Dachary about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
Start date:
12/13/2015
Due date:
% Done:

0%

Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

On a virgin ubuntu 14.04 the hack to get the fake librbd does not appear to be working.

admin/build-doc
Top Level States:  ['RecoveryMachine']
New python executable in ./virtualenv/bin/python
Installing setuptools, pip...done.
Unpacking /opt/ceph/src/pybind
  Running setup.py (path:/tmp/pip-jxyi_l-build/setup.py) egg_info for package from file:///opt/ceph/src/pybind

Installing collected packages: rbd
  Running setup.py install for rbd
    Compiling rbd.pyx because it changed.
    Cythonizing rbd.pyx
    building 'rbd' extension
    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -iquote /opt/ceph/build-doc/../src/include -iquote /opt/ceph/build-doc/../src/include -fPIC -I/usr/include/python2.7 -c rbd.c -o build/temp.linux-x86_64-2.7/rbd.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -L./virtualenv/lib -Wl,--no-as-needed -iquote /opt/ceph/build-doc/../src/include -iquote /opt/ceph/build-doc/../src/include build/temp.linux-x86_64-2.7/rbd.o -lrbd -o build/lib.linux-x86_64-2.7/rbd.so
    /usr/bin/ld: cannot find -lrbd
    collect2: error: ld returned 1 exit status
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    Complete output from command /opt/ceph/build-doc/virtualenv/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-jxyi_l-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-B6Kp8_-record/install-record.txt --single-version-externally-managed --compile --install-headers /opt/ceph/build-doc/virtualenv/include/site/python2.7:
    Compiling rbd.pyx because it changed.

Cythonizing rbd.pyx

running install

running build

running build_ext

building 'rbd' extension

creating build

creating build/temp.linux-x86_64-2.7

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -iquote /opt/ceph/build-doc/../src/include -iquote /opt/ceph/build-doc/../src/include -fPIC -I/usr/include/python2.7 -c rbd.c -o build/temp.linux-x86_64-2.7/rbd.o

creating build/lib.linux-x86_64-2.7

x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -L./virtualenv/lib -Wl,--no-as-needed -iquote /opt/ceph/build-doc/../src/include -iquote /opt/ceph/build-doc/../src/include build/temp.linux-x86_64-2.7/rbd.o -lrbd -o build/lib.linux-x86_64-2.7/rbd.so

/usr/bin/ld: cannot find -lrbd

collect2: error: ld returned 1 exit status

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /opt/ceph/build-doc/virtualenv/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-jxyi_l-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-B6Kp8_-record/install-record.txt --single-version-externally-managed --compile --install-headers /opt/ceph/build-doc/virtualenv/include/site/python2.7 failed with error code 1 in /tmp/pip-jxyi_l-build
Storing debug log for failure in /root/.pip/pip.log

Associated revisions

Revision eadc771d (diff)
Added by Nathan Cutler about 3 years ago

doc: Update list of admin/build-doc dependencies

http://tracker.ceph.com/issues/14070 Fixes: #14070

Signed-off-by: Nathan Cutler <>

History

#1 Updated by Josh Durgin about 3 years ago

Odd, this worked before on gitbuilder-doc, which I had to upgrade to trusty to get a recent cython. I'll check what's different when gitbuilder-doc is accessible again.

#2 Updated by Nathan Cutler about 3 years ago

  • Status changed from New to In Progress
  • Assignee set to Nathan Cutler

Compared to what is documented at http://docs.ceph.com/docs/master/dev/generatedocs/#install-the-required-tools we now need the following additional packages to be installed in the documentation build environment: cython and librbd-dev.

#3 Updated by Nathan Cutler about 3 years ago

  • Tracker changed from Bug to Documentation

Note that this isn't a problem with gitbuilder-doc. The problem is that the instructions in http://docs.ceph.com/docs/master/dev/generatedocs/ were not updated when https://github.com/ceph/ceph/commit/5113c962 was merged.

#4 Updated by Nathan Cutler about 3 years ago

  • Status changed from In Progress to Feedback
  • Assignee changed from Nathan Cutler to Loic Dachary

#5 Updated by Nathan Cutler about 3 years ago

  • Status changed from Feedback to Resolved
  • Assignee changed from Loic Dachary to Nathan Cutler

Also available in: Atom PDF