git master branch fails to compile on linux with error: failed to run custom build command for librsvg_c_api v0.0.1
how to reproduce:
git clone https://github.com/GNOME/librsvg.git
cd librsvg
cargo build
log file:
/tmp/librsvg $ cargo build
Compiling autocfg v0.1.6
Compiling libc v0.2.62
Compiling semver-parser v0.7.0
Compiling rand_core v0.4.2
Compiling proc-macro2 v0.4.30
Compiling proc-macro2 v1.0.1
Compiling unicode-xid v0.2.0
Compiling unicode-xid v0.1.0
Compiling pkg-config v0.3.15
Compiling siphasher v0.2.3
Compiling syn v1.0.5
Compiling ryu v1.0.0
Compiling serde v1.0.99
Compiling arrayvec v0.4.11
Compiling string_cache_shared v0.3.0
Compiling cfg-if v0.1.9
Compiling lazy_static v1.4.0
Compiling memchr v2.2.1
Compiling bitflags v1.1.0
Compiling nodrop v0.1.13
Compiling itoa v0.4.4
Compiling scopeguard v1.0.0
Compiling libm v0.1.4
Compiling typenum v1.11.2
Compiling mac v0.1.1
Compiling log v0.4.8
Compiling cairo-rs v0.7.1
Compiling smallvec v0.6.10
Compiling rayon-core v1.5.0
Compiling new_debug_unreachable v1.0.3
Compiling gio v0.7.0
Compiling pango v0.7.0
Compiling matches v0.1.8
Compiling pangocairo v0.8.0
Compiling encoding_index_tests v0.1.4
Compiling fragile v0.3.0
Compiling rawpointer v0.1.0
Compiling precomputed-hash v0.1.1
Compiling gdk-pixbuf v0.7.0
Compiling procedural-masquerade v0.1.6
Compiling dtoa v0.4.4
Compiling regex-syntax v0.6.11
Compiling utf-8 v0.7.5
Compiling rsvg_internals v0.0.1 (/tmp/librsvg/rsvg_internals)
Compiling percent-encoding v2.1.0
Compiling either v1.5.2
Compiling downcast-rs v1.0.4
Compiling librsvg_c_api v0.0.1 (/tmp/librsvg/librsvg)
Compiling rctree v0.3.3
Compiling language-tags v0.2.2
Compiling xml-rs v0.8.0
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 num-traits v0.2.8
Compiling num-complex v0.2.3
Compiling semver v0.9.0
Compiling crossbeam-utils v0.6.6
Compiling thread_local v0.3.6
Compiling glib-sys v0.9.0
Compiling gobject-sys v0.9.0
Compiling gio-sys v0.9.0
Compiling cairo-sys-rs v0.9.0
Compiling pango-sys v0.9.0
Compiling pangocairo-sys v0.10.0
Compiling gdk-pixbuf-sys v0.9.0
Compiling librsvg v2.45.90 (/tmp/librsvg/librsvg_crate)
Compiling futf v0.1.4
Compiling unicode-bidi v0.3.4
Compiling data-url v0.1.0
Compiling encoding-index-korean v1.20141219.5
Compiling encoding-index-singlebyte v1.20141219.5
Compiling encoding-index-simpchinese v1.20141219.5
Compiling encoding-index-tradchinese v1.20141219.5
Compiling encoding-index-japanese v1.20141219.5
Compiling matrixmultiply v0.2.2
Compiling unicode-normalization v0.1.8
Compiling itertools v0.8.0
Compiling dtoa-short v0.3.2
Compiling rand_hc v0.1.0
Compiling rand_isaac v0.1.1
Compiling rand_xorshift v0.1.1
Compiling phf v0.7.24
Compiling rustc_version v0.2.3
Compiling crossbeam-queue v0.1.2
Compiling tendril v0.4.1
Compiling encoding v0.2.33
Compiling memoffset v0.5.1
Compiling rand_os v0.1.3
Compiling num_cpus v1.10.1
Compiling quote v0.6.13
Compiling quote v1.0.2
Compiling aho-corasick v0.7.6
Compiling generic-array v0.12.3
error: failed to run custom build command for `librsvg_c_api v0.0.1 (/tmp/librsvg/librsvg)`
process didn't exit successfully: `/tmp/librsvg/target/debug/build/librsvg_c_api-ef418d68841bd9ec/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'LIBRSVG_BUILD_DIR was not set: NotPresent', src/libcore/result.rs:997:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
warning: build failed, waiting for other jobs to finish...
error: build failed
happens with both x86_64 and armv7
not sure how to set that build dir it mentions? LIBRSVG_BUILD_DIR=/tmp/test cargo build doesn't work for me
Edited by Steffen Kuhn