DataDog / integrations-extras

Community developed integrations and plugins for the Datadog Agent.
BSD 3-Clause "New" or "Revised" License
252 stars 726 forks source link

building nvml Dockerfile for arm64 fails #1752

Open zeevdri opened 1 year ago

zeevdri commented 1 year ago

I've tried building the Dockerfile for arm64 and I get the following error

#22 [stage-1 6/6] RUN    /opt/datadog-agent/embedded/bin/pip3 install -r /requirements.in
#22 sha256:0fe0d819ddc828f7d3bef9ebfd11adfda474689e836fa0b85281c646eba0b9fd
#22 1.651 Collecting pynvml==11.4.1
#22 1.655   Using cached pynvml-11.4.1-py3-none-any.whl (46 kB)
#22 3.534 Collecting grpcio==1.27.2
#22 3.618   Using cached grpcio-1.27.2.tar.gz (16.9 MB)
#22 4.973   Preparing metadata (setup.py): started
#22 6.117   Preparing metadata (setup.py): finished with status 'done'
#22 6.128 Requirement already satisfied: six>=1.5.2 in /opt/datadog-agent/embedded/lib/python3.8/site-packages (from grpcio==1.27.2->-r /requirements.in (line 2)) (1.16.0)
#22 6.131 Building wheels for collected packages: grpcio
#22 6.132   Building wheel for grpcio (setup.py): started
#22 57.16   Building wheel for grpcio (setup.py): finished with status 'error'
#22 57.16   ERROR: Command errored out with exit status 1:
#22 57.16    command: /opt/datadog-agent/embedded/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5z6co862/grpcio_13bea7a02e9744a7a1f3ff64e38411a8/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5z6co862/grpcio_13bea7a02e9744a7a1f3ff64e38411a8/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-a3uwce45
#22 57.16        cwd: /tmp/pip-install-5z6co862/grpcio_13bea7a02e9744a7a1f3ff64e38411a8/
#22 57.16   Complete output (586 lines):
#22 57.16   Found cython-generated files...
...
#22 57.16   creating python_build/temp.linux-aarch64-3.8/third_party/zlib
#22 57.16   gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -I/opt/datadog-agent/embedded/include -O2 -g -pipe -I/opt/datadog-agent/embedded/include -O2 -g -pipe -fPIC -DOPENSSL_NO_ASM=1 -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" __attribute__((visibility ("default"))) PyObject* -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/boringssl/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Ithird_party/zlib -I/opt/datadog-agent/embedded/include/python3.8 -c src/python/grpcio/grpc/_cython/cygrpc.cpp -o python_build/temp.linux-aarch64-3.8/src/python/grpcio/grpc/_cython/cygrpc.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
#22 57.16   cc1plus: warning: command-line option ‘-std=gnu99’ is valid for C/ObjC but not for C++
#22 57.16   src/python/grpcio/grpc/_cython/cygrpc.cpp:120730:1: warning: ‘void __Pyx_PyAsyncGen_Fini()’ defined but not used [-Wunused-function]
#22 57.16   120730 | __Pyx_PyAsyncGen_Fini(void)
#22 57.16          | ^~~~~~~~~~~~~~~~~~~~~
#22 57.16   src/python/grpcio/grpc/_cython/cygrpc.cpp: In function ‘PyObject* __pyx_pw_4grpc_7_cython_6cygrpc_7Channel_9segregated_call(PyObject*, PyObject*, PyObject*)’:
#22 57.16   src/python/grpcio/grpc/_cython/cygrpc.cpp:17351:48: warning: ‘__pyx_v_c_completion_queue’ may be used uninitialized in this function [-Wmaybe-uninitialized]
#22 57.16   17351 |   __pyx_v_segregated_call->_c_completion_queue = __pyx_v_c_completion_queue;
#22 57.16         |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#22 57.16   src/python/grpcio/grpc/_cython/cygrpc.cpp:16994:26: note: ‘__pyx_v_c_completion_queue’ was declared here
#22 57.16   16994 |   grpc_completion_queue *__pyx_v_c_completion_queue;
#22 57.16         |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
#22 57.16   gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -I/opt/datadog-agent/embedded/include -O2 -g -pipe -I/opt/datadog-agent/embedded/include -O2 -g -pipe -fPIC -DOPENSSL_NO_ASM=1 -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" __attribute__((visibility ("default"))) PyObject* -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/boringssl/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Ithird_party/zlib -I/opt/datadog-agent/embedded/include/python3.8 -c src/boringssl/err_data.c -o python_build/temp.linux-aarch64-3.8/src/boringssl/err_data.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
#22 57.16   cc1: warning: command-line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C
#22 57.16   In file included from src/boringssl/err_data.c:17:
#22 57.16   third_party/boringssl/include/openssl/base.h:176: warning: "OPENSSL_VERSION_NUMBER" redefined
#22 57.16     176 | #define OPENSSL_VERSION_NUMBER 0x1010007f
#22 57.16         |
#22 57.16   In file included from /opt/datadog-agent/embedded/include/openssl/opensslconf.h:13,
#22 57.16                    from third_party/boringssl/include/openssl/base.h:76,
#22 57.16                    from src/boringssl/err_data.c:17:
#22 57.16   /opt/datadog-agent/embedded/include/openssl/opensslv.h:42: note: this is the location of the previous definition
#22 57.16      42 | # define OPENSSL_VERSION_NUMBER  0x1010111fL
#22 57.16         |
#22 57.16   In file included from /opt/datadog-agent/embedded/include/openssl/err.h:13,
#22 57.16                    from src/boringssl/err_data.c:18:
#22 57.16   /opt/datadog-agent/embedded/include/openssl/e_os2.h:171: warning: "OPENSSL_EXPORT" redefined
#22 57.16     171 | #  define OPENSSL_EXPORT extern
#22 57.16         |
#22 57.16   In file included from src/boringssl/err_data.c:17:
#22 57.16   third_party/boringssl/include/openssl/base.h:211: note: this is the location of the previous definition
#22 57.16     211 | #define OPENSSL_EXPORT
#22 57.16         |
#22 57.16   In file included from /opt/datadog-agent/embedded/include/openssl/err.h:20,
#22 57.16                    from src/boringssl/err_data.c:18:
#22 57.16   /opt/datadog-agent/embedded/include/openssl/ossl_typ.h:91:26: error: conflicting types for ‘EVP_MD’; have ‘struct evp_md_st’
#22 57.16      91 | typedef struct evp_md_st EVP_MD;
#22 57.16         |                          ^~~~~~
#22 57.16   In file included from src/boringssl/err_data.c:17:
#22 57.16   third_party/boringssl/include/openssl/base.h:391:26: note: previous declaration of ‘EVP_MD’ with type ‘EVP_MD’ {aka ‘struct env_md_st’}
#22 57.16     391 | typedef struct env_md_st EVP_MD;
#22 57.16         |                          ^~~~~~
#22 57.16   In file included from /opt/datadog-agent/embedded/include/openssl/err.h:20,
#22 57.16                    from src/boringssl/err_data.c:18:
#22 57.16   /opt/datadog-agent/embedded/include/openssl/ossl_typ.h:92:30: error: conflicting types for ‘EVP_MD_CTX’; have ‘struct evp_md_ctx_st’
#22 57.16      92 | typedef struct evp_md_ctx_st EVP_MD_CTX;
#22 57.16         |                              ^~~~~~~~~~
#22 57.16   In file included from src/boringssl/err_data.c:17:
#22 57.16   third_party/boringssl/include/openssl/base.h:390:30: note: previous declaration of ‘EVP_MD_CTX’ with type ‘EVP_MD_CTX’ {aka ‘struct env_md_ctx_st’}
#22 57.16     390 | typedef struct env_md_ctx_st EVP_MD_CTX;
#22 57.16         |                              ^~~~~~~~~~
#22 57.16   In file included from /opt/datadog-agent/embedded/include/openssl/err.h:20,
#22 57.16                    from src/boringssl/err_data.c:18:
#22 57.16   /opt/datadog-agent/embedded/include/openssl/ossl_typ.h:100:34: error: conflicting types for ‘EVP_ENCODE_CTX’; have ‘struct evp_Encode_Ctx_st’
#22 57.16     100 | typedef struct evp_Encode_Ctx_st EVP_ENCODE_CTX;
#22 57.16         |                                  ^~~~~~~~~~~~~~
#22 57.16   In file included from src/boringssl/err_data.c:17:
#22 57.16   third_party/boringssl/include/openssl/base.h:395:34: note: previous declaration of ‘EVP_ENCODE_CTX’ with type ‘EVP_ENCODE_CTX’ {aka ‘struct evp_encode_ctx_st’}
#22 57.16     395 | typedef struct evp_encode_ctx_st EVP_ENCODE_CTX;
#22 57.16         |                                  ^~~~~~~~~~~~~~
#22 57.16   In file included from /opt/datadog-agent/embedded/include/openssl/bio.h:20,
#22 57.16                    from /opt/datadog-agent/embedded/include/openssl/err.h:21,
#22 57.16                    from src/boringssl/err_data.c:18:
#22 57.16   /opt/datadog-agent/embedded/include/openssl/crypto.h:231:3: error: conflicting types for ‘CRYPTO_THREADID’; have ‘struct crypto_threadid_st’
#22 57.16     231 | } CRYPTO_THREADID;
#22 57.16         |   ^~~~~~~~~~~~~~~
#22 57.16   In file included from src/boringssl/err_data.c:17:
#22 57.16   third_party/boringssl/include/openssl/base.h:318:13: note: previous declaration of ‘CRYPTO_THREADID’ with type ‘CRYPTO_THREADID’ {aka ‘int’}
#22 57.16     318 | typedef int CRYPTO_THREADID;
#22 57.16         |             ^~~~~~~~~~~~~~~
#22 57.16   In file included from src/boringssl/err_data.c:19:
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                          ^~~~~~~~~~~~~~
#22 57.16   src/boringssl/err_data.c:33:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      33 | OPENSSL_STATIC_ASSERT(ERR_LIB_ASN1 == 12, "library value changed");
#22 57.16         | ^~~~~~~~~~~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                          ^~~~~~~~~~~~~~
#22 57.16   src/boringssl/err_data.c:34:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      34 | OPENSSL_STATIC_ASSERT(ERR_LIB_CONF == 13, "library value changed");
#22 57.16         | ^~~~~~~~~~~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                          ^~~~~~~~~~~~~~
#22 57.16   src/boringssl/err_data.c:35:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      35 | OPENSSL_STATIC_ASSERT(ERR_LIB_CRYPTO == 14, "library value changed");
#22 57.16         | ^~~~~~~~~~~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                          ^~~~~~~~~~~~~~
#22 57.16   src/boringssl/err_data.c:36:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      36 | OPENSSL_STATIC_ASSERT(ERR_LIB_EC == 15, "library value changed");
#22 57.16         | ^~~~~~~~~~~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                          ^~~~~~~~~~~~~~
#22 57.16   src/boringssl/err_data.c:37:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      37 | OPENSSL_STATIC_ASSERT(ERR_LIB_SSL == 16, "library value changed");
#22 57.16         | ^~~~~~~~~~~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                          ^~~~~~~~~~~~~~
#22 57.16   src/boringssl/err_data.c:38:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      38 | OPENSSL_STATIC_ASSERT(ERR_LIB_BIO == 17, "library value changed");
#22 57.16         | ^~~~~~~~~~~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                          ^~~~~~~~~~~~~~
#22 57.16   src/boringssl/err_data.c:39:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      39 | OPENSSL_STATIC_ASSERT(ERR_LIB_PKCS7 == 18, "library value changed");
#22 57.16         | ^~~~~~~~~~~~~~~~~~~~~
#22 57.16   src/boringssl/err_data.c:40:23: error: ‘ERR_LIB_PKCS8’ undeclared here (not in a function); did you mean ‘ERR_LIB_PKCS7’?
#22 57.16      40 | OPENSSL_STATIC_ASSERT(ERR_LIB_PKCS8 == 19, "library value changed");
#22 57.16         |                       ^~~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:57: note: in definition of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                                         ^~~~
#22 57.16   src/boringssl/err_data.c:40:23: error: expression in static assertion is not an integer
#22 57.16      40 | OPENSSL_STATIC_ASSERT(ERR_LIB_PKCS8 == 19, "library value changed");
#22 57.16         |                       ^~~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:57: note: in definition of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                                         ^~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                          ^~~~~~~~~~~~~~
#22 57.16   src/boringssl/err_data.c:41:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      41 | OPENSSL_STATIC_ASSERT(ERR_LIB_X509V3 == 20, "library value changed");
#22 57.16         | ^~~~~~~~~~~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                          ^~~~~~~~~~~~~~
#22 57.16   src/boringssl/err_data.c:42:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      42 | OPENSSL_STATIC_ASSERT(ERR_LIB_RAND == 21, "library value changed");
#22 57.16         | ^~~~~~~~~~~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                          ^~~~~~~~~~~~~~
#22 57.16   src/boringssl/err_data.c:43:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      43 | OPENSSL_STATIC_ASSERT(ERR_LIB_ENGINE == 22, "library value changed");
#22 57.16         | ^~~~~~~~~~~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                          ^~~~~~~~~~~~~~
#22 57.16   src/boringssl/err_data.c:44:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      44 | OPENSSL_STATIC_ASSERT(ERR_LIB_OCSP == 23, "library value changed");
#22 57.16         | ^~~~~~~~~~~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                          ^~~~~~~~~~~~~~
#22 57.16   src/boringssl/err_data.c:45:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      45 | OPENSSL_STATIC_ASSERT(ERR_LIB_UI == 24, "library value changed");
#22 57.16         | ^~~~~~~~~~~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                          ^~~~~~~~~~~~~~
#22 57.16   src/boringssl/err_data.c:46:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      46 | OPENSSL_STATIC_ASSERT(ERR_LIB_COMP == 25, "library value changed");
#22 57.16         | ^~~~~~~~~~~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                          ^~~~~~~~~~~~~~
#22 57.16   src/boringssl/err_data.c:47:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      47 | OPENSSL_STATIC_ASSERT(ERR_LIB_ECDSA == 26, "library value changed");
#22 57.16         | ^~~~~~~~~~~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                          ^~~~~~~~~~~~~~
#22 57.16   src/boringssl/err_data.c:48:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      48 | OPENSSL_STATIC_ASSERT(ERR_LIB_ECDH == 27, "library value changed");
#22 57.16         | ^~~~~~~~~~~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                          ^~~~~~~~~~~~~~
#22 57.16   src/boringssl/err_data.c:49:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      49 | OPENSSL_STATIC_ASSERT(ERR_LIB_HMAC == 28, "library value changed");
#22 57.16         | ^~~~~~~~~~~~~~~~~~~~~
#22 57.16   src/boringssl/err_data.c:50:23: error: ‘ERR_LIB_DIGEST’ undeclared here (not in a function); did you mean ‘ERR_LIB_DSA’?
#22 57.16      50 | OPENSSL_STATIC_ASSERT(ERR_LIB_DIGEST == 29, "library value changed");
#22 57.16         |                       ^~~~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:57: note: in definition of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                                         ^~~~
#22 57.16   src/boringssl/err_data.c:50:23: error: expression in static assertion is not an integer
#22 57.16      50 | OPENSSL_STATIC_ASSERT(ERR_LIB_DIGEST == 29, "library value changed");
#22 57.16         |                       ^~~~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:57: note: in definition of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                                         ^~~~
#22 57.16   src/boringssl/err_data.c:51:23: error: ‘ERR_LIB_CIPHER’ undeclared here (not in a function); did you mean ‘ERR_LIB_PEM’?
#22 57.16      51 | OPENSSL_STATIC_ASSERT(ERR_LIB_CIPHER == 30, "library value changed");
#22 57.16         |                       ^~~~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:57: note: in definition of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                                         ^~~~
#22 57.16   src/boringssl/err_data.c:51:23: error: expression in static assertion is not an integer
#22 57.16      51 | OPENSSL_STATIC_ASSERT(ERR_LIB_CIPHER == 30, "library value changed");
#22 57.16         |                       ^~~~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:57: note: in definition of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                                         ^~~~
#22 57.16   src/boringssl/err_data.c:52:23: error: ‘ERR_LIB_HKDF’ undeclared here (not in a function); did you mean ‘ERR_LIB_KDF’?
#22 57.16      52 | OPENSSL_STATIC_ASSERT(ERR_LIB_HKDF == 31, "library value changed");
#22 57.16         |                       ^~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:57: note: in definition of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                                         ^~~~
#22 57.16   src/boringssl/err_data.c:52:23: error: expression in static assertion is not an integer
#22 57.16      52 | OPENSSL_STATIC_ASSERT(ERR_LIB_HKDF == 31, "library value changed");
#22 57.16         |                       ^~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:57: note: in definition of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                                         ^~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                          ^~~~~~~~~~~~~~
#22 57.16   src/boringssl/err_data.c:53:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      53 | OPENSSL_STATIC_ASSERT(ERR_LIB_USER == 32, "library value changed");
#22 57.16         | ^~~~~~~~~~~~~~~~~~~~~
#22 57.16   src/boringssl/err_data.c:54:23: error: ‘ERR_NUM_LIBS’ undeclared here (not in a function); did you mean ‘ERR_R_UI_LIB’?
#22 57.16      54 | OPENSSL_STATIC_ASSERT(ERR_NUM_LIBS == 33, "number of libraries changed");
#22 57.16         |                       ^~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:57: note: in definition of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                                         ^~~~
#22 57.16   src/boringssl/err_data.c:54:23: error: expression in static assertion is not an integer
#22 57.16      54 | OPENSSL_STATIC_ASSERT(ERR_NUM_LIBS == 33, "number of libraries changed");
#22 57.16         |                       ^~~~~~~~~~~~
#22 57.16   third_party/boringssl/include/openssl/type_check.h:75:57: note: in definition of macro ‘OPENSSL_STATIC_ASSERT’
#22 57.16      75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 57.16         |                                                         ^~~~
#22 57.16   creating tmp
#22 57.16   creating tmp/tmpmuulmpba
#22 57.16   gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -I/opt/datadog-agent/embedded/include -O2 -g -pipe -I/opt/datadog-agent/embedded/include -O2 -g -pipe -fPIC -I/opt/datadog-agent/embedded/include/python3.8 -c /tmp/tmpmuulmpba/a.c -o tmp/tmpmuulmpba/a.o
#22 57.16   Traceback (most recent call last):
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/unixccompiler.py", line 117, in _compile
#22 57.16       self.spawn(compiler_so + cc_args + [src, '-o', obj] +
#22 57.16     File "/tmp/pip-install-5z6co862/grpcio_13bea7a02e9744a7a1f3ff64e38411a8/src/python/grpcio/_spawn_patch.py", line 54, in _commandfile_spawn
#22 57.16       _classic_spawn(self, command)
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/ccompiler.py", line 910, in spawn
#22 57.16       spawn(cmd, dry_run=self.dry_run)
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/spawn.py", line 36, in spawn
#22 57.16       _spawn_posix(cmd, search_path, dry_run=dry_run)
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/spawn.py", line 157, in _spawn_posix
#22 57.16       raise DistutilsExecError(
#22 57.16   distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1
#22 57.16   
#22 57.16   During handling of the above exception, another exception occurred:
#22 57.16   
#22 57.16   Traceback (most recent call last):
#22 57.16     File "/tmp/pip-install-5z6co862/grpcio_13bea7a02e9744a7a1f3ff64e38411a8/src/python/grpcio/commands.py", line 260, in build_extensions
#22 57.16       build_ext.build_ext.build_extensions(self)
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
#22 57.16       self._build_extensions_serial()
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
#22 57.16       self.build_extension(ext)
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/setuptools-40.9.0.post20230202-py3.8.egg/setuptools/command/build_ext.py", line 199, in build_extension
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/command/build_ext.py", line 528, in build_extension
#22 57.16       objects = self.compiler.compile(sources,
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/ccompiler.py", line 574, in compile
#22 57.16       self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/unixccompiler.py", line 120, in _compile
#22 57.16       raise CompileError(msg)
#22 57.16   distutils.errors.CompileError: command 'gcc' failed with exit status 1
#22 57.16   
#22 57.16   During handling of the above exception, another exception occurred:
#22 57.16   
#22 57.16   Traceback (most recent call last):
#22 57.16     File "<string>", line 1, in <module>
#22 57.16     File "/tmp/pip-install-5z6co862/grpcio_13bea7a02e9744a7a1f3ff64e38411a8/setup.py", line 384, in <module>
#22 57.16       setuptools.setup(
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/setuptools-40.9.0.post20230202-py3.8.egg/setuptools/__init__.py", line 145, in setup
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/core.py", line 148, in setup
#22 57.16       dist.run_commands()
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/dist.py", line 966, in run_commands
#22 57.16       self.run_command(cmd)
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/dist.py", line 985, in run_command
#22 57.16       cmd_obj.run()
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 325, in run
#22 57.16       self.run_command("build")
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/cmd.py", line 313, in run_command
#22 57.16       self.distribution.run_command(command)
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/dist.py", line 985, in run_command
#22 57.16       cmd_obj.run()
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/command/build.py", line 135, in run
#22 57.16       self.run_command(cmd_name)
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/cmd.py", line 313, in run_command
#22 57.16       self.distribution.run_command(command)
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/dist.py", line 985, in run_command
#22 57.16       cmd_obj.run()
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/setuptools-40.9.0.post20230202-py3.8.egg/setuptools/command/build_ext.py", line 78, in run
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/command/build_ext.py", line 340, in run
#22 57.16       self.build_extensions()
#22 57.16     File "/tmp/pip-install-5z6co862/grpcio_13bea7a02e9744a7a1f3ff64e38411a8/src/python/grpcio/commands.py", line 264, in build_extensions
#22 57.16       raise CommandError(
#22 57.16   commands.CommandError: Failed `build_ext` step:
#22 57.16   Traceback (most recent call last):
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/unixccompiler.py", line 117, in _compile
#22 57.16       self.spawn(compiler_so + cc_args + [src, '-o', obj] +
#22 57.16     File "/tmp/pip-install-5z6co862/grpcio_13bea7a02e9744a7a1f3ff64e38411a8/src/python/grpcio/_spawn_patch.py", line 54, in _commandfile_spawn
#22 57.16       _classic_spawn(self, command)
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/ccompiler.py", line 910, in spawn
#22 57.16       spawn(cmd, dry_run=self.dry_run)
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/spawn.py", line 36, in spawn
#22 57.16       _spawn_posix(cmd, search_path, dry_run=dry_run)
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/spawn.py", line 157, in _spawn_posix
#22 57.16       raise DistutilsExecError(
#22 57.16   distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1
#22 57.16   
#22 57.16   During handling of the above exception, another exception occurred:
#22 57.16   
#22 57.16   Traceback (most recent call last):
#22 57.16     File "/tmp/pip-install-5z6co862/grpcio_13bea7a02e9744a7a1f3ff64e38411a8/src/python/grpcio/commands.py", line 260, in build_extensions
#22 57.16       build_ext.build_ext.build_extensions(self)
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
#22 57.16       self._build_extensions_serial()
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
#22 57.16       self.build_extension(ext)
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/setuptools-40.9.0.post20230202-py3.8.egg/setuptools/command/build_ext.py", line 199, in build_extension
#22 57.16       _build_ext.build_extension(self, ext)
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/command/build_ext.py", line 528, in build_extension
#22 57.16       objects = self.compiler.compile(sources,
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/ccompiler.py", line 574, in compile
#22 57.16       self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
#22 57.16     File "/opt/datadog-agent/embedded/lib/python3.8/distutils/unixccompiler.py", line 120, in _compile
#22 57.16       raise CompileError(msg)
#22 57.16   distutils.errors.CompileError: command 'gcc' failed with exit status 1
#22 57.16   
#22 57.16   ----------------------------------------
#22 57.16   ERROR: Failed building wheel for grpcio
#22 57.16   Running setup.py clean for grpcio
#22 58.21 Failed to build grpcio
#22 59.28 Installing collected packages: pynvml, grpcio
#22 59.35     Running setup.py install for grpcio: started
#22 110.3     Running setup.py install for grpcio: finished with status 'error'
#22 110.3     ERROR: Command errored out with exit status 1:
#22 110.3      command: /opt/datadog-agent/embedded/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5z6co862/grpcio_13bea7a02e9744a7a1f3ff64e38411a8/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5z6co862/grpcio_13bea7a02e9744a7a1f3ff64e38411a8/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-keezktoi/install-record.txt --single-version-externally-managed --compile --install-headers /opt/datadog-agent/embedded/include/python3.8/grpcio
#22 110.3          cwd: /tmp/pip-install-5z6co862/grpcio_13bea7a02e9744a7a1f3ff64e38411a8/
#22 110.3     Complete output (586 lines):
#22 110.3     Found cython-generated files...
#22 110.3     running install
#22 110.3     running build
#22 110.3     running build_py
#22 110.3     running build_project_metadata
#22 110.3     creating python_build
...
#22 110.3     creating python_build/temp.linux-aarch64-3.8/third_party/zlib
#22 110.3     gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -I/opt/datadog-agent/embedded/include -O2 -g -pipe -I/opt/datadog-agent/embedded/include -O2 -g -pipe -fPIC -DOPENSSL_NO_ASM=1 -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" __attribute__((visibility ("default"))) PyObject* -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/boringssl/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Ithird_party/zlib -I/opt/datadog-agent/embedded/include/python3.8 -c src/python/grpcio/grpc/_cython/cygrpc.cpp -o python_build/temp.linux-aarch64-3.8/src/python/grpcio/grpc/_cython/cygrpc.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
#22 110.3     cc1plus: warning: command-line option ‘-std=gnu99’ is valid for C/ObjC but not for C++
#22 110.3     src/python/grpcio/grpc/_cython/cygrpc.cpp:120730:1: warning: ‘void __Pyx_PyAsyncGen_Fini()’ defined but not used [-Wunused-function]
#22 110.3     120730 | __Pyx_PyAsyncGen_Fini(void)
#22 110.3            | ^~~~~~~~~~~~~~~~~~~~~
#22 110.3     src/python/grpcio/grpc/_cython/cygrpc.cpp: In function ‘PyObject* __pyx_pw_4grpc_7_cython_6cygrpc_7Channel_9segregated_call(PyObject*, PyObject*, PyObject*)’:
#22 110.3     src/python/grpcio/grpc/_cython/cygrpc.cpp:17351:48: warning: ‘__pyx_v_c_completion_queue’ may be used uninitialized in this function [-Wmaybe-uninitialized]
#22 110.3     17351 |   __pyx_v_segregated_call->_c_completion_queue = __pyx_v_c_completion_queue;
#22 110.3           |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#22 110.3     src/python/grpcio/grpc/_cython/cygrpc.cpp:16994:26: note: ‘__pyx_v_c_completion_queue’ was declared here
#22 110.3     16994 |   grpc_completion_queue *__pyx_v_c_completion_queue;
#22 110.3           |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
#22 110.3     gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -I/opt/datadog-agent/embedded/include -O2 -g -pipe -I/opt/datadog-agent/embedded/include -O2 -g -pipe -fPIC -DOPENSSL_NO_ASM=1 -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" __attribute__((visibility ("default"))) PyObject* -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/boringssl/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Ithird_party/zlib -I/opt/datadog-agent/embedded/include/python3.8 -c src/boringssl/err_data.c -o python_build/temp.linux-aarch64-3.8/src/boringssl/err_data.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
#22 110.3     cc1: warning: command-line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C
#22 110.3     In file included from src/boringssl/err_data.c:17:
#22 110.3     third_party/boringssl/include/openssl/base.h:176: warning: "OPENSSL_VERSION_NUMBER" redefined
#22 110.3       176 | #define OPENSSL_VERSION_NUMBER 0x1010007f
#22 110.3           |
#22 110.3     In file included from /opt/datadog-agent/embedded/include/openssl/opensslconf.h:13,
#22 110.3                      from third_party/boringssl/include/openssl/base.h:76,
#22 110.3                      from src/boringssl/err_data.c:17:
#22 110.3     /opt/datadog-agent/embedded/include/openssl/opensslv.h:42: note: this is the location of the previous definition
#22 110.3        42 | # define OPENSSL_VERSION_NUMBER  0x1010111fL
#22 110.3           |
#22 110.3     In file included from /opt/datadog-agent/embedded/include/openssl/err.h:13,
#22 110.3                      from src/boringssl/err_data.c:18:
#22 110.3     /opt/datadog-agent/embedded/include/openssl/e_os2.h:171: warning: "OPENSSL_EXPORT" redefined
#22 110.3       171 | #  define OPENSSL_EXPORT extern
#22 110.3           |
#22 110.3     In file included from src/boringssl/err_data.c:17:
#22 110.3     third_party/boringssl/include/openssl/base.h:211: note: this is the location of the previous definition
#22 110.3       211 | #define OPENSSL_EXPORT
#22 110.3           |
#22 110.3     In file included from /opt/datadog-agent/embedded/include/openssl/err.h:20,
#22 110.3                      from src/boringssl/err_data.c:18:
#22 110.3     /opt/datadog-agent/embedded/include/openssl/ossl_typ.h:91:26: error: conflicting types for ‘EVP_MD’; have ‘struct evp_md_st’
#22 110.3        91 | typedef struct evp_md_st EVP_MD;
#22 110.3           |                          ^~~~~~
#22 110.3     In file included from src/boringssl/err_data.c:17:
#22 110.3     third_party/boringssl/include/openssl/base.h:391:26: note: previous declaration of ‘EVP_MD’ with type ‘EVP_MD’ {aka ‘struct env_md_st’}
#22 110.3       391 | typedef struct env_md_st EVP_MD;
#22 110.3           |                          ^~~~~~
#22 110.3     In file included from /opt/datadog-agent/embedded/include/openssl/err.h:20,
#22 110.3                      from src/boringssl/err_data.c:18:
#22 110.3     /opt/datadog-agent/embedded/include/openssl/ossl_typ.h:92:30: error: conflicting types for ‘EVP_MD_CTX’; have ‘struct evp_md_ctx_st’
#22 110.3        92 | typedef struct evp_md_ctx_st EVP_MD_CTX;
#22 110.3           |                              ^~~~~~~~~~
#22 110.3     In file included from src/boringssl/err_data.c:17:
#22 110.3     third_party/boringssl/include/openssl/base.h:390:30: note: previous declaration of ‘EVP_MD_CTX’ with type ‘EVP_MD_CTX’ {aka ‘struct env_md_ctx_st’}
#22 110.3       390 | typedef struct env_md_ctx_st EVP_MD_CTX;
#22 110.3           |                              ^~~~~~~~~~
#22 110.3     In file included from /opt/datadog-agent/embedded/include/openssl/err.h:20,
#22 110.3                      from src/boringssl/err_data.c:18:
#22 110.3     /opt/datadog-agent/embedded/include/openssl/ossl_typ.h:100:34: error: conflicting types for ‘EVP_ENCODE_CTX’; have ‘struct evp_Encode_Ctx_st’
#22 110.3       100 | typedef struct evp_Encode_Ctx_st EVP_ENCODE_CTX;
#22 110.3           |                                  ^~~~~~~~~~~~~~
#22 110.3     In file included from src/boringssl/err_data.c:17:
#22 110.3     third_party/boringssl/include/openssl/base.h:395:34: note: previous declaration of ‘EVP_ENCODE_CTX’ with type ‘EVP_ENCODE_CTX’ {aka ‘struct evp_encode_ctx_st’}
#22 110.3       395 | typedef struct evp_encode_ctx_st EVP_ENCODE_CTX;
#22 110.3           |                                  ^~~~~~~~~~~~~~
#22 110.3     In file included from /opt/datadog-agent/embedded/include/openssl/bio.h:20,
#22 110.3                      from /opt/datadog-agent/embedded/include/openssl/err.h:21,
#22 110.3                      from src/boringssl/err_data.c:18:
#22 110.3     /opt/datadog-agent/embedded/include/openssl/crypto.h:231:3: error: conflicting types for ‘CRYPTO_THREADID’; have ‘struct crypto_threadid_st’
#22 110.3       231 | } CRYPTO_THREADID;
#22 110.3           |   ^~~~~~~~~~~~~~~
#22 110.3     In file included from src/boringssl/err_data.c:17:
#22 110.3     third_party/boringssl/include/openssl/base.h:318:13: note: previous declaration of ‘CRYPTO_THREADID’ with type ‘CRYPTO_THREADID’ {aka ‘int’}
#22 110.3       318 | typedef int CRYPTO_THREADID;
#22 110.3           |             ^~~~~~~~~~~~~~~
#22 110.3     In file included from src/boringssl/err_data.c:19:
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                          ^~~~~~~~~~~~~~
#22 110.3     src/boringssl/err_data.c:33:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        33 | OPENSSL_STATIC_ASSERT(ERR_LIB_ASN1 == 12, "library value changed");
#22 110.3           | ^~~~~~~~~~~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                          ^~~~~~~~~~~~~~
#22 110.3     src/boringssl/err_data.c:34:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        34 | OPENSSL_STATIC_ASSERT(ERR_LIB_CONF == 13, "library value changed");
#22 110.3           | ^~~~~~~~~~~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                          ^~~~~~~~~~~~~~
#22 110.3     src/boringssl/err_data.c:35:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        35 | OPENSSL_STATIC_ASSERT(ERR_LIB_CRYPTO == 14, "library value changed");
#22 110.3           | ^~~~~~~~~~~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                          ^~~~~~~~~~~~~~
#22 110.3     src/boringssl/err_data.c:36:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        36 | OPENSSL_STATIC_ASSERT(ERR_LIB_EC == 15, "library value changed");
#22 110.3           | ^~~~~~~~~~~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                          ^~~~~~~~~~~~~~
#22 110.3     src/boringssl/err_data.c:37:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        37 | OPENSSL_STATIC_ASSERT(ERR_LIB_SSL == 16, "library value changed");
#22 110.3           | ^~~~~~~~~~~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                          ^~~~~~~~~~~~~~
#22 110.3     src/boringssl/err_data.c:38:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        38 | OPENSSL_STATIC_ASSERT(ERR_LIB_BIO == 17, "library value changed");
#22 110.3           | ^~~~~~~~~~~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                          ^~~~~~~~~~~~~~
#22 110.3     src/boringssl/err_data.c:39:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        39 | OPENSSL_STATIC_ASSERT(ERR_LIB_PKCS7 == 18, "library value changed");
#22 110.3           | ^~~~~~~~~~~~~~~~~~~~~
#22 110.3     src/boringssl/err_data.c:40:23: error: ‘ERR_LIB_PKCS8’ undeclared here (not in a function); did you mean ‘ERR_LIB_PKCS7’?
#22 110.3        40 | OPENSSL_STATIC_ASSERT(ERR_LIB_PKCS8 == 19, "library value changed");
#22 110.3           |                       ^~~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:57: note: in definition of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                                         ^~~~
#22 110.3     src/boringssl/err_data.c:40:23: error: expression in static assertion is not an integer
#22 110.3        40 | OPENSSL_STATIC_ASSERT(ERR_LIB_PKCS8 == 19, "library value changed");
#22 110.3           |                       ^~~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:57: note: in definition of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                                         ^~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                          ^~~~~~~~~~~~~~
#22 110.3     src/boringssl/err_data.c:41:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        41 | OPENSSL_STATIC_ASSERT(ERR_LIB_X509V3 == 20, "library value changed");
#22 110.3           | ^~~~~~~~~~~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                          ^~~~~~~~~~~~~~
#22 110.3     src/boringssl/err_data.c:42:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        42 | OPENSSL_STATIC_ASSERT(ERR_LIB_RAND == 21, "library value changed");
#22 110.3           | ^~~~~~~~~~~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                          ^~~~~~~~~~~~~~
#22 110.3     src/boringssl/err_data.c:43:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        43 | OPENSSL_STATIC_ASSERT(ERR_LIB_ENGINE == 22, "library value changed");
#22 110.3           | ^~~~~~~~~~~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                          ^~~~~~~~~~~~~~
#22 110.3     src/boringssl/err_data.c:44:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        44 | OPENSSL_STATIC_ASSERT(ERR_LIB_OCSP == 23, "library value changed");
#22 110.3           | ^~~~~~~~~~~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                          ^~~~~~~~~~~~~~
#22 110.3     src/boringssl/err_data.c:45:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        45 | OPENSSL_STATIC_ASSERT(ERR_LIB_UI == 24, "library value changed");
#22 110.3           | ^~~~~~~~~~~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                          ^~~~~~~~~~~~~~
#22 110.3     src/boringssl/err_data.c:46:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        46 | OPENSSL_STATIC_ASSERT(ERR_LIB_COMP == 25, "library value changed");
#22 110.3           | ^~~~~~~~~~~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                          ^~~~~~~~~~~~~~
#22 110.3     src/boringssl/err_data.c:47:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        47 | OPENSSL_STATIC_ASSERT(ERR_LIB_ECDSA == 26, "library value changed");
#22 110.3           | ^~~~~~~~~~~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                          ^~~~~~~~~~~~~~
#22 110.3     src/boringssl/err_data.c:48:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        48 | OPENSSL_STATIC_ASSERT(ERR_LIB_ECDH == 27, "library value changed");
#22 110.3           | ^~~~~~~~~~~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                          ^~~~~~~~~~~~~~
#22 110.3     src/boringssl/err_data.c:49:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        49 | OPENSSL_STATIC_ASSERT(ERR_LIB_HMAC == 28, "library value changed");
#22 110.3           | ^~~~~~~~~~~~~~~~~~~~~
#22 110.3     src/boringssl/err_data.c:50:23: error: ‘ERR_LIB_DIGEST’ undeclared here (not in a function); did you mean ‘ERR_LIB_DSA’?
#22 110.3        50 | OPENSSL_STATIC_ASSERT(ERR_LIB_DIGEST == 29, "library value changed");
#22 110.3           |                       ^~~~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:57: note: in definition of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                                         ^~~~
#22 110.3     src/boringssl/err_data.c:50:23: error: expression in static assertion is not an integer
#22 110.3        50 | OPENSSL_STATIC_ASSERT(ERR_LIB_DIGEST == 29, "library value changed");
#22 110.3           |                       ^~~~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:57: note: in definition of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                                         ^~~~
#22 110.3     src/boringssl/err_data.c:51:23: error: ‘ERR_LIB_CIPHER’ undeclared here (not in a function); did you mean ‘ERR_LIB_PEM’?
#22 110.3        51 | OPENSSL_STATIC_ASSERT(ERR_LIB_CIPHER == 30, "library value changed");
#22 110.3           |                       ^~~~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:57: note: in definition of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                                         ^~~~
#22 110.3     src/boringssl/err_data.c:51:23: error: expression in static assertion is not an integer
#22 110.3        51 | OPENSSL_STATIC_ASSERT(ERR_LIB_CIPHER == 30, "library value changed");
#22 110.3           |                       ^~~~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:57: note: in definition of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                                         ^~~~
#22 110.3     src/boringssl/err_data.c:52:23: error: ‘ERR_LIB_HKDF’ undeclared here (not in a function); did you mean ‘ERR_LIB_KDF’?
#22 110.3        52 | OPENSSL_STATIC_ASSERT(ERR_LIB_HKDF == 31, "library value changed");
#22 110.3           |                       ^~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:57: note: in definition of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                                         ^~~~
#22 110.3     src/boringssl/err_data.c:52:23: error: expression in static assertion is not an integer
#22 110.3        52 | OPENSSL_STATIC_ASSERT(ERR_LIB_HKDF == 31, "library value changed");
#22 110.3           |                       ^~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:57: note: in definition of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                                         ^~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:42: error: static assertion failed: "library value changed"
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                          ^~~~~~~~~~~~~~
#22 110.3     src/boringssl/err_data.c:53:1: note: in expansion of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        53 | OPENSSL_STATIC_ASSERT(ERR_LIB_USER == 32, "library value changed");
#22 110.3           | ^~~~~~~~~~~~~~~~~~~~~
#22 110.3     src/boringssl/err_data.c:54:23: error: ‘ERR_NUM_LIBS’ undeclared here (not in a function); did you mean ‘ERR_R_UI_LIB’?
#22 110.3        54 | OPENSSL_STATIC_ASSERT(ERR_NUM_LIBS == 33, "number of libraries changed");
#22 110.3           |                       ^~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:57: note: in definition of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                                         ^~~~
#22 110.3     src/boringssl/err_data.c:54:23: error: expression in static assertion is not an integer
#22 110.3        54 | OPENSSL_STATIC_ASSERT(ERR_NUM_LIBS == 33, "number of libraries changed");
#22 110.3           |                       ^~~~~~~~~~~~
#22 110.3     third_party/boringssl/include/openssl/type_check.h:75:57: note: in definition of macro ‘OPENSSL_STATIC_ASSERT’
#22 110.3        75 | #define OPENSSL_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#22 110.3           |                                                         ^~~~
#22 110.3     creating tmp/tmpkbjz_soj
#22 110.3     gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -I/opt/datadog-agent/embedded/include -O2 -g -pipe -I/opt/datadog-agent/embedded/include -O2 -g -pipe -fPIC -I/opt/datadog-agent/embedded/include/python3.8 -c /tmp/tmpkbjz_soj/a.c -o tmp/tmpkbjz_soj/a.o
#22 110.3     Traceback (most recent call last):
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/unixccompiler.py", line 117, in _compile
#22 110.3         self.spawn(compiler_so + cc_args + [src, '-o', obj] +
#22 110.3       File "/tmp/pip-install-5z6co862/grpcio_13bea7a02e9744a7a1f3ff64e38411a8/src/python/grpcio/_spawn_patch.py", line 54, in _commandfile_spawn
#22 110.3         _classic_spawn(self, command)
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/ccompiler.py", line 910, in spawn
#22 110.3         spawn(cmd, dry_run=self.dry_run)
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/spawn.py", line 36, in spawn
#22 110.3         _spawn_posix(cmd, search_path, dry_run=dry_run)
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/spawn.py", line 157, in _spawn_posix
#22 110.3         raise DistutilsExecError(
#22 110.3     distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1
#22 110.3     
#22 110.3     During handling of the above exception, another exception occurred:
#22 110.3     
#22 110.3     Traceback (most recent call last):
#22 110.3       File "/tmp/pip-install-5z6co862/grpcio_13bea7a02e9744a7a1f3ff64e38411a8/src/python/grpcio/commands.py", line 260, in build_extensions
#22 110.3         build_ext.build_ext.build_extensions(self)
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
#22 110.3         self._build_extensions_serial()
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
#22 110.3         self.build_extension(ext)
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/setuptools-40.9.0.post20230202-py3.8.egg/setuptools/command/build_ext.py", line 199, in build_extension
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/command/build_ext.py", line 528, in build_extension
#22 110.3         objects = self.compiler.compile(sources,
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/ccompiler.py", line 574, in compile
#22 110.3         self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/unixccompiler.py", line 120, in _compile
#22 110.3         raise CompileError(msg)
#22 110.3     distutils.errors.CompileError: command 'gcc' failed with exit status 1
#22 110.3     
#22 110.3     During handling of the above exception, another exception occurred:
#22 110.3     
#22 110.3     Traceback (most recent call last):
#22 110.3       File "<string>", line 1, in <module>
#22 110.3       File "/tmp/pip-install-5z6co862/grpcio_13bea7a02e9744a7a1f3ff64e38411a8/setup.py", line 384, in <module>
#22 110.3         setuptools.setup(
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/setuptools-40.9.0.post20230202-py3.8.egg/setuptools/__init__.py", line 145, in setup
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/core.py", line 148, in setup
#22 110.3         dist.run_commands()
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/dist.py", line 966, in run_commands
#22 110.3         self.run_command(cmd)
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/dist.py", line 985, in run_command
#22 110.3         cmd_obj.run()
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/setuptools-40.9.0.post20230202-py3.8.egg/setuptools/command/install.py", line 61, in run
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/command/install.py", line 545, in run
#22 110.3         self.run_command('build')
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/cmd.py", line 313, in run_command
#22 110.3         self.distribution.run_command(command)
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/dist.py", line 985, in run_command
#22 110.3         cmd_obj.run()
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/command/build.py", line 135, in run
#22 110.3         self.run_command(cmd_name)
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/cmd.py", line 313, in run_command
#22 110.3         self.distribution.run_command(command)
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/dist.py", line 985, in run_command
#22 110.3         cmd_obj.run()
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/setuptools-40.9.0.post20230202-py3.8.egg/setuptools/command/build_ext.py", line 78, in run
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/command/build_ext.py", line 340, in run
#22 110.3         self.build_extensions()
#22 110.3       File "/tmp/pip-install-5z6co862/grpcio_13bea7a02e9744a7a1f3ff64e38411a8/src/python/grpcio/commands.py", line 264, in build_extensions
#22 110.3         raise CommandError(
#22 110.3     commands.CommandError: Failed `build_ext` step:
#22 110.3     Traceback (most recent call last):
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/unixccompiler.py", line 117, in _compile
#22 110.3         self.spawn(compiler_so + cc_args + [src, '-o', obj] +
#22 110.3       File "/tmp/pip-install-5z6co862/grpcio_13bea7a02e9744a7a1f3ff64e38411a8/src/python/grpcio/_spawn_patch.py", line 54, in _commandfile_spawn
#22 110.3         _classic_spawn(self, command)
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/ccompiler.py", line 910, in spawn
#22 110.3         spawn(cmd, dry_run=self.dry_run)
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/spawn.py", line 36, in spawn
#22 110.3         _spawn_posix(cmd, search_path, dry_run=dry_run)
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/spawn.py", line 157, in _spawn_posix
#22 110.3         raise DistutilsExecError(
#22 110.3     distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1
#22 110.3     
#22 110.3     During handling of the above exception, another exception occurred:
#22 110.3     
#22 110.3     Traceback (most recent call last):
#22 110.3       File "/tmp/pip-install-5z6co862/grpcio_13bea7a02e9744a7a1f3ff64e38411a8/src/python/grpcio/commands.py", line 260, in build_extensions
#22 110.3         build_ext.build_ext.build_extensions(self)
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
#22 110.3         self._build_extensions_serial()
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
#22 110.3         self.build_extension(ext)
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/setuptools-40.9.0.post20230202-py3.8.egg/setuptools/command/build_ext.py", line 199, in build_extension
#22 110.3         _build_ext.build_extension(self, ext)
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/command/build_ext.py", line 528, in build_extension
#22 110.3         objects = self.compiler.compile(sources,
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/ccompiler.py", line 574, in compile
#22 110.3         self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
#22 110.3       File "/opt/datadog-agent/embedded/lib/python3.8/distutils/unixccompiler.py", line 120, in _compile
#22 110.3         raise CompileError(msg)
#22 110.3     distutils.errors.CompileError: command 'gcc' failed with exit status 1
#22 110.3     
#22 110.3     ----------------------------------------
#22 110.3 ERROR: Command errored out with exit status 1: /opt/datadog-agent/embedded/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5z6co862/grpcio_13bea7a02e9744a7a1f3ff64e38411a8/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5z6co862/grpcio_13bea7a02e9744a7a1f3ff64e38411a8/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-keezktoi/install-record.txt --single-version-externally-managed --compile --install-headers /opt/datadog-agent/embedded/include/python3.8/grpcio Check the logs for full command output.
#22 ERROR: executor failed running [/bin/sh -c /opt/datadog-agent/embedded/bin/pip3 install -r /requirements.in]: exit code: 1
------
 > [stage-1 6/6] RUN    /opt/datadog-agent/embedded/bin/pip3 install -r /requirements.in:
yzhan289 commented 1 year ago

Pinging @cep21 the maintainer of nvml integration.

brianchan661 commented 1 year ago

It looks like the grpcio==1.27.2 (configured in the requirenment.in) cause the issue, it should upgrade to >1.35.0 (related issue) I am able to build the image with grpcio upgraded, but is getting another problem, which should have been fixed here. @cep21 when the changes can be released? seem 1.0.6 is already half year old

cep21 commented 1 year ago

The NVML integration is now owned by datadog: https://github.com/DataDog/integrations-core/pull/14538

I was able to build for ARM locally but had to fork integrations-extra.

hithwen commented 1 year ago

Hi, in the end we decided to not move forward with moving this integration to core and will be building a DCGM exporter based one instead, let us know if you'd be interested in trying out an early version. @cep21, @brianchan661's You can release a new version of this integration following these docs https://datadoghq.dev/integrations-core/process/integration-release/#creating-the-release

gaffneyd4 commented 1 year ago

I ran into a similar issue today using requirements from 1.0.7 release:

#16 [linux/arm64 3/3] RUN curl https://raw.githubusercontent.com/DataDog/integrations-extras/nvml-1.0.7/nvml/requirements.in > requirements.in && /opt/datadog-agent/embedded/bin/pip3 install -r requirements.in
#16 3.519   Preparing metadata (setup.py): started
#16 4.233   Preparing metadata (setup.py): finished with status 'error'
#16 4.240   error: subprocess-exited-with-error
#16 4.240   
#16 4.240   × python setup.py egg_info did not run successfully.
#16 4.240   │ exit code: 1
#16 4.240   ╰─> [14 lines of output]
#16 4.240       /tmp/pip-install-5dxksksa/grpcio_da0a47e9c5734c29b6873bcaa9018bc6/src/python/grpcio/commands.py:102: SyntaxWarning: "is not" with a literal. Did you mean "!="?
#16 4.240         if exit_code is not 0:
#16 4.240       Traceback (most recent call last):
#16 4.240         File "<string>", line 2, in <module>
#16 4.240         File "<pip-setuptools-caller>", line 34, in <module>
#16 4.240         File "/tmp/pip-install-5dxksksa/grpcio_da0a47e9c5734c29b6873bcaa9018bc6/setup.py", line 191, in <module>
#16 4.240           if check_linker_need_libatomic():
#16 4.240         File "/tmp/pip-install-5dxksksa/grpcio_da0a47e9c5734c29b6873bcaa9018bc6/setup.py", line 149, in check_linker_need_libatomic
#16 4.240           cc_test = subprocess.Popen(['cc', '-x', 'c++', '-std=c++11', '-'],
#16 4.240         File "/opt/datadog-agent/embedded/lib/python3.8/subprocess.py", line 858, in __init__
#16 4.240           self._execute_child(args, executable, preexec_fn, close_fds,
#16 4.240         File "/opt/datadog-agent/embedded/lib/python3.8/subprocess.py", line 1720, in _execute_child
#16 4.240           raise child_exception_type(errno_num, err_msg, err_filename)
#16 4.240       FileNotFoundError: [Errno 2] No such file or directory: 'cc'
#16 4.240       [end of output]
#16 4.240   
#16 4.240   note: This error originates from a subprocess, and is likely not a problem with pip.
#16 4.242 error: metadata-generation-failed
#16 4.242 
#16 4.242 × Encountered error while generating package metadata.
#16 4.242 ╰─> See above for output.
#16 4.242 
#16 4.242 note: This is an issue with the package mentioned above, not pip.
#16 4.242 hint: See above for details.
#16 4.368 
#16 4.368 [notice] A new release of pip is available: 23.0.1 -> 23.2.1
#16 4.368 [notice] To update, run: python3 -m pip install --upgrade pip
#16 ERROR: process "/bin/sh -c curl https://raw.githubusercontent.com/DataDog/integrations-extras/nvml-1.0.7/nvml/requirements.in > requirements.in && /opt/datadog-agent/embedded/bin/pip3 install -r requirements.in" did not complete successfully: exit code: 1

Building the docker image with my own local requirements.in resulted in a successful build:

pynvml==11.4.1
# https://github.com/grpc/grpc/issues/21283
# upgrading to solve this issue ^, was previously version 1.27.2
grpcio==1.57.0

Dockerfile:

FROM gcr.io/datadoghq/agent:7.46.0
RUN agent integration install -t -r datadog-nvml==1.0.7

COPY requirements.in /tmp/requirements.in
RUN /opt/datadog-agent/embedded/bin/pip3 install -r /tmp/requirements.in

# Why do you need these variables: See https://github.com/NVIDIA/nvidia-docker/wiki/Usage
ENV NVIDIA_VISIBLE_DEVICES all
ENV NVIDIA_DRIVER_CAPABILITIES all
yzhan289 commented 1 year ago

@zeevdri Can you try 1.0.8 of the integration now to see if it builds? I just merged in @gaffneyd4's PR that should fix it.