7.0.0 java library build large file size

I am building using a gitlab builder:

stages:
  - build

build-job:
  stage: build
  image: foundationdb/build
  script:
    - git clone --depth 1 --branch 7.0.0 https://github.com/apple/foundationdb.git
    - mkdir build
    - cd build
    - source /opt/rh/devtoolset-8/enable && source /opt/rh/rh-python38/enable && cmake -G Ninja ../foundationdb
    - ninja -j2
    - cpack -G DEB
    - rm -rf packages/bin
    - rm -rf packages/*versioned*
    - rm -rf packages/*.tar.gz
  artifacts:
    name: target
    when: always
    expire_in: 1 days
    paths:
      - build/packages

I am able to build both 7.0.0 and 6.3.23 properly, but the jar for 7.0.0 has a 20 meg lib inside it instead of 200kb.

Is this intended for 7.0.0 so that the client libs do not have to be installed and a jar is enough for a client, or did I mess something up?

I will be building the official 7.0.0 release this week. I’ll look closer. This seems odd to me too, but I need to confirm. There were some java changes recently, and that may have had a legitimate effect on the library.

1 Like

It seems like boost and ssl and other stuff were included in the libfdb_java in 7.0.0 and not in 6.3.23. This stuff should be only contained in libfdb_c.so, right?

builder@builder-pc:~$ readelf -s libfdb_java.6.3.23.so | grep FILE
    32: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS crtstuff.c
    40: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS fdbJNI.cpp
    52: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS crtstuff.c
    54: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS
	
builder@builder-pc:~$ readelf -s libfdb_java.7.0.0.so | grep FILE
    37: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS flow.cpp
    99: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS Arena.cpp
   125: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS DeterministicRandom.cpp
   132: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS Error.cpp
   153: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS FastAlloc.cpp
   161: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS Knobs.cpp
   182: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS Platform.actor.g.cpp
   319: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS Trace.cpp
   534: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS UnitTest.cpp
   541: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS XmlTraceLogFormatter.cpp
   554: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS flat_buffers.cpp
   638: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS network.cpp
   713: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS serialize.cpp
   717: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS FileTraceLogWriter.cpp
   772: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS IThreadPool.cpp
   776: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS JsonTraceLogFormatter.cpp
   782: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS Net2.actor.g.cpp
  1079: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS Net2Packet.cpp
  1083: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS Profiler.actor.g.cpp
  1128: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS TDMetric.cpp
  1150: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS TLSConfig.actor.g.cpp
  1271: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ThreadHelper.cpp
  1275: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ThreadPrimitives.cpp
  1279: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS eh_personality.o
  1289: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS eh_alloc.o
  1296: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS new_opnt.o
  1298: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS eh_terminate.o
  1300: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ios_init.o
  1304: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS locale_init.o
  1355: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS locale.o
  1366: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS cow-istream-string.o
  1370: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS istream.o
  1376: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS monetary_members_cow.o
  1389: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS numeric_members_cow.o
  1396: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS locale_facets.o
  1398: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS stdexcept.o
  1401: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS cxx11-shim_facets.o
  1539: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS cow-shim_facets.o
  1679: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS cow-sstream-inst.o
  1682: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS cow-locale_init.o
  1702: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS system_error.o
  1725: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS cow-stdexcept.o
  1748: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS functexcept.o
  1759: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ctype_members.o
  1764: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ctype.o
  1767: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS cxx11-stdexcept.o
  1770: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ios.o
  1773: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ctype_configure_char.o
  1776: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS compatibility.o
  1779: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS monetary_members.o
  1792: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS misc-inst.o
  1794: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS numeric_members.o
  1801: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS messages_members_cow.o
  1804: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS codecvt.o
  1811: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS c++locale.o
  1818: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS messages_members.o
  1821: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS cxx11-ios_failure.o
  1837: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS vterminate.o
  1840: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ios_failure.o
  1842: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS cp-demangle.o
  1890: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS unwind-dw2.o
  1918: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS unwind-dw2-fde-dip.o
  1946: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS stacktrace.amalgamation.c
  1956: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS cxx11-locale-inst.o
  1960: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS locale-inst.o
  1966: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS wlocale-inst.o
  1972: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS cxx11-wlocale-inst.o
  1976: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS crtstuff.c
  1984: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS fdbJNI.cpp
  1998: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS FaultInjection.cpp
  1999: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS SignalSafeUnwind.cpp
  2003: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS methods.c
  2029: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS rec_layer_d1.c
  2030: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS rec_layer_s3.c
  2032: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ssl3_buffer.c
  2033: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ssl3_record.c
  2036: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ssl3_record_tls13.c
  2037: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS s3_cbc.c
  2042: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS s3_lib.c
  2049: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS s3_msg.c
  2050: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ssl_cert.c
  2061: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ssl_ciph.c
  2086: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ssl_lib.c
  2107: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ssl_mcnf.c
  2109: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ssl_rsa.c
  2119: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ssl_sess.c
  2122: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS extensions.c
  2151: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS extensions_clnt.c
  2152: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS extensions_cust.c
  2156: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS extensions_srvr.c
  2157: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS statem.c
  2159: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS statem_clnt.c
  2166: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS statem_dtls.c
  2172: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS statem_lib.c
  2182: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS statem_srvr.c
  2190: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS t1_lib.c
  2211: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS tls13_enc.c
  2230: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS tls_srp.c
  2231: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS d1_lib.c
  2233: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS d1_msg.c
  2234: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS d1_srtp.c
  2237: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS packet.c
  2238: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS pqueue.c
  2239: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS dtls1_bitmap.c
  2240: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS s3_enc.c
  2243: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ssl_asn1.c
  2246: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ssl_conf.c
  2281: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ssl_init.c
  2294: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS t1_enc.c
  2297: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ssl_err.c
  2300: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS a_strex.c
  2308: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS a_type.c
  2309: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS a_utf8.c
  2310: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ameth_lib.c
  2316: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS asn1_lib.c
  2317: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS asn1_par.c
  2321: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS asn_pack.c
  2322: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS d2i_pr.c
  2323: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS p8_pkey.c
  2327: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS tasn_dec.c
  2335: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS tasn_enc.c
  2339: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS tasn_fre.c
  2341: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS tasn_new.c
  2345: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS tasn_typ.c
  2348: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS tasn_utl.c
  2349: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS x_algor.c
  2352: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS x_int64.c
  2367: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS async.c
  2371: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS async_wait.c
  2372: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS b_addr.c
  2374: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS b_dump.c
  2377: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS b_print.c
  2382: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS b_sock.c
  2383: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS b_sock2.c
  2384: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS bf_buff.c
  2395: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS bio_lib.c
  2396: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS bio_meth.c
  2401: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS bss_bio.c
  2410: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS bss_file.c
  2419: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS bss_mem.c
  2430: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS bss_sock.c
  2438: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS bn_const.c
  2447: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS bn_lib.c
  2455: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS bn_mont.c
  2457: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS bn_mul.c
  2461: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS bn_shift.c
  2462: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS bn_sqr.c
  2464: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS bn_word.c
  2465: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS x86_64-mont.o
  2469: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS x86_64-mont5.o
  2482: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS buffer.c
  2483: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS cm_ameth.c
  2486: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS cmac.c
  2488: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS c_zlib.c
  2490: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS comp_lib.c
  2491: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS conf_mod.c
  2494: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS conf_ssl.c
  2500: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ct_log.c
  2502: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ct_oct.c
  2504: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ct_policy.c
  2505: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ct_sct.c
  2506: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ct_sct_ctx.c
  2507: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ct_vfy.c
  2508: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ctype.c
  2510: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS dh_ameth.c
  2531: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS dh_asn1.c
  2539: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS dh_check.c
  2540: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS dh_key.c
  2548: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS dh_lib.c
  2549: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS dsa_ameth.c
  2571: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS dsa_asn1.c
  2584: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS dsa_lib.c
  2585: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS dsa_ossl.c
  2593: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS dsa_sign.c
  2594: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS dsa_vrf.c
  2595: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS dso_lib.c
  2598: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ec_ameth.c
  2624: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ec_asn1.c
  2645: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ec_check.c
  2646: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ec_curve.c
  2724: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ec_cvt.c
  2725: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ec_key.c
  2726: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ec_kmeth.c
  2729: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ec_lib.c
  2730: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ec_mult.c
  2731: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ec_oct.c
  2732: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ecdh_ossl.c
  2733: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ecdsa_ossl.c
  2735: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ecdsa_sign.c
  2736: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ecdsa_vrf.c
  2737: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS eck_prn.c
  2738: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ecp_mont.c
  2740: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ecp_nistz256.c
  2753: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ecp_oct.c
  2754: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ecp_smpl.c
  2756: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ecx_meth.c
  2791: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS eng_init.c
  2792: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS eng_lib.c
  2796: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS eng_pkey.c
  2797: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS tb_asnmth.c
  2801: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS tb_dh.c
  2805: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS tb_dsa.c
  2809: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS tb_eckey.c
  2813: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS tb_pkmeth.c
  2816: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS err.c
  2837: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS digest.c
  2838: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS e_aes.c
  2940: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS e_aes_cbc_hmac_sha1.c
  2948: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS e_aes_cbc_hmac_sha256.c
  2956: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS e_aria.c
  3011: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS e_camellia.c
  3041: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS e_chacha20_poly1305.c
  3052: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS e_des.c
  3067: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS e_des3.c
  3091: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS e_idea.c
  3101: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS e_null.c
  3105: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS e_rc2.c
  3120: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS e_rc4.c
  3125: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS e_rc4_hmac_md5.c
  3130: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS e_seed.c
  3140: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS evp_enc.c
  3142: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS evp_lib.c
  3143: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS evp_pkey.c
  3144: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS m_md5.c
  3149: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS m_md5_sha1.c
  3155: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS m_null.c
  3160: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS m_sha1.c
  3186: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS m_sigver.c
  3188: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS names.c
  3191: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS p_lib.c
  3192: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS pmeth_fn.c
  3193: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS pmeth_gn.c
  3195: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS pmeth_lib.c
  3200: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ex_data.c
  3210: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS getenv.c
  3211: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS hm_ameth.c
  3218: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS hm_pmeth.c
  3228: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS hmac.c
  3231: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS i_cbc.c
  3232: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS i_cfb64.c
  3233: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS i_ecb.c
  3234: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS i_ofb64.c
  3235: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS i_skey.c
  3236: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS init.c
  3288: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS hkdf.c
  3296: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS scrypt.c
  3302: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS tls1_prf.c
  3309: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS lhash.c
  3311: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS md5_dgst.c
  3312: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS mem.c
  3317: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS mem_dbg.c
  3318: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS mem_sec.c
  3329: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS aesni-gcm-x86_64.o
  3332: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS cbc128.c
  3333: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ccm128.c
  3334: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS cfb128.c
  3335: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ctr128.c
  3336: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS gcm128.c
  3337: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ocb128.c
  3339: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ofb128.c
  3340: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS wrap128.c
  3345: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS xts128.c
  3346: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS o_dir.c
  3347: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS o_fopen.c
  3348: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS o_str.c
  3351: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS o_names.c
  3367: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS obj_dat.c
  3383: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS obj_lib.c
  3384: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS obj_xref.c
  3394: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ocsp_asn.c
  3410: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ocsp_cl.c
  3411: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ocsp_ext.c
  3412: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS ocsp_lib.c
  3413: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS pem_all.c
  3414: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS pem_lib.c
  3423: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS pem_oth.c
  3424: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS pem_pkey.c
  3425: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS pem_x509.c
  3426: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS pem_xaux.c
  3427: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS p12_p8d.c
  3428: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS pk7_asn1.c
  3450: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS pk7_doit.c
  3455: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS pk7_lib.c
  3456: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS poly1305-x86_64.o
  3468: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS poly1305.c
  3469: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS poly1305_ameth.c
  3476: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS poly1305_pmeth.c
  3486: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS drbg_lib.c
  3504: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS rand_lib.c
  3516: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS rand_unix.c
  3524: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS rc2_cbc.c
  3525: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS rc2_ecb.c
  3526: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS rc2_skey.c
  3528: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS rc2cfb64.c
  3529: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS rc2ofb64.c
  3530: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS rsa_ameth.c
  3554: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS rsa_asn1.c
  3567: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS rsa_chk.c
  3568: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS rsa_crpt.c
  3569: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS rsa_lib.c
  3570: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS rsa_mp.c
  3571: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS rsa_ossl.c
  3581: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS rsa_pk1.c
  3582: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS rsa_pmeth.c
  3596: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS rsa_pss.c
  3598: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS rsa_saos.c
...
truncated
	

Since the problem is not present in a windows build of 7.0.0, I tried to remove

if (NOT WIN32 AND NOT APPLE AND NOT OPEN_FOR_IDE)
  target_link_options(java_workloads PRIVATE "LINKER:--version-script=${CMAKE_SOURCE_DIR}/bindings/c/external_workload.map,-z,nodelete")
endif()

but it didn’t help. I opened libfdb_java.so contaminated by core fdb parts · Issue #6455 · apple/foundationdb · GitHub to track this issue.