From nobody Tue Sep 3 14:00:32 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WynMN5GZ5z5PZmQ for ; Tue, 03 Sep 2024 14:00:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WynMN3bNbz4qfr for ; Tue, 3 Sep 2024 14:00:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725372032; a=rsa-sha256; cv=none; b=c7Fzlsa6mf4HtTNGDYPoTDXnKZeFcPA8OZibGEQVZkKK02s4j12hrXAVByk6csLeF9Ly89 iI7gjnxa2iANkuE2o8ghse48lrm6HYucKdEF4WmLRusYEKr9p9SVMoyMrl4fo26bTJMVOX Q8aM+CR5q/3gOBPkkYiTYwLbush7JMBwDXc9a3eZkMQzN8IRgt04IGOc+m4fRFXKwY5rO5 5Wz/wVpnH0bCU8OmSHJE6o4h/ZQBLj/hZscQCfrpN/vxSX55AaJxWzwZDufRyAlDZWRHCH QUV7NAZXSJE2Yw+8rwOTeIpyjdUnUdGijTZJwxuml1JK90CH5iO1ULfCmTi+oQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725372032; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lhbYN6BHCmPf8Ubc+MKBnTVIBoxHuNjny0G5lNjCjwg=; b=duEu5AimJSteWUsc2LAOyhWq/CnpUFVQhf/IwFiQrcK6TVwySiUVCzmNTw2ZbMY7FyfzmD PJuczido7Fq9eAqUs4vk4UQcRBoLnKjAvbt3IfE4C0vR9ysNZhEGEzJTeTfULAG8uCWU1W p1MYobuI51CcqO4fnLIt4Pe4hje8nxI343tP/FMDs58eyFlDGpRz6msnjiQ1zN84J8UJOR ep7VUWVUQOneSgVpnqH+xomeR35mjMcrq+Ubt3Ei50IlAYzMrMauILU3rBdzVo7osICPOV ryXUmvFex3G/2znM6f92bF3D5Zgj4MATip2NG4TRJE7I2A+VMJWkkbufT2DM2Q== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WynMN3CCWzkHv for ; Tue, 3 Sep 2024 14:00:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 483E0WUf047722 for ; Tue, 3 Sep 2024 14:00:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 483E0WiB047721 for ports-bugs@FreeBSD.org; Tue, 3 Sep 2024 14:00:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 281247] sysutils/grub2-pcbsd: Fails to build with GCC 14: error: passing argument 1 of 'grub_util_check_geom_label' from incompatible pointer type [-Wincompatible-pointer-types] Date: Tue, 03 Sep 2024 14:00:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: salvadore@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform bug_file_loc op_sys bug_status bug_severity priority component assigned_to reporter blocked Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281247 Bug ID: 281247 Summary: sysutils/grub2-pcbsd: Fails to build with GCC 14: error: passing argument 1 of 'grub_util_check_geom_label' from incompatible pointer type [-Wincompatible-pointer-types] Product: Ports & Packages Version: Latest Hardware: Any URL: https://pkg-status.freebsd.org/gohan04/data/140amd64-d efault-foo/2024-08-29_19h57m48s/logs/errors/grub2-pcbs d-2.02q_19.log OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: salvadore@freebsd.org Blocks: 281091 Build fails with GCC 14. This blocks GCC_DEFAULT update to GCC 14. gcc14 -DHAVE_CONFIG_H -I. -Wall -W -DGRUB_UTIL=3D1 -D_FILE_OFFSET_BITS=3D64 -I./include -DGRUB_FILE=3D\"grub-core/osdep/unix/getroot.c\" -I. -I. -I. -I. -I./include -I./include -I./grub-core/lib/libgcrypt-grub/src/=20 -I./grub-core/gnulib -I./grub-core/gnulib -I/usr/local/include -D_FILE_OFFSET_BITS=3D64 -Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimizati= on -Wdiv-by-zero -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-= y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-braces -Wmissing-format-attribute -Wmultichar -Wparentheses -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wswitch -Wtrigraphs -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parame= ter -Wunused-value -Wunused-variable -Wwrite-strings -Wnested-externs -Wstrict-prototypes -Wcast-align -Wextra -Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign -Wmissing-include-= dirs -Wmissing-prototypes -Wmissing-declarations -Wformat=3D2 -Wno-undef -Wno-sign-compare -Wno-unused -Wno-unused-parameter -Wno-redundant-decls -Wno-unreachable-code -Wno-conversion -O2 -pipe=20 -Wl,-rpath=3D/usr/local/lib/gcc14 -fno-strict-aliasing -MT grub-core/osdep/unix/libgrubkern_a-getroot.o -MD -MP -MF grub-core/osdep/unix/.deps-util/libgrubkern_a-getroot.Tpo -c -o grub-core/osdep/unix/libgrubkern_a-getroot.o `test -f 'grub-core/osdep/unix/getroot.c' || echo './'`grub-core/osdep/unix/getroot.c grub-core/osdep/unix/getroot.c: In function 'grub_guess_root_devices': grub-core/osdep/unix/getroot.c:512:37: error: passing argument 1 of 'grub_util_check_geom_label' from incompatible pointer type [-Wincompatible-pointer-types] 512 | if ( grub_util_check_geom_label(os_dev) ) | ^~~~~~ | | | char ** In file included from grub-core/osdep/unix/getroot.c:73: ./include/grub/emu/getroot.h:47:44: note: expected 'const char *' but argum= ent is of type 'char **' 47 | int grub_util_check_geom_label(const char *name); | ~~~~~~~~~~~~^~~~ grub-core/osdep/unix/getroot.c:513:79: error: passing argument 1 of 'grub_util_convert_geom_label_to_dev' from incompatible pointer type [-Wincompatible-pointer-types] 513 | os_dev =3D grub_util_convert_geom_label_to_dev (os_dev + size= of ("/dev/") - 1, 1); |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 | |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 char ** ./include/grub/emu/getroot.h:48:62: note: expected 'const char *' but argum= ent is of type 'char **' 48 | const char *grub_util_convert_geom_label_to_dev (const char *name, = int *full_path); | ~~~~~~~~~~~~^~~~ grub-core/osdep/unix/getroot.c:513:84: error: passing argument 2 of 'grub_util_convert_geom_label_to_dev' makes pointer from integer without a = cast [-Wint-conversion] 513 | os_dev =3D grub_util_convert_geom_label_to_dev (os_dev + size= of ("/dev/") - 1, 1); |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^ |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 | |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 int ./include/grub/emu/getroot.h:48:73: note: expected 'int *' but argument is = of type 'int' 48 | const char *grub_util_convert_geom_label_to_dev (const char *name, = int *full_path); |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ~~~~~^~~~~~~~~ grub-core/osdep/unix/getroot.c:513:14: error: assignment to 'char **' from incompatible pointer type 'const char *' [-Wincompatible-pointer-types] 513 | os_dev =3D grub_util_convert_geom_label_to_dev (os_dev + size= of ("/dev/") - 1, 1); | ^ gmake[2]: *** [Makefile:6022: grub-core/osdep/unix/libgrubkern_a-getroot.o] Error 1 gmake[2]: Leaving directory '/wrkdirs/usr/ports/sysutils/grub2-pcbsd/work/grub-2.02' gmake[1]: *** [Makefile:11107: all-recursive] Error 1 gmake[1]: Leaving directory '/wrkdirs/usr/ports/sysutils/grub2-pcbsd/work/grub-2.02' gmake: *** [Makefile:3497: all] Error 2 *** Error code 1 Stop. Full log: https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-29= _19h57m48s/logs/errors/grub2-pcbsd-2.02q_19.log Useful link: https://gcc.gnu.org/gcc-14/porting_to.html Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281091 [Bug 281091] [exp-run] Update GCC_DEFAULT to 14 etc. --=20 You are receiving this mail because: You are the assignee for the bug.=