• Re: errors while trying to run make stage for building a port

    From Fabian Keil@freebsd-listen@fabiankeil.de to muc.lists.freebsd.ports on Sat Dec 6 06:06:12 2025
    From Newsgroup: muc.lists.freebsd.ports

    Aryan Karamtoth <spaciouscoder78@disroot.org> wrote on 2025-12-06 at 07:40:59:
    I'm currently working on my second port and I seem to be running into
    some issues.

    My first port was built using GhostBSD 25.02 and it seemed to work just
    fine when i ran all of the testing and building but that was 2 months ago.

    Yesterday I was working on my second port and I seem to be running into
    some issues while running make stage

    this is the error that I got.

    |(main)> make stage |

    |make: "/usr/ports/Mk/bsd.port.mk" line 1163: Unable to determine OS version.-a-aEither define OSVERSION, install /usr/include/sys/param.h or define SRC_BASE.|
    Please post the output of:
    grep FreeBSD_version /usr/include/sys/param.h
    My GhostBSD runs on FreeBSD Kernel 14.3 RELEASE p4.

    Is there a way to fix it? I ran pkg upgrade but it didnt fix anything.
    I'm sure there is.
    You can also work around it by setting OSVERSION on the command line.
    As an ElectroBSD user I'm not 100% sure, but on vanilla FreeBSD 14.3
    "pkg upgrade" only affects ports so it's probably the case for GhostBSD
    as well in which case I wouldn't expect it to make a difference here (/usr/include/sys/param.h is part of the base).
    Fabian
    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Fabian Keil@freebsd-listen@fabiankeil.de to muc.lists.freebsd.ports on Sat Dec 6 10:41:02 2025
    From Newsgroup: muc.lists.freebsd.ports

    --Sig_/pHQQxpprVhNQPfxVCbb=po0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: quoted-printable

    Aryan Karamtoth <spaciouscoder78@disroot.org> wrote on 2025-12-06 at 13:54:= 17:
    =20
    On 06-12-2025 10:36, Fabian Keil wrote:
    Aryan Karamtoth <spaciouscoder78@disroot.org> wrote on 2025-12-06 at 07=
    :40:59:

    I'm currently working on my second port and I seem to be running into
    some issues.

    My first port was built using GhostBSD 25.02 and it seemed to work just
    fine when i ran all of the testing and building but that was 2 months =
    ago.

    Yesterday I was working on my second port and I seem to be running into
    some issues while running make stage

    this is the error that I got.

    |(main)> make stage |

    |make: "/usr/ports/Mk/bsd.port.mk" line 1163: Unable to determine OS
    version.=C2=A0=C2=A0Either define OSVERSION, install /usr/include/sys/=
    param.h or
    define SRC_BASE.|
    Please post the output of:

    grep FreeBSD_version /usr/include/sys/param.h
    =20
    This is the output of the command
    =20
    |ghostbsd ~> grep FreeBSD_version /usr/include/sys/param.h |
    =20
    |grep: /usr/include/sys/param.h: No such file or directory|

    My recommendation would be to install the file through what
    ever mechanism is used on GhostBSD and keep it updated.

    Fabian

    --Sig_/pHQQxpprVhNQPfxVCbb=po0
    Content-Type: application/pgp-signature
    Content-Description: OpenPGP digital signature

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCAAdFiEETzbBfzgWkTZUoehQaRgikYuiNxwFAmkz+i4ACgkQaRgikYui Nxxf2RAAlsLQC72b0x0ngc5+pwkMorEPyi+Tm+M+NJ3X6mEMizMXQsBX0IBuShZC LA0p+UaIAZKYhOWZMk6R9OrlUroqGe4IUggEaEXLRvBvFQpQ9LxVTt+Q3yc7tJB/ N34J3G2B9jQhUUThUAvugNriGc5/lEVayuxb5CsudfqqtughVXcMTIgYxtCxedCx fJKMnLY+8nhHVLSBvzRb1ASp8jC356SyhPEMrVQQszZSfQ8bP8eHawF7P0kkwGu4 sDQ/j4/dPv6iQ4XeE3P2UTIKOa9GfIsi80ES2bbfKVwSeRHRAdWweqBSIHhwT2+i ZZSaiclO58FIJlcoTlhNkXBXTUi3J41iVkqVbgmk6ANKFNDmilJJS6Jd/m3U4gR/ qBIqTSYueTdT/nUYTje4gZm0sNgww15NHGpGRNXOUzKCL5LdL4dCD7Q+vX/5cm22 MFyU2UzoWOCl8wA9lQxERDruthFgerUa+rnh4lRSFInVDVApYt+f5Z/5ngByrL+5 1DjI8LcJtzBX4TZNwQdMZN7rcyooD+J3139ZcXsoN36NAlM7onq1DlswfFH66xzK YyBm6v7fqhyMMbJp4+81Hc8vPIAv8O6b6PLQT3XZpyAVgiqLbCLogW/Qt/rK8V4T 4WaEBQxvSbDwwfg8bveqIM762crv1OPV+lI3KNCqWOxSHbNDDOE=
    =lG7f
    -----END PGP SIGNATURE-----

    --Sig_/pHQQxpprVhNQPfxVCbb=po0--


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2