https://tracker.ceph.com/https://tracker.ceph.com/favicon.ico2018-03-20T19:47:43ZCeph Ceph - Bug #23417: Building Ceph on armhf fails due to a bunch of errorshttps://tracker.ceph.com/issues/23417?journal_id=1093872018-03-20T19:47:43ZRalf Kätzler
<ul></ul><p>Found one last stop:</p>
<p>Errortext:<br /><pre>
/usr/include/c++/7/bits/stl_algo.h:3456:5: note: template argument deduction/substitution failed:
/mnt/ceph-src/ceph/src/test/rbd_mirror/test_ImageSync.cc:44:48: note: mismatched types 'std::initializer_list<_Tp>' and 'long long unsigned int'
max_size = std::min(image_ctx->size, max_size);
</pre></p>
<p>Changes in test_ImageSync.cc:<br /><pre>
max_size = std::min(image_ctx->size, max_size);
max_size = std::min((long)image_ctx->size, (long)max_size);
</pre></p>
<p>Build has completed now ...<br />If it is functional? ... needs to be tested.<br />Need comments from Dev-Team to trust the build ...</p> Ceph - Bug #23417: Building Ceph on armhf fails due to a bunch of errorshttps://tracker.ceph.com/issues/23417?journal_id=1110192018-04-12T13:49:02ZRalf Kätzler
<ul></ul><p>After some tries I was able to build debian-packages with this changes on the odroid hc2 native.<br />Time to compile was in the end more than 8 hours - maybe even 12. Successful try was over night.<br />It was essential to disable -g in CFLAGS and CXXFLAGS ... if not the endecoder.cc eats all memory and compilation will break with "unsufficent memory" ... luckily the hc2 has a SATA-Port ... without a swap-partition maybe the compile process wouldn't be possible or would have last even longer with swapping on the sd-card. Thanks to Daniel and his bug-report.<br />Next thing to look at was: Compilation has to be done with -j1 ... use only ONE core. Hard to accept, cause the compile-time rises even more with this setting ... clear at all, but necessary.<br />If not done in this way it will happen that a part of code is not ready compiled but have to be used by another job already starting on another core. This will bring "internal compiler errors".<br />I was able to install the resulting debian-packages with ceph-deploy from a local repository. The ceph-cluster is running and first test-data is on it. So far everything seems to be okay ...<br />I still do not trust my hot iron changes ... can someone please have a look and review my fiddly codechanges?</p>