Open strieflinger opened 6 years ago
Although it is not working fully yet, the following steps seem to be a good start:
Install buildroot
using
git clone git://git.busybox.net/buildroot
cd buildroot
make raspberrypi0w_defconfig
Execute make menuconfig
. Make sure that you have installed ncurses
on your system. Otherwise launching the buildroot
configuration tool will fail. Enable Toolchain > Enable WCHAR support
and Target Packages > Hardware Handling > eudev
.
Build the image by invoking make
.
Create a file called cross-build
with the following contents
#!/bin/sh
SYSROOT=<buildroot-home>/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot
export PKG_CONFIG_DIR=
export PKG_CONFIG_LIBDIR=${SYSROOT}/usr/lib/pkgconfig:${SYSROOT}/usr/share/pkgconfig
export PKG_CONFIG_SYSROOT_DIR=${SYSROOT}
export PKG_CONFIG_ALLOW_CROSS=1
export LD_LIBRARY_PATH=${SYSROOT}/usr/lib
cargo build --target=arm-unknown-linux-gnueabihf
Make sure to replace <buildroot-home>
with the folder where you have cloned buildroot
to.
Executing the script results currently in the following error message:
[Compiling ... omitted]
Compiling open-cisterna v0.1.0 (file:///home/svtr/Projects/open-cisterna)
error: linking with `arm-linux-gnueabihf-gcc` failed: exit code: 1
|
= note: "arm-linux-gnueabihf-gcc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-L" "/home/svtr/.rustup/toolchains/nightly-2018-05-17-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.15kq92zzbmxot4k9.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.16u6js6g0l3k1ic6.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.17erb31xn70viq4b.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.181cuta0v63atwcm.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.1fxq14vrn4hmbyv6.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.1i4jyjk3gxvvvngj.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.1im38lueib99jsk0.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.1jnlhyxj59jycbjv.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.1nyfdlp3jd783n7g.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.1o6b1la7g4jnv39b.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.1o78puxdw9x5tln.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.1rgoih453m19rhn1.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.1tm9kjtpt0vcg75a.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.1y16o1qfye96o7m0.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.1zeawhkbeobww1zn.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.1zwd8n7bcl3vhvvh.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.23tqyymcb18u96mb.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.25aio1vfxvim6484.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.2h6js7r1t4ms8cda.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.2hd4a34ssykoryvl.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.2j3ifc4irbyf3b8u.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.2japoq3ikhbq6s6r.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.2le9djr8ieooknsy.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.2lyh15q6cjwzy18c.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.2oiwwqohid6mabhc.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.2q5257pdh5222n7q.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.2qhkzqx5zqexj20y.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.2ujx3sbmswjw52yh.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.2w6xsa2hbi53xhak.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.3171x0bwu82dptu7.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.33uanrnvs5dp6udw.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.3464rsa72h2nxt7i.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.360n40d30atuqugt.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.38ps4pa181wsnsy9.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.3ayaeypdcro9d6yk.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.3d28g2weq1c5v9pe.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.3g94tobrpgum5dk6.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.3hfnnvlph5ozv32c.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.3kgd66c6s6yceval.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.3oqznv5oym7l3m4e.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.3rngp6bm2u2q5z0y.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.3wta9ctgdrpkmlpr.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.3z5q91thgbf1qq2j.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.41446w73qxxdsc9k.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.436dotimmrgzkwfa.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.43v6g0y2xsxoggnt.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.44i4igkm5w62m2lh.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.45pc7c65foh9i35f.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.45sud1ub1th7k9to.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.49a7n47po4ttqjl7.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.49lx1q7cxvpykyv0.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.49qmpuk8w1opmi5q.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.4brwxiorhmgsb6oc.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.4bwka44cn8t3u4h3.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.4cxyqmsl2ros1gyv.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.4oc10dk278mpk1vy.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.4sw9hz7i7fiueihz.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.4t036713kjyd6jel.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.4u657qsr6b18m71z.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.4xq48u46a1pwiqn7.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.4xuhwz5yy6q4gvgg.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.4yh8x2b62dcih00t.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.4ypvbwho0bu5tnww.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.533dixeydna25lub.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.55d9em59ntf0qwb8.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.572bgozz9kcwe4zq.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.57k06xfugllsc526.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.5b1vh7iwaxrgdt9b.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.5bvuwgj4xiu905to.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.5g9b1s2cnhaximky.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.5ja6ksszgmblgzy.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.6kxghazzjqsfanf.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.8xzrsc1ux72v29j.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.98g0d9x8aw3akpe.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.9elsx31vb4it187.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.a0c4ilfxy9p9wqw.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.c6lbtaiefvx3wya.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.d6p2df93qm1h3gm.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.e19kx9t7xhzajfl.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.g7ogu66bs160k1a.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.gon14xphovlcp6p.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.mb501chi8fnqgmm.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.mz7vgmcf23rofcc.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.oa3rad818d8sgn4.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.ojz67pushxaf9xn.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.pqmjx25qpxkduz7.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.pthxzd6cv5yp78m.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.qb724sr60u9st3v.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.y08g5q2x813c4wx.rcgu.o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.z9ox7biyn1otfln.rcgu.o" "-o" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/open_cisterna-4ce3243bda3da32b.crate.allocator.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "-L" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps" "-L" "/home/svtr/Projects/open-cisterna/target/debug/deps" "-L" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/build/ring-3b9f03a980a071d2/out" "-L" "/home/svtr/Projects/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/lib" "-L" "/home/svtr/.rustup/toolchains/nightly-2018-05-17-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib" "-Wl,-Bstatic" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libserialport-6d3e6786f385501f.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libbitflags-10917507b8d664ad.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libnix-ac4339a8ac7c2d35.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libbitflags-7465a3452fd915bf.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libbytes-33743782f0c53376.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/liblibudev-5b59515a5be0c05d.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/liblibudev_sys-5ebab5aa44f4ffa6.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/librppal-8758d531c13a5562.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libmio_extras-9b05eb43a39d446c.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libmio-3559ab601f391225.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libslab-e6ffb989bef97497.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libiovec-249d20ffa7566f1e.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libnet2-17dd8ea67655e447.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/liblazycell-3271b053fa3f538b.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/librocket_contrib-4c2d7308fc5e60c2.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/librocket-76e3ca747edbe2d4.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libisatty-4e9a39ff5a08a4b6.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libordermap-cb65abaeca3a6316.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libsmallvec-0714aa26ec398f17.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libbase64-4a38a66378c01158.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libcookie-84ed83496e84a0fc.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libring-e64939adaeb76f64.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libuntrusted-daf8d031f526d199.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libstate-47d7dc8d79813392.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libhyper-ded49a878aabbebd.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libmime-99af5389b0a71544.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/liblanguage_tags-96df8ea62fae6bea.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libtypeable-8df869b9536255fc.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libtraitobject-211bac140c2c161b.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libnum_cpus-d3dd806c2e3f976b.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libhttparse-82aef4f9d0b730f4.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libunicase-d6fed678cdd7249c.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/liburl-8a9d09838516d30b.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libpercent_encoding-5c3d689b39f506d4.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libidna-729978d74d30893c.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libunicode_normalization-4ea24811dcd40c79.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libunicode_bidi-3aaf0ede42750c50.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libmatches-609d138c2a3d51cd.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libtime-b6d49c65aaaed737.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libbase64-135cdb69a893805a.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libsafemem-42769f429efef369.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libbyteorder-b168857c1eeede41.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libyansi-ac2e79dd1319c4e4.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libpear-31e7d0433ab5ca21.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/liblog-6eb1527d5d4dc272.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/librand-98d1d9bb4bf4bd37.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libenv_logger-1fe8fb20fbd298f9.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libregex-6c40cf3c74c8a2d4.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libutf8_ranges-067420adacd78817.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libregex_syntax-7d92f43aab47b6a0.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libucd_util-21f83db183ba0b17.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libthread_local-5de5472cb6a953a4.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libunreachable-b35a49ac465f8fde.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libvoid-5904793ec7954b0d.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libaho_corasick-b687c6eb25e2f033.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libmemchr-2d8facde634cb230.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libatty-0c51d3a8d2d7238f.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libhumantime-d8a3f4496a5365d2.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libquick_error-a7c57b2252d254cc.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libtermcolor-a2cb1e78ba0930e2.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/liblog-c2b967e431e8a4d2.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libcfg_if-5bc127e45c863141.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libconfig-ea1826b333d17b28.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libserde_hjson-78539a96c7bc0090.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libregex-eda1f68ea702e0b6.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libutf8_ranges-b47b8babfe280f74.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libregex_syntax-7f98acec1a97f33c.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libthread_local-9a8ca0d48f17701a.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libthread_id-715c8cbf7eb48399.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libaho_corasick-0cbbd9e7b4d72447.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libmemchr-3a39a0fe4afe9aaa.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libnum_traits-401fba9be6d880ba.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libnum_traits-2cd2d1e4baf43d01.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/liblinked_hash_map-d9a3fccca46e0239.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libserde-de8f2530d1b4869e.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/liblazy_static-21bada8bbdbaa82d.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libyaml_rust-63dfcd39f58e5a49.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/liblinked_hash_map-9a5b82bd1977d26c.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libserde_json-80ebb003cb31cc0b.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libitoa-922aff86513cc31f.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libdtoa-59237d45bb59e1b7.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libtoml-1a182c19c83743d0.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/liblazy_static-c30de6932c2c0d0f.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libnom-ccce3a562c53fa54.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libmemchr-37f2f8b876670316.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/liblibc-fd791d9f49ad5472.rlib" "/home/svtr/Projects/open-cisterna/target/arm-unknown-linux-gnueabihf/debug/deps/libserde-06b4240d249a0e6a.rlib" "-Wl,--start-group" "/home/svtr/.rustup/toolchains/nightly-2018-05-17-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libstd-24a9d9daea7ac06b.rlib" "/home/svtr/.rustup/toolchains/nightly-2018-05-17-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libpanic_unwind-9286f202199bbe0b.rlib" "/home/svtr/.rustup/toolchains/nightly-2018-05-17-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/liballoc_jemalloc-36f5d0215c55ef82.rlib" "/home/svtr/.rustup/toolchains/nightly-2018-05-17-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libunwind-82d2f79f1a40306c.rlib" "/home/svtr/.rustup/toolchains/nightly-2018-05-17-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/liballoc_system-a690e16643235e0b.rlib" "/home/svtr/.rustup/toolchains/nightly-2018-05-17-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/liblibc-e86fde89d31ac119.rlib" "/home/svtr/.rustup/toolchains/nightly-2018-05-17-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/liballoc-a584ab1437c531b9.rlib" "/home/svtr/.rustup/toolchains/nightly-2018-05-17-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libcore-8cf92ac404d0effb.rlib" "-Wl,--end-group" "/home/svtr/.rustup/toolchains/nightly-2018-05-17-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libcompiler_builtins-a0e3d8342b010f9e.rlib" "-Wl,-Bdynamic" "-l" "udev" "-l" "util" "-l" "util" "-l" "dl" "-l" "rt" "-l" "pthread" "-l" "pthread" "-l" "gcc_s" "-l" "c" "-l" "m" "-l" "rt" "-l" "pthread" "-l" "util" "-l" "util"
= note: /usr/lib/gcc-cross/arm-linux-gnueabihf/5/../../../../arm-linux-gnueabihf/bin/ld: cannot find /lib/libc.so.1
/usr/lib/gcc-cross/arm-linux-gnueabihf/5/../../../../arm-linux-gnueabihf/bin/ld: cannot find /usr/lib/uclibc_nonshared.a
/usr/lib/gcc-cross/arm-linux-gnueabihf/5/../../../../arm-linux-gnueabihf/bin/ld: cannot find /lib/ld-uClibc.so.1
collect2: error: ld returned 1 exit status
Currently cross compilation fails due to problems with
udev
. However, building on the Pi Zero (W) is very slow. Hence, resolving the issues and providing documentation on how to setup for cross compilation would be very helpful.