elastic-rs / elastic

An Elasticsearch REST API client for Rust
Apache License 2.0
252 stars 40 forks source link

Update nom dependency #389

Closed mwilliammyers closed 5 years ago

mwilliammyers commented 5 years ago

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 run cargo 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:

each targeting: x86_64-apple-darwin and x86_64-unknown-linux-musl.

Here is the error message:

   Compiling elastic_derive v0.21.0-pre.5 (/Users/wm/Developer/elastic/src/elastic_derive)
warning: unused `#[macro_use]` import
  --> src/elastic_derive/src/lib.rs:20:1
   |
20 | #[macro_use]
   | ^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: unused `#[macro_use]` import
  --> src/elastic_derive/src/lib.rs:20:1
   |
20 | #[macro_use]
   | ^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

   Compiling reqwest v0.9.20
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-m64" "-L" "/Users/wm/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.16dje5vtmf4ilqa8.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.1aw49vqupy2qhj4a.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.1tvv4678du75a1fz.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.1wtspyhskms5prmd.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.209eikzldqi5vmjp.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.20d47w5yzhxxco79.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.20e1agyptcs82vfm.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.2230fegdkw1z96he.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.223u7cxmpj25txkh.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.2861jqa3lfqilglm.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.2d6jh4ix8d38qhga.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.2e94a1vic1f5xvt4.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.2g5pbxnqgcdf4p8x.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.2h6rbcdc7cm858oj.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.2n7c40noh512auh0.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.2piglza8lgg3qwvb.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.2rfs06kb47pir0ne.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.2y5hskog82q6xm8y.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.2yu091cc0tb4ho7n.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.34x2tm5vl2mvy6cd.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.35xnnd4mvbrzd1yt.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.3966u8emrwtjlrwq.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.3c4r8h1feg1nlisn.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.3fucgz5ufsytzzeq.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.3j0ehbvuabo3da2f.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.3o6k4hzqjg8ejr6d.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.3q8g2l0oog4twgmr.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.3qwehaki128u3d0j.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.3rstnlkp86qvtyli.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.3sbaupesxisj4ml1.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.3t4938nidguongli.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.3ta8o699x4737zuz.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.3tflkittcy0ifj9o.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.40c6mizxpt0xdlkb.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.423arjaiwpnpdeop.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.4793o75nw0fnor8v.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.4doql4bek9r4r1ug.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.4i3r73d749pwhj24.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.4q63mac98vb7fb3x.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.568h93mtmpvylhnw.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.5eyga3jn3se1byyu.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.91cnzcxtreklf61.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.dsm9ilod8500a1w.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.erkt2gr6oy773lw.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.k60tkcpfg8j74yn.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.lc8ph6wpophl8mm.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.qlmbpr9tcp3j94l.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.rbevr4edozbdx7b.rcgu.o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33.ynw5w13u11bvr26.rcgu.o" "-o" "/Users/wm/Developer/elastic/target/debug/deps/elastic_derive-009b8534e7ef2e33" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/Users/wm/Developer/elastic/target/debug/deps" "-L" "/Users/wm/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "-L" "/Users/wm/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "-ltest-c9b9af0c67573068" "/Users/wm/Developer/elastic/target/debug/deps/libchrono-e0605e59cf482638.rlib" "/Users/wm/Developer/elastic/target/debug/deps/libnum_integer-4a320ec07da27a2e.rlib" "/Users/wm/Developer/elastic/target/debug/deps/libnum_traits-03be4e89c368108e.rlib" "/Users/wm/Developer/elastic/target/debug/deps/libtime-b8f5f26cb29f8228.rlib" "/Users/wm/Developer/elastic/target/debug/deps/liblibc-7eaa5514c0682c52.rlib" "/Users/wm/Developer/elastic/target/debug/deps/libserde_json-7c71c4cc5487544f.rlib" "/Users/wm/Developer/elastic/target/debug/deps/libitoa-cfbc258a616f87e5.rlib" "/Users/wm/Developer/elastic/target/debug/deps/libserde_derive_internals-56fa606bb09ddd1a.rlib" "/Users/wm/Developer/elastic/target/debug/deps/libserde-55779db5cb2c97ae.rlib" "/Users/wm/Developer/elastic/target/debug/deps/libnom-47a89e36baa632ef.rlib" "-L" "/Users/wm/Developer/elastic/target/debug/deps" "-llexical_core-d05e2aaca1c4c6fb" "/Users/wm/Developer/elastic/target/debug/deps/libryu-8c546781ed26100c.rlib" "/Users/wm/Developer/elastic/target/debug/deps/libarrayvec-7ce5ab187da71e8d.rlib" "/Users/wm/Developer/elastic/target/debug/deps/libnodrop-5fdfbea57f1572d1.rlib" "/Users/wm/Developer/elastic/target/debug/deps/libstatic_assertions-fb22529def4f7420.rlib" "/Users/wm/Developer/elastic/target/debug/deps/libcfg_if-de5a4a5ac99d5e72.rlib" "/Users/wm/Developer/elastic/target/debug/deps/libmemchr-e3945f6a1c4bfb19.rlib" "/Users/wm/Developer/elastic/target/debug/deps/libquick_error-89e7c2ac87fc997c.rlib" "/Users/wm/Developer/elastic/target/debug/deps/libsyn-56bde269fa816459.rlib" "/Users/wm/Developer/elastic/target/debug/deps/libsynom-7d3c4585cf9203b2.rlib" "/Users/wm/Developer/elastic/target/debug/deps/libunicode_xid-c63be281c8ea1265.rlib" "/Users/wm/Developer/elastic/target/debug/deps/libquote-026a97e33ba1d6e9.rlib" "/Users/wm/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libproc_macro-34e4a01d4569a5d7.rlib" "-L" "/Users/wm/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "-lstd-af052a57fa360059" "/Users/wm/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-cbdf5472a1ceaccf.rlib" "-lSystem" "-lresolv" "-lc" "-lm"
  = note: Undefined symbols for architecture x86_64:
            "_$LT$core..ops..range..Range$LT$usize$GT$$u20$as$u20$core..slice..SliceIndex$LT$$u5b$T$u5d$$GT$$GT$::index::h8e5496247852d0d6", referenced from:
                _$LT$core..ops..range..RangeTo$LT$usize$GT$$u20$as$u20$core..slice..SliceIndex$LT$$u5b$T$u5d$$GT$$GT$::index::h52fdf7efe76966c7 in libnom-47a89e36baa632ef.rlib(nom-47a89e36baa632ef.nom.3em15ov0-cgu.10.rcgu.o)
            "core::slice::_$LT$impl$u20$core..ops..index..Index$LT$I$GT$$u20$for$u20$$u5b$T$u5d$$GT$::index::h131e4fc08e872067", referenced from:
                core::slice::_$LT$impl$u20$$u5b$T$u5d$$GT$::split_at::hc82f33c22adfbe80 in libnom-47a89e36baa632ef.rlib(nom-47a89e36baa632ef.nom.3em15ov0-cgu.5.rcgu.o)
            "_$LT$$RF$T$u20$as$u20$core..fmt..Debug$GT$::fmt::he72aa5d1e7dd9435", referenced from:
                l_anon.9526f0c4f6fb87572be7558440a1a757.5 in libnom-47a89e36baa632ef.rlib(nom-47a89e36baa632ef.nom.3em15ov0-cgu.8.rcgu.o)
            "core::ptr::_$LT$impl$u20$$BP$mut$u20$T$GT$::is_null::h5cad4bbfc500c1c8", referenced from:
                core::ptr::non_null::NonNull$LT$T$GT$::new::h85336a68eb359198 in libnom-47a89e36baa632ef.rlib(nom-47a89e36baa632ef.nom.3em15ov0-cgu.8.rcgu.o)
            "core::cmp::Ord::max::h407ce36e51abb1bb", referenced from:
                core::cmp::max::hd2a95550f37c1d72 in libnom-47a89e36baa632ef.rlib(nom-47a89e36baa632ef.nom.3em15ov0-cgu.11.rcgu.o)
          ld: symbol(s) not found for architecture x86_64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
mwilliammyers commented 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...

KodrAus commented 5 years ago

That... doesn't look right. I don't think that's an issue on our end. I'll try re-running the build now.

mwilliammyers commented 5 years ago

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! 🙃

mwilliammyers commented 5 years ago

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`.
mwilliammyers commented 5 years ago

Fixed the "unresolved symbols" issue in 92fb2ba by removing the lexical feature from the nom dependency, which we weren't using anyway.