Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save benedictjohannes/3244ce0b7cf7ecdbe86765faed94fa81 to your computer and use it in GitHub Desktop.
Save benedictjohannes/3244ce0b7cf7ecdbe86765faed94fa81 to your computer and use it in GitHub Desktop.
Diesel Cargo build mith MUSL target: (--target=x86_64-unknown-linux-musl) log
benedict@hpsuse:~/diesel/diesel_cli> cat /proc/version
Linux version 5.6.11-1-default (geeko@buildhost) (gcc version 9.3.1 20200406 [revision 6db837a5288ee3ca5ec504fbd5a765817e556ac2] (SUSE Linux)) #1 SMP Wed May 6 10:42:09 UTC 2020 (91c024a)
benedict@hpsuse:~/diesel/diesel_cli> rustup show
Default host: x86_64-unknown-linux-gnu
rustup home: /home/benedict/.rustup
installed toolchains
--------------------
stable-x86_64-unknown-linux-gnu
1.40.0-x86_64-unknown-linux-gnu
installed targets for active toolchain
--------------------------------------
x86_64-unknown-linux-gnu
x86_64-unknown-linux-musl
active toolchain
----------------
1.40.0-x86_64-unknown-linux-gnu (overridden by '/home/benedict/diesel/rust-toolchain')
rustc 1.40.0 (73528e339 2019-12-16)
benedict@hpsuse:~/diesel/diesel_cli> cargo build --target=x86_64-unknown-linux-musl --no-default-features --features "postgres" --target-dir result --release
Finished release [optimized] target(s) in 0.05s
benedict@hpsuse:~/diesel/diesel_cli> cargo build --no-default-features --features "postgres" --target-dir result --release
Finished release [optimized] target(s) in 0.05s
benedict@hpsuse:~/diesel/diesel_cli> ldd result/x86_64-unknown-linux-musl/release/diesel
linux-vdso.so.1 (0x00007ffe8b389000)
libpq.so.5 => /usr/lib64/libpq.so.5 (0x00007f249244d000)
libssl.so.1.1 => /usr/lib64/libssl.so.1.1 (0x00007f24923c0000)
libcrypto.so.1.1 => /usr/lib64/libcrypto.so.1.1 (0x00007f24920db000)
libgssapi_krb5.so.2 => /usr/lib64/libgssapi_krb5.so.2 (0x00007f249208a000)
libldap_r-2.4.so.2 => /usr/lib64/libldap_r-2.4.so.2 (0x00007f2492033000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f2492011000)
libc.so.6 => /lib64/libc.so.6 (0x00007f2491e49000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f2491e44000)
libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x00007f2491d79000)
libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 (0x00007f2491d60000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f2491d5a000)
libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0 (0x00007f2491d4a000)
liblber-2.4.so.2 => /usr/lib64/liblber-2.4.so.2 (0x00007f2491d37000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f2491d1f000)
libsasl2.so.3 => /usr/lib64/libsasl2.so.3 (0x00007f2491d00000)
/lib/ld64.so.1 => /lib64/ld-linux-x86-64.so.2 (0x00007f24924bb000)
libkeyutils.so.1 => /usr/lib64/libkeyutils.so.1 (0x00007f2491cf9000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f2491cce000)
libpcre.so.1 => /usr/lib64/libpcre.so.1 (0x00007f2491c34000)
benedict@hpsuse:~/diesel/diesel_cli> ldd result/release/diesel
linux-vdso.so.1 (0x00007ffe47d0b000)
libpq.so.5 => /usr/lib64/libpq.so.5 (0x00007f94c579b000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f94c5796000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f94c5774000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f94c575a000)
libc.so.6 => /lib64/libc.so.6 (0x00007f94c5594000)
/lib64/ld-linux-x86-64.so.2 (0x00007f94c5b3e000)
libm.so.6 => /lib64/libm.so.6 (0x00007f94c544e000)
libssl.so.1.1 => /usr/lib64/libssl.so.1.1 (0x00007f94c53bf000)
libcrypto.so.1.1 => /usr/lib64/libcrypto.so.1.1 (0x00007f94c50da000)
libgssapi_krb5.so.2 => /usr/lib64/libgssapi_krb5.so.2 (0x00007f94c5089000)
libldap_r-2.4.so.2 => /usr/lib64/libldap_r-2.4.so.2 (0x00007f94c5032000)
libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x00007f94c4f67000)
libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 (0x00007f94c4f4e000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f94c4f46000)
libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0 (0x00007f94c4f36000)
liblber-2.4.so.2 => /usr/lib64/liblber-2.4.so.2 (0x00007f94c4f25000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f94c4f0d000)
libsasl2.so.3 => /usr/lib64/libsasl2.so.3 (0x00007f94c4eee000)
libkeyutils.so.1 => /usr/lib64/libkeyutils.so.1 (0x00007f94c4ee7000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f94c4eba000)
libpcre.so.1 => /usr/lib64/libpcre.so.1 (0x00007f94c4e22000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment