public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "developer at lorenzosalvadore dot it" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug d/107469] New: Build of GDC on FreeBSD 14 fails due to outdated value of __FreeBSD_version
Date: Mon, 31 Oct 2022 11:27:01 +0000	[thread overview]
Message-ID: <bug-107469-4@http.gcc.gnu.org/bugzilla/> (raw)

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107469

            Bug ID: 107469
           Summary: Build of GDC on FreeBSD 14 fails due to outdated value
                    of __FreeBSD_version
           Product: gcc
           Version: 11.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: developer at lorenzosalvadore dot it
  Target Milestone: ---

Build of GDC on FreeBSD 14 (CURRENT) fails. Here is the error message I get

checking command to parse
/wrkdirs/usr/ports/lang/gcc11-devel/work/.build/./gcc/nm output from
/wrkdirs/usr/ports/lang/gcc11-devel/work/.build/./gcc/xgcc
-B/wrkdirs/usr/ports/lang/gcc11-devel
/work/.build/./gcc/ -B/usr/local/x86_64-portbld-freebsd14.0/bin/
-B/usr/local/x86_64-portbld-freebsd14.0/lib/ -isystem
/usr/local/x86_64-portbld-freebsd14.0/include -isystem /usr/local/x86_64
-portbld-freebsd14.0/sys-include -fchecking=1  -m32 object...
/wrkdirs/usr/ports/lang/gcc11-devel/work/gcc-11-20221007/libphobos/libdruntime/core/sys/posix/sys/types.d:201:16:
error: undefine
d identifier '__FreeBSD_version'
  201 |     static if (__FreeBSD_version >= 1200000)
      |                ^
/wrkdirs/usr/ports/lang/gcc11-devel/work/gcc-11-20221007/libphobos/libdruntime/core/sys/freebsd/config.d:22:6:
error: static assert  "Unsupported version of FreeBSD"
   22 | else static assert(false, "Unsupported version of FreeBSD");
      |      ^
gmake[5]: *** [Makefile:2338: core/runtime.lo] Error 1
gmake[5]: Leaving directory
'/wrkdirs/usr/ports/lang/gcc11-devel/work/.build/x86_64-portbld-freebsd14.0/libphobos/libdruntime'
gmake[4]: *** [Makefile:484: all-recursive] Error 1
gmake[4]: Leaving directory
'/wrkdirs/usr/ports/lang/gcc11-devel/work/.build/x86_64-portbld-freebsd14.0/libphobos'
gmake[3]: *** [Makefile:411: all] Error 2
gmake[3]: Leaving directory
'/wrkdirs/usr/ports/lang/gcc11-devel/work/.build/x86_64-portbld-freebsd14.0/libphobos'
gmake[2]: *** [Makefile:21902: all-target-libphobos] Error 2
gmake[2]: *** Waiting for unfinished jobs....

I managed to fix the issue for the FreeBSD ports by updating the values of
__FreeBSD_version in libphobos/libdruntime/core/sys/freebsd/config.d. Please
see the patch in
https://cgit.freebsd.org/ports/diff/lang/gcc11-devel/files/patch-libphobos_libdruntime_core_sys_freebsd_config.d?id=f61fb49b2e76fd4f7a5b7a11510b5109206c19f2
, which introduces a new value for FreeBSD_14 and, while here, updates the
values for the other supported FreeBSD version.

             reply	other threads:[~2022-10-31 11:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-31 11:27 developer at lorenzosalvadore dot it [this message]
2022-11-12  8:26 ` [Bug d/107469] " developer at lorenzosalvadore dot it
2023-02-13 23:32 ` cvs-commit at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-107469-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).