cross-compile of librsvg fails with error: failed to run custom build command for `glib-sys v0.8.0`
here is the build log:
user@tuxbox /tmp/librsvg $ cargo build --target armv7-unknown-linux-gnueabihf
Compiling libc v0.2.54
Compiling autocfg v0.1.2
Compiling rand_core v0.4.0
Compiling proc-macro2 v0.4.30
Compiling unicode-xid v0.1.0
Compiling pkg-config v0.3.14
Compiling siphasher v0.2.3
Compiling arrayvec v0.4.10
Compiling syn v0.15.34
Compiling serde v1.0.91
Compiling ryu v0.2.8
Compiling nodrop v0.1.13
Compiling cfg-if v0.1.9
Compiling num-traits v0.2.6
Compiling memchr v2.2.0
Compiling string_cache_shared v0.3.0
Compiling itoa v0.4.4
Compiling memoffset v0.2.1
Compiling typenum v1.10.0
Compiling num-complex v0.2.1
Compiling scopeguard v0.3.3
Compiling libm v0.1.3
Compiling lazy_static v1.3.0
Compiling rayon-core v1.4.1
Compiling pango v0.6.0
Compiling cairo-rs v0.6.0
Compiling matches v0.1.8
Compiling ucd-util v0.1.3
Compiling smallvec v0.6.9
Compiling gio v0.6.0
Compiling new_debug_unreachable v1.0.3
Compiling bitflags v1.0.4
Compiling regex v0.2.11
Compiling mac v0.1.1
Compiling rawpointer v0.1.0
Compiling regex v1.1.6
Compiling precomputed-hash v0.1.1
Compiling dtoa v0.4.4
Compiling gdk-pixbuf v0.6.0
Compiling utf8-ranges v1.0.2
Compiling utf-8 v0.7.5
Compiling procedural-masquerade v0.1.6
Compiling pangocairo v0.7.0
Compiling fragile v0.3.0
Compiling rayon v1.0.3
Compiling encoding_index_tests v0.1.4
Compiling rsvg_internals v0.0.1 (/tmp/librsvg/rsvg_internals)
Compiling lazy_static v0.2.11
Compiling either v1.5.2
Compiling percent-encoding v1.0.1
Compiling stable_deref_trait v1.1.1
Compiling xml-rs v0.8.0
Compiling language-tags v0.2.2
Compiling downcast-rs v1.0.4
Compiling crossbeam-utils v0.2.2
Compiling log v0.4.6
Compiling phf_shared v0.7.24
Compiling rand_core v0.3.1
Compiling rand_jitter v0.1.4
Compiling rand_chacha v0.1.1
Compiling rand_pcg v0.1.2
Compiling rand v0.6.5
Compiling thread_local v0.3.6
Compiling glib-sys v0.8.0
Compiling gobject-sys v0.8.0
Compiling cairo-sys-rs v0.8.0
Compiling gio-sys v0.8.0
Compiling pango-sys v0.8.0
Compiling gdk-pixbuf-sys v0.8.0
Compiling pangocairo-sys v0.9.0
Compiling librsvg v0.0.1 (/tmp/librsvg/librsvg_crate)
Compiling unicode-bidi v0.3.4
Compiling data-url v0.1.0
Compiling futf v0.1.4
Compiling matrixmultiply v0.2.2
Compiling regex-syntax v0.5.6
Compiling regex-syntax v0.6.6
Compiling unicode-normalization v0.1.8
Compiling dtoa-short v0.3.2
Compiling encoding-index-tradchinese v1.20141219.5
Compiling encoding-index-korean v1.20141219.5
Compiling encoding-index-simpchinese v1.20141219.5
Compiling encoding-index-singlebyte v1.20141219.5
Compiling encoding-index-japanese v1.20141219.5
Compiling owning_ref v0.4.0
Compiling rand_hc v0.1.0
Compiling rand_xorshift v0.1.1
Compiling rand_isaac v0.1.1
Compiling itertools v0.8.0
error: failed to run custom build command for `glib-sys v0.8.0`
process didn't exit successfully: `/tmp/librsvg/target/debug/build/glib-sys-29d796d66154aaf5/build-script-build` (exit code: 1)
--- stderr
Cross compilation detected. Use PKG_CONFIG_ALLOW_CROSS=1 to override
warning: build failed, waiting for other jobs to finish...
^C Building [================================> ] 127/209: serde
Edited by Steffen Kuhn