Project

General

Profile

Actions

Documentation #14070

closed

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

Added by Loïc Dachary over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
% 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
Actions #1

Updated by Josh Durgin over 8 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.

Actions #2

Updated by Nathan Cutler over 8 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.

Actions #3

Updated by Nathan Cutler over 8 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.

Actions #4

Updated by Nathan Cutler over 8 years ago

  • Status changed from In Progress to 4
  • Assignee changed from Nathan Cutler to Loïc Dachary
Actions #5

Updated by Nathan Cutler over 8 years ago

  • Status changed from 4 to Resolved
  • Assignee changed from Loïc Dachary to Nathan Cutler
Actions

Also available in: Atom PDF