[Bug 281292] graphics/mesa-dri build failure

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 08 Sep 2024 06:36:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281292

--- Comment #6 from jakub_lach@mailplus.pl ---
I can confirm that if I build llvm15 from ports, then mesa-dri fails with

>>> referenced by /usr/local/llvm15/lib/libLLVMSPIRVLib.so                                          

ld: error: undefined reference due to --no-allow-shlib-undefined: VTT for
std::__1::basic_stringst  ream<char, std::__1::char_traits<char>,
std::__1::allocator<char>>@LLVM_15                          
>>> referenced by /usr/local/llvm15/lib/libLLVMSPIRVLib.so                                          

ld: error: undefined reference due to --no-allow-shlib-undefined: vtable for
std::__1::basic_strin  gbuf<char, std::__1::char_traits<char>,
std::__1::allocator<char>>@LLVM_15                          
>>> referenced by /usr/local/llvm15/lib/libLLVMSPIRVLib.so                                          

ld: error: undefined reference due to --no-allow-shlib-undefined: vtable for
std::__1::basic_ostri  ngstream<char, std::__1::char_traits<char>,
std::__1::allocator<char>>@LLVM_15                      
>>> referenced by /usr/local/llvm15/lib/libLLVMSPIRVLib.so                                          

ld: error: undefined reference due to --no-allow-shlib-undefined: VTT for
std::__1::basic_ostrings  tream<char, std::__1::char_traits<char>,
std::__1::allocator<char>>@LLVM_15                         
>>> referenced by /usr/local/llvm15/lib/libLLVMSPIRVLib.so

I use CPUTYPE?=penryn and just have turned of DOCS:

===> The following configuration options are available for llvm15-15.0.7_10:
     BE_AMDGPU=on: AMD GPU backend (required by mesa)
     BE_WASM=on: WebAssembly backend (required by firefox via wasi)
     CLANG=on: Build clang
     COMPILER_RT=on: Sanitizer libraries
     DOCS=off: Build and/or install documentation
     EXTRAS=on: Extra clang tools
     FLANG=off: Flang FORTRAN compiler
     GOLD=on: Build the LLVM Gold plugin for LTO
     LIT=on: Install lit and FileCheck test tools
     LLD=on: Install lld, the LLVM linker
     LLDB=on: Install lldb, the LLVM debugger
     MLIR=off: Multi-Level Intermediate Representation
     OPENMP=on: Install libomp, the LLVM OpenMP runtime library
     PYCLANG=on: Install python bindings to libclang
     STATIC_LIBS=on: Install static libraries (does not effect sanitizers)
====> Options available for the single BACKENDS: you have to select exactly one
of them
     BE_FREEBSD=off: Backends for FreeBSD architectures
     BE_NATIVE=off: Backend(s) for this architecture (X86)
     BE_STANDARD=on: All non-experimental backends

-- 
You are receiving this mail because:
You are the assignee for the bug.