Skip to content

mongod:6.0.13 - Failed during mongod binary build in docker image. #680

Description

@Chandrababu-nagilli

I have run the below command from dockerfile but it is going to exit the build after 2.14 hours continuously without any error.

And for this build I have use 16GB CPU, 32GB Memory, 500GB Disk.

# docker version
Client: Docker Engine - Community
 Version:           25.0.2
 API version:       1.44
 Go version:        go1.21.6
RUN python3 buildscripts/scons.py DESTDIR=/opt/MONGO/mongo-distro install-devcore --disable-warnings-as-errors --separate-debug=on

This is the end logs of the docker image build.

#33 3490.7 g++ -o build/59f4f0dd/mongo/db/s/config/configsvr_control_balancer_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -include mongo/platform/basic.h -ffp-contract=off -fasynchronous-unwind-tables -ggdb -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -fno-omit-frame-pointer -fno-strict-aliasing -O2 -march=z196 -mtune=zEC12 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fdebug-types-section -Wa,--nocompress-debug-sections -fPIE -DSAFEINT_USE_INTRINSICS=0 -DPCRE_STATIC -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/variant-1.4.0/include -Isrc/third_party/SafeInt -Isrc/third_party/pcre-8.42 -Isrc/third_party/fmt/dist/include -Isrc/third_party/boost -Isrc/third_party/abseil-cpp-master/abse
#33 3490.7 [output clipped, log limit 2MiB reached]
#33 8016.0 In file included from /usr/include/string.h:495,
#33 8016.0                  from src/third_party/icu4c-57.1/source/common/cmemory.h:30,
#33 8016.0                  from src/third_party/icu4c-57.1/source/common/cstring.h:29,
#33 8016.0                  from src/third_party/icu4c-57.1/source/common/uloc.cpp:39:
#33 8016.0 In function 'char* strncpy(char*, const char*, size_t)',
#33 8016.0     inlined from 'int32_t _canonicalize(const char*, char*, int32_t, uint32_t, UErrorCode*)' at src/third_party/icu4c-57.1/source/common/uloc.cpp:1679:13:
#33 8016.0 /usr/include/s390x-linux-gnu/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound depends on the length of the source argument [-Wstringop-overflow=]
#33 8016.0   106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
#33 8016.0       |          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#33 8016.0 In file included from src/third_party/icu4c-57.1/source/common/uloc.cpp:39:
#33 8016.0 src/third_party/icu4c-57.1/source/common/uloc.cpp: In function 'int32_t _canonicalize(const char*, char*, int32_t, uint32_t, UErrorCode*)':
#33 8016.0 src/third_party/icu4c-57.1/source/common/cstring.h:35:57: note: length computed here
#33 8016.0    35 | #define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
#33 8016.0 src/third_party/icu4c-57.1/source/common/uloc.cpp:1676:24: note: in expansion of macro 'uprv_strlen'
#33 8016.0  1676 |         len = (int32_t)uprv_strlen(d);
#33 8016.0       |                        ^~~~~~~~~~~

@yosifkit Could you please have a look on it. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions