pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Fwd: chromium build issue w/new LLVM?



Hi,
You should edit wip/chromium/Makefile:
# LLVM_MAJOR_VERSION
LLVM_VERSION= ${MAKE} -C ../../lang/llvm -V LLVM_VERSION    <<< wip/llvm
LLVM_MV= ${LLVM_VERSION:sh:C/\..*//}

BUILDLINK_DEPMETHOD.clang= build
.include "../../lang/clang/buildlink3.mk"              <<< wip/clang
.include "../../lang/compiler-rt/buildlink3.mk"      <<< wip/compiler-rt

.include "cargo-depends.mk"
.include "../../lang/rust/cargo.mk"                       <<< wip/rust
CARGO_ARGS+= -p cc_bindings_from_rs
.include "../../lang/rust/rust.mk"                       <<< wip/rust



On Sun, Nov 22, 2026 at 10:13 AM Havard Eidnes <he%netbsd.org@localhost> wrote:
>
> Hi,
>
> I am trying my best to build chromium from pkgsrc-wip with rust
> 1.100.0, LLVM "and friends" 23.1.6 from pkgsrc-wip, and I'm
> facing what appears as an impassable block to progress:
>
>
> FAILED: [code=1] gen/v8/metagen/instance-types.h gen/v8/metagen/layouts.json
> /usr/pkg/bin/python3.13 ../../v8/tools/metagen/metagen.py --depfile gen/v8/metagen/instance-types.h.d --driver ../../v8/tools/metagen/harvest-driver.cc --v8-root ../../v8 --build-dir . --source-root ../../ --out gen/v8/metagen --flags-from-target //v8:v8_base_without_compiler --flags-toolchain //build/toolchain/netbsd:clang_x64 --flags-dependency obj/v8/v8_base_without_compiler.ninja --clang-resource-dir ../../../../../../../pkg/lib/clang/22 --driver-mode=gcc --libclang-so /usr/pkg/lib/libclang.so --libclang-bindings-dir /usr/pkg/lib/python3.13/site-packages --expect-libclang-major 24
> [metagen] native libclang: clang version 23.1.6 (wip.pkgsrc.org:/pkgsrc-wip.git 82b5ad455595bc2a2d817fd09161651f0fbf95d7)
> [metagen] warning: libclang major 23 is older than the clang toolchain (24); the parse may not match its builtin headers.
> /usr/pkgsrc/wip/chromium/work/chromium-158.0.8127.36/v8/src/utils/utils.h:47:10: fatal error: 'pmmintrin.h' file not found
> ./../../v8/tools/metagen/harvest-driver.cc:14:10: note: in file included from ./../../v8/tools/metagen/harvest-driver.cc:14:
>
> Now, where does the build setup get the notion that the clang
> toolchain is version 24?  It is not, it is also 23.1.6.  And
> where does the "...../pkg/lib/clang/22" come from?  The only two
> subdirs I have in /usr/pkg/lib/clang is 10.0.1 (not sure where
> that comes from, pkgdb doesn't have any record of it) and 23.
>
> And then of course it doesn't manage to pick up any of these
> files:
>
> : {12} ; find /usr/pkg/lib/clang/ -name pmmintrin.h
> /usr/pkg/lib/clang/10.0.1/include/pmmintrin.h
> /usr/pkg/lib/clang/10.0.1/include/ppc_wrappers/pmmintrin.h
> /usr/pkg/lib/clang/23/include/pmmintrin.h
> /usr/pkg/lib/clang/23/include/ppc_wrappers/pmmintrin.h
> : {13} ;
>
> So ... what am I doing wrong?  Am I too "aggressive" in which
> LLVM I'm trying to use?
>
> Annoyingly, this occurs some 2 wallclock hours into the build.
>
> Regards,
>
> - Håvard



--
Regards,
kikadf


-- 
Regards,
kikadf


Home | Main Index | Thread Index | Old Index