Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Aug 2021 17:32:01 +0000
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
Message-ID:  <bug-257676-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-257676-7788>