gtk-rs / gtk3-rs

Rust bindings for GTK 3
https://gtk-rs.org
MIT License
508 stars 90 forks source link

[BUG] gtk fails to compile on mispel #824

Closed werdahias closed 1 year ago

werdahias commented 1 year ago

Bug description

gtk 0.16.2, rustc 1.64

0.16.2 fails to build:

   Compiling gdk v0.16.2
     Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=gdk CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/gdk-0.16.2 CARGO_PKG_AUTHORS='The gtk-rs Project Developers' CARGO_PKG_DESCRIPTION='Rust bindings for the GDK 3 library' CARGO_PKG_HOMEPAGE='https://gtk-rs.org/' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=gdk CARGO_PKG_REPOSITORY='https://github.com/gtk-rs/gtk3-rs' CARGO_PKG_RUST_VERSION=1.63 CARGO_PKG_VERSION=0.16.2 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=16 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' rustc --crate-name gdk --edition=2021 /<<PKGBUILDDIR>>/debian/cargo_registry/gdk-0.16.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=f7d8e0b8c77215a8 -C extra-filename=-f7d8e0b8c77215a8 --out-dir /<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps --target mipsel-unknown-linux-gnu -L dependency=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern bitflags=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libbitflags-9e5ed64b2a5217c7.rmeta --extern cairo=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libcairo-11dd09d9a6d0c769.rmeta --extern gdk_pixbuf=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libgdk_pixbuf-6c3ed8a91bd4a910.rmeta --extern ffi=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libgdk_sys-efa3d8b79e18feb3.rmeta --extern gio=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libgio-e05a5ea34af3446d.rmeta --extern glib=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libglib-cdfe1cbf72b8b0a6.rmeta --extern libc=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/liblibc-73ca7705495e25d1.rmeta --extern pango=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libpango-0e934f659264ce44.rmeta --cap-lints warn -C debuginfo=2 --cap-lints warn -C linker=mipsel-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/gtk-0.16.2 --remap-path-prefix /<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry`
     Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=gtk CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='The gtk-rs Project Developers' CARGO_PKG_DESCRIPTION='Rust bindings for the GTK+ 3 library' CARGO_PKG_HOMEPAGE='https://gtk-rs.org/' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=gtk CARGO_PKG_REPOSITORY='https://github.com/gtk-rs/gtk3-rs' CARGO_PKG_RUST_VERSION=1.63 CARGO_PKG_VERSION=0.16.2 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=16 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' OUT_DIR=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/build/gtk-7edf420142d77a25/out rustc --crate-name gtk --edition=2021 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=c83651584fcc84b5 -C extra-filename=-c83651584fcc84b5 --out-dir /<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps --target mipsel-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern atk=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libatk-efe9d5c44c24ca57.rmeta --extern bitflags=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libbitflags-9e5ed64b2a5217c7.rmeta --extern cairo=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libcairo-11dd09d9a6d0c769.rmeta --extern field_offset=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libfield_offset-04821681af7899b8.rmeta --extern futures_channel=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libfutures_channel-17ff67ce65b8481b.rmeta --extern gdk=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libgdk-f7d8e0b8c77215a8.rmeta --extern gdk_pixbuf=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libgdk_pixbuf-6c3ed8a91bd4a910.rmeta --extern gio=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libgio-e05a5ea34af3446d.rmeta --extern glib=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libglib-cdfe1cbf72b8b0a6.rmeta --extern ffi=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libgtk_sys-f3f00ae276944ddb.rmeta --extern gtk3_macros=/<<PKGBUILDDIR>>/target/debug/deps/libgtk3_macros-dd3ced6dd6c1080d.so --extern libc=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/liblibc-73ca7705495e25d1.rmeta --extern once_cell=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libonce_cell-d8c22568456b358b.rmeta --extern pango=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libpango-0e934f659264ce44.rmeta -C debuginfo=2 --cap-lints warn -C linker=mipsel-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/gtk-0.16.2 --remap-path-prefix /<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry --cfg 'gdk_backend="broadway"' --cfg 'gdk_backend="wayland"' --cfg 'gdk_backend="x11"'`
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
error: could not compile `gtk`

Caused by:
  process didn't exit successfully: `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=gtk CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='The gtk-rs Project Developers' CARGO_PKG_DESCRIPTION='Rust bindings for the GTK+ 3 library' CARGO_PKG_HOMEPAGE='https://gtk-rs.org/' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=gtk CARGO_PKG_REPOSITORY='https://github.com/gtk-rs/gtk3-rs' CARGO_PKG_RUST_VERSION=1.63 CARGO_PKG_VERSION=0.16.2 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=16 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/<<PKGBUILDDIR>>/target/debug/deps:/usr/lib' OUT_DIR=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/build/gtk-7edf420142d77a25/out rustc --crate-name gtk --edition=2021 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=c83651584fcc84b5 -C extra-filename=-c83651584fcc84b5 --out-dir /<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps --target mipsel-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern atk=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libatk-efe9d5c44c24ca57.rmeta --extern bitflags=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libbitflags-9e5ed64b2a5217c7.rmeta --extern cairo=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libcairo-11dd09d9a6d0c769.rmeta --extern field_offset=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libfield_offset-04821681af7899b8.rmeta --extern futures_channel=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libfutures_channel-17ff67ce65b8481b.rmeta --extern gdk=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libgdk-f7d8e0b8c77215a8.rmeta --extern gdk_pixbuf=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libgdk_pixbuf-6c3ed8a91bd4a910.rmeta --extern gio=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libgio-e05a5ea34af3446d.rmeta --extern glib=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libglib-cdfe1cbf72b8b0a6.rmeta --extern ffi=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libgtk_sys-f3f00ae276944ddb.rmeta --extern gtk3_macros=/<<PKGBUILDDIR>>/target/debug/deps/libgtk3_macros-dd3ced6dd6c1080d.so --extern libc=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/liblibc-73ca7705495e25d1.rmeta --extern once_cell=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libonce_cell-d8c22568456b358b.rmeta --extern pango=/<<PKGBUILDDIR>>/target/mipsel-unknown-linux-gnu/debug/deps/libpango-0e934f659264ce44.rmeta -C debuginfo=2 --cap-lints warn -C linker=mipsel-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/gtk-0.16.2 --remap-path-prefix /<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry --cfg 'gdk_backend="broadway"' --cfg 'gdk_backend="wayland"' --cfg 'gdk_backend="x11"'` (signal: 6, SIGABRT: process abort signal)
dh_auto_test: error: /usr/share/cargo/bin/cargo build returned exit code 101
make: *** [debian/rules:3: binary-arch] Error 25

Full log here. 0.14.3 compiled fine.

sdroege commented 1 year ago

That's a C++ exception bubbling up through the compiler, i.e. most likely an internal compiler error somewhere inside llvm. You'll want to run this in a debugger to find out the cause, but this is most likely not a problem with the bindings.