Project

General

Profile

Bug #55905

Failed to build rados.cpython-310-x86_64-linux-gnu.so

Added by Hualong Feng 6 months ago. Updated 6 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I build ceph on Ubuntu22.04, but I meet the error. And under my research, I found a way to solve the error, but I don't know why.

When I delete the line cmake/modules/Distutils.cmake+100, that is OPT="-DNDEBUG -g -fwrapv -O2 -w", ceph can build normally.
```
FAILED: lib/cython_modules/lib.3/rados.cpython-310-x86_64-linux-gnu.so /mnt/ceph/build/lib/cython_modules/lib.3/rados.cpython-310-x86_64-linux-gnu.so
cd /mnt/ceph/src/pybind/rados && env CC="/usr/bin/cc" CFLAGS="-fno-var-tracking-assignments" CPPFLAGS="-iquote/mnt/ceph/src/include -w -D'void0=dead_function(void)' -D'__Pyx_check_single_interpreter(ARG)=ARG ## 0'" CXX="/usr/bin/c++" LDSHARED="/usr/bin/cc -shared" OPT="-DNDEBUG -g -fwrapv -O2 -w" LDFLAGS=-L/mnt/ceph/build/lib CYTHON_BUILD_DIR=/mnt/ceph/build/src/pybind/rados CEPH_LIBDIR=/mnt/ceph/build/lib /usr/bin/python3.10 /mnt/ceph/src/pybind/rados/setup.py build --build-base /mnt/ceph/build/lib/cython_modules --build-platlib /mnt/ceph/build/lib/cython_modules/lib.3
running build
running build_ext
building 'rados' extension
C compiler: /usr/bin/cc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fno-var-tracking-assignments -iquote/mnt/ceph/src/include -w -Dvoid0=dead_function(void) -D__Pyx_check_single_interpreter(ARG)=ARG ## 0 -fPIC

compile options: '-I/usr/include/python3.10 -I/usr/include/python3.10 -c'
extra options: '-Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fno-var-tracking-assignments -iquote/mnt/ceph/src/include -w -Dvoid0=dead_function(void) -D__Pyx_check_single_interpreter(ARG)=ARG ## 0 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2'
cc: /mnt/ceph/build/src/pybind/rados/rados.c
cc: warning: ##: linker input file unused because linking not done
cc: error: ##: linker input file not found: No such file or directory
cc: warning: 0: linker input file unused because linking not done
cc: error: 0: linker input file not found: No such file or directory
error: Command "/usr/bin/cc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -w -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fno-var-tracking-assignments -iquote/mnt/ceph/src/include -w -Dvoid0=dead_function(void) -D__Pyx_check_single_interpreter(ARG)=ARG ## 0 -fPIC -I/usr/include/python3.10 -I/usr/include/python3.10 -c /mnt/ceph/build/src/pybind/rados/rados.c -o /mnt/ceph/build/lib/cython_modules/temp.linux-x86_64-3.10/mnt/ceph/build/src/pybind/rados/rados.o -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fno-var-tracking-assignments -iquote/mnt/ceph/src/include -w -Dvoid0=dead_function(void) -D__Pyx_check_single_interpreter(ARG)=ARG ## 0 -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2" failed with exit status 1

```

History

#1 Updated by Casey Bodley 6 months ago

  • Project changed from rgw to RADOS

Also available in: Atom PDF