Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
~/r/diesel_musl_testcase (master|✔) $ ./build_musl_breaks.sh
Compiling pq-sys v0.4.4
Compiling byteorder v1.1.0
Running `rustc --crate-name byteorder /root/.cargo/registry/src/github.com-1ecc6299db9ec823/byteorder-1.1.0/src/lib.rs --crate-type lib --emit=dep-info,link -C opt-level=3 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=88b301ebcf94cd66 -C extra-filename=-88b301ebcf94cd66 --out-dir /workdir/target/x86_64-unknown-linux-musl/release/deps --target x86_64-unknown-linux-musl -L dependency=/workdir/target/x86_64-unknown-linux-musl/release/deps -L dependency=/workdir/target/release/deps --cap-lints warn`
Running `rustc --crate-name build_script_build /root/.cargo/registry/src/github.com-1ecc6299db9ec823/pq-sys-0.4.4/build.rs --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=468ac15e19670456 -C extra-filename=-468ac15e19670456 --out-dir /workdir/target/release/build/pq-sys-468ac15e19670456 -L dependency=/workdir/target/release/deps --cap-lints warn`
Compiling unicode-xid v0.0.4
Running `rustc --crate-name unicode_xid /root/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-xid-0.0.4/src/lib.rs --crate-type lib --emit=dep-info,link -C opt-level=3 --cfg 'feature="default"' -C metadata=c047a3a0e7f7ee9f -C extra-filename=-c047a3a0e7f7ee9f --out-dir /workdir/target/release/deps -L dependency=/workdir/target/release/deps --cap-lints warn`
Running `rustc --crate-name byteorder /root/.cargo/registry/src/github.com-1ecc6299db9ec823/byteorder-1.1.0/src/lib.rs --crate-type lib --emit=dep-info,link -C opt-level=3 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=c18c222d370ec560 -C extra-filename=-c18c222d370ec560 --out-dir /workdir/target/release/deps -L dependency=/workdir/target/release/deps --cap-lints warn`
Compiling quote v0.3.15
Running `rustc --crate-name quote /root/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-0.3.15/src/lib.rs --crate-type lib --emit=dep-info,link -C opt-level=3 -C metadata=664fee48ed67bfa1 -C extra-filename=-664fee48ed67bfa1 --out-dir /workdir/target/release/deps -L dependency=/workdir/target/release/deps --cap-lints warn`
Compiling synom v0.11.3
Running `rustc --crate-name synom /root/.cargo/registry/src/github.com-1ecc6299db9ec823/synom-0.11.3/src/lib.rs --crate-type lib --emit=dep-info,link -C opt-level=3 -C metadata=7ce23eca7e48029d -C extra-filename=-7ce23eca7e48029d --out-dir /workdir/target/release/deps -L dependency=/workdir/target/release/deps --extern unicode_xid=/workdir/target/release/deps/libunicode_xid-c047a3a0e7f7ee9f.rlib --cap-lints warn`
Running `/workdir/target/release/build/pq-sys-468ac15e19670456/build-script-build`
cargo:rustc-link-search=native=/musl/lib
cargo:rustc-link-lib=static=pq
Running `/workdir/target/release/build/pq-sys-468ac15e19670456/build-script-build`
cargo:rustc-link-search=native=/musl/lib
cargo:rustc-link-lib=static=pq
Running `rustc --crate-name pq_sys /root/.cargo/registry/src/github.com-1ecc6299db9ec823/pq-sys-0.4.4/src/lib.rs --crate-type lib --emit=dep-info,link -C opt-level=3 -C metadata=f02563776b1beb2c -C extra-filename=-f02563776b1beb2c --out-dir /workdir/target/release/deps -L dependency=/workdir/target/release/deps --cap-lints warn -L native=/musl/lib -l static=pq`
Running `rustc --crate-name pq_sys /root/.cargo/registry/src/github.com-1ecc6299db9ec823/pq-sys-0.4.4/src/lib.rs --crate-type lib --emit=dep-info,link -C opt-level=3 -C metadata=c143edbc7101f1aa -C extra-filename=-c143edbc7101f1aa --out-dir /workdir/target/x86_64-unknown-linux-musl/release/deps --target x86_64-unknown-linux-musl -L dependency=/workdir/target/x86_64-unknown-linux-musl/release/deps -L dependency=/workdir/target/release/deps --cap-lints warn -L native=/musl/lib -l static=pq`
Compiling syn v0.11.11
Running `rustc --crate-name syn /root/.cargo/registry/src/github.com-1ecc6299db9ec823/syn-0.11.11/src/lib.rs --crate-type lib --emit=dep-info,link -C opt-level=3 --cfg 'feature="aster"' --cfg 'feature="default"' --cfg 'feature="parsing"' --cfg 'feature="printing"' --cfg 'feature="quote"' --cfg 'feature="synom"' --cfg 'feature="unicode-xid"' -C metadata=d95b3b7b3ec34334 -C extra-filename=-d95b3b7b3ec34334 --out-dir /workdir/target/release/deps -L dependency=/workdir/target/release/deps --extern unicode_xid=/workdir/target/release/deps/libunicode_xid-c047a3a0e7f7ee9f.rlib --extern quote=/workdir/target/release/deps/libquote-664fee48ed67bfa1.rlib --extern synom=/workdir/target/release/deps/libsynom-7ce23eca7e48029d.rlib --cap-lints warn`
Compiling diesel v0.15.1
Running `rustc --crate-name diesel /root/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel-0.15.1/src/lib.rs --crate-type lib --emit=dep-info,link -C opt-level=3 --cfg 'feature="default"' --cfg 'feature="postgres"' --cfg 'feature="pq-sys"' --cfg 'feature="with-deprecated"' -C metadata=e564ea9a572af3ad -C extra-filename=-e564ea9a572af3ad --out-dir /workdir/target/release/deps -L dependency=/workdir/target/release/deps --extern byteorder=/workdir/target/release/deps/libbyteorder-c18c222d370ec560.rlib --extern pq_sys=/workdir/target/release/deps/libpq_sys-f02563776b1beb2c.rlib --cap-lints warn -L native=/musl/lib`
Running `rustc --crate-name diesel /root/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel-0.15.1/src/lib.rs --crate-type lib --emit=dep-info,link -C opt-level=3 --cfg 'feature="default"' --cfg 'feature="postgres"' --cfg 'feature="pq-sys"' --cfg 'feature="with-deprecated"' -C metadata=49a710c6985e8606 -C extra-filename=-49a710c6985e8606 --out-dir /workdir/target/x86_64-unknown-linux-musl/release/deps --target x86_64-unknown-linux-musl -L dependency=/workdir/target/x86_64-unknown-linux-musl/release/deps -L dependency=/workdir/target/release/deps --extern byteorder=/workdir/target/x86_64-unknown-linux-musl/release/deps/libbyteorder-88b301ebcf94cd66.rlib --extern pq_sys=/workdir/target/x86_64-unknown-linux-musl/release/deps/libpq_sys-c143edbc7101f1aa.rlib --cap-lints warn -L native=/musl/lib`
Compiling diesel_infer_schema v0.15.0
Running `rustc --crate-name diesel_infer_schema /root/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel_infer_schema-0.15.0/src/lib.rs --crate-type lib --emit=dep-info,link -C opt-level=3 --cfg 'feature="diesel"' --cfg 'feature="postgres"' --cfg 'feature="uses_information_schema"' -C metadata=2a92f6c654feb826 -C extra-filename=-2a92f6c654feb826 --out-dir /workdir/target/release/deps -L dependency=/workdir/target/release/deps --extern diesel=/workdir/target/release/deps/libdiesel-e564ea9a572af3ad.rlib --extern syn=/workdir/target/release/deps/libsyn-d95b3b7b3ec34334.rlib --extern quote=/workdir/target/release/deps/libquote-664fee48ed67bfa1.rlib --cap-lints warn -L native=/musl/lib`
Compiling diesel_codegen v0.15.0
Running `rustc --crate-name diesel_codegen /root/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel_codegen-0.15.0/src/lib.rs --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C opt-level=3 --cfg 'feature="diesel"' --cfg 'feature="diesel_infer_schema"' --cfg 'feature="postgres"' -C metadata=5bbd71c5b82e9c69 -C extra-filename=-5bbd71c5b82e9c69 --out-dir /workdir/target/release/deps -L dependency=/workdir/target/release/deps --extern syn=/workdir/target/release/deps/libsyn-d95b3b7b3ec34334.rlib --extern quote=/workdir/target/release/deps/libquote-664fee48ed67bfa1.rlib --extern diesel_infer_schema=/workdir/target/release/deps/libdiesel_infer_schema-2a92f6c654feb826.rlib --extern diesel=/workdir/target/release/deps/libdiesel-e564ea9a572af3ad.rlib --cap-lints warn -L native=/musl/lib`
Compiling diesel_musl_testcase v0.1.0 (file:///workdir)
Running `rustc --crate-name diesel_musl_testcase src/main.rs --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=8d1a5691316fa1df -C extra-filename=-8d1a5691316fa1df --out-dir /workdir/target/x86_64-unknown-linux-musl/release/deps --target x86_64-unknown-linux-musl -L dependency=/workdir/target/x86_64-unknown-linux-musl/release/deps -L dependency=/workdir/target/release/deps --extern diesel_codegen=/workdir/target/release/deps/libdiesel_codegen-5bbd71c5b82e9c69.so --extern diesel=/workdir/target/x86_64-unknown-linux-musl/release/deps/libdiesel-49a710c6985e8606.rlib -L native=/musl/lib`
error: /workdir/target/release/deps/libdiesel_codegen-5bbd71c5b82e9c69.so: undefined symbol: strlcpy
--> src/main.rs:4:1
|
4 | extern crate diesel_codegen;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Could not compile `diesel_musl_testcase`.
Caused by:
process didn't exit successfully: `rustc --crate-name diesel_musl_testcase src/main.rs --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=8d1a5691316fa1df -C extra-filename=-8d1a5691316fa1df --out-dir /workdir/target/x86_64-unknown-linux-musl/release/deps --target x86_64-unknown-linux-musl -L dependency=/workdir/target/x86_64-unknown-linux-musl/release/deps -L dependency=/workdir/target/release/deps --extern diesel_codegen=/workdir/target/release/deps/libdiesel_codegen-5bbd71c5b82e9c69.so --extern diesel=/workdir/target/x86_64-unknown-linux-musl/release/deps/libdiesel-49a710c6985e8606.rlib -L native=/musl/lib` (exit code: 101)
~/r/diesel_musl_testcase (master|✔) $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment