This is on a machine running: FreeBSD freebeast.catwhisker.org 14.2-STABLE FreeBSD 14.2-STABLE #125 stable/14-n270695-057409d0259f: Wed Mar 5 11:38:57 UTC 2025 root@freebeast.catwhisker.org:/common/S1/obj/usr/src/amd64.amd64/sys/GENERIC amd64 1402504 1402504 CPU: AMD EPYC 7502P 32-Core Processor (2495.44-MHz K8-class CPU) real memory = 274869518336 (262136 MB) avail memory = 267578699776 (255182 MB) that I use for package-building (for the last few months). The ports tree is at main-n698794-56fb74f11df4. Previous chromium builds have built OK: I track both FreeBSD base & ports daily on both this machine and a couple of laptops, but chromium is only built on this machine (because I actually use one of the laptops for day-to-day work). I tried to attached a gzipped build log, but it was too big (220MB uncompressed; 3.6MB compressed). So I placed copies (both compressed & not) in https://www.catwhisker.org/~david/FreeBSD/ports/chromium/ I am happy to provide any additional relevant information and/or testing.
I've the same problem on 14.2-STABLE with poudriere. Host OSVERSION: 1402503 Jail OSVERSION: 1402501 Options : ALSA : off CODECS : on CUPS : off DEBUG : off DRIVER : off HEIMDAL : off HEIMDAL_BASE : off KERBEROS : off LTO : on MIT : off PIPEWIRE : on PULSEAUDIO : on SNDIO : off TEST : off WIDEVINE : off ../../ui/ozone/platform/wayland/common/wayland_util.cc:428:5: error: unknown type name 'ucred' 428 | ucred credentials{.pid = 0}; | ^ ../../ui/ozone/platform/wayland/common/wayland_util.cc:429:29: error: use of undeclared identifier 'ucred' 429 | socklen_t size = sizeof(ucred); | ^ ../../ui/ozone/platform/wayland/common/wayland_util.cc:430:36: error: use of undeclared identifier 'SO_PEERCRED' 430 | if (getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &credentials, &size) == -1) { | ^ 3 errors generated.
I guess, socket option SO_PEERCRED has to be replaced by LOCAL_PEERCRED.
The same issue on 15.0 CURRENT amd64
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=c0821946bf4b36ec967bd15d4960d0a174dd7609 commit c0821946bf4b36ec967bd15d4960d0a174dd7609 Author: Robert Nagy <rnagy@FreeBSD.org> AuthorDate: 2025-03-06 19:18:52 +0000 Commit: Robert Nagy <rnagy@FreeBSD.org> CommitDate: 2025-03-06 19:20:22 +0000 www/chromium: unbreak by adding a patch missed from the previous commit PR: 285199 ...zone_platform_wayland_common_wayland__util.cc (new) | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
A commit in branch 2025Q1 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=c611682af0a078b00dd38d41fa055bee7a06ac31 commit c611682af0a078b00dd38d41fa055bee7a06ac31 Author: Robert Nagy <rnagy@FreeBSD.org> AuthorDate: 2025-03-06 19:18:52 +0000 Commit: Robert Nagy <rnagy@FreeBSD.org> CommitDate: 2025-03-06 19:20:54 +0000 www/chromium: unbreak by adding a patch missed from the previous commit PR: 285199 (cherry picked from commit c0821946bf4b36ec967bd15d4960d0a174dd7609) ...zone_platform_wayland_common_wayland__util.cc (new) | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)