Project

General

Profile

Actions

Bug #24606

closed

error build ceph-13.2.0 for i586

Added by Alexey Shabalin almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
build
Target version:
% Done:

0%

Source:
Tags:
Backport:
Regression:
Yes
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Hello.
I can not build ceph for x86 32-bit system.
Error:


[ 48%] Building CXX object src/osd/CMakeFiles/osd.dir/PrimaryLogPG.cc.o
cd /usr/src/RPM/BUILD/ceph-13.2.0/build/src/osd && /usr/bin/c++  -DCEPH_LIBDIR=\"/usr/lib\" -DCEPH_PKGLIBDIR=\"/usr/lib/ceph\" -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D__linux__ -I/usr/src/RPM/BUILD/ceph-13.2.0/build/src/include -I/usr/src/RPM/BUILD/ceph-13.2.0/src -isystem /usr/src/RPM/BUILD/ceph-13.2.0/build/include -I/usr/include/nss -I/usr/include/nspr -isystem /usr/src/RPM/BUILD/ceph-13.2.0/src/xxHash -isystem /usr/src/RPM/BUILD/ceph-13.2.0/src/rapidjson/include -I/usr/src/RPM/BUILD/ceph-13.2.0/src/dmclock/src -I/usr/src/RPM/BUILD/ceph-13.2.0/src/dmclock/support/src -isystem /usr/src/RPM/BUILD/ceph-13.2.0/src/googletest/googletest/include  -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -Wall -Wtype-limits -Wignored-qualifiers -Winit-self -Wpointer-arith -Werror=format-security -fno-strict-aliasing -fsigned-char -Wno-unknown-pragmas -rdynamic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -ftemplate-depth-1024 -Wnon-virtual-dtor -Wno-unknown-pragmas -Wstrict-null-sentinel -Woverloaded-virtual -fno-new-ttp-matching -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fdiagnostics-color=auto -I/usr/include -O2 -g  -fPIC   -DHAVE_CONFIG_H -D__CEPH__ -D_REENTRANT -D_THREAD_SAFE -D__STDC_FORMAT_MACROS -std=c++1z -o CMakeFiles/osd.dir/PrimaryLogPG.cc.o -c /usr/src/RPM/BUILD/ceph-13.2.0/src/osd/PrimaryLogPG.cc
/usr/src/RPM/BUILD/ceph-13.2.0/src/osd/PrimaryLogPG.cc: In member function 'virtual void PrimaryLogPG::calc_trim_to()':
/usr/src/RPM/BUILD/ceph-13.2.0/src/osd/PrimaryLogPG.cc:1632:38: error: no matching function for call to 'min(size_t, uint64_t&)'
       cct->_conf->osd_pg_log_trim_max);
                                      ^
In file included from /usr/include/c++/7/algorithm:61:0,
                 from /usr/include/boost/core/swap.hpp:25,
                 from /usr/include/boost/utility/swap.hpp:15,
                 from /usr/include/boost/tuple/detail/tuple_basic.hpp:40,
                 from /usr/include/boost/tuple/tuple.hpp:28,
                 from /usr/src/RPM/BUILD/ceph-13.2.0/src/osd/PrimaryLogPG.cc:18:
/usr/include/c++/7/bits/stl_algobase.h:195:5: note: candidate: template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)
     min(const _Tp& __a, const _Tp& __b)
     ^~~
/usr/include/c++/7/bits/stl_algobase.h:195:5: note:   template argument deduction/substitution failed:
/usr/src/RPM/BUILD/ceph-13.2.0/src/osd/PrimaryLogPG.cc:1632:38: note:   deduced conflicting types for parameter 'const _Tp' ('unsigned int' and 'uint64_t {aka long long unsigned int}')
       cct->_conf->osd_pg_log_trim_max);
                                      ^
In file included from /usr/include/c++/7/algorithm:61:0,
                 from /usr/include/boost/core/swap.hpp:25,
                 from /usr/include/boost/utility/swap.hpp:15,
                 from /usr/include/boost/tuple/detail/tuple_basic.hpp:40,
                 from /usr/include/boost/tuple/tuple.hpp:28,
                 from /usr/src/RPM/BUILD/ceph-13.2.0/src/osd/PrimaryLogPG.cc:18:
/usr/include/c++/7/bits/stl_algobase.h:243:5: note: candidate: template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
     ^~~
/usr/include/c++/7/bits/stl_algobase.h:243:5: note:   template argument deduction/substitution failed:
/usr/src/RPM/BUILD/ceph-13.2.0/src/osd/PrimaryLogPG.cc:1632:38: note:   deduced conflicting types for parameter 'const _Tp' ('unsigned int' and 'uint64_t {aka long long unsigned int}')
       cct->_conf->osd_pg_log_trim_max);
                                      ^
In file included from /usr/include/c++/7/algorithm:62:0,
                 from /usr/include/boost/core/swap.hpp:25,
                 from /usr/include/boost/utility/swap.hpp:15,
                 from /usr/include/boost/tuple/detail/tuple_basic.hpp:40,
                 from /usr/include/boost/tuple/tuple.hpp:28,
                 from /usr/src/RPM/BUILD/ceph-13.2.0/src/osd/PrimaryLogPG.cc:18:
/usr/include/c++/7/bits/stl_algo.h:3450:5: note: candidate: template<class _Tp> constexpr _Tp std::min(std::initializer_list<_Tp>)
     min(initializer_list<_Tp> __l)
     ^~~
/usr/include/c++/7/bits/stl_algo.h:3450:5: note:   template argument deduction/substitution failed:
/usr/src/RPM/BUILD/ceph-13.2.0/src/osd/PrimaryLogPG.cc:1632:38: note:   mismatched types 'std::initializer_list<_Tp>' and 'unsigned int'
       cct->_conf->osd_pg_log_trim_max);
                                      ^
In file included from /usr/include/c++/7/algorithm:62:0,
                 from /usr/include/boost/core/swap.hpp:25,
                 from /usr/include/boost/utility/swap.hpp:15,
                 from /usr/include/boost/tuple/detail/tuple_basic.hpp:40,
                 from /usr/include/boost/tuple/tuple.hpp:28,
                 from /usr/src/RPM/BUILD/ceph-13.2.0/src/osd/PrimaryLogPG.cc:18:
/usr/include/c++/7/bits/stl_algo.h:3456:5: note: candidate: template<class _Tp, class _Compare> constexpr _Tp std::min(std::initializer_list<_Tp>, _Compare)
     min(initializer_list<_Tp> __l, _Compare __comp)
     ^~~
/usr/include/c++/7/bits/stl_algo.h:3456:5: note:   template argument deduction/substitution failed:
/usr/src/RPM/BUILD/ceph-13.2.0/src/osd/PrimaryLogPG.cc:1632:38: note:   mismatched types 'std::initializer_list<_Tp>' and 'unsigned int'
       cct->_conf->osd_pg_log_trim_max);
                                      ^
make[2]: *** [src/osd/CMakeFiles/osd.dir/build.make:128: src/osd/CMakeFiles/osd.dir/PrimaryLogPG.cc.o] Error 1

Files

fix-build-32-bit.patch (5.84 KB) fix-build-32-bit.patch Alexey Shabalin, 09/12/2018 04:50 PM
Actions #1

Updated by John Spray almost 6 years ago

  • Status changed from New to Closed

We haven't routinely built/tested 32 bit x86 for some years now (https://github.com/ceph/ceph/pull/10276), so unfortunately it's not too surprising if something is broken.

I'm sure we'd accept any patches to fix these issues, but you may find that nobody else is testing this, so deploying on i586 is probably not a path you want to go down.

Actions #2

Updated by Alexey Shabalin over 5 years ago

May be exist make target for build library only?
I do not want build OSD or other ceph server daemons on 32-bit system, but i want have library (librados,librbd) and headers for build qemu, for example.

Actions #3

Updated by Alexey Shabalin over 5 years ago

Patch for support 32-bit. Review, please.

Actions

Also available in: Atom PDF