rizsotto / Bear

Bear is a tool that generates a compilation database for clang tooling.
GNU General Public License v3.0
4.79k stars 314 forks source link

build problem on aarch64 of debian10,ubuntu18,openEuler20 and suse15 #385

Closed Tom-python0121 closed 3 years ago

Tom-python0121 commented 3 years ago

hello,when I build bear@3.0.12 in spack ,I meet some problems about build problem on aarch64 of debian10,ubuntu18,openEuler20 and suse15:

about debian10

root@debian:~# spack install -y -v --keep-stage --dont-restage --no-checksum --fail-fast bear@3.0.11
……
[ 96%] Linking CXX executable intercept
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(json_token.cc.o): in function `compute_and_encode_signature(grpc_auth_json_key const*, char const*, char const*)':
json_token.cc:(.text+0xba0): undefined reference to `EVP_MD_CTX_create'
/usr/bin/ld: json_token.cc:(.text+0xc48): undefined reference to `EVP_DigestSignUpdate'
/usr/bin/ld: json_token.cc:(.text+0xd5c): undefined reference to `EVP_MD_CTX_destroy'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `init_openssl()':
ssl_transport_security.cc:(.text+0x28): undefined reference to `SSL_CTX_get_ex_new_index'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `peer_property_from_x509_common_name(x509_st*, tsi_peer_property*)':
ssl_transport_security.cc:(.text+0x664): undefined reference to `OPENSSL_free'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `add_pem_certificate(x509_st*, tsi_peer_property*)':
ssl_transport_security.cc:(.text+0x6cc): undefined reference to `BIO_get_mem_data'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `add_subject_alt_names_properties_to_peer(tsi_peer*, stack_st_GENERAL_NAME*, unsigned long, int*)':
ssl_transport_security.cc:(.text+0x89c): undefined reference to `OPENSSL_free'
/usr/bin/ld: ssl_transport_security.cc:(.text+0x914): undefined reference to `OPENSSL_free'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `ssl_ctx_use_certificate_chain(ssl_ctx_st*, char const*, unsigned long)':
ssl_transport_security.cc:(.text+0x11cc): undefined reference to `SSL_CTX_add_extra_chain_cert'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `populate_ssl_context(ssl_ctx_st*, tsi_ssl_pem_key_cert_pair const*, char const*)':
ssl_transport_security.cc:(.text+0x181c): undefined reference to `SSL_CTX_set_tmp_ecdh'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `tsi_set_min_and_max_tls_versions(ssl_ctx_st*, tsi_tls_version, tsi_tls_version)':
ssl_transport_security.cc:(.text+0x1be4): undefined reference to `SSL_CTX_set_min_proto_version'
/usr/bin/ld: ssl_transport_security.cc:(.text+0x1bf4): undefined reference to `SSL_CTX_set_min_proto_version'
/usr/bin/ld: ssl_transport_security.cc:(.text+0x1c40): undefined reference to `SSL_CTX_set_max_proto_version'
/usr/bin/ld: ssl_transport_security.cc:(.text+0x1c50): undefined reference to `SSL_CTX_set_max_proto_version'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `ssl_protector_protect(tsi_frame_protector*, unsigned char const*, unsigned long*, unsigned char*, unsigned long*)':
ssl_transport_security.cc:(.text+0x1ed8): undefined reference to `BIO_pending'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `ssl_protector_protect_flush(tsi_frame_protector*, unsigned char*, unsigned long*, unsigned long*)':
ssl_transport_security.cc:(.text+0x21d8): undefined reference to `BIO_pending'
/usr/bin/ld: ssl_transport_security.cc:(.text+0x22f8): undefined reference to `BIO_pending'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `tsi_ssl_get_cert_chain_contents(stack_st_X509*, tsi_peer_property*)':
ssl_transport_security.cc:(.text+0x2784): undefined reference to `BIO_get_mem_data'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `ssl_handshaker_get_bytes_to_send_to_peer(tsi_ssl_handshaker*, unsigned char*, unsigned long*)':
ssl_transport_security.cc:(.text+0x2f00): undefined reference to `BIO_should_retry'
/usr/bin/ld: ssl_transport_security.cc:(.text+0x2f4c): undefined reference to `BIO_pending'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `ssl_handshaker_process_bytes_from_peer(tsi_ssl_handshaker*, unsigned char const*, unsigned long*)':
ssl_transport_security.cc:(.text+0x3148): undefined reference to `BIO_pending'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `ssl_bytes_remaining(tsi_ssl_handshaker*, unsigned char**, unsigned long*)':
ssl_transport_security.cc:(.text+0x3288): undefined reference to `BIO_pending'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `create_tsi_ssl_handshaker(ssl_ctx_st*, int, char const*, tsi_ssl_handshaker_factory*, tsi_handshaker**)':
ssl_transport_security.cc:(.text+0x378c): undefined reference to `SSL_set_tlsext_host_name'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `tsi_create_ssl_client_handshaker_factory_with_options(tsi_ssl_client_handshaker_options const*, tsi_ssl_client_handshaker_factory**)':
ssl_transport_security.cc:(.text+0x44f4): undefined reference to `SSL_CTX_set_session_cache_mode'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `tsi_create_ssl_server_handshaker_factory_with_options(tsi_ssl_server_handshaker_options const*, tsi_ssl_server_handshaker_factory**)':
ssl_transport_security.cc:(.text+0x4b94): undefined reference to `SSL_CTX_set_tlsext_ticket_keys'
/usr/bin/ld: ssl_transport_security.cc:(.text+0x4e04): undefined reference to `SSL_CTX_set_tlsext_servername_callback'
/usr/bin/ld: ssl_transport_security.cc:(.text+0x4e24): undefined reference to `SSL_CTX_set_tlsext_servername_arg'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `sk_X509_NAME_new_null':
ssl_transport_security.cc:(.text.sk_X509_NAME_new_null[sk_X509_NAME_new_null]+0x8): undefined reference to `sk_new_null'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `sk_X509_NAME_pop_free':
ssl_transport_security.cc:(.text.sk_X509_NAME_pop_free[sk_X509_NAME_pop_free]+0x20): undefined reference to `sk_pop_free_ex'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `sk_X509_NAME_push':
ssl_transport_security.cc:(.text.sk_X509_NAME_push[sk_X509_NAME_push]+0x18): undefined reference to `sk_push'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `sk_X509_num':
ssl_transport_security.cc:(.text.sk_X509_num[sk_X509_num]+0x10): undefined reference to `sk_num'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `sk_X509_value':
ssl_transport_security.cc:(.text.sk_X509_value[sk_X509_value]+0x18): undefined reference to `sk_value'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `sk_GENERAL_NAME_num':
ssl_transport_security.cc:(.text.sk_GENERAL_NAME_num[sk_GENERAL_NAME_num]+0x10): undefined reference to `sk_num'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `sk_GENERAL_NAME_value':
ssl_transport_security.cc:(.text.sk_GENERAL_NAME_value[sk_GENERAL_NAME_value]+0x18): undefined reference to `sk_value'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `sk_GENERAL_NAME_pop_free':
ssl_transport_security.cc:(.text.sk_GENERAL_NAME_pop_free[sk_GENERAL_NAME_pop_free]+0x20): undefined reference to `sk_pop_free_ex'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(aes_gcm.cc.o): in function `aes_gcm_get_openssl_errors()':
aes_gcm.cc:(.text+0x30): undefined reference to `BIO_get_mem_ptr'
collect2: error: ld returned 1 exit status
make[5]: *** [intercept/CMakeFiles/wrapper.dir/build.make:220: intercept/wrapper] Error 1
make[5]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Build/BearSource'
make[4]: *** [CMakeFiles/Makefile2:618: intercept/CMakeFiles/wrapper.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(json_token.cc.o): in function `compute_and_encode_signature(grpc_auth_json_key const*, char const*, char const*)':
json_token.cc:(.text+0xba0): undefined reference to `EVP_MD_CTX_create'
/usr/bin/ld: json_token.cc:(.text+0xc48): undefined reference to `EVP_DigestSignUpdate'
/usr/bin/ld: json_token.cc:(.text+0xd5c): undefined reference to `EVP_MD_CTX_destroy'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `init_openssl()':
ssl_transport_security.cc:(.text+0x28): undefined reference to `SSL_CTX_get_ex_new_index'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `peer_property_from_x509_common_name(x509_st*, tsi_peer_property*)':
ssl_transport_security.cc:(.text+0x664): undefined reference to `OPENSSL_free'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `add_pem_certificate(x509_st*, tsi_peer_property*)':
ssl_transport_security.cc:(.text+0x6cc): undefined reference to `BIO_get_mem_data'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `add_subject_alt_names_properties_to_peer(tsi_peer*, stack_st_GENERAL_NAME*, unsigned long, int*)':
ssl_transport_security.cc:(.text+0x89c): undefined reference to `OPENSSL_free'
/usr/bin/ld: ssl_transport_security.cc:(.text+0x914): undefined reference to `OPENSSL_free'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `ssl_ctx_use_certificate_chain(ssl_ctx_st*, char const*, unsigned long)':
ssl_transport_security.cc:(.text+0x11cc): undefined reference to `SSL_CTX_add_extra_chain_cert'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `populate_ssl_context(ssl_ctx_st*, tsi_ssl_pem_key_cert_pair const*, char const*)':
ssl_transport_security.cc:(.text+0x181c): undefined reference to `SSL_CTX_set_tmp_ecdh'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `tsi_set_min_and_max_tls_versions(ssl_ctx_st*, tsi_tls_version, tsi_tls_version)':
ssl_transport_security.cc:(.text+0x1be4): undefined reference to `SSL_CTX_set_min_proto_version'
/usr/bin/ld: ssl_transport_security.cc:(.text+0x1bf4): undefined reference to `SSL_CTX_set_min_proto_version'
/usr/bin/ld: ssl_transport_security.cc:(.text+0x1c40): undefined reference to `SSL_CTX_set_max_proto_version'
/usr/bin/ld: ssl_transport_security.cc:(.text+0x1c50): undefined reference to `SSL_CTX_set_max_proto_version'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `ssl_protector_protect(tsi_frame_protector*, unsigned char const*, unsigned long*, unsigned char*, unsigned long*)':
ssl_transport_security.cc:(.text+0x1ed8): undefined reference to `BIO_pending'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `ssl_protector_protect_flush(tsi_frame_protector*, unsigned char*, unsigned long*, unsigned long*)':
ssl_transport_security.cc:(.text+0x21d8): undefined reference to `BIO_pending'
/usr/bin/ld: ssl_transport_security.cc:(.text+0x22f8): undefined reference to `BIO_pending'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `tsi_ssl_get_cert_chain_contents(stack_st_X509*, tsi_peer_property*)':
ssl_transport_security.cc:(.text+0x2784): undefined reference to `BIO_get_mem_data'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `ssl_handshaker_get_bytes_to_send_to_peer(tsi_ssl_handshaker*, unsigned char*, unsigned long*)':
ssl_transport_security.cc:(.text+0x2f00): undefined reference to `BIO_should_retry'
/usr/bin/ld: ssl_transport_security.cc:(.text+0x2f4c): undefined reference to `BIO_pending'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `ssl_handshaker_process_bytes_from_peer(tsi_ssl_handshaker*, unsigned char const*, unsigned long*)':
ssl_transport_security.cc:(.text+0x3148): undefined reference to `BIO_pending'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `ssl_bytes_remaining(tsi_ssl_handshaker*, unsigned char**, unsigned long*)':
ssl_transport_security.cc:(.text+0x3288): undefined reference to `BIO_pending'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `create_tsi_ssl_handshaker(ssl_ctx_st*, int, char const*, tsi_ssl_handshaker_factory*, tsi_handshaker**)':
ssl_transport_security.cc:(.text+0x378c): undefined reference to `SSL_set_tlsext_host_name'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `tsi_create_ssl_client_handshaker_factory_with_options(tsi_ssl_client_handshaker_options const*, tsi_ssl_client_handshaker_factory**)':
ssl_transport_security.cc:(.text+0x44f4): undefined reference to `SSL_CTX_set_session_cache_mode'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `tsi_create_ssl_server_handshaker_factory_with_options(tsi_ssl_server_handshaker_options const*, tsi_ssl_server_handshaker_factory**)':
ssl_transport_security.cc:(.text+0x4b94): undefined reference to `SSL_CTX_set_tlsext_ticket_keys'
/usr/bin/ld: ssl_transport_security.cc:(.text+0x4e04): undefined reference to `SSL_CTX_set_tlsext_servername_callback'
/usr/bin/ld: ssl_transport_security.cc:(.text+0x4e24): undefined reference to `SSL_CTX_set_tlsext_servername_arg'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `sk_X509_NAME_new_null':
ssl_transport_security.cc:(.text.sk_X509_NAME_new_null[sk_X509_NAME_new_null]+0x8): undefined reference to `sk_new_null'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `sk_X509_NAME_pop_free':
ssl_transport_security.cc:(.text.sk_X509_NAME_pop_free[sk_X509_NAME_pop_free]+0x20): undefined reference to `sk_pop_free_ex'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `sk_X509_NAME_push':
ssl_transport_security.cc:(.text.sk_X509_NAME_push[sk_X509_NAME_push]+0x18): undefined reference to `sk_push'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `sk_X509_num':
ssl_transport_security.cc:(.text.sk_X509_num[sk_X509_num]+0x10): undefined reference to `sk_num'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `sk_X509_value':
ssl_transport_security.cc:(.text.sk_X509_value[sk_X509_value]+0x18): undefined reference to `sk_value'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `sk_GENERAL_NAME_num':
ssl_transport_security.cc:(.text.sk_GENERAL_NAME_num[sk_GENERAL_NAME_num]+0x10): undefined reference to `sk_num'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `sk_GENERAL_NAME_value':
ssl_transport_security.cc:(.text.sk_GENERAL_NAME_value[sk_GENERAL_NAME_value]+0x18): undefined reference to `sk_value'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in function `sk_GENERAL_NAME_pop_free':
ssl_transport_security.cc:(.text.sk_GENERAL_NAME_pop_free[sk_GENERAL_NAME_pop_free]+0x20): undefined reference to `sk_pop_free_ex'
/usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(aes_gcm.cc.o): in function `aes_gcm_get_openssl_errors()':
aes_gcm.cc:(.text+0x30): undefined reference to `BIO_get_mem_ptr'
collect2: error: ld returned 1 exit status
make[5]: *** [intercept/CMakeFiles/intercept.dir/build.make:244: intercept/intercept] Error 1
make[5]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Build/BearSource'
make[4]: *** [CMakeFiles/Makefile2:555: intercept/CMakeFiles/intercept.dir/all] Error 2
make[5]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Build/BearSource'
[ 96%] Built target citnames_a
make[4]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Build/BearSource'
make[3]: *** [Makefile:149: all] Error 2
make[3]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Build/BearSource'
make[2]: *** [CMakeFiles/BearSource.dir/build.make:140: subprojects/Stamp/BearSource/BearSource-build] Error 2
make[2]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf'
make[1]: *** [CMakeFiles/Makefile2:204: CMakeFiles/BearSource.dir/all] Error 2
make[1]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf'
make: *** [Makefile:174: all] Error 2
==> Error: ProcessError: Command exited with status 2:
    'make' '-j16'

80 errors found in build log:
     602    [ 90%] Building CXX object citnames/CMakeFiles/citnames_a.dir/source/semantic/ToolWrapper.cc.o
     603    [ 93%] Building CXX object citnames/CMakeFiles/citnames_a.dir/source/semantic/ToolGcc.cc.o
     604    [ 93%] Building CXX object citnames/CMakeFiles/citnames_a.dir/source/semantic/ToolExtendingWrapper.cc.o
     605    [ 95%] Linking CXX executable wrapper
     606    [ 96%] Linking CXX executable intercept
     607    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(json_token.cc.o): in function `compute
            _and_encode_signature(grpc_auth_json_key const*, char const*, char const*)':
  >> 608    json_token.cc:(.text+0xba0): undefined reference to `EVP_MD_CTX_create'
  >> 609    /usr/bin/ld: json_token.cc:(.text+0xc48): undefined reference to `EVP_DigestSignUpdate'
  >> 610    /usr/bin/ld: json_token.cc:(.text+0xd5c): undefined reference to `EVP_MD_CTX_destroy'
     611    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `init_openssl()':
  >> 612    ssl_transport_security.cc:(.text+0x28): undefined reference to `SSL_CTX_get_ex_new_index'
     613    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `peer_property_from_x509_common_name(x509_st*, tsi_peer_property*)':
  >> 614    ssl_transport_security.cc:(.text+0x664): undefined reference to `OPENSSL_free'
     615    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `add_pem_certificate(x509_st*, tsi_peer_property*)':
  >> 616    ssl_transport_security.cc:(.text+0x6cc): undefined reference to `BIO_get_mem_data'
     617    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `add_subject_alt_names_properties_to_peer(tsi_peer*, stack_st_GENERAL_NAME*, unsigned long, int*)':
  >> 618    ssl_transport_security.cc:(.text+0x89c): undefined reference to `OPENSSL_free'
  >> 619    /usr/bin/ld: ssl_transport_security.cc:(.text+0x914): undefined reference to `OPENSSL_free'
     620    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `ssl_ctx_use_certificate_chain(ssl_ctx_st*, char const*, unsigned long)':
  >> 621    ssl_transport_security.cc:(.text+0x11cc): undefined reference to `SSL_CTX_add_extra_chain_cert'
     622    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `populate_ssl_context(ssl_ctx_st*, tsi_ssl_pem_key_cert_pair const*, char const*)':
  >> 623    ssl_transport_security.cc:(.text+0x181c): undefined reference to `SSL_CTX_set_tmp_ecdh'
     624    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `tsi_set_min_and_max_tls_versions(ssl_ctx_st*, tsi_tls_version, tsi_tls_version)':
  >> 625    ssl_transport_security.cc:(.text+0x1be4): undefined reference to `SSL_CTX_set_min_proto_version'
  >> 626    /usr/bin/ld: ssl_transport_security.cc:(.text+0x1bf4): undefined reference to `SSL_CTX_set_min_proto_version'
  >> 627    /usr/bin/ld: ssl_transport_security.cc:(.text+0x1c40): undefined reference to `SSL_CTX_set_max_proto_version'
  >> 628    /usr/bin/ld: ssl_transport_security.cc:(.text+0x1c50): undefined reference to `SSL_CTX_set_max_proto_version'
     629    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `ssl_protector_protect(tsi_frame_protector*, unsigned char const*, unsigned long*, unsigned char*, unsigned long*)':
  >> 630    ssl_transport_security.cc:(.text+0x1ed8): undefined reference to `BIO_pending'
     631    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `ssl_protector_protect_flush(tsi_frame_protector*, unsigned char*, unsigned long*, unsigned long*)':
  >> 632    ssl_transport_security.cc:(.text+0x21d8): undefined reference to `BIO_pending'
  >> 633    /usr/bin/ld: ssl_transport_security.cc:(.text+0x22f8): undefined reference to `BIO_pending'
     634    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `tsi_ssl_get_cert_chain_contents(stack_st_X509*, tsi_peer_property*)':
  >> 635    ssl_transport_security.cc:(.text+0x2784): undefined reference to `BIO_get_mem_data'
     636    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `ssl_handshaker_get_bytes_to_send_to_peer(tsi_ssl_handshaker*, unsigned char*, unsigned long*)':
  >> 637    ssl_transport_security.cc:(.text+0x2f00): undefined reference to `BIO_should_retry'
  >> 638    /usr/bin/ld: ssl_transport_security.cc:(.text+0x2f4c): undefined reference to `BIO_pending'
     639    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `ssl_handshaker_process_bytes_from_peer(tsi_ssl_handshaker*, unsigned char const*, unsigned long*)':
  >> 640    ssl_transport_security.cc:(.text+0x3148): undefined reference to `BIO_pending'
     641    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `ssl_bytes_remaining(tsi_ssl_handshaker*, unsigned char**, unsigned long*)':
  >> 642    ssl_transport_security.cc:(.text+0x3288): undefined reference to `BIO_pending'
     643    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `create_tsi_ssl_handshaker(ssl_ctx_st*, int, char const*, tsi_ssl_handshaker_factory*, tsi_handshaker**)':
  >> 644    ssl_transport_security.cc:(.text+0x378c): undefined reference to `SSL_set_tlsext_host_name'
     645    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `tsi_create_ssl_client_handshaker_factory_with_options(tsi_ssl_client_handshaker_options const*, tsi_ssl_client_handshaker_factory**)':
  >> 646    ssl_transport_security.cc:(.text+0x44f4): undefined reference to `SSL_CTX_set_session_cache_mode'
     647    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `tsi_create_ssl_server_handshaker_factory_with_options(tsi_ssl_server_handshaker_options const*, tsi_ssl_server_handshaker_factory**)':
  >> 648    ssl_transport_security.cc:(.text+0x4b94): undefined reference to `SSL_CTX_set_tlsext_ticket_keys'
  >> 649    /usr/bin/ld: ssl_transport_security.cc:(.text+0x4e04): undefined reference to `SSL_CTX_set_tlsext_servername_callback'
  >> 650    /usr/bin/ld: ssl_transport_security.cc:(.text+0x4e24): undefined reference to `SSL_CTX_set_tlsext_servername_arg'
     651    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `sk_X509_NAME_new_null':
  >> 652    ssl_transport_security.cc:(.text.sk_X509_NAME_new_null[sk_X509_NAME_new_null]+0x8): undefined reference to `sk_new_null'
     653    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `sk_X509_NAME_pop_free':
  >> 654    ssl_transport_security.cc:(.text.sk_X509_NAME_pop_free[sk_X509_NAME_pop_free]+0x20): undefined reference to `sk_pop_free_ex'
     655    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `sk_X509_NAME_push':
  >> 656    ssl_transport_security.cc:(.text.sk_X509_NAME_push[sk_X509_NAME_push]+0x18): undefined reference to `sk_push'
     657    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `sk_X509_num':
  >> 658    ssl_transport_security.cc:(.text.sk_X509_num[sk_X509_num]+0x10): undefined reference to `sk_num'
     659    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `sk_X509_value':
  >> 660    ssl_transport_security.cc:(.text.sk_X509_value[sk_X509_value]+0x18): undefined reference to `sk_value'
     661    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `sk_GENERAL_NAME_num':
  >> 662    ssl_transport_security.cc:(.text.sk_GENERAL_NAME_num[sk_GENERAL_NAME_num]+0x10): undefined reference to `sk_num'
     663    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `sk_GENERAL_NAME_value':
  >> 664    ssl_transport_security.cc:(.text.sk_GENERAL_NAME_value[sk_GENERAL_NAME_value]+0x18): undefined reference to `sk_value'
     665    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `sk_GENERAL_NAME_pop_free':
  >> 666    ssl_transport_security.cc:(.text.sk_GENERAL_NAME_pop_free[sk_GENERAL_NAME_pop_free]+0x20): undefined reference to `sk_pop_free_ex'
     667    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(aes_gcm.cc.o): in function `aes_gcm_ge
            t_openssl_errors()':
  >> 668    aes_gcm.cc:(.text+0x30): undefined reference to `BIO_get_mem_ptr'
  >> 669    collect2: error: ld returned 1 exit status
  >> 670    make[5]: *** [intercept/CMakeFiles/wrapper.dir/build.make:220: intercept/wrapper] Error 1
     671    make[5]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Build/BearSource'
  >> 672    make[4]: *** [CMakeFiles/Makefile2:618: intercept/CMakeFiles/wrapper.dir/all] Error 2
     673    make[4]: *** Waiting for unfinished jobs....
     674    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(json_token.cc.o): in function `compute
            _and_encode_signature(grpc_auth_json_key const*, char const*, char const*)':
  >> 675    json_token.cc:(.text+0xba0): undefined reference to `EVP_MD_CTX_create'
  >> 676    /usr/bin/ld: json_token.cc:(.text+0xc48): undefined reference to `EVP_DigestSignUpdate'
  >> 677    /usr/bin/ld: json_token.cc:(.text+0xd5c): undefined reference to `EVP_MD_CTX_destroy'
     678    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `init_openssl()':
  >> 679    ssl_transport_security.cc:(.text+0x28): undefined reference to `SSL_CTX_get_ex_new_index'
     680    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `peer_property_from_x509_common_name(x509_st*, tsi_peer_property*)':
  >> 681    ssl_transport_security.cc:(.text+0x664): undefined reference to `OPENSSL_free'
     682    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `add_pem_certificate(x509_st*, tsi_peer_property*)':
  >> 683    ssl_transport_security.cc:(.text+0x6cc): undefined reference to `BIO_get_mem_data'
     684    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `add_subject_alt_names_properties_to_peer(tsi_peer*, stack_st_GENERAL_NAME*, unsigned long, int*)':
  >> 685    ssl_transport_security.cc:(.text+0x89c): undefined reference to `OPENSSL_free'
  >> 686    /usr/bin/ld: ssl_transport_security.cc:(.text+0x914): undefined reference to `OPENSSL_free'
     687    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `ssl_ctx_use_certificate_chain(ssl_ctx_st*, char const*, unsigned long)':
  >> 688    ssl_transport_security.cc:(.text+0x11cc): undefined reference to `SSL_CTX_add_extra_chain_cert'
     689    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `populate_ssl_context(ssl_ctx_st*, tsi_ssl_pem_key_cert_pair const*, char const*)':
  >> 690    ssl_transport_security.cc:(.text+0x181c): undefined reference to `SSL_CTX_set_tmp_ecdh'
     691    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `tsi_set_min_and_max_tls_versions(ssl_ctx_st*, tsi_tls_version, tsi_tls_version)':
  >> 692    ssl_transport_security.cc:(.text+0x1be4): undefined reference to `SSL_CTX_set_min_proto_version'
  >> 693    /usr/bin/ld: ssl_transport_security.cc:(.text+0x1bf4): undefined reference to `SSL_CTX_set_min_proto_version'
  >> 694    /usr/bin/ld: ssl_transport_security.cc:(.text+0x1c40): undefined reference to `SSL_CTX_set_max_proto_version'
  >> 695    /usr/bin/ld: ssl_transport_security.cc:(.text+0x1c50): undefined reference to `SSL_CTX_set_max_proto_version'
     696    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `ssl_protector_protect(tsi_frame_protector*, unsigned char const*, unsigned long*, unsigned char*, unsigned long*)':
  >> 697    ssl_transport_security.cc:(.text+0x1ed8): undefined reference to `BIO_pending'
     698    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `ssl_protector_protect_flush(tsi_frame_protector*, unsigned char*, unsigned long*, unsigned long*)':
  >> 699    ssl_transport_security.cc:(.text+0x21d8): undefined reference to `BIO_pending'
  >> 700    /usr/bin/ld: ssl_transport_security.cc:(.text+0x22f8): undefined reference to `BIO_pending'
     701    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `tsi_ssl_get_cert_chain_contents(stack_st_X509*, tsi_peer_property*)':
  >> 702    ssl_transport_security.cc:(.text+0x2784): undefined reference to `BIO_get_mem_data'
     703    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `ssl_handshaker_get_bytes_to_send_to_peer(tsi_ssl_handshaker*, unsigned char*, unsigned long*)':
  >> 704    ssl_transport_security.cc:(.text+0x2f00): undefined reference to `BIO_should_retry'
  >> 705    /usr/bin/ld: ssl_transport_security.cc:(.text+0x2f4c): undefined reference to `BIO_pending'
     706    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `ssl_handshaker_process_bytes_from_peer(tsi_ssl_handshaker*, unsigned char const*, unsigned long*)':
  >> 707    ssl_transport_security.cc:(.text+0x3148): undefined reference to `BIO_pending'
     708    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `ssl_bytes_remaining(tsi_ssl_handshaker*, unsigned char**, unsigned long*)':
  >> 709    ssl_transport_security.cc:(.text+0x3288): undefined reference to `BIO_pending'
     710    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `create_tsi_ssl_handshaker(ssl_ctx_st*, int, char const*, tsi_ssl_handshaker_factory*, tsi_handshaker**)':
  >> 711    ssl_transport_security.cc:(.text+0x378c): undefined reference to `SSL_set_tlsext_host_name'
     712    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `tsi_create_ssl_client_handshaker_factory_with_options(tsi_ssl_client_handshaker_options const*, tsi_ssl_client_handshaker_factory**)':
  >> 713    ssl_transport_security.cc:(.text+0x44f4): undefined reference to `SSL_CTX_set_session_cache_mode'
     714    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `tsi_create_ssl_server_handshaker_factory_with_options(tsi_ssl_server_handshaker_options const*, tsi_ssl_server_handshaker_factory**)':
  >> 715    ssl_transport_security.cc:(.text+0x4b94): undefined reference to `SSL_CTX_set_tlsext_ticket_keys'
  >> 716    /usr/bin/ld: ssl_transport_security.cc:(.text+0x4e04): undefined reference to `SSL_CTX_set_tlsext_servername_callback'
  >> 717    /usr/bin/ld: ssl_transport_security.cc:(.text+0x4e24): undefined reference to `SSL_CTX_set_tlsext_servername_arg'
     718    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `sk_X509_NAME_new_null':
  >> 719    ssl_transport_security.cc:(.text.sk_X509_NAME_new_null[sk_X509_NAME_new_null]+0x8): undefined reference to `sk_new_null'
     720    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `sk_X509_NAME_pop_free':
  >> 721    ssl_transport_security.cc:(.text.sk_X509_NAME_pop_free[sk_X509_NAME_pop_free]+0x20): undefined reference to `sk_pop_free_ex'
     722    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `sk_X509_NAME_push':
  >> 723    ssl_transport_security.cc:(.text.sk_X509_NAME_push[sk_X509_NAME_push]+0x18): undefined reference to `sk_push'
     724    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `sk_X509_num':
  >> 725    ssl_transport_security.cc:(.text.sk_X509_num[sk_X509_num]+0x10): undefined reference to `sk_num'
     726    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `sk_X509_value':
  >> 727    ssl_transport_security.cc:(.text.sk_X509_value[sk_X509_value]+0x18): undefined reference to `sk_value'
     728    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `sk_GENERAL_NAME_num':
  >> 729    ssl_transport_security.cc:(.text.sk_GENERAL_NAME_num[sk_GENERAL_NAME_num]+0x10): undefined reference to `sk_num'
     730    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `sk_GENERAL_NAME_value':
  >> 731    ssl_transport_security.cc:(.text.sk_GENERAL_NAME_value[sk_GENERAL_NAME_value]+0x18): undefined reference to `sk_value'
     732    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(ssl_transport_security.cc.o): in funct
            ion `sk_GENERAL_NAME_pop_free':
  >> 733    ssl_transport_security.cc:(.text.sk_GENERAL_NAME_pop_free[sk_GENERAL_NAME_pop_free]+0x20): undefined reference to `sk_pop_free_ex'
     734    /usr/bin/ld: /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Install/grpc_dependency/lib/libgrpc.a(aes_gcm.cc.o): in function `aes_gcm_ge
            t_openssl_errors()':
  >> 735    aes_gcm.cc:(.text+0x30): undefined reference to `BIO_get_mem_ptr'
  >> 736    collect2: error: ld returned 1 exit status
  >> 737    make[5]: *** [intercept/CMakeFiles/intercept.dir/build.make:244: intercept/intercept] Error 1
     738    make[5]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Build/BearSource'
  >> 739    make[4]: *** [CMakeFiles/Makefile2:555: intercept/CMakeFiles/intercept.dir/all] Error 2
     740    make[5]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Build/BearSource'
     741    [ 96%] Built target citnames_a
     742    make[4]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Build/BearSource'
     743    make[3]: *** [Makefile:149: all] Error 2
     744    make[3]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf/subprojects/Build/BearSource'
  >> 745    make[2]: *** [CMakeFiles/BearSource.dir/build.make:140: subprojects/Stamp/BearSource/BearSource-build] Error 2
     746    make[2]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf'
  >> 747    make[1]: *** [CMakeFiles/Makefile2:204: CMakeFiles/BearSource.dir/all] Error 2
     748    make[1]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-rs55iyf'
     749    make: *** [Makefile:174: all] Error 2

See build log for details:
  /home/stage/root/spack-stage-bear-3.0.11-rs55iyfqhcy2e7fg74pdg2pmo64fjbtu/spack-build-out.txt

==> Error: Terminating after first install failure: ProcessError: Command exited with status 2:
    'make' '-j16'

about ubuntu18,openEuler20 and suse15
root@weipan:~# spack install -y -v --keep-stage --dont-restage --no-checksum --fail-fast bear
……
In file included from /home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-src/source/libsys/source/Path.cc:20:0:
/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-src/source/libsys/include/libsys/Path.h:25:10: fatal error: filesystem: No such file or directory
 #include <filesystem>
          ^~~~~~~~~~~~
compilation terminated.
libsys/CMakeFiles/sys_a.dir/build.make:120: recipe for target 'libsys/CMakeFiles/sys_a.dir/source/Path.cc.o' failed
make[5]: *** [libsys/CMakeFiles/sys_a.dir/source/Path.cc.o] Error 1
make[5]: *** Waiting for unfinished jobs....
In file included from /home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-src/source/libsys/source/Process.cc:20:0:
/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-src/source/libsys/include/libsys/Process.h:25:10: fatal error: filesystem: No such file or directory
 #include <filesystem>
          ^~~~~~~~~~~~
compilation terminated.
libsys/CMakeFiles/sys_a.dir/build.make:133: recipe for target 'libsys/CMakeFiles/sys_a.dir/source/Process.cc.o' failed
make[5]: *** [libsys/CMakeFiles/sys_a.dir/source/Process.cc.o] Error 1
In file included from /home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-src/source/libsys/source/Signal.cc:21:0:
/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-src/source/libsys/include/libsys/Process.h:25:10: fatal error: filesystem: No such file or directory
 #include <filesystem>
          ^~~~~~~~~~~~
compilation terminated.
libsys/CMakeFiles/sys_a.dir/build.make:146: recipe for target 'libsys/CMakeFiles/sys_a.dir/source/Signal.cc.o' failed
make[5]: *** [libsys/CMakeFiles/sys_a.dir/source/Signal.cc.o] Error 1
make[5]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop/subprojects/Build/BearSource'
[ 36%] Built target exec_a
make[5]: Entering directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop/subprojects/Build/BearSource'
Scanning dependencies of target exec
make[5]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop/subprojects/Build/BearSource'
make[5]: Entering directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop/subprojects/Build/BearSource'
[ 37%] Building CXX object intercept/CMakeFiles/exec.dir/source/report/libexec/lib.cc.o
[ 39%] Building CXX object intercept/CMakeFiles/exec.dir/source/report/libexec/std.cc.o
/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-src/source/libflags/source/Flags.cc: In function 'std::__cxx11::list<std::__cxx11::list<std::pair<const std::basic_string_view<char>, flags::Option> > > {anonymous}::group_by(const OptionMap&)':
/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-src/source/libflags/source/Flags.cc:61:36: warning: unused variable '_' [-Wunused-variable]
         for (const auto& [_, option] : options) {
                                    ^
make[5]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop/subprojects/Build/BearSource'
CMakeFiles/Makefile2:351: recipe for target 'libsys/CMakeFiles/sys_a.dir/all' failed
make[4]: *** [libsys/CMakeFiles/sys_a.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....
[ 40%] Linking C shared library libexec.so
make[5]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop/subprojects/Build/BearSource'
[ 40%] Built target exec
make[5]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop/subprojects/Build/BearSource'
[ 40%] Built target flags_a
make[5]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop/subprojects/Build/BearSource'
[ 40%] Built target rpc_a
make[5]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop/subprojects/Build/BearSource'
[ 40%] Built target shell_a
make[4]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop/subprojects/Build/BearSource'
Makefile:148: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop/subprojects/Build/BearSource'
CMakeFiles/BearSource.dir/build.make:139: recipe for target 'subprojects/Stamp/BearSource/BearSource-build' failed
make[2]: *** [subprojects/Stamp/BearSource/BearSource-build] Error 2
make[2]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop'
CMakeFiles/Makefile2:203: recipe for target 'CMakeFiles/BearSource.dir/all' failed
make[1]: *** [CMakeFiles/BearSource.dir/all] Error 2
make[1]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop'
Makefile:173: recipe for target 'all' failed
make: *** [all] Error 2
==> Error: ProcessError: Command exited with status 2:
    'make' '-j16'

11 errors found in build log:
     495    make[5]: Entering directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop/subprojects/Build/BearSource'
     496    [ 32%] Building CXX object intercept/proto/CMakeFiles/rpc_a.dir/supervise.grpc.pb.cc.o
     497    [ 32%] Building CXX object intercept/proto/CMakeFiles/rpc_a.dir/supervise.pb.cc.o
     498    [ 36%] Building CXX object intercept/proto/CMakeFiles/rpc_a.dir/intercept.pb.cc.o
     499    [ 36%] Building CXX object intercept/proto/CMakeFiles/rpc_a.dir/intercept.grpc.pb.cc.o
     500    In file included from /home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-src/source/libsys/source/Path.cc:20:0:
  >> 501    /home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-src/source/libsys/include/libsys/Path.h:25:10: fatal error: filesystem: No such file or directory
     502     #include <filesystem>
     503              ^~~~~~~~~~~~
     504    compilation terminated.
     505    libsys/CMakeFiles/sys_a.dir/build.make:120: recipe for target 'libsys/CMakeFiles/sys_a.dir/source/Path.cc.o' failed
  >> 506    make[5]: *** [libsys/CMakeFiles/sys_a.dir/source/Path.cc.o] Error 1
     507    make[5]: *** Waiting for unfinished jobs....
     508    In file included from /home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-src/source/libsys/source/Process.cc:20:0:
  >> 509    /home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-src/source/libsys/include/libsys/Process.h:25:10: fatal error: filesystem: No such file or directory
     510     #include <filesystem>
     511              ^~~~~~~~~~~~
     512    compilation terminated.
     513    libsys/CMakeFiles/sys_a.dir/build.make:133: recipe for target 'libsys/CMakeFiles/sys_a.dir/source/Process.cc.o' failed
  >> 514    make[5]: *** [libsys/CMakeFiles/sys_a.dir/source/Process.cc.o] Error 1
     515    In file included from /home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-src/source/libsys/source/Signal.cc:21:0:
  >> 516    /home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-src/source/libsys/include/libsys/Process.h:25:10: fatal error: filesystem: No such file or directory
     517     #include <filesystem>
     518              ^~~~~~~~~~~~
     519    compilation terminated.
     520    libsys/CMakeFiles/sys_a.dir/build.make:146: recipe for target 'libsys/CMakeFiles/sys_a.dir/source/Signal.cc.o' failed
  >> 521    make[5]: *** [libsys/CMakeFiles/sys_a.dir/source/Signal.cc.o] Error 1
     522    make[5]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop/subprojects/Build/BearSource'
     523    [ 36%] Built target exec_a
     524    make[5]: Entering directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop/subprojects/Build/BearSource'
     525    Scanning dependencies of target exec
     526    make[5]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop/subprojects/Build/BearSource'
     527    make[5]: Entering directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop/subprojects/Build/BearSource'

     ...

     530    /home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-src/source/libflags/source/Flags.cc: In function 'std::__cxx11::list<std::__cxx11::list<std::pair<const std::basic_
            string_view<char>, flags::Option> > > {anonymous}::group_by(const OptionMap&)':
     531    /home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-src/source/libflags/source/Flags.cc:61:36: warning: unused variable '_' [-Wunused-variable]
     532             for (const auto& [_, option] : options) {
     533                                        ^
     534    make[5]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop/subprojects/Build/BearSource'
     535    CMakeFiles/Makefile2:351: recipe for target 'libsys/CMakeFiles/sys_a.dir/all' failed
  >> 536    make[4]: *** [libsys/CMakeFiles/sys_a.dir/all] Error 2
     537    make[4]: *** Waiting for unfinished jobs....
     538    [ 40%] Linking C shared library libexec.so
     539    make[5]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop/subprojects/Build/BearSource'
     540    [ 40%] Built target exec
     541    make[5]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop/subprojects/Build/BearSource'
     542    [ 40%] Built target flags_a
     543    make[5]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop/subprojects/Build/BearSource'
     544    [ 40%] Built target rpc_a
     545    make[5]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop/subprojects/Build/BearSource'
     546    [ 40%] Built target shell_a
     547    make[4]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop/subprojects/Build/BearSource'
     548    Makefile:148: recipe for target 'all' failed
  >> 549    make[3]: *** [all] Error 2
     550    make[3]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop/subprojects/Build/BearSource'
     551    CMakeFiles/BearSource.dir/build.make:139: recipe for target 'subprojects/Stamp/BearSource/BearSource-build' failed
  >> 552    make[2]: *** [subprojects/Stamp/BearSource/BearSource-build] Error 2
     553    make[2]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop'
     554    CMakeFiles/Makefile2:203: recipe for target 'CMakeFiles/BearSource.dir/all' failed
  >> 555    make[1]: *** [CMakeFiles/BearSource.dir/all] Error 2
     556    make[1]: Leaving directory '/home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-vclhpop'
     557    Makefile:173: recipe for target 'all' failed
  >> 558    make: *** [all] Error 2

See build log for details:
  /home/stage/root/spack-stage-bear-3.0.12-vclhpopjhmrwsbohjyuwtx3sa2ogtlpb/spack-build-out.txt

==> Error: Terminating after first install failure: ProcessError: Command exited with status 2:
    'make' '-j16'

All these problems are encountered during make -j16 compilation. The four systems have two problems. How do I solve this problem?

rizsotto commented 3 years ago

First problem: looks like you have gRPC static lib is used, which wants to pull in dependencies in a static form? Maybe just reordering the libraries will help? (Use VERBOSE=1 will make the build verbose, so you can look at the actual link command.)

Second problem: looks like your compiler is not having the C++ 17 standard headers. (GCC might need a special treat.)

rizsotto commented 3 years ago

Any progress on this @Tom-python0121 ?

https://github.com/rizsotto/Bear/issues/305#issuecomment-749002592 has some hints how to compile with older gcc. (to fix the filesystem include problem). https://github.com/rizsotto/Bear/issues/306#issuecomment-704268352 has some hint how to fix the SSL related errors for the linking (on debian10 build).

Tom-python0121 commented 3 years ago

@rizsotto The advice you gave me has helped me a lot in solving my problems, which I have solved so far. I'll turn off this issuse first, and I'll discuss it next time.