Bug 273687 - www/cgicc: Fails to build with GCC 13: error: expected identifier before '__is_convertible'
Summary: www/cgicc: Fails to build with GCC 13: error: expected identifier before '__i...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks: 273397
  Show dependency treegraph
 
Reported: 2023-09-10 07:53 UTC by Lorenzo Salvadore
Modified: 2023-11-18 12:32 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (bofh)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lorenzo Salvadore freebsd_committer freebsd_triage 2023-09-10 07:53:05 UTC
This bug report blocks the update of GCC_DEFAULT to 13. This webpage can help finding a fix: https://gcc.gnu.org/gcc-13/porting_to.html

--- libcgicc_la-CgiInput.lo ---
In file included from /usr/include/c++/v1/__functional/weak_result_type.h:16,
                 from /usr/include/c++/v1/__functional/invoke.h:14,
                 from /usr/include/c++/v1/__functional_base:15,
                 from /usr/include/c++/v1/string:520,
                 from /usr/include/c++/v1/__locale:15,
                 from /usr/include/c++/v1/ios:214,
                 from /usr/include/c++/v1/iostream:37,
                 from CgiInput.cpp:28:
/usr/include/c++/v1/type_traits:1770:8: error: expected identifier before '__is_convertible'
 1770 | struct __is_convertible
      |        ^~~~~~~~~~~~~~~~

Full log: https://pkg-status.freebsd.org/package18/data/124amd64-default-foo/2023-09-06_17h55m19s/logs/errors/cgicc-3.2.19_2.log

There are other bugs similar to this one, such as bug #273671 or bug #273674.
Comment 1 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2023-09-17 11:30:59 UTC
https://github.com/gcc-mirror/gcc/commit/af85ad891703db220b25e7847f10d0bbec4becf4

This is only in 13.2.0 so unless you upgrade gcc13 to 13.2.0 I don't think this is fixable at my side. But if you have other solutions please advise. My knowledge on C++ is a little finicky.
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-11-18 12:30:48 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=08e9d3e703795b24eb9d904bd8bb05f3658ad06c

commit 08e9d3e703795b24eb9d904bd8bb05f3658ad06c
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-11-18 12:19:50 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-11-18 12:29:53 +0000

    www/cgicc: Switch to gcc12

    PR:             273687

 www/cgicc/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)