{"action":"created","issue":{"url":"https://api.github.com/repos/meh/rust-ffmpeg-sys/issues/43","repository_url":"https://api.github.com/repos/meh/rust-ffmpeg-sys","labels_url":"https://api.github.com/repos/meh/rust-ffmpeg-sys/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/meh/rust-ffmpeg-sys/issues/43/comments","events_url":"https://api.github.com/repos/meh/rust-ffmpeg-sys/issues/43/events","html_url":"https://github.com/meh/rust-ffmpeg-sys/issues/43","id":238818763,"number":43,"title":"Build failure of the new bindgen-based bindings","user":{"login":"YaLTeR","id":1794388,"avatar_url":"https://avatars1.githubusercontent.com/u/1794388?v=3","gravatar_id":"","url":"https://api.github.com/users/YaLTeR","html_url":"https://github.com/YaLTeR","followers_url":"https://api.github.com/users/YaLTeR/followers","following_url":"https://api.github.com/users/YaLTeR/following{/other_user}","gists_url":"https://api.github.com/users/YaLTeR/gists{/gist_id}","starred_url":"https://api.github.com/users/YaLTeR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YaLTeR/subscriptions","organizations_url":"https://api.github.com/users/YaLTeR/orgs","repos_url":"https://api.github.com/users/YaLTeR/repos","events_url":"https://api.github.com/users/YaLTeR/events{/privacy}","received_events_url":"https://api.github.com/users/YaLTeR/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-27T11:23:52Z","updated_at":"2017-06-28T12:15:26Z","closed_at":null,"body":"Arch Linux x64, ffmpeg 1:3.3.2-1, 9d63d3b5b66ecfdd67d6e57d8cdf9f3129ecc60d\r\n\r\n`cargo build` gives me:\r\n```\r\nthread 'main' panicked at 'TranslationUnit::parse failed', /checkout/src/libcore/option.rs:785\r\nstack backtrace:\r\n   0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace\r\n             at /checkout/src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49\r\n   1: std::sys_common::backtrace::_print\r\n             at /checkout/src/libstd/sys_common/backtrace.rs:71\r\n   2: std::panicking::default_hook::{{closure}}\r\n             at /checkout/src/libstd/sys_common/backtrace.rs:60\r\n             at /checkout/src/libstd/panicking.rs:355\r\n   3: std::panicking::default_hook\r\n             at /checkout/src/libstd/panicking.rs:371\r\n   4: std::panicking::rust_panic_with_hook\r\n             at /checkout/src/libstd/panicking.rs:549\r\n   5: std::panicking::begin_panic\r\n             at /checkout/src/libstd/panicking.rs:511\r\n   6: std::panicking::begin_panic_fmt\r\n             at /checkout/src/libstd/panicking.rs:495\r\n   7: rust_begin_unwind\r\n             at /checkout/src/libstd/panicking.rs:471\r\n   8: core::panicking::panic_fmt\r\n             at /checkout/src/libcore/panicking.rs:69\r\n   9: core::option::expect_failed\r\n             at /checkout/src/libcore/option.rs:785\r\n  10: <core::option::Option<T>>::expect\r\n             at /checkout/src/libcore/option.rs:293\r\n  11: bindgen::ir::context::BindgenContext::new\r\n             at /home/yalter/.cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.26.2/src/ir/context.rs:231\r\n  12: bindgen::Bindings::generate\r\n             at /home/yalter/.cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.26.2/src/lib.rs:1095\r\n  13: bindgen::Builder::generate\r\n             at /home/yalter/.cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.26.2/src/lib.rs:798\r\n  14: build_script_build::main\r\n             at ./build.rs:860\r\n  15: std::panicking::try::do_call\r\n             at /checkout/src/libstd/panicking.rs:454\r\n  16: __rust_maybe_catch_panic\r\n             at /checkout/src/libpanic_unwind/lib.rs:98\r\n  17: std::rt::lang_start\r\n             at /checkout/src/libstd/panicking.rs:433\r\n             at /checkout/src/libstd/panic.rs:361\r\n             at /checkout/src/libstd/rt.rs:57\r\n  18: main\r\n  19: __libc_start_main\r\n  20: _start\r\n```"},"comment":{"url":"https://api.github.com/repos/meh/rust-ffmpeg-sys/issues/comments/311642155","html_url":"https://github.com/meh/rust-ffmpeg-sys/issues/43#issuecomment-311642155","issue_url":"https://api.github.com/repos/meh/rust-ffmpeg-sys/issues/43","id":311642155,"user":{"login":"YaLTeR","id":1794388,"avatar_url":"https://avatars1.githubusercontent.com/u/1794388?v=3","gravatar_id":"","url":"https://api.github.com/users/YaLTeR","html_url":"https://github.com/YaLTeR","followers_url":"https://api.github.com/users/YaLTeR/followers","following_url":"https://api.github.com/users/YaLTeR/following{/other_user}","gists_url":"https://api.github.com/users/YaLTeR/gists{/gist_id}","starred_url":"https://api.github.com/users/YaLTeR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YaLTeR/subscriptions","organizations_url":"https://api.github.com/users/YaLTeR/orgs","repos_url":"https://api.github.com/users/YaLTeR/repos","events_url":"https://api.github.com/users/YaLTeR/events{/privacy}","received_events_url":"https://api.github.com/users/YaLTeR/received_events","type":"User","site_admin":false},"created_at":"2017-06-28T12:15:26Z","updated_at":"2017-06-28T12:15:26Z","body":"Building with the `build` feature works fine, but if I try to use it with `cargo build --target=i686-unknown-linux-gnu` I get another error:\r\n```\r\n--- stdout\r\ncargo:rustc-link-search=native=/home/yalter/Source/rust/rust-ffmpeg-sys/target/i686-unknown-linux-gnu/debug/build/ffmpeg-sys-7961c9a07a542f48/out/dist/lib\r\nconfigure: Must specify target arch and OS when cross-compiling\r\n\r\nIf you think configure made a mistake, make sure you are using the latest\r\nversion from Git.  If the latest version fails, report the problem to the\r\nffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.\r\nInclude the log file \"config.log\" produced by configure as this will help\r\nsolve the problem.\r\n\r\n\r\n--- stderr\r\nCloning into 'ffmpeg-3.2'...\r\nthread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { repr: Custom(Custom { kind: Other, error: StringError(\"configure failed \") }) }', /checkout/src/libcore/result.rs:859\r\nnote: Run with `RUST_BACKTRACE=1` for a backtrace.\r\n```\r\n\r\nRe-running with `RUST_BACKTRACE=1` results in:\r\n```\r\n--- stdout\r\ncargo:rustc-link-search=native=/home/yalter/Source/rust/rust-ffmpeg-sys/target/i686-unknown-linux-gnu/debug/build/ffmpeg-sys-7961c9a07a542f48/out/dist/lib\r\n\r\n--- stderr\r\nfatal: destination path 'ffmpeg-3.2' already exists and is not an empty directory.\r\nthread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { repr: Custom(Custom { kind: Other, error: StringError(\"fetch failed\") }) }', /checkout/src/libcore/result.rs:859\r\nstack backtrace:\r\n   0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace\r\n             at /checkout/src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49\r\n   1: std::sys_common::backtrace::_print\r\n             at /checkout/src/libstd/sys_common/backtrace.rs:71\r\n   2: std::panicking::default_hook::{{closure}}\r\n             at /checkout/src/libstd/sys_common/backtrace.rs:60\r\n             at /checkout/src/libstd/panicking.rs:355\r\n   3: std::panicking::default_hook\r\n             at /checkout/src/libstd/panicking.rs:371\r\n   4: std::panicking::rust_panic_with_hook\r\n             at /checkout/src/libstd/panicking.rs:549\r\n   5: std::panicking::begin_panic\r\n             at /checkout/src/libstd/panicking.rs:511\r\n   6: std::panicking::begin_panic_fmt\r\n             at /checkout/src/libstd/panicking.rs:495\r\n   7: rust_begin_unwind\r\n             at /checkout/src/libstd/panicking.rs:471\r\n   8: core::panicking::panic_fmt\r\n             at /checkout/src/libcore/panicking.rs:69\r\n   9: core::result::unwrap_failed\r\n             at /checkout/src/libcore/macros.rs:29\r\n  10: <core::result::Result<T, E>>::unwrap\r\n             at /checkout/src/libcore/result.rs:737\r\n  11: build_script_build::main\r\n             at ./build.rs:450\r\n  12: __rust_maybe_catch_panic\r\n             at /checkout/src/libpanic_unwind/lib.rs:98\r\n  13: std::rt::lang_start\r\n             at /checkout/src/libstd/panicking.rs:433\r\n             at /checkout/src/libstd/panic.rs:361\r\n             at /checkout/src/libstd/rt.rs:57\r\n  14: main\r\n  15: __libc_start_main\r\n  16: _start\r\n```\r\n\r\nSo, to sum up, building with the system ffmpeg isn't working (both 64-bit and 32-bit with a similar error), and also building with 32-bit non-system ffmpeg isn't working."}}
{"actor":{"display_login":"YaLTeR"}}