sfackler / rust-openssl

OpenSSL bindings for Rust
1.4k stars 747 forks source link

Generated with LTO version 11.0 instead of the expected 11.3 compilation terminated. #1936

Closed SamTV12345 closed 1 year ago

SamTV12345 commented 1 year ago

Hi,

I have the problem that I want to statically link the libraries in my final build. I use BlackDex's images for my postgres build. I run it with --no-default-features so the vendored openssl version can't influence the build.

The error message reads:

error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/usr/local/musl/bin:/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.rustup/toolchains/stable-x86_64-unknown-linux-musl/bin" VSLANG="1033" "cc" "-m64" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/rcrt1.o" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crti.o" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtbeginS.o" "/tmp/rustcBuLqrT/symbols.o" "/target/x86_64-unknown-linux-musl/release/deps/podfetch-7e8fa91b4d3749a6.podfetch.47fae6f5-cgu.0.rcgu.o" "/target/x86_64-unknown-linux-musl/release/deps/podfetch-7e8fa91b4d3749a6.podfetch.47fae6f5-cgu.1.rcgu.o" "/target/x86_64-unknown-linux-musl/release/deps/podfetch-7e8fa91b4d3749a6.podfetch.47fae6f5-cgu.10.rcgu.o" "/target/x86_64-unknown-linux-musl/release/deps/podfetch-7e8fa91b4d3749a6.podfetch.47fae6f5-cgu.11.rcgu.o" "/target/x86_64-unknown-linux-musl/release/deps/podfetch-7e8fa91b4d3749a6.podfetch.47fae6f5-cgu.12.rcgu.o" "/target/x86_64-unknown-linux-musl/release/deps/podfetch-7e8fa91b4d3749a6.podfetch.47fae6f5-cgu.13.rcgu.o" "/target/x86_64-unknown-linux-musl/release/deps/podfetch-7e8fa91b4d3749a6.podfetch.47fae6f5-cgu.14.rcgu.o" "/target/x86_64-unknown-linux-musl/release/deps/podfetch-7e8fa91b4d3749a6.podfetch.47fae6f5-cgu.15.rcgu.o" "/target/x86_64-unknown-linux-musl/release/deps/podfetch-7e8fa91b4d3749a6.podfetch.47fae6f5-cgu.2.rcgu.o" "/target/x86_64-unknown-linux-musl/release/deps/podfetch-7e8fa91b4d3749a6.podfetch.47fae6f5-cgu.3.rcgu.o" "/target/x86_64-unknown-linux-musl/release/deps/podfetch-7e8fa91b4d3749a6.podfetch.47fae6f5-cgu.4.rcgu.o" "/target/x86_64-unknown-linux-musl/release/deps/podfetch-7e8fa91b4d3749a6.podfetch.47fae6f5-cgu.5.rcgu.o" "/target/x86_64-unknown-linux-musl/release/deps/podfetch-7e8fa91b4d3749a6.podfetch.47fae6f5-cgu.6.rcgu.o" "/target/x86_64-unknown-linux-musl/release/deps/podfetch-7e8fa91b4d3749a6.podfetch.47fae6f5-cgu.7.rcgu.o" "/target/x86_64-unknown-linux-musl/release/deps/podfetch-7e8fa91b4d3749a6.podfetch.47fae6f5-cgu.8.rcgu.o" "/target/x86_64-unknown-linux-musl/release/deps/podfetch-7e8fa91b4d3749a6.podfetch.47fae6f5-cgu.9.rcgu.o" "/target/x86_64-unknown-linux-musl/release/deps/podfetch-7e8fa91b4d3749a6.4mckx3br1m671twr.rcgu.o" "-Wl,--as-needed" "-L" "/target/x86_64-unknown-linux-musl/release/deps" "-L" "/target/release/deps" "-L" "/target/x86_64-unknown-linux-musl/release/build/ring-8da92000253c32e6/out" "-L" "/target/x86_64-unknown-linux-musl/release/build/zstd-sys-254f0db191153431/out" "-L" "/usr/local/musl/lib" "-L" "/usr/local/musl/lib" "-L" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/target/x86_64-unknown-linux-musl/release/deps/liburlencoding-afd823010ba775ba.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libdeunicode-277158a5f00de29a.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libstrfmt-ff95dfa958ca226c.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libjsonwebtoken-9d0583e14eae2f90.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libpem-18c363b3348606b8.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libsimple_asn1-346aa8d01b295876.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libnum_bigint-075f93d5ef283990.rlib" "/target/x86_64-unknown-linux-musl/release/deps/librpassword-6e336935dfe9497e.rlib" "/target/x86_64-unknown-linux-musl/release/deps/librtoolbox-e2015e4c75f91072.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libawc-379de003df3ee60a.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libfrankenstein-c14b229c2ef9ed52.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libureq-7be7f1cc748cbc28.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libbase64-f83d9515d6cd6a43.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libmultipart-2710221816430af2.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libtempfile-e55d77bfdaf19d91.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libfastrand-8da7eac7787c515c.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libenv_logger-768437fe7b11ee7b.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libtermcolor-7e5fddbc906e565e.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libis_terminal-f710c6454ba68e31.rlib" "/target/x86_64-unknown-linux-musl/release/deps/librustix-a94c965d43bcad0c.rlib" "/target/x86_64-unknown-linux-musl/release/deps/liblinux_raw_sys-f563cd95dbf2ba2f.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libio_lifetimes-755f5de13f6b650c.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libhumantime-e0ae208c148654b1.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libdotenv-ae1946e255e8ab20.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libuuid-1e92c753549baab7.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libactix_web_actors-42aa7c5e66edfbe2.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libsha256-966c52bd545c03c5.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libhex-de0d5f83b61e6a6c.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libsysinfo-445fd263f3deaf21.rlib" "/target/x86_64-unknown-linux-musl/release/deps/librayon-58fc5e521c2a1225.rlib" "/target/x86_64-unknown-linux-musl/release/deps/librayon_core-415071cc3b10d364.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libcrossbeam_deque-d2b9d06f7c15e48f.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libcrossbeam_epoch-d9764789397f5ccc.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libmemoffset-af71a096c8dbc35a.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libeither-cd641180aa12ded0.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libfs_extra-b9b9c14ab5b874b4.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libxml_builder-61fe83668ac36f7f.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libtokio_stream-66695edceaf3ede4.rlib" "/target/x86_64-unknown-linux-musl/release/deps/librss-6806616987e20e3a.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libnever-ccc42b75b92a1293.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libquick_xml-d8f46277642de0c2.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libderive_builder-fb90fca58581c31f.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libreqwest-7904bbfd19d11808.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libhyper_tls-f5010dde9729ff00.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libipnet-f988e9e3e02be076.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libtokio_native_tls-6ebe46264784d6fd.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libnative_tls-ea594eb8b5f64bea.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libopenssl_probe-f82386350d4ad7b7.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libopenssl-fd9babedc24f13a0.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libforeign_types-98f6f1e3aaf3ecde.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libforeign_types_shared-674ab7d7c31401a1.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libopenssl_sys-808c4b7f1201e3b9.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libhyper-134bab06a5ba47d1.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libwant-599b3f06eee13e48.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libtry_lock-97b36609d1fe1cfa.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libtower_service-9c504f56d28014f3.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libhttp_body-8e89489cfdcbe059.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libopml-6779662c588aae8c.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libthiserror-fa5f66b0fc1f83a9.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libhard_xml-b4bcac82c4e9c49d.rlib" "/target/x86_64-unknown-linux-musl/release/deps/liblazy_static-d0aebc3e562464d0.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libjetscii-8ef21c51a713f8f8.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libxmlparser-96091abe2c2c9df7.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libfutures-b4d285e8f949d0b7.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libfutures_executor-100559556b6199f7.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libutoipa_swagger_ui-5c5016dc64289a52.rlib" "/target/x86_64-unknown-linux-musl/release/deps/librust_embed-adbbafe0d115e2c4.rlib" "/target/x86_64-unknown-linux-musl/release/deps/librust_embed_utils-7a1bda78c0dacc99.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libwalkdir-fb7de426d179d465.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libsame_file-838350e64744ef24.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libsha2-7bdf419b8f60e36b.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libutoipa-3692724885a6ad65.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libclokwerk-1dc42f8e2a8ef3b3.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libactix_files-e2aa51ecbabca14d.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libhttp_range-cf00041aeba0d614.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libaskama_escape-39fb133d70602f16.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libmime_guess-ee18c7a16b48fe00.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libunicase-98eafd962b1eef5c.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libactix_web-e81729a07d90c551.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libcookie-49d9cc91d0c0463d.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libtime-d7ab2756b3d4a9e9.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libtime_core-8554e04519988d5b.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libahash-f91aecd4b768375b.rlib" "/target/x86_64-unknown-linux-musl/release/deps/liburl-e859f8bf22af49d0.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libidna-2054ee1c7486b189.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libunicode_normalization-44d65c187caa75c4.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libtinyvec-f19b3b04095d0b71.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libtinyvec_macros-6c061874643552d0.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libunicode_bidi-ff21f6341d2a0eed.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libserde_urlencoded-87f8f2665357b119.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libform_urlencoded-98d66be88425fbd0.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libactix_server-f4980d678ed8411f.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libactix_router-269758c0ff7854a4.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libregex-6f150e5318304db6.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libaho_corasick-75aed51ae2d667f7.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libregex_syntax-3182e33a24d9679a.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libactix_http-38dec647a21b2085.rlib" "/target/x86_64-unknown-linux-musl/release/deps/librand-ffe51e5bb2113063.rlib" "/target/x86_64-unknown-linux-musl/release/deps/librand_chacha-73c5fdd6038af6b5.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libppv_lite86-7f689edc1c681443.rlib" "/target/x86_64-unknown-linux-musl/release/deps/librand_core-e41efbf6019650e2.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libhttparse-1f6514fd65984bbe.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libbrotli-42894ac1852483e9.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libbrotli_decompressor-74965e9c06141a4c.rlib" "/target/x86_64-unknown-linux-musl/release/deps/liballoc_stdlib-ae5d271be389b4fb.rlib" "/target/x86_64-unknown-linux-musl/release/deps/liballoc_no_stdlib-c2d9f3f078f143d8.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libhttpdate-5888e23cf3be891a.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libsha1-daeb293ae87b761b.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libcpufeatures-2ee394b31f8403e7.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libdigest-96fce57a81fd4563.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libsubtle-c61c1fb6af32d46f.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libblock_buffer-ca22fe04c8ffab5c.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libcrypto_common-0923d961831aa97d.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libgeneric_array-639e480c6dafc081.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libtypenum-d0446e7db70a1351.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libbase64-613458681db11010.rlib" "/target/x86_64-unknown-linux-musl/release/deps/liblocal_channel-cfac520d55c1f573.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libbytestring-016497c7f6712c6d.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libencoding_rs-79894a2da3700904.rlib" "/target/x86_64-unknown-linux-musl/release/deps/liblanguage_tags-4fdb41a61478093a.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libahash-6467db820e9a46c3.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libgetrandom-d78fedd90c65e151.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libmime-3635b139cebec25a.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libpercent_encoding-d96a171fdc105db5.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libh2-394aa702e527992d.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libactix_tls-f350b5936c434bbb.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libwebpki_roots-f59ac3e700fd511d.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libtokio_rustls-a4a0c750131e6b95.rlib" "/target/x86_64-unknown-linux-musl/release/deps/librustls-8098d463ba0fbf8d.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libsct-ec26fd4e3d6dd6ab.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libwebpki-9c97ef3ea0680a66.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libring-192af8f85ca8ee23.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libspin-223b037440bae48c.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libuntrusted-648087585f782e0e.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libzstd-63e901f53a93b3dc.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libzstd_safe-970e361dd44b5cd7.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libzstd_sys-29b4b0039297e1dd.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libflate2-cb8cdf736eaf9325.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libminiz_oxide-f10673abdc28af9f.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libadler-2ed64e620373e3f5.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libcrc32fast-75dc2196a8328056.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libactix_codec-5af054627699052b.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libactix_utils-e5fa9a76b747c13e.rlib" "/target/x86_64-unknown-linux-musl/release/deps/liblocal_waker-b95c533b9163a605.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libhttp-6c12062c0aa3a0b9.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libfnv-9bb1800806641d51.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libactix_service-0acafd5ae0f9fdb6.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libactix-694fa79c0b012b47.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libcrossbeam_channel-1f2d3d1a1c9f3a0a.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libcrossbeam_utils-c8fd93fb2d745708.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libtokio_util-3f5eff10ebdd3393.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libtracing-61c5edd99631598d.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libtracing_core-72f3ddd8f0f11a5b.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libonce_cell-571de04922c9dd32.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libfutures_util-0bba36666ed6144d.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libmemchr-409bf806c850a2db.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libfutures_io-fd8d3932b537242f.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libslab-4b9283f59971dbeb.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libfutures_channel-75cc39f80636800d.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libfutures_sink-90e102e62153a377.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libfutures_task-9f7ec619e73aea3f.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libpin_utils-4de3b0a42607557d.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libbitflags-7009418ee799ca00.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libactix_rt-dc2eede605c84832.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libtokio-0f802c2aeee15ed8.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libsignal_hook_registry-0d5be13845e92a43.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libnum_cpus-d2e76e05336285be.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libsocket2-449aa67e8e283b43.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libbytes-7daeb3c91ffd6e85.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libmio-1e424b3bae09beb5.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libpin_project_lite-d02706893b15e27a.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libfutures_core-3d12251bb571bd69.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libdiesel_migrations-20e2ea19615d73db.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libmigrations_internals-57475634fae92a83.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libtoml-69f493fe508c5c63.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libtoml_edit-6d4533ed1b06b349.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libserde_spanned-ecc683f20c7a23d9.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libindexmap-5bb44e016bafc8f9.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libhashbrown-0880b956a8293429.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libwinnow-f91e9da66f08ebc8.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libtoml_datetime-c00aa9556d354a79.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libdiesel-52b8ebd139594f1f.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libbitflags-d4ee6b2bda3afc62.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libbyteorder-7ed2744eab0c4380.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libr2d2-4ce566d12953583c.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libscheduled_thread_pool-09978483d7e81311.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libparking_lot-957d4cc240353013.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libparking_lot_core-0008886bbf32c112.rlib" "/target/x86_64-unknown-linux-musl/release/deps/liblibc-70d7dae8265b8b4e.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libsmallvec-5d2a5c1ba135aa3f.rlib" "/target/x86_64-unknown-linux-musl/release/deps/liblock_api-a50854bc018e712c.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libscopeguard-1790881744a6992d.rlib" "/target/x86_64-unknown-linux-musl/release/deps/liblog-793b438cb0329213.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libcfg_if-7314a7347e874253.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libpq_sys-2d91cc6adca4979b.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libchrono-4b2d4c80ee937da9.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libiana_time_zone-c504d6640ca13984.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libnum_integer-2a3398f6a06e04f2.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libnum_traits-abc75e02e9c7dedb.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libserde_json-a856cd3b655c5c23.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libryu-fa4e3a70b7f2d9ff.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libitoa-e9cb753f6d7ab087.rlib" "/target/x86_64-unknown-linux-musl/release/deps/libserde-76db9ca31d693b14.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-7f310e4c1ed052dc.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libpanic_unwind-1fc713f6be19bd48.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libobject-940a2f7e1ba5bf46.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libmemchr-c2c075f9a4a3d595.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libaddr2line-b0d7b4fc7bccec33.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libgimli-3892725270798cfa.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_demangle-c03d1a74707ecabd.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd_detect-508c0f863a96ddc6.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libhashbrown-ff565795c09410a1.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libminiz_oxide-d694382d8d95e658.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libadler-be0b0cd61b662648.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_std_workspace_alloc-15cfbcae57e82fee.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libunwind-5673b2e0964b8522.rlib" "-lunwind" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libcfg_if-fb125192e451f0ae.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-886ef51cdbcd233e.rlib" "-lc" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc-01c01423efc3cc8f.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_std_workspace_core-552148d6a5ab2205.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libcore-95f113b1028200ce.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-db0cc9158c2b2faf.rlib" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib" "-L" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained" "-o" "/target/x86_64-unknown-linux-musl/release/deps/podfetch-7e8fa91b4d3749a6" "-Wl,--gc-sections" "-static-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-all" "-nodefaultlibs" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtendS.o" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtn.o"
  = note: lto-wrapper: warning: Extra option to '-Xassembler': --noexecstack, dropping all '-Xassembler' and '-Wa' options.
          lto1: fatal error: bytecode stream in file '/target/x86_64-unknown-linux-musl/release/deps/libopenssl_sys-808c4b7f1201e3b9.rlib' generated with LTO version 11.0 instead of the expected 11.3
          compilation terminated.
          lto-wrapper: fatal error: cc returned 1 exit status
          compilation terminated.
          /usr/bin/ld: error: lto-wrapper failed
          collect2: error: ld returned 1 exit status
[package]
name = "podfetch"
version = "0.1.0"
edition = "2021"
build = "build.rs"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies]
built = {version="0.6.0", features=["git2", "chrono", "semver"]}

[features]
default = ["sqlite"]
mysql = ["diesel/mysql", "diesel_migrations/mysql", "diesel/mysql_backend"]
postgresql = ["diesel/postgres", "diesel_migrations/postgres", "diesel/chrono", "r2d2_postgres",
    "diesel/postgres_backend"]
sqlite = ["diesel/sqlite", "diesel_migrations/sqlite", "libsqlite3-sys", "diesel/returning_clauses_for_sqlite_3_35", "openssl/vendored"]

[dependencies]
awc =  {version="3.1.1", features = ["rustls"]}
rpassword = "7.2.0"
reqwest = { version = "0.11.18", features = ["stream", "json","blocking"] }
tokio-stream = { version = "0.1.14", features = ["sync"] }
actix = "0.13.0"
async-recursion = "1.0.2"
base64 = "0.21.1"
uuid = {version="1.3.1", features = ["v4", "serde"]}
libsqlite3-sys = {version = "0.26.0", features = ["bundled"], optional = true}
r2d2_postgres = {version = "0.18.1", optional = true}
diesel_migrations = "2.0.0"
actix-files = "0.6.2"
actix-web = {version="4.3.0", features=["rustls"]}
jsonwebtoken = {version="8.2.0"}
log = "0.4.17"
futures-util = "0.3.28"
opml = "1.1.5"
rand = "0.8.5"
env_logger = "0.10.0"
chrono = {version  = "0.4.23", default-features=false, features = ["serde"]}
actix-web-actors = "4.2.0"
rss = "2.0.2"
frankenstein = "0.25.0"
regex = "1.8.1"
xml-builder = "0.5.2"
diesel = { version = "2.1.0", features = ["chrono", "r2d2"] }
r2d2 = "0.8.10"
utoipa = { version = "3", features = ["actix_extras"] }
futures = "0.3.28"
utoipa-swagger-ui = {version = "3", features = ["actix-web"] }
clokwerk= "0.4.0"
tokio = {version = "1.28.1", features = ["full"]}
serde = "1.0.163"
serde_derive = "1.0.152"
sysinfo = {version = "0.29.0", features = ["serde"]}
fs_extra = "1.3.0"
serde_json = "1.0.93"
dotenv = "0.15.0"
paste = "1.0.12"
sha1 = "0.10.5"
sha256 = "1.1.3"
deunicode = "1.3.3"
strfmt="0.2.4"
urlencoding="2.1.2"
#[target.'cfg(not(windows))'.dependencies]
openssl = "0.10.52"

[profile.release]
strip = true  # Automatically strip symbols from the binary.
sfackler commented 1 year ago

You probably need to build OpenSSL with LTO enabled as well.

SamTV12345 commented 1 year ago

This is included in the build image:

sfackler commented 1 year ago

Okay. You probably need to build OpenSSL with LTO enabled.

https://techoverflow.net/2017/06/22/how-to-resolve-fatal-error-bytecode-stream-generated-with-lto-version-instead-of-the-expected/