# Trying to build 6.3.9 using the docker build env. running on a RHEL 7.x env. result in compile error

**URL:** <https://forums.foundationdb.org/t/trying-to-build-6-3-9-using-the-docker-build-env-running-on-a-rhel-7-x-env-result-in-compile-error/2569>\
**Category:** FoundationDB Core\
**Created:** [February 22, 2021, 6:10pm UTC](https://forums.foundationdb.org/t/trying-to-build-6-3-9-using-the-docker-build-env-running-on-a-rhel-7-x-env-result-in-compile-error/2569 "2021-02-22T18:10:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tangerine](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/tangerine/32/1084_2.png) [@tangerine](https://forums.foundationdb.org/u/tangerine)\
**Post date:** [February 22, 2021, 6:10pm UTC](https://forums.foundationdb.org/t/trying-to-build-6-3-9-using-the-docker-build-env-running-on-a-rhel-7-x-env-result-in-compile-error/2569/1 "2021-02-22T18:10:51Z")

</div>

HI,  
I am trying to build the foundationdB 6.3.9 using the docker build env. and I get the following error when running Ninja:  
[547/788] Building CXX object fdbserver/CMakeFiles/fdbserver.dir/storageserver.actor.g.cpp.o  
In file included from opt/build/foundationdb/flow/serialize.h:30,  
from opt/build/foundationdb/flow/flow.h:43,  
from opt/build/foundationdb/fdbrpc/fdbrpc.h:25,  
from /opt/build/foundationdb/fdbserver/storageserver.actor.cpp:22:  
In function ‘bool operator==(const StringRef&, const StringRef&)’,  
inlined from ‘UpdateEagerReadInfo::finishKeyBegin()::\<lambda(const std::pair\<StringRef, int\>&, const std::pair\<StringRef, int\>&)\>’ at /opt/build/foundationdb/fdbserver/storageserver.actor.cpp:227:149,  
inlined from ‘bool \_\_gnu\_cxx::\_\_ops::\_Iter\_comp\_val\<\_Compare\>::operator()(\_Iterator, \_Value&) [with \_Iterator = \_\_gnu\_cxx::\_\_normal\_iterator\<std::pair\<StringRef, int\>_, std::vector\<std::pair\<StringRef, int\> \> \>; \_Value = std::pair\<StringRef, int\>; \_Compare = UpdateEagerReadInfo::finishKeyBegin()::\<lambda(const std::pair\<StringRef, int\>&, const std::pair\<StringRef, int\>&)\>]’ at /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/predefined\_ops.h:177:11,  
inlined from ‘void std::\_\_push\_heap(\_RandomAccessIterator, \_Distance, \_Distance, \_Tp, \_Compare&) [with \_RandomAccessIterator = \_\_gnu\_cxx::\_\_normal\_iterator\<std::pair\<StringRef, int\>_, std::vector\<std::pair\<StringRef, int\> \> \>; \_Distance = long int; \_Tp = std::pair\<StringRef, int\>; \_Compare = \_\_gnu\_cxx::\_\_ops::\_Iter\_comp\_val\<UpdateEagerReadInfo::finishKeyBegin()::\<lambda(const std::pair\<StringRef, int\>&, const std::pair\<StringRef, int\>&)\> \>]’ at /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/stl\_heap.h:133:48,  
inlined from ‘void std::\_\_adjust\_heap(\_RandomAccessIterator, \_Distance, \_Distance, \_Tp, \_Compare) [with \_RandomAccessIterator = \_\_gnu\_cxx::\_\_normal\_iterator\<std::pair\<StringRef, int\>_, std::vector\<std::pair\<StringRef, int\> \> \>; \_Distance = long int; \_Tp = std::pair\<StringRef, int\>; \_Compare = \_\_gnu\_cxx::\_\_ops::\_Iter\_comp\_iter\<UpdateEagerReadInfo::finishKeyBegin()::\<lambda(const std::pair\<StringRef, int\>&, const std::pair\<StringRef, int\>&)\> \>]’ at /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/stl\_heap.h:237:23:  
opt/build/foundationdb/flow/Arena.h:673:43: warning: ‘int \_\_builtin\_memcmp\_eq(const void_, const void\*, long unsigned int)’ specified size between 18446744071562067968 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]  
return lhs.size() == rhs.size() && memcmp(lhs.begin(), rhs.begin(), lhs.size()) == 0;

I am running the docker on a rhel7.x env. and the docker version is docker-ce 19.03.5 following the readme.md instruction.  
Could anyone suggest a solution?

---

<div class="post-metadata">

**Author:** ![ajbeamon](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/ajbeamon/32/13_2.png) [@ajbeamon](https://forums.foundationdb.org/u/ajbeamon)\
**Post date:** [February 27, 2021, 5:39am UTC](https://forums.foundationdb.org/t/trying-to-build-6-3-9-using-the-docker-build-env-running-on-a-rhel-7-x-env-result-in-compile-error/2569/2 "2021-02-27T05:39:24Z")

</div>

Is this a warning or an error? The tip of the release branch runs with -werror I believe, so it would fail there, but I was thinking 6.3.9 permitted warnings.

This particular warning should be resolved later on the 6.3 branch (see [Attempt to fix a build warning that's now blocking the compile due to… · apple/foundationdb@449e4b9 · GitHub](https://github.com/apple/foundationdb/commit/449e4b98b4617773b6bfcd2ff9ca031071e32a89)). If this is failing your compile, you could probably apply the change, switch to a newer revision, or disable -werror in your compile.

---

<div class="post-metadata">

**Author:** ![tangerine](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/tangerine/32/1084_2.png) [@tangerine](https://forums.foundationdb.org/u/tangerine)\
**Post date:** [February 27, 2021, 3:15pm UTC](https://forums.foundationdb.org/t/trying-to-build-6-3-9-using-the-docker-build-env-running-on-a-rhel-7-x-env-result-in-compile-error/2569/3 "2021-02-27T15:15:47Z")

</div>

It seems like an warning, so will try with the -w flag and see if it goes through
