Closed mwilliammyers closed 5 years ago
hmmm, on my computer cargo test
works with rustc 1.39.0-nightly (1dd188489 2019-09-22)
, but I re-ran the travis build and it failed with the same (?) error...
That... doesn't look right. I don't think that's an issue on our end. I'll try re-running the build now.
Well I thought that would do the trick; it worked when I did cargo clean; cargo test
on my computer with rustc 1.40.0-nightly (1721c9685 2019-10-12)
and rustc 1.38.0 (625451e37 2019-09-23)
.
But cargo clean; cargo build; cargo test
did not work... I think?
It also looks like stable is working on travis...
I will eventually get to the bottom of this! 🙃
To document a new error message I got on Ubuntu 19.04 with rustc 1.38.0 (625451e37 2019-09-23)
for x86_64-unknown-linux-gnu
:
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.11jn7v32tspilspo.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.1958o3veuwfr6sn5.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.1atwsurxxrg878kz.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.1brhq02kb6wckh35.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.1map2aqhkpn77jic.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.1qgl7qnv7bh8p50c.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.1qk423iye5oto6wh.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.1qxozlwyklxut5fv.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.1t53t43aukyl1arz.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.28nfsf6jcmchvufm.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.2alhwllpbivbj63i.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.2dap3fb313xu9xss.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.2e3kgi864z7s20o3.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.2epwi57we773sygy.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.2l7rqonvfn2lt14t.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.2l87yrvzdnscgdtt.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.2ngb9abnouksacgj.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.2yx8jk64na4pe3fd.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.380h9bk0ieayepun.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.3bxonqfxaxppdupq.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.3gkfsb45w7yc7hp5.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.3m1eb9l0iynzf159.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.3qbdm6bwzwvc55co.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.3rj1u1qpjpwvl95p.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.3sjrw5s3e7iyhvkz.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.3xdx2emc17d8yybu.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.405q3o35tuuls6vd.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.45d20s29ywq8egvk.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.45oiac921yhqlha6.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.46r9fne9z3kictoz.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.46tiiyuzg1z3jmc.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.4chycbpywyi1gqkv.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.4njdje0dfmauqfeu.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.4xpyfw9irf3zuo3k.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.521tm6mspvlt6qlg.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.5325gkd3ganutotv.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.54utpeb07vqcfvb8.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.5bxim7fdbgjfr8z.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.5c2m1autcx3hqovf.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.5fydhvyp2kle1d4j.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.5lbrnl245oybtaf.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.78ug7oxh75f5q28.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.bk4vbtkc9qtfxa.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.crzeu5y35a7c5kz.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.gx6kzukgnkey3e3.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.n1x0kd6lm5lbt2l.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.o07xn6xgyvz8x7y.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.oruzb3ho95q1xe9.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.xc7vuaszcmolzc3.rcgu.o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.zaextlgznhc6mqr.rcgu.o" "-o" "~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "~/Developer/elastic/target/debug/deps" "-L" "~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-ltest-8b6fbd25e1766083" "-L" "~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-lterm-bd8f21e3bdd6cbdc" "-Wl,-Bstatic" "~/Developer/elastic/target/debug/deps/libchrono-889bdde3b9ec3711.rlib" "~/Developer/elastic/target/debug/deps/libnum_integer-24c9a8b426714334.rlib" "~/Developer/elastic/target/debug/deps/libnum_traits-89f95694a2dfbb02.rlib" "~/Developer/elastic/target/debug/deps/libtime-082c7e193c776d4a.rlib" "~/Developer/elastic/target/debug/deps/liblibc-5241e4d83436d463.rlib" "~/Developer/elastic/target/debug/deps/libserde_json-6964aae633aac31e.rlib" "~/Developer/elastic/target/debug/deps/libitoa-9092e7218578a598.rlib" "~/Developer/elastic/target/debug/deps/libserde_derive_internals-f26d25181aeb8440.rlib" "~/Developer/elastic/target/debug/deps/libserde-de6150b585a7b85a.rlib" "~/Developer/elastic/target/debug/deps/libnom-2f9bc6dd0f2d2b61.rlib" "-L" "~/Developer/elastic/target/debug/deps" "-Wl,-Bdynamic" "-llexical_core-8931a8e6fec6ec0d" "-Wl,-Bstatic" "~/Developer/elastic/target/debug/deps/libryu-e34fd143cc38884a.rlib" "~/Developer/elastic/target/debug/deps/libarrayvec-8a189a55df68bc06.rlib" "~/Developer/elastic/target/debug/deps/libnodrop-35868208db3c9a51.rlib" "~/Developer/elastic/target/debug/deps/libstatic_assertions-4ef044765a897699.rlib" "~/Developer/elastic/target/debug/deps/libcfg_if-5557127d350aca71.rlib" "~/Developer/elastic/target/debug/deps/libmemchr-0b1d30cc77cabf15.rlib" "~/Developer/elastic/target/debug/deps/libquick_error-564b06fc53098517.rlib" "~/Developer/elastic/target/debug/deps/libsyn-67fabaed5ec7ce8d.rlib" "~/Developer/elastic/target/debug/deps/libsynom-3b25b93e2366beaf.rlib" "~/Developer/elastic/target/debug/deps/libunicode_xid-f7e9ef51f87a54c7.rlib" "~/Developer/elastic/target/debug/deps/libquote-8e90ce2bbedc6309.rlib" "~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libproc_macro-a02bd905b5af93ea.rlib" "-Wl,--start-group" "-L" "~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bdynamic" "-lstd-12ce12f1efc08aa3" "-Wl,--end-group" "-Wl,-Bstatic" "~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-68a4f8466685ed76.rlib" "-Wl,-Bdynamic" "-lutil" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil"
= note: /usr/bin/ld: ~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.11jn7v32tspilspo.rcgu.o: in function `alloc::alloc::exchange_malloc':
/rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/liballoc/alloc.rs:207: undefined reference to `core::ptr::<impl *mut T>::is_null'
/usr/bin/ld: ~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.1qxozlwyklxut5fv.rcgu.o: in function `<core::iter::adapters::zip::Zip<A,B> as core::iter::adapters::zip::ZipImpl<A,B>>::new':
/rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/iter/adapters/zip.rs:154: undefined reference to `core::cmp::min'
/usr/bin/ld: ~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.1qxozlwyklxut5fv.rcgu.o: in function `core::iter::traits::iterator::Iterator::all':
/rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/iter/traits/iterator.rs:1828: undefined reference to `<core::iter::LoopState<C,B> as core::cmp::PartialEq>::eq'
/usr/bin/ld: ~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.1qxozlwyklxut5fv.rcgu.o: in function `core::iter::traits::iterator::Iterator::try_fold':
/rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/iter/traits/iterator.rs:1671: undefined reference to `<core::iter::LoopState<C,B> as core::ops::try::Try>::into_result'
/usr/bin/ld: /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/iter/traits/iterator.rs:1671: undefined reference to `<T as core::convert::From<T>>::from'
/usr/bin/ld: /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/iter/traits/iterator.rs:1671: undefined reference to `<core::iter::LoopState<C,B> as core::ops::try::Try>::from_error'
/usr/bin/ld: /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/iter/traits/iterator.rs:1673: undefined reference to `<core::iter::LoopState<C,B> as core::ops::try::Try>::from_ok'
/usr/bin/ld: ~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.2alhwllpbivbj63i.rcgu.o: in function `alloc::raw_vec::alloc_guard':
/rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/liballoc/raw_vec.rs:741: undefined reference to `core::mem::size_of'
/usr/bin/ld: ~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.2l87yrvzdnscgdtt.rcgu.o: in function `<&[u8] as nom::traits::InputIter>::iter_elements':
~/.cargo/registry/src/github.com-1ecc6299db9ec823/nom-5.0.1/src/traits.rs:357: undefined reference to `core::slice::<impl [T]>::iter'
/usr/bin/ld: ~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.2yx8jk64na4pe3fd.rcgu.o: in function `<core::iter::adapters::Map<I,F> as core::iter::traits::iterator::Iterator>::next':
/rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/iter/adapters/mod.rs:603: undefined reference to `<core::slice::Iter<T> as core::iter::traits::iterator::Iterator>::next'
/usr/bin/ld: ~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.3gkfsb45w7yc7hp5.rcgu.o: in function `core::ptr::<impl *mut T>::is_null':
/rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/ptr/mod.rs:1726: undefined reference to `core::ptr::null_mut'
/usr/bin/ld: ~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.3gkfsb45w7yc7hp5.rcgu.o: in function `core::slice::<impl [T]>::iter':
/rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/slice/mod.rs:534: undefined reference to `core::ptr::<impl *const T>::wrapping_add'
/usr/bin/ld: ~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.3m1eb9l0iynzf159.rcgu.o: in function `nom::multi::count::{{closure}}':
~/.cargo/registry/src/github.com-1ecc6299db9ec823/nom-5.0.1/src/multi/mod.rs:630: undefined reference to `<I as core::iter::traits::collect::IntoIterator>::into_iter'
/usr/bin/ld: ~/.cargo/registry/src/github.com-1ecc6299db9ec823/nom-5.0.1/src/multi/mod.rs:630: undefined reference to `core::iter::range::<impl core::iter::traits::iterator::Iterator for core::ops::range::Range<A>>::next'
/usr/bin/ld: ~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.3m1eb9l0iynzf159.rcgu.o: in function `nom::multi::many1::{{closure}}':
~/.cargo/registry/src/github.com-1ecc6299db9ec823/nom-5.0.1/src/multi/mod.rs:123: undefined reference to `core::cmp::impls::<impl core::cmp::PartialEq<&B> for &A>::eq'
/usr/bin/ld: ~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.3xdx2emc17d8yybu.rcgu.o: in function `core::slice::Iter<T>::post_inc_start':
/rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/slice/mod.rs:3074: undefined reference to `core::ptr::<impl *const T>::wrapping_offset'
/usr/bin/ld: ~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.45d20s29ywq8egvk.rcgu.o: in function `core::iter::traits::iterator::Iterator::try_fold':
/rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/iter/traits/iterator.rs:1670: undefined reference to `core::iter::range::<impl core::iter::traits::iterator::Iterator for core::ops::range::Range<A>>::next'
/usr/bin/ld: ~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.45d20s29ywq8egvk.rcgu.o: in function `core::iter::traits::iterator::Iterator::try_fold':
/rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/iter/traits/iterator.rs:1670: undefined reference to `core::iter::range::<impl core::iter::traits::iterator::Iterator for core::ops::range::Range<A>>::next'
/usr/bin/ld: ~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.521tm6mspvlt6qlg.rcgu.o: in function `core::num::<impl usize>::saturating_mul':
/rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/num/mod.rs:2985: undefined reference to `core::option::Option<T>::unwrap_or'
/usr/bin/ld: ~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.5bxim7fdbgjfr8z.rcgu.o: in function `<&[T] as nom::traits::Slice<core::ops::range::RangeFrom<usize>>>::slice':
~/.cargo/registry/src/github.com-1ecc6299db9ec823/nom-5.0.1/src/traits.rs:909: undefined reference to `core::slice::<impl core::ops::index::Index<I> for [T]>::index'
/usr/bin/ld: ~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.5bxim7fdbgjfr8z.rcgu.o: in function `<&[T] as nom::traits::InputLength>::input_len':
~/.cargo/registry/src/github.com-1ecc6299db9ec823/nom-5.0.1/src/traits.rs:31: undefined reference to `core::slice::<impl [T]>::len'
/usr/bin/ld: ~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.5bxim7fdbgjfr8z.rcgu.o: in function `<&[u8] as nom::traits::InputTakeAtPosition>::split_at_position1_complete':
~/.cargo/registry/src/github.com-1ecc6299db9ec823/nom-5.0.1/src/traits.rs:576: undefined reference to `core::slice::<impl [T]>::len'
/usr/bin/ld: ~/.cargo/registry/src/github.com-1ecc6299db9ec823/nom-5.0.1/src/traits.rs:578: undefined reference to `core::slice::<impl core::ops::index::Index<I> for [T]>::index'
/usr/bin/ld: ~/.cargo/registry/src/github.com-1ecc6299db9ec823/nom-5.0.1/src/traits.rs:580: undefined reference to `core::slice::<impl [T]>::len'
/usr/bin/ld: ~/Developer/elastic/target/debug/deps/elastic_derive-f14a14127920319d.5bxim7fdbgjfr8z.rcgu.o: in function `<&[u8] as nom::traits::InputTakeAtPosition>::split_at_position1_complete':
~/.cargo/registry/src/github.com-1ecc6299db9ec823/nom-5.0.1/src/traits.rs:576: undefined reference to `core::slice::<impl [T]>::len'
/usr/bin/ld: ~/.cargo/registry/src/github.com-1ecc6299db9ec823/nom-5.0.1/src/traits.rs:578: undefined reference to `core::slice::<impl core::ops::index::Index<I> for [T]>::index'
/usr/bin/ld: ~/.cargo/registry/src/github.com-1ecc6299db9ec823/nom-5.0.1/src/traits.rs:580: undefined reference to `core::slice::<impl [T]>::len'
/usr/bin/ld: ~/Developer/elastic/target/debug/deps/libnom-2f9bc6dd0f2d2b61.rlib(nom-2f9bc6dd0f2d2b61.nom.x8wbajss-cgu.10.rcgu.o): in function `<core::ops::range::RangeTo<usize> as core::slice::SliceIndex<[T]>>::index':
/rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/slice/mod.rs:2812: undefined reference to `<core::ops::range::Range<usize> as core::slice::SliceIndex<[T]>>::index'
/usr/bin/ld: ~/Developer/elastic/target/debug/deps/libnom-2f9bc6dd0f2d2b61.rlib(nom-2f9bc6dd0f2d2b61.nom.x8wbajss-cgu.5.rcgu.o): in function `core::slice::<impl [T]>::split_at':
/rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/slice/mod.rs:963: undefined reference to `core::slice::<impl core::ops::index::Index<I> for [T]>::index'
/usr/bin/ld: ~/Developer/elastic/target/debug/deps/libnom-2f9bc6dd0f2d2b61.rlib(nom-2f9bc6dd0f2d2b61.nom.x8wbajss-cgu.8.rcgu.o):(.data.rel.ro..Lanon.68a827942960b6606ec3d68f40569ad9.2+0x18): undefined reference to `<&T as core::fmt::Debug>::fmt'
collect2: error: ld returned 1 exit status
error: aborting due to previous error
error: Could not compile `elastic_derive`.
Fixed the "unresolved symbols" issue in 92fb2ba by removing the lexical feature from the nom dependency, which we weren't using anyway.
All
elastic_derive
tests pass, but:No idea what is going on but if you run
cargo test
from the root of the repo you get a linking error but if you runcargo build
from the root of the repo it works...If you run
cargo test
from any of the workspace member's directories everything works...I have tried:
rustc 1.39.0-nightly (72b2abfd6 2019-08-29)
rustc 1.37.0 (eae3437df 2019-08-13)
each targeting:
x86_64-apple-darwin
andx86_64-unknown-linux-musl
.Here is the error message: