Summary: | sys-block/gparted-1.3.1 - GParted_Core.cc: In constructor 'GParted::GParted_Core::GParted_Core()': GParted_Core.cc:73:64: error: invalid 'static_cast' from type 'std::nullptr_t' to type 'PedPartitionFlag' (on musl) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | ernsteiswuerfel <erhard_f> |
Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | PATCH |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://gitlab.gnome.org/GNOME/gparted/-/commit/3d4b1c1e7b33f229efd254fb0cc06660af627ea0?view=inline | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 430702, 839975 | ||
Attachments: |
build.log
emerge --info |
Created attachment 770879 [details]
emerge --info
Fixed by upstream with this commit: https://gitlab.gnome.org/GNOME/gparted/-/commit/3d4b1c1e7b33f229efd254fb0cc06660af627ea0?view=inline The patch applies fine on Gentoos' gparted-1.3.1. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1a95e7e586a51f7485fe2db57ffaf62e8333b2f commit d1a95e7e586a51f7485fe2db57ffaf62e8333b2f Author: Sam James <sam@gentoo.org> AuthorDate: 2022-04-21 23:11:13 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-04-21 23:12:45 +0000 sys-block/gparted: fix build with musl-1.2.3 Closes: https://bugs.gentoo.org/838466 Signed-off-by: Sam James <sam@gentoo.org> .../gparted/files/gparted-1.3.1-musl-nullptr.patch | 51 ++++++++++++++++++++++ sys-block/gparted/gparted-1.3.1.ebuild | 6 ++- sys-block/gparted/gparted-1.4.0.ebuild | 4 ++ 3 files changed, 60 insertions(+), 1 deletion(-) Thanks! |
Created attachment 770876 [details] build.log Got this since a toolchain upgrade from stable to musl-1.2.3 + binutils-2.38-r1. [...] x86_64-gentoo-linux-musl-g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I.. -I../include -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtkmm-3.0 -I/usr/lib/gtkmm-3.0/include -I/usr/include/giomm-2.4 -I/usr/lib/giomm-2.4/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/fribidi -I/usr/include/uuid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -I/usr/include/cairomm-1.0 -I/usr/lib/cairomm-1.0/include -I/usr/include/pangomm-1.4 -I/usr/lib/pangomm-1.4/include -I/usr/include/atkmm-1.6 -I/usr/lib/atkmm-1.6/include -I/usr/include/gtk-3.0/unix-print -I/usr/include/gdkmm-3.0 -I/usr/lib/gdkmm-3.0/include -pthread -DGNOMELOCALEDIR=\""/usr/share/locale"\" -Wall -Os -march=btver1 -mtune=btver1 -pipe -c -o GParted_Core.o GParted_Core.cc GParted_Core.cc: In constructor 'GParted::GParted_Core::GParted_Core()': GParted_Core.cc:73:64: error: invalid 'static_cast' from type 'std::nullptr_t' to type 'PedPartitionFlag' 73 | for ( PedPartitionFlag flag = ped_partition_flag_next( static_cast<PedPartitionFlag>( NULL ) ) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:687: GParted_Core.o] Error 1 make[2]: Leaving directory '/var/tmp/portage/sys-block/gparted-1.3.1/work/gparted-1.3.1/src' make[1]: *** [Makefile:628: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/sys-block/gparted-1.3.1/work/gparted-1.3.1' make: *** [Makefile:462: all] Error 2 * ERROR: sys-block/gparted-1.3.1::gentoo failed (compile phase):