pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: chromium build issue w/new LLVM?
Do you have any changes in www/chromium or wip/chromium?
Chromium uses internal libcxx, see in Makefile: GN_ARGS+= use_custom_libcxx=true
On Sun, Nov 22, 2026 at 2:57 PM Havard Eidnes <he%netbsd.org@localhost> wrote:
>
> Aand...
>
> trying to build chromium with an older set of LLVM tools (22.1.8
> out of main pkgsrc-current on NetBSD/amd64 10.2) also meets with
> failure, ref.:
>
> FAILED: [code=1] src/gn/args.o
> c++ -MMD -MF src/gn/args.o.d -I../../../tools/gn/src -I../../../tools/gn/src/gn/starlark/vendor/cxx/include -I. -O2 -fno-stack-protector -isystem/usr/pkg/lib/clang/22/include -Wno-error=unused-command-line-argument -Wno-unknown-warning-option -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -Dz_off_t=long -I/usr/pkg/include/nspr -I/usr/pkg/include/freetype2 -I/usr/pkg/include/harfbuzz -I/usr/X11R7/include -I/usr/pkg/include/libxml2 -I/usr/pkg/include/krb5 -I/usr/X11R7/include/libdrm -I/usr/pkg/qt6/include -O2 -fno-stack-protector -isystem/usr/pkg/lib/clang/22/include -Wno-error=unused-command-line-argument -Wno-unknown-warning-option -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -Dz_off_t=long -I/usr/pkg/include/nspr -I/usr/pkg/include/freetype2 -I/usr/pkg/include/harfbuzz -I/usr/X11R7/include -I/usr/pkg/include/libxml2 -I/usr/pkg/include/krb5 -I/usr/X11R7/include/libdrm -I/usr/pkg/qt6/include -D_LIBCPP_HARDENING_MODE_DEFAULT=_LIBCPP_HARDENING_MODE_FAST -D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -std=c++23 -Wrange-loop-analysis -Wextra-semi-stmt -Wno-return-type-c-linkage -c ../../../tools/gn/src/gn/args.cc -o src/gn/args.o
> In file included from ../../../tools/gn/src/gn/args.cc:5:
> In file included from ../../../tools/gn/src/gn/args.h:15:
> In file included from ../../../tools/gn/src/gn/scope.h:19:
> ../../../tools/gn/src/gn/err.h:8:10: fatal error: 'expected' file not found
> 8 | #include <expected>
> | ^~~~~~~~~~
> 1 error generated.
>
> (And a following cascade due to MAKE_JOBS=32.)
>
> That file is in /usr/pkg, multiple times:
>
> $ find /usr/pkg -name expected
> find: /usr/pkg/etc/polkit-1/rules.d: Permission denied
> find: /usr/pkg/share/polkit-1/rules.d: Permission denied
> /usr/pkg/gcc12/include/c++/expected
> /usr/pkg/gcc14/include/c++/expected
> /usr/pkg/wasi/include/c++/v1/expected
> /usr/pkg/gcc16/include/c++/expected
> $
>
> But ... not for clang, which I think the build is using?
>
> $ pkg_info -L clang | grep expected
> $
>
> I do find a file internal to chromium:
>
> $ find work -type f -name expected
> work/chromium-158.0.8127.36/third_party/libc++/src/include/expected
> $
>
> But why isn't that copy found and used?
>
> Is it something in my environment which prevents this from
> proceeding? In other words: Am I the only one seeing this
> problem?
>
> Hmm, that earlier test system was:
>
> $ uname -srm
> NetBSD 11.0 amd64
> $
>
> which has this file in /usr/include:
>
> $ find /usr/include -type f -name expected
> /usr/include/g++/expected
> $
>
> whereas with 10.2:
>
> $ uname -srm
> NetBSD 10.2 amd64
> $ find /usr/include -type f -name expected
> $
>
> So .. instead of wasting lots of time trying to build on 10.x, should
> chromium's Makefile say "On NetBSD you need to run >=11.0", if that is
> indeed the problem?
>
> Regards,
>
> - Håvard
--
Regards,
kikadf
Home |
Main Index |
Thread Index |
Old Index