clux / muslrust

Docker environment for building musl based static linux rust binaries
MIT License
965 stars 88 forks source link

Compilation fails with recent docker image (nightly-2019-05-06) #52

Closed manifest closed 5 years ago

manifest commented 5 years ago

Docker Image: clux/nightly-2019-05-06

error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-Wl,--eh-frame-hdr" "-m64" "-nostdlib" "/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/crt1.o" "/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/crti.o" "-L" "/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib" "/build/target/x86_64-unknown-linux-musl/release/deps/conference-ff19068a3cd34f57.conference.4kl3f4e4-cgu.0.rcgu.o" "/build/target/x86_64-unknown-linux-musl/release/deps/conference-ff19068a3cd34f57.conference.4kl3f4e4-cgu.1.rcgu.o" "/build/target/x86_64-unknown-linux-musl/release/deps/conference-ff19068a3cd34f57.conference.4kl3f4e4-cgu.10.rcgu.o" "/build/target/x86_64-unknown-linux-musl/release/deps/conference-ff19068a3cd34f57.conference.4kl3f4e4-cgu.11.rcgu.o" "/build/target/x86_64-unknown-linux-musl/release/deps/conference-ff19068a3cd34f57.conference.4kl3f4e4-cgu.12.rcgu.o" "/build/target/x86_64-unknown-linux-musl/release/deps/conference-ff19068a3cd34f57.conference.4kl3f4e4-cgu.13.rcgu.o" "/build/target/x86_64-unknown-linux-musl/release/deps/conference-ff19068a3cd34f57.conference.4kl3f4e4-cgu.14.rcgu.o" "/build/target/x86_64-unknown-linux-musl/release/deps/conference-ff19068a3cd34f57.conference.4kl3f4e4-cgu.15.rcgu.o" "/build/target/x86_64-unknown-linux-musl/release/deps/conference-ff19068a3cd34f57.conference.4kl3f4e4-cgu.2.rcgu.o" "/build/target/x86_64-unknown-linux-musl/release/deps/conference-ff19068a3cd34f57.conference.4kl3f4e4-cgu.3.rcgu.o" "/build/target/x86_64-unknown-linux-musl/release/deps/conference-ff19068a3cd34f57.conference.4kl3f4e4-cgu.4.rcgu.o" "/build/target/x86_64-unknown-linux-musl/release/deps/conference-ff19068a3cd34f57.conference.4kl3f4e4-cgu.5.rcgu.o" "/build/target/x86_64-unknown-linux-musl/release/deps/conference-ff19068a3cd34f57.conference.4kl3f4e4-cgu.6.rcgu.o" "/build/target/x86_64-unknown-linux-musl/release/deps/conference-ff19068a3cd34f57.conference.4kl3f4e4-cgu.7.rcgu.o" "/build/target/x86_64-unknown-linux-musl/release/deps/conference-ff19068a3cd34f57.conference.4kl3f4e4-cgu.8.rcgu.o" "/build/target/x86_64-unknown-linux-musl/release/deps/conference-ff19068a3cd34f57.conference.4kl3f4e4-cgu.9.rcgu.o" "-o" "/build/target/x86_64-unknown-linux-musl/release/deps/conference-ff19068a3cd34f57" "/build/target/x86_64-unknown-linux-musl/release/deps/conference-ff19068a3cd34f57.3mdsc1vl0hq45ykf.rcgu.o" "-Wl,--gc-sections" "-no-pie" "-Wl,-zrelro" "-Wl,-znow" "-Wl,-O1" "-nodefaultlibs" "-L" "/build/target/x86_64-unknown-linux-musl/release/deps" "-L" "/build/target/release/deps" "-L" "/musl/lib" "-L" "/build/target/x86_64-unknown-linux-musl/release/build/backtrace-sys-0186c4d2d3ace2d9/out" "-L" "/musl/lib" "-L" "/build/target/x86_64-unknown-linux-musl/release/build/ring-bb4570cc1c3145c3/out" "-L" "/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/build/target/x86_64-unknown-linux-musl/release/deps/libenv_logger-117245f3820705d8.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libatty-996b63d4aa86a808.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libhumantime-20d5abc57f50fc92.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libquick_error-4afb041d2b74d70f.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libtermcolor-ed096278446ab63d.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libwebrtc_sdp-533c52d5915e87b8.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libsvc_error-90f3b03ea2b6f08f.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libsvc_authz-5acfd89abfaa2bf4.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libreqwest-dcf807ca8ef656e0.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libserde_urlencoded-512c81d653faa64b.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libdtoa-93c923569db63450.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libmime_guess-ee98aee15b4e7cc5.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libphf-c3837b5587eacb7e.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libphf_shared-b8bb245f248888e5.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libunicase-6e0408565225fb12.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libsiphasher-aeb533dc9634c968.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libmime-cb42be87abbf0af7.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libunicase-d33824294a811ff9.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libflate2-875112a0b542a84d.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libminiz_oxide_c_api-ab83356a2f6a7b20.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libminiz_oxide-234b46811b6410f6.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libadler32-182e555502186904.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libcrc-36d55bab8bbdbf8b.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libcrc32fast-88154a6958426839.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libhyper_tls-70c0e58d568ad3f9.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libnative_tls-ea7a96b5be5fe0ef.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libopenssl_probe-51b1700a271baa1b.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libopenssl-4664273369b14105.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libopenssl_sys-e4f48a62c4ff3305.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libforeign_types-f600d4c7901d6537.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libforeign_types_shared-b789c5308507e334.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libhyper-e25a56b5c467dfc4.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libwant-b01cce0b74b1323e.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libtry_lock-51464a1ef6ffe784.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libhttparse-ea189e793b273754.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libh2-7b9397d5752b0cff.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libindexmap-8b9e2a213da75db9.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libstring-7acd2a26cb0a11d3.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libfutures_cpupool-a55049d6be0738ac.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libencoding_rs-4fec0f24bee3d1a5.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libcookie_store-fb3a496507a7e5c9.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libpublicsuffix-f2882306622b85fe.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/liberror_chain-d576a0c0b85f2ae8.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libtry_from-172f211b2aab763f.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libcookie-cecccf2bcfcf484b.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/liburl-09a7f32f9c8b75f4.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libpercent_encoding-9eda4f8b5d78a59d.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libidna-f75a3936c344f41f.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libunicode_normalization-5325269089d373b4.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libunicode_bidi-ad94ce9eb1986e7a.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libmatches-5f84395e8e5f93b7.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libconfig-b88c5d5b49e030cb.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libini-be4a2b45bab41dab.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libserde_hjson-e578c605b9ae8b16.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libregex-0b7cd299548f9b61.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libutf8_ranges-ebf9071beb27faf5.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libregex_syntax-828c1c2be4bdb933.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libucd_util-d15ba9b0bb68ae9e.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libthread_local-294801186a7947d3.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libaho_corasick-87ff801f7d5b2552.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libnum_traits-ce54002a5d5526c7.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/liblinked_hash_map-bd7bf3e8caa7e616.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libserde-473ca9ff6471fafa.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/liblazy_static-4957258a692f1b08.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libyaml_rust-59b995a9726e2177.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/liblinked_hash_map-5930837dd22a2fda.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libtoml-b0ce04b0709f77ea.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libnom-75eb74ee924a5eda.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libsvc_agent-f06d0dccc51d6da6.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/librumqtt-454b78e5412b3765.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libbase64-562bda6a5c1518e0.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libuuid-500ffbf947b21fe4.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libtokio_rustls-d73a326d03d069e0.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/librustls-358539d4fea5b842.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libsct-30de9172c0c29f69.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libwebpki-748df3fb761be26e.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libtokio-01f99cb1be8dd455.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libtokio_trace_core-704935d24d0384f2.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libtokio_uds-a7aa83ddfbdc1feb.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libmio_uds-3c87aad5e81f7ad2.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libtokio_udp-6852696cb8098e4a.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libtokio_timer-3c1e3a840ecdd7cf.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libtokio_tcp-dd9529e35d9e951b.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libtokio_reactor-d6dd30470d5d5bdf.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libtokio_sync-bfde0325bef61e95.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libtokio_fs-c60d3dcb7bb041da.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libtokio_threadpool-fbc4bb2a37f8c22f.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libcrossbeam_queue-cbfc8560dd4dd872.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libcrossbeam_deque-24aef21575267cef.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libcrossbeam_epoch-3a177f50fdc1a46f.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libmemoffset-9f97cc4523281fdc.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libarrayvec-9204c621ab9a3de2.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libtokio_current_thread-deb736ea6bfc7a1a.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libtokio_executor-6a10715d342ff6a9.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libtokio_codec-c63cfee7707bfdbf.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libtokio_io-2bd279d1582eb27a.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libmio-fe4ac0452708f2de.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libnet2-1f566293e7c748b6.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/liblazycell-da8812c8a384c9ef.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libmqtt311-569d3989e696e672.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libfutures-61aadfbcbae33ce7.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libcrossbeam_channel-51192660cc77545f.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libcrossbeam_utils-8ae2375fde5cfa1d.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libsvc_authn-8b0d7d31c7e6d39b.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libhttp-2450b9305456a331.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libfnv-42000f99799228ab.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libbytes-377f0649682c36f0.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libjsonwebtoken-e7196af282aa627d.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libring-06fd2ac71802654c.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libuntrusted-93e20080df587087.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/liblazy_static-d7c830b40db12854.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libbase64-508fe2d7d704ff4a.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libsafemem-79f4ac838f852392.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libfailure-468e6944d846764f.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libbacktrace-fea4d334dcd87ce9.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libbacktrace_sys-b2489fb214885107.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/librustc_demangle-6063b689a0f9c615.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libfutures-9794f17504c9a904.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libfutures_executor-9e6e43a1f3b1c846.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libnum_cpus-dfc0ad869a120d87.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libfutures_util-9ee378d647c9d233.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libmemchr-a54698db0b5c668f.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libfutures_io-3871e2a53333a22a.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libiovec-ce1e1d9619cf63d4.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libslab-ebd60baaddb7ab5e.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libfutures_sink-c1aeb7067505ccc5.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libfutures_channel-6cdd86ebbb95411b.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libpin_utils-340004d3bc5e5afb.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libfutures_core-36eaabf0583682bd.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libdiesel-39d6d36cf6f75c5c.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libpq_sys-0c436c4be130eae8.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libuuid-41735ea7f4025b8c.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/librand-341b5ba753127e09.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libserde_json-742020d66d420081.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libryu-8dcbe203ef48ee0f.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libitoa-5e2e7f38b731ccc6.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libchrono-56bf675fe9c42223.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libserde-6e0b02640253ddbc.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libnum_integer-20f39202861f58af.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libnum_traits-c1026c315d095bfb.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libtime-2d8ee532e68dbe24.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libr2d2-19d4dd910761a940.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libscheduled_thread_pool-38f12d48f6f84feb.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libantidote-1467a88f9d6643d1.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libparking_lot-809d5a558f1ed35a.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libparking_lot_core-66e3572c39fdab4a.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libsmallvec-a03eb7af1993c866.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/librand-f39fb6f34681cdd6.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/librand_xorshift-f745a259718e4bf5.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/librand_pcg-b41a54590da5d342.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/librand_hc-b12ab7e3b389b85a.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/librand_chacha-c7d0005b98074bd7.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/librand_isaac-3db1f49f773d06fb.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/librand_core-0852f07888bf2b76.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/librand_os-f730e6070493dadf.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/liblibc-38d7dbcad489e350.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/librand_jitter-d7b8959b3b6aeb7e.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/librand_core-7a1cc33db165682d.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/liblock_api-5b352118dd11e253.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libowning_ref-57abed8185f386d0.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libstable_deref_trait-cf47fa3f3ad97930.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libscopeguard-1a32dde66f04fddc.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/liblog-c1f2e38ace4b48ef.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libcfg_if-99e46cf59aeceb96.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libbyteorder-adcc436a2d446002.rlib" "/build/target/x86_64-unknown-linux-musl/release/deps/libbitflags-bce31f8b9493fe54.rlib" "-Wl,--start-group" "/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-b97f041663db9ba0.rlib" "/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libpanic_unwind-3bbd36ec226789ed.rlib" "/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libbacktrace_sys-58b6d1bb7208a7da.rlib" "/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_demangle-c0e82ab8aacc85c1.rlib" "/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libhashbrown-b23d5c962c8b71fe.rlib" "/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_std_workspace_alloc-1bca9b5db66260f8.rlib" "/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libunwind-3cca172e9cbe1134.rlib" "/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-f2c5674138fdeee9.rlib" "/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc-9cfec2445a524697.rlib" "/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_std_workspace_core-468a98a866109deb.rlib" "/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libcore-c44bf46c58d2b7ae.rlib" "-Wl,--end-group" "/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-4bce2943dc61177e.rlib" "-static" "-Wl,-Bdynamic" "/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/crtn.o"
  = note: /build/target/x86_64-unknown-linux-musl/release/deps/libpq_sys-0c436c4be130eae8.rlib(fe-secure-openssl.o): In function `pgtls_init':
          fe-secure-openssl.c:(.text+0xf48): undefined reference to `OPENSSL_config'
          collect2: error: ld returned 1 exit status
clux commented 5 years ago

We started compiling libpq with ssl support in #49 so that you can talk to postgres over ssl.

Even if you are not using that you still need to include extern crate openssl; in your main (before including diesel) due to https://github.com/sgrif/pq-sys/issues/25

See https://github.com/clux/muslrust/blob/master/test/dieselpgcrate/src/main.rs Hopefully that will make it work.

manifest commented 5 years ago

I'll check it out. Thanks.

manifest commented 5 years ago

It works.