public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/107469] New: Build of GDC on FreeBSD 14 fails due to outdated value of __FreeBSD_version
@ 2022-10-31 11:27 developer at lorenzosalvadore dot it
  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
  0 siblings, 2 replies; 3+ messages in thread
From: developer at lorenzosalvadore dot it @ 2022-10-31 11:27 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug d/107469] Build of GDC on FreeBSD 14 fails due to outdated value of __FreeBSD_version
  2022-10-31 11:27 [Bug d/107469] New: Build of GDC on FreeBSD 14 fails due to outdated value of __FreeBSD_version developer at lorenzosalvadore dot it
@ 2022-11-12  8:26 ` developer at lorenzosalvadore dot it
  2023-02-13 23:32 ` cvs-commit at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: developer at lorenzosalvadore dot it @ 2022-11-12  8:26 UTC (permalink / raw)
  To: gcc-bugs

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

Lorenzo Salvadore <developer at lorenzosalvadore dot it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gerald at pfeifer dot com

--- Comment #1 from Lorenzo Salvadore <developer at lorenzosalvadore dot it> ---
I have sent the patch fixing this bug on the gcc-patches mailing list:

https://gcc.gnu.org/pipermail/gcc-patches/2022-November/605685.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug d/107469] Build of GDC on FreeBSD 14 fails due to outdated value of __FreeBSD_version
  2022-10-31 11:27 [Bug d/107469] New: Build of GDC on FreeBSD 14 fails due to outdated value of __FreeBSD_version developer at lorenzosalvadore dot it
  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
  1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-02-13 23:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Gerald Pfeifer <gerald@gcc.gnu.org>:

https://gcc.gnu.org/g:daeb6c94bbdfdf909bae23b6dbe31eee8957af9d

commit r13-5974-gdaeb6c94bbdfdf909bae23b6dbe31eee8957af9d
Author: Lorenzo Salvadore <developer@lorenzosalvadore.it>
Date:   Tue Feb 14 00:28:11 2023 +0100

    d: Update __FreeBSD_version values [PR107469]

    Update __FreeBSD_version values for the latest supported FreeBSD
    versions. In particular, add __FreeBSD_version for FreeBSD 14, which
    is necessary to compile libphobos successfully on FreeBSD 14.

    libphobos/ChangeLog:

            PR d/107469
            * libdruntime/core/sys/freebsd/config.d: Update __FreeBSD_version.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-02-13 23:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-31 11:27 [Bug d/107469] New: Build of GDC on FreeBSD 14 fails due to outdated value of __FreeBSD_version developer at lorenzosalvadore dot it
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

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).