Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Feb 2023 18:07:12 -0800
From:      David Wolfskill <david@catwhisker.org>
To:        freebsd-ports@freebsd.org
Subject:   www/chromium: build fails on stable/12 (amd64) - both poudriere and portmaster
Message-ID:  <Y/q%2B0B/qtEXWmTZ2@albert.catwhisker.org>

next in thread | raw e-mail | index | archive | help

--w00hUrYFRcfpuwLR
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

So... I tried several times to submit this bug via bugzilla, and each
time was told (after about a minute of waiting):

	Secure Connection Failed

	An error occurred during a connection to bugs.freebsd.org.

	    The page you are trying to view cannot be shown because the
	authenticity of the received data could not be verified.
	    Please contact the website owners to inform them of this problem.

	Learn more=E2=80=A6


Anyway:  Yeah.  I couldn't build www/chromium under stable/12 at
stable/12-n235968-668a32ab231d, either via poudriere (on a 256GB build
machine) or via portmaster (on my laptop).

I have placed a copy of the poudriere log in
https://www.catwhisker.org/~david/FreeBSD/ports/chromium/12/.

The salient part of that shows:

=2E..
[ 28% 15291/52970] python3 ../../third_party/wayland/wayland_scanner_wrappe=
r.py third_party/wayland/src/protocol/wayland.xml --src-root ../../ --root-=
gen-dir gen --generator-type protocol-server --cmd ./wayland_scanner
[ 28% 15292/52970] cc -MMD -MF obj/third_party/wayland/wayland_cursor/os-co=
mpatibility.o.d -DUSE_AURA=3D1 -DUSE_GLIB=3D1 -DUSE_OZONE=3D1 -DOFFICIAL_BU=
ILD -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO=
_UNWIND_TABLES -D_GNU_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENA=
BLED=3D0 -I../.. -Igen -I../../third_party/wayland/include -I../../third_pa=
rty/wayland/include/src -I../../third_party/wayland/src/cursor -I../../thir=
d_party/wayland/src/egl -I../../third_party/wayland/src/src -I/usr/local/in=
clude/libepoll-shim -Igen/third_party/wayland/src/protocol -fno-delete-null=
-pointer-checks -fno-ident -fno-strict-aliasing --param=3Dssp-buffer-size=
=3D4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -=
fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -m64 -msse3 -Xclang=
 -fdebug-compilation-dir -Xclang . -no-canonical-prefixes -ftrivial-auto-va=
r-init=3Dpattern -O2 -fdata-sections -ffunction-sections -fno-unique-sectio=
n-names -fno-omit-frame-pointer -g0 -fprofile-use=3D../../chrome/build/pgo_=
profiles/chrome-linux-5481-1675874756-8f0cc1ffc14aaa364c4901d505c8293825229=
435.profdata -Wno-profile-instr-unprofiled -Wno-profile-instr-out-of-date -=
Wno-backend-plugin -fvisibility=3Dhidden -Wheader-hygiene -Wstring-conversi=
on -Wtautological-overlap-compare -Wall -Wno-unused-variable -Wno-c++11-nar=
rowing -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wl=
oop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional =
-Wno-ignored-pragma-optimize -Wno-macro-redefined -std=3Dc11 -c ../../third=
_party/wayland/src/cursor/os-compatibility.c -o obj/third_party/wayland/way=
land_cursor/os-compatibility.o
FAILED: obj/third_party/wayland/wayland_cursor/os-compatibility.o
cc -MMD -MF obj/third_party/wayland/wayland_cursor/os-compatibility.o.d -DU=
SE_AURA=3D1 -DUSE_GLIB=3D1 -DUSE_OZONE=3D1 -DOFFICIAL_BUILD -D_FILE_OFFSET_=
BITS=3D64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_G=
NU_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=3D0 -I../.. -I=
gen -I../../third_party/wayland/include -I../../third_party/wayland/include=
/src -I../../third_party/wayland/src/cursor -I../../third_party/wayland/src=
/egl -I../../third_party/wayland/src/src -I/usr/local/include/libepoll-shim=
 -Igen/third_party/wayland/src/protocol -fno-delete-null-pointer-checks -fn=
o-ident -fno-strict-aliasing --param=3Dssp-buffer-size=3D4 -fstack-protecto=
r -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor=
-diagnostics -fmerge-all-constants -m64 -msse3 -Xclang -fdebug-compilation-=
dir -Xclang . -no-canonical-prefixes -ftrivial-auto-var-init=3Dpattern -O2 =
-fdata-sections -ffunction-sections -fno-unique-section-names -fno-omit-fra=
me-pointer -g0 -fprofile-use=3D../../chrome/build/pgo_profiles/chrome-linux=
-5481-1675874756-8f0cc1ffc14aaa364c4901d505c8293825229435.profdata -Wno-pro=
file-instr-unprofiled -Wno-profile-instr-out-of-date -Wno-backend-plugin -f=
visibility=3Dhidden -Wheader-hygiene -Wstring-conversion -Wtautological-ove=
rlap-compare -Wall -Wno-unused-variable -Wno-c++11-narrowing -Wno-missing-f=
ield-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unn=
eeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-o=
ptimize -Wno-macro-redefined -std=3Dc11 -c ../../third_party/wayland/src/cu=
rsor/os-compatibility.c -o obj/third_party/wayland/wayland_cursor/os-compat=
ibility.o
=2E./../third_party/wayland/src/cursor/os-compatibility.c:127:7: warning: i=
mplicit declaration of function 'memfd_create' is invalid in C99 [-Wimplici=
t-function-declaration]
        fd =3D memfd_create("wayland-cursor", MFD_CLOEXEC | MFD_ALLOW_SEALI=
NG);
             ^
=2E./../third_party/wayland/src/cursor/os-compatibility.c:127:38: error: us=
e of undeclared identifier 'MFD_CLOEXEC'
        fd =3D memfd_create("wayland-cursor", MFD_CLOEXEC | MFD_ALLOW_SEALI=
NG);
                                            ^
=2E./../third_party/wayland/src/cursor/os-compatibility.c:127:52: error: us=
e of undeclared identifier 'MFD_ALLOW_SEALING'
        fd =3D memfd_create("wayland-cursor", MFD_CLOEXEC | MFD_ALLOW_SEALI=
NG);
                                                          ^
=2E./../third_party/wayland/src/cursor/os-compatibility.c:135:13: error: us=
e of undeclared identifier 'F_ADD_SEALS'
                fcntl(fd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_SEAL);
                          ^
=2E./../third_party/wayland/src/cursor/os-compatibility.c:135:26: error: us=
e of undeclared identifier 'F_SEAL_SHRINK'
                fcntl(fd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_SEAL);
                                       ^
=2E./../third_party/wayland/src/cursor/os-compatibility.c:135:42: error: us=
e of undeclared identifier 'F_SEAL_SEAL'
                fcntl(fd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_SEAL);
                                                       ^
1 warning and 5 errors generated.



The build succeeded under stable/13, running
stable/13-n254681-44a6088278ea.

The (MFD_*) symbols in question appear to be defined in /sys/sys/mman.h
for stable/13, but are not present in the stable/12 version of the
file.

Any suggestions for a fix (or circumvention)?  Perhaps the definitions
in question could be MFCed to stable/12?

Peace,
david
--=20
David H. Wolfskill                              david@catwhisker.org
So now the General Secretary of the Chinese Communist Party associates with
the imperialist running dog, Vladimir Putin.  Will wonders never cease!

See https://www.catwhisker.org/~david/publickey.gpg for my public key.

--w00hUrYFRcfpuwLR
Content-Type: application/pgp-signature; name="signature.asc"

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

iNUEARYKAH0WIQSr0Kzv+UJRY3wfOii0+6PfV4Ix1AUCY/q+0F8UgAAAAAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QUJE
MEFDRUZGOTQyNTE2MzdDMUYzQTI4QjRGQkEzREY1NzgyMzFENAAKCRC0+6PfV4Ix
1PT3AQCVoX5yX1TSJ3dgwnCzFVZd/QCULNSwBLpU7JTx0ayb8AD+KdU8V19UEE06
GOEsay8oziB8fBluLioYphOjWp/x+gw=
=kKU0
-----END PGP SIGNATURE-----

--w00hUrYFRcfpuwLR--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Y/q%2B0B/qtEXWmTZ2>