From nobody Sat Aug 7 17:32:01 2021 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 B756611F9ACA for ; Sat, 7 Aug 2021 17:32:01 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GhqCj4l32z4W7d for ; Sat, 7 Aug 2021 17:32:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 8B1C525427 for ; Sat, 7 Aug 2021 17:32:01 +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 177HW1Bp086177 for ; Sat, 7 Aug 2021 17:32:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 177HW1nP086176 for ports-bugs@FreeBSD.org; Sat, 7 Aug 2021 17:32:01 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 257676] sysutils/grub2-pcbsd garbage-gen.c fails build missing STD C lib headers Date: Sat, 07 Aug 2021 17:32:01 +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: alt2600@icloud.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kevlo@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name 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: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257676 Bug ID: 257676 Summary: sysutils/grub2-pcbsd garbage-gen.c fails build missing STD C lib headers Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: kevlo@FreeBSD.org Reporter: alt2600@icloud.com Flags: maintainer-feedback?(kevlo@FreeBSD.org) Assignee: kevlo@FreeBSD.org I'm trying to get this built and run into this error, it seems somehow the basic include path for stdio.h and similar are not being passed to the make target. I'm doing this from a live system. Not sure if garbage-gen.c is a required library, or somehow being pulled in by presence of random library available in my system. I'm exploring a little bit more to see if that is t= he case to hunt it down. Releng 12.2p9, ports tree main from last night and 15:00 UTC today. I'm building with FUSE, but this happens with that option or not. gcc -o garbage-gen -DGRUB_FILE=3D\"util/garbage-gen.c\" -I. -I. -I. -I. -I./include -I./include -I./grub-core/lib/libgcrypt-grub/src/=20=20 util/garbage-gen.c util/garbage-gen.c:23:19: error: stdio.h: No such file or directory util/garbage-gen.c:24:20: error: stdlib.h: No such file or directory util/garbage-gen.c:25:18: error: time.h: No such file or directory util/garbage-gen.c:26:22: error: sys/time.h: No such file or directory util/garbage-gen.c: In function 'main': util/garbage-gen.c:36: error: storage size of 'tv' isn't known util/garbage-gen.c:37: error: 'NULL' undeclared (first use in this function) util/garbage-gen.c:62: error: 'stdout' undeclared (first use in this functi= on) gmake[3]: *** [Makefile:13648: garbage-gen] Error 1 gmake[3]: Leaving directory '/usr/ports/sysutils/grub2-pcbsd/work/grub-2.02' gmake[2]: *** [Makefile:11092: all-recursive] Error 1 gmake[2]: Leaving directory '/usr/ports/sysutils/grub2-pcbsd/work/grub-2.02' gmake[1]: *** [Makefile:3482: all] Error 2 gmake[1]: Leaving directory '/usr/ports/sysutils/grub2-pcbsd/work/grub-2.02' *** Error code 1 ### $WORKSRC/Makefile lines 1916-1921 BUILD_CC =3D gcc BUILD_CFLAGS =3D=20 BUILD_CPPFLAGS =3D $(CPPFLAGS_DEFAULT) BUILD_EXEEXT =3D=20 BUILD_FREETYPE =3D freetype-config BUILD_LDFLAGS =3D=20 lines 2738-2741 CPPFLAGS_DEFAULT =3D -DGRUB_FILE=3D\"$(subst $(srcdir)/,,$<)\" \ -I$(builddir) -I$(srcdir) -I$(top_builddir) -I$(top_srcdir) \ -I$(top_srcdir)/include -I$(top_builddir)/include \ -I$(top_srcdir)/grub-core/lib/libgcrypt-grub/src/ lines 13647-13648 garbage-gen$(BUILD_EXEEXT): util/garbage-gen.c $(BUILD_CC) -o $@ $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $(BUILD_LDFLAGS= )=20 $^ --=20 You are receiving this mail because: You are the assignee for the bug.=