maintainer-feedback requested: [Bug 267400] graphics/mesa-dri: build error: Could not generate cargs for libdrm_amdgpu: Package valgrind was not found

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
Bugzilla Automation <[email protected]> has asked freebsd-x11 (Nobody)
<[email protected]> for maintainer-feedback:
Bug 267400: graphics/mesa-dri: build error: Could not generate cargs for
libdrm_amdgpu: Package valgrind was not found
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267400



--- Description ---
...
===>  Extracting for mesa-dri-22.2.2
=> SHA256 Checksum OK for mesa-22.2.2.tar.xz.
===>  Patching for mesa-dri-22.2.2
===>  Applying FreeBSD patches for mesa-dri-22.2.2 from
/usr/ports/graphics/mesa-dri/files
/usr/bin/sed -i.bak -e '/SYSCONFDIR/ s|/etc|/usr/local/etc|g'  -e '/DATADIR/
s|/usr/share|/usr/local/share|g' 
/tmp/ports/usr/ports/graphics/mesa-dri/work/mesa-22.2.2/src/util/xmlconfig.c
===>   mesa-dri-22.2.2 depends on file:
/usr/local/libdata/pkgconfig/pthread-stubs.pc - found
===>   mesa-dri-22.2.2 depends on package: py39-mako>0 - found
===>   mesa-dri-22.2.2 depends on executable: bison - found
===>   mesa-dri-22.2.2 depends on package: meson>=0.57.1_1 - found
===>   mesa-dri-22.2.2 depends on executable: ninja - found
===>   mesa-dri-22.2.2 depends on package: pkgconf>=1.3.0_1 - found
===>   mesa-dri-22.2.2 depends on file: /usr/local/bin/python3.9 - found
===>   mesa-dri-22.2.2 depends on executable: llvm-config13 - found
===>   mesa-dri-22.2.2 depends on executable: glslangValidator - found
===>   mesa-dri-22.2.2 depends on package: xorgproto>=0 - found
===>   mesa-dri-22.2.2 depends on file: /usr/local/libdata/pkgconfig/xv.pc -
found
===>   mesa-dri-22.2.2 depends on file: /usr/local/libdata/pkgconfig/xvmc.pc -
found
===>   mesa-dri-22.2.2 depends on file: /usr/local/libdata/pkgconfig/x11.pc -
found
===>   mesa-dri-22.2.2 depends on file: /usr/local/libdata/pkgconfig/xdamage.pc
- found
===>   mesa-dri-22.2.2 depends on file: /usr/local/libdata/pkgconfig/xext.pc -
found
===>   mesa-dri-22.2.2 depends on file: /usr/local/libdata/pkgconfig/xfixes.pc
- found
===>   mesa-dri-22.2.2 depends on file:
/usr/local/libdata/pkgconfig/xshmfence.pc - found
===>   mesa-dri-22.2.2 depends on file: /usr/local/libdata/pkgconfig/xv.pc -
found
===>   mesa-dri-22.2.2 depends on file: /usr/local/libdata/pkgconfig/xcb.pc -
found
===>   mesa-dri-22.2.2 depends on file: /usr/local/libdata/pkgconfig/xrandr.pc
- found
===>   mesa-dri-22.2.2 depends on shared library: libzstd.so - found
(/usr/local/lib/libzstd.so)
===>   mesa-dri-22.2.2 depends on shared library: libexpat.so - found
(/usr/local/lib/libexpat.so)
===>   mesa-dri-22.2.2 depends on shared library: libdrm.so - found
(/usr/local/lib/libdrm.so)
===>   mesa-dri-22.2.2 depends on shared library: libglapi.so - found
(/usr/local/lib/libglapi.so)
===>   mesa-dri-22.2.2 depends on shared library: libunwind.so - found
(/usr/local/lib/libunwind.so)
===>  Configuring for mesa-dri-22.2.2
/usr/bin/printf "[binaries]\nllvm-config = '/usr/local/bin/llvm-config13'"  >
/tmp/ports/usr/ports/graphics/mesa-dri/work/mesa-22.2.2/llvm.ini
The Meson build system
Version: 0.63.2
Source dir: /tmp/ports/usr/ports/graphics/mesa-dri/work/mesa-22.2.2
Build dir: /tmp/ports/usr/ports/graphics/mesa-dri/work/mesa-22.2.2/_build
Build type: native build
Program python3 found: YES
(/tmp/ports/usr/ports/graphics/mesa-dri/work/.bin/python3)
Project name: mesa
Project version: 22.2.2
C compiler for the host machine: cc (clang 14.0.5 "FreeBSD clang version 14.0.5
(https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c)")
C linker for the host machine: cc ld.lld 14.0.5
C++ compiler for the host machine: c++ (clang 14.0.5 "FreeBSD clang version
14.0.5 (https://github.com/llvm/llvm-project.git
llvmorg-14.0.5-0-gc12386ae247c)")
C++ linker for the host machine: c++ ld.lld 14.0.5
Host machine cpu family: x86_64
Host machine cpu: x86_64
Checking if "-mtls-dialect=gnu2" runs: DID NOT COMPILE
Program glslangValidator found: YES (/usr/local/bin/glslangValidator)
Found pkg-config: /usr/local/bin/pkgconf (1.8.0)
Run-time dependency xvmc found: YES 1.0.12
Run-time dependency xv found: YES 1.0.11
Found CMake: /usr/local/bin/cmake (3.24.0)
Run-time dependency libomxil-bellagio found: NO (tried pkgconfig and cmake)
Run-time dependency libtizonia found: NO (tried pkgconfig and cmake)
Run-time dependency libtizplatform found: NO (tried pkgconfig and cmake)
Run-time dependency tizilheaders found: NO (tried pkgconfig and cmake)
Program python3 found: YES
(/tmp/ports/usr/ports/graphics/mesa-dri/work/.bin/python3)
Fetching value of define "ETIME" :  
Checking for function "bswap32" : YES 
Checking for function "bswap64" : YES 
Checking for function "clz" : YES 
Checking for function "clzll" : YES 
Checking for function "ctz" : YES 
Checking for function "expect" : YES 
Checking for function "ffs" : YES 
Checking for function "ffsll" : YES 
Checking for function "popcount" : YES 
Checking for function "popcountll" : YES 
Checking for function "unreachable" : YES 
Checking for function "types_compatible_p" : YES 
Compiler for C supports function attribute const: YES 
Compiler for C supports function attribute flatten: YES 
Compiler for C supports function attribute malloc: YES 
Compiler for C supports function attribute pure: YES 
Compiler for C supports function attribute unused: YES 
Compiler for C supports function attribute warn_unused_result: YES 
Compiler for C supports function attribute weak: YES 
Compiler for C supports function attribute format: YES 
Compiler for C supports function attribute packed: YES 
Compiler for C supports function attribute returns_nonnull: YES 
Compiler for C supports function attribute alias: YES 
Compiler for C supports function attribute noreturn: YES 
Compiler for C supports function attribute visibility:hidden: YES 
Checking if "__uint128_t" compiles: YES 
Checking for function "reallocarray" : YES 
Compiler for C supports link arguments -Wl,--gc-sections: YES 
Compiler for C supports arguments -Werror=implicit-function-declaration: YES 
Compiler for C supports arguments -Werror=missing-prototypes: YES 
Compiler for C supports arguments -Werror=return-type: YES 
Compiler for C supports arguments -Werror=empty-body: YES 
Compiler for C supports arguments -Werror=incompatible-pointer-types: YES 
Compiler for C supports arguments -Werror=int-conversion: YES 
Compiler for C supports arguments -Wimplicit-fallthrough: YES 
Compiler for C supports arguments -Wno-missing-field-initializers: YES 
Compiler for C supports arguments -Wno-format-truncation: NO 
Compiler for C supports arguments -fno-math-errno: YES 
Compiler for C supports arguments -fno-trapping-math: YES 
Compiler for C supports arguments -Qunused-arguments: YES 
Compiler for C supports arguments -fno-common: YES 
Compiler for C supports arguments -Wno-microsoft-enum-value: YES 
Compiler for C supports arguments -Wno-unused-function: YES 
Compiler for C supports arguments -Werror=format: YES 
Compiler for C supports arguments -Wformat-security: YES 
Compiler for C supports arguments -ffunction-sections: YES 
Compiler for C supports arguments -fdata-sections: YES 
Compiler for C supports arguments -Wno-unused-variable: YES 
Compiler for C supports arguments -Wno-unused-but-set-variable: YES 
Compiler for C++ supports arguments -Werror=return-type: YES 
Compiler for C++ supports arguments -Werror=empty-body: YES 
Compiler for C++ supports arguments -Wno-non-virtual-dtor: YES 
Compiler for C++ supports arguments -Wno-missing-field-initializers: YES 
Compiler for C++ supports arguments -Wno-format-truncation: NO 
Compiler for C++ supports arguments -fno-math-errno: YES 
Compiler for C++ supports arguments -fno-trapping-math: YES 
Compiler for C++ supports arguments -Qunused-arguments: YES 
Compiler for C++ supports arguments -flifetime-dse=1: NO 
Compiler for C++ supports arguments -Wno-microsoft-enum-value: YES 
Compiler for C++ supports arguments -Werror=format: YES 
Compiler for C++ supports arguments -Wformat-security: YES 
Compiler for C++ supports arguments -ffunction-sections: YES 
Compiler for C++ supports arguments -fdata-sections: YES 
Compiler for C++ supports arguments -Wno-unused-variable: YES 
Compiler for C++ supports arguments -Wno-unused-but-set-variable: YES 
Compiler for C supports arguments -Wno-override-init: YES 
Compiler for C supports arguments -Wno-initializer-overrides: YES 
Compiler for C supports arguments -Werror=pointer-arith: YES 
Compiler for C supports arguments -Werror=vla: YES 
Compiler for C supports arguments -Werror=gnu-empty-initializer: YES 
Compiler for C++ supports arguments -Werror=pointer-arith: YES 
Compiler for C++ supports arguments -Werror=vla: YES 
Compiler for C++ supports arguments -Werror=gnu-empty-initializer: YES 
Checking if "GCC atomic builtins" compiles: YES 
Checking if "GCC atomic builtins required -latomic" : links: YES 
Checking if "GCC 64bit atomics" with dependency : links: YES 
Library ws2_32 found: NO
Header "sys/sysmacros.h" has symbol "major" : NO 
Header "sys/mkdev.h" has symbol "major" : NO 
Check usable header "sched.h" : YES 
Checking for function "sched_getaffinity" : YES 
Check usable header "sys/sysctl.h" : YES 
Check usable header "xlocale.h" : YES 
Check usable header "linux/futex.h" : NO 
Check usable header "endian.h" : NO 
Check usable header "dlfcn.h" : YES 
Check usable header "sys/shm.h" : YES 
Check usable header "cet.h" : YES 
Check usable header "pthread_np.h" : YES 
Checking for function "strtof" : YES 
Checking for function "mkostemp" : YES 
Checking for function "timespec_get" : YES 
Checking for function "memfd_create" : YES 
Checking for function "random_r" : NO 
Checking for function "flock" : YES 
Checking for function "strtok_r" : YES 
Checking for function "getrandom" : YES 
Checking for function "qsort_s" : YES 
Checking if "GNU qsort_r" : links: NO 
Checking if "BSD qsort_r" : links: YES 
Header "time.h" has symbol "struct timespec" : YES 
Checking for function "thrd_create" : NO 
Header "errno.h" has symbol "program_invocation_name" : NO 
Header "math.h" has symbol "issignaling" : NO 
Checking for function "posix_memalign" : YES 
Checking whether type "struct dirent" has member "d_type" : YES 
Checking if "strtod has locale support" : links: YES 
Checking if "Bsymbolic" : links: YES 
Checking if "gc-sections" : links: YES 
Checking if "version-script" : links: YES 
Checking if "dynamic-list" : links: YES 
Compiler for C supports link arguments -Wl,--build-id=sha1: YES 
Checking for function "dlopen" : YES 
Checking for function "dladdr" with dependency : YES 
Checking for function "dl_iterate_phdr" : YES 
Checking for function "clock_gettime" : YES 
Run-time dependency zlib found: YES 1.2.12
Run-time dependency libzstd found: YES 1.5.2
Run-time dependency threads found: YES
Checking for function "pthread_setaffinity_np" with dependency threads: NO 
Run-time dependency expat found: YES 2.4.9
Library m found: YES
Message: libdrm 2.4.110 needed because amdgpu has the highest requirement
Run-time dependency libdrm_amdgpu found: NO (tried cmake)

meson.build:1708:4: ERROR: Could not generate cargs for libdrm_amdgpu:
Package valgrind was not found in the pkg-config search path.
Perhaps you should add the directory containing `valgrind.pc'
to the PKG_CONFIG_PATH environment variable
Package 'valgrind', required by 'libdrm', not found


A full log can be found at
/tmp/ports/usr/ports/graphics/mesa-dri/work/mesa-22.2.2/_build/meson-logs/meson
-log.txt
===>  Script "configure" failed unexpectedly.
Please report the problem to [email protected] [maintainer] and attach the
"/tmp/ports/usr/ports/graphics/mesa-dri/work/mesa-22.2.2/_build/meson-logs/meso
n-log.txt"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1
....
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.