drm_info icon indicating copy to clipboard operation
drm_info copied to clipboard

`meson.build:63:2: ERROR: Sandbox violation: Tried to grab file drm_fourcc.h from a nested subproject.`

Open paulmenzel opened this issue 1 year ago • 1 comments

$ git log --no-decorate --oneline -1
5af85df Group legacy info

On Debian sid/unstable meson build fails with:

The Meson build system
Version: 0.63.0
Source dir: /home/user/src/drm_info
Build dir: /home/user/src/drm_info/build
Build type: native build
Project name: drm_info
Project version: 2.3.0
C compiler for the host machine: cc (gcc 11.3.0 "cc (Debian 11.3.0-4) 11.3.0")
C linker for the host machine: cc ld.bfd 2.38.50.20220707
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Found CMake: /usr/bin/cmake (3.23.2)
Run-time dependency json-c found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency json-c

Executing subproject json-c 

json-c| Project name: json-c
json-c| Project version: 0.13.1
json-c| C compiler for the host machine: cc (gcc 11.3.0 "cc (Debian 11.3.0-4) 11.3.0")
json-c| C linker for the host machine: cc ld.bfd 2.38.50.20220707
json-c| Compiler for C supports arguments -Wno-unused: YES
json-c| Run-time dependency threads found: YES
json-c| Library m found: YES
json-c| Has header "dlfcn.h" : YES
json-c| Has header "endian.h" : YES
json-c| Has header "fcntl.h" : YES
json-c| Has header "float.h" : YES
json-c| Has header "inttypes.h" : YES
json-c| Has header "limits.h" : YES
json-c| Has header "locale.h" : YES
json-c| Has header "memory.h" : YES
json-c| Has header "stdarg.h" : YES
json-c| Has header "stdint.h" : YES
json-c| Has header "stdlib.h" : YES
json-c| Has header "strings.h" : YES
json-c| Has header "string.h" : YES
json-c| Has header "syslog.h" : YES
json-c| Has header "sys/cdefs.h" : YES
json-c| Has header "sys/param.h" : YES
json-c| Has header "sys/stat.h" : YES
json-c| Has header "sys/types.h" : YES
json-c| Has header "unistd.h" : YES
json-c| Has header "xlocale.h" : NO
json-c| Header "float.h" has symbol "_isnan" : NO
json-c| Header "float.h" has symbol "_finite" : NO
json-c| Header "math.h" has symbol "INFINITY" : YES
json-c| Header "math.h" has symbol "isinf" : YES
json-c| Header "math.h" has symbol "isnan" : YES
json-c| Header "math.h" has symbol "nan" : YES
json-c| Checking for function "snprintf" : YES
json-c| Checking for function "vasprintf" : YES
json-c| Checking for function "vsnprintf" : YES
json-c| Checking for function "vprintf" : YES
json-c| Checking for function "open" : YES
json-c| Checking for function "realloc" : YES
json-c| Checking for function "setlocale" : YES
json-c| Checking for function "uselocale" : YES
json-c| Checking for function "strcasecmp" : YES
json-c| Checking for function "strncasecmp" : YES
json-c| Checking for function "strdup" : YES
json-c| Checking for function "strerror" : YES
json-c| Checking for function "vsyslog" : YES
json-c| Checking for function "_doprnt" : NO
json-c| Checking for size of "int" : 4
json-c| Checking for size of "int64_t" : 8
json-c| Checking for size of "long" : 8
json-c| Checking for size of "long long" : 8
json-c| Checking for size of "size_t" : 8
json-c| Configuring config.h using configuration
json-c| Configuring json_config.h using configuration
json-c| Build targets in project: 1
json-c| Subproject json-c finished.

Dependency json-c from subproject subprojects/json-c-0.13.1 found: YES 0.13.1
Run-time dependency libpci found: YES 3.7.0
Run-time dependency libdrm found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency libdrm

Executing subproject libdrm 

libdrm| Project name: libdrm
libdrm| Project version: 2.4.104
libdrm| C compiler for the host machine: cc (gcc 11.3.0 "cc (Debian 11.3.0-4) 11.3.0")
libdrm| C linker for the host machine: cc ld.bfd 2.38.50.20220707
libdrm| Dependency threads found: YES unknown (cached)
libdrm| Program symbols-check.py found: YES (/usr/bin/python3 /home/user/src/drm_info/subprojects/libdrm/symbols-check.py)
libdrm| Program nm found: YES (/usr/bin/nm)
libdrm| Run-time dependency atomic_ops found: NO (tried pkgconfig and cmake)
libdrm| Checking if "Intel Atomics" : links: YES
libdrm| Checking for function "dlsym" : NO
libdrm| Library dl found: YES
libdrm| Checking for function "clock_gettime" : YES
libdrm| Library m found: YES
libdrm| Checking if "sys/select.h works" compiles: YES
libdrm| Checking if "alloca.h works" compiles: YES
libdrm| Header "sys/sysmacros.h" has symbol "major" : YES
libdrm| Header "sys/sysmacros.h" has symbol "minor" : YES
libdrm| Header "sys/sysmacros.h" has symbol "makedev" : YES
libdrm| Header "sys/mkdev.h" has symbol "major" : NO
libdrm| Checking for function "open_memstream" : YES
libdrm| Compiler for C supports arguments -Wall: YES
libdrm| Compiler for C supports arguments -Wextra: YES
libdrm| Compiler for C supports arguments -Wsign-compare: YES
libdrm| Compiler for C supports arguments -Werror=undef: YES
libdrm| Compiler for C supports arguments -Werror=implicit-function-declaration: YES
libdrm| Compiler for C supports arguments -Wpointer-arith: YES
libdrm| Compiler for C supports arguments -Wwrite-strings: YES
libdrm| Compiler for C supports arguments -Wstrict-prototypes: YES
libdrm| Compiler for C supports arguments -Wmissing-prototypes: YES
libdrm| Compiler for C supports arguments -Wmissing-declarations: YES
libdrm| Compiler for C supports arguments -Wnested-externs: YES
libdrm| Compiler for C supports arguments -Wpacked: YES
libdrm| Compiler for C supports arguments -Wswitch-enum: YES
libdrm| Compiler for C supports arguments -Wmissing-format-attribute: YES
libdrm| Compiler for C supports arguments -Wstrict-aliasing=2: YES
libdrm| Compiler for C supports arguments -Winit-self: YES
libdrm| Compiler for C supports arguments -Winline: YES
libdrm| Compiler for C supports arguments -Wshadow: YES
libdrm| Compiler for C supports arguments -Wdeclaration-after-statement: YES
libdrm| Compiler for C supports arguments -Wold-style-definition: YES
libdrm| Compiler for C supports arguments -Wunused-parameter: YES
libdrm| Compiler for C supports arguments -Wattributes: YES
libdrm| Compiler for C supports arguments -Wlong-long: YES
libdrm| Compiler for C supports arguments -Wmissing-field-initializers: YES
libdrm| Run-time dependency pciaccess found: NO (tried pkgconfig and cmake)
libdrm| Run-time dependency cunit found: NO (tried pkgconfig and cmake)
libdrm| Program rst2man found: YES (/usr/bin/rst2man)
libdrm| Checking if "compiler supports __attribute__(("hidden"))" compiles: YES
libdrm| Configuring config.h using configuration
libdrm| Message:
libdrm| Message: libdrm will be compiled with:
libdrm| Message:
libdrm| Message:   libkms         false
libdrm| Message:   Intel API      false
libdrm| Message:   vmwgfx API     false
libdrm| Message:   Radeon API     false
libdrm| Message:   AMDGPU API     false
libdrm| Message:   Nouveau API    false
libdrm| Message:   OMAP API       false
libdrm| Message:   EXYNOS API     false
libdrm| Message:   Freedreno API  false (kgsl: false)
libdrm| Message:   Tegra API      false
libdrm| Message:   VC4 API        false
libdrm| Message:   Etnaviv API    false
libdrm| Message:
libdrm| Build targets in project: 13
libdrm| NOTICE: Future-deprecated features used:
libdrm| * 0.55.0: {'ExternalProgram.path'}
libdrm| Subproject libdrm finished.

Dependency libdrm from subproject subprojects/libdrm found: YES 2.4.104

meson.build:63:2: ERROR: Sandbox violation: Tried to grab file drm_fourcc.h from a nested subproject.

A full log can be found at /home/user/src/drm_info/build/meson-logs/meson-log.txt

paulmenzel avatar Jul 11 '22 13:07 paulmenzel

FYI this happens if either libdrm or pkg-config are missing.

sfan5 avatar Aug 05 '22 20:08 sfan5