Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916316 - media-libs/harfbuzz-8.2.0 fails to build with sandbox error when tracing src/HarfBuzz-0.0.gir (ERROR: can't resolve libraries to shared libraries: harfbuzz-gobject, harfbuzz)
Summary: media-libs/harfbuzz-8.2.0 fails to build with sandbox error when tracing src/...
Status: RESOLVED DUPLICATE of bug 821499
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-27 04:45 UTC by Giuseppe Foti
Modified: 2023-10-28 04:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info '=media-libs/harfbuzz-8.2.0::gentoo' (emerge.harfbuz.info.txt,9.29 KB, text/plain)
2023-10-27 04:45 UTC, Giuseppe Foti
Details
build.log (harfbuzz-8.2.0:20231026-163548.log,230.72 KB, text/x-log)
2023-10-27 04:46 UTC, Giuseppe Foti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Giuseppe Foti 2023-10-27 04:45:47 UTC
Created attachment 873508 [details]
emerge --info '=media-libs/harfbuzz-8.2.0::gentoo'

media-libs/harfbuzz-8.2.0 fails to build
during build phase sandbox volation is raised:

[91/102] x86_64-pc-linux-gnu-g++  -o util/hb-ot-shape-closure util/hb-ot-shape-closure.p/hb-ot-shape-closure.cc.o -Wl,--as-needed -Wl,--no-undefined -march=core-avx2 -O2 -pipe -Wl,-O1 -Wl,--as-needed '-Wl,-rpath,$ORIGIN/../src' -Wl,-rpath-link,/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/src -Wl,--start-group src/libharfbuzz.so.0.60820.0 /usr/lib64/libfreetype.so /usr/lib64/libcairo.so /usr/lib64/libglib-2.0.so -Wl,--end-group
 * /var/tmp/portage/sys-apps/sandbox-2.38/work/sandbox-2.38/libsandbox/trace.c:_do_ptrace():83: failure (Operation not permitted):
 * ISE:_do_ptrace: ptrace(PTRACE_TRACEME, ..., 0x0000000000000000, 0x0000000000000000): Operation not permitted
 * /var/tmp/portage/sys-apps/sandbox-2.38/work/sandbox-2.38/libsandbox/trace.c:_do_ptrace():83: failure (Operation not permitted):
 * ISE:_do_ptrace: ptrace(PTRACE_TRACEME, ..., 0x0000000000000000, 0x0000000000000000): Operation not permitted
[92/102] env PKG_CONFIG_PATH=/var/tmp/portage/media-libs/harfbuzz-8.2.0/temp/python3.12/pkgconfig:/usr/share/pkgconfig:/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/meson-uninstalled PKG_CONFIG_LIBDIR=/usr/lib64/pkgconfig CC=x86_64-pc-linux-gnu-gcc /usr/bin/g-ir-scanner --quiet --no-libtool --namespace=HarfBuzz --nsversion=0.0 --warn-all --output src/HarfBuzz-0.0.gir --c-include=hb-gobject.h --cflags-begin -DHB_NO_SINGLE_HEADER_ERROR -DHAVE_GOBJECT -DHB_EXTERN= --cflags-end -I/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0/src -I/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/src -I/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0/. -I/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/. --filelist=/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/src/libharfbuzz-gobject.so.0.60820.0.p/HarfBuzz_0.0_gir_filelist --include=GObject-2.0 --include=freetype2-2.0 --symbol-prefix=hb --symbol-prefix=hb_gobject --identifier-prefix=hb_ --pkg-export=harfbuzz-gobject --pkg-export=harfbuzz --cflags-begin -DU_DISABLE_RENAMING=1 -DHAVE_CONFIG_H -DU_DISABLE_RENAMING=1 -DHAVE_CONFIG_H -I/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0/. -I/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/lib64/libffi/include -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0/src/. -I/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/src/. -I/usr/include/gobject-introspection-1.0 -DHB_NDEBUG -DHB_NDEBUG --cflags-end --add-include-path=/usr/share/gir-1.0 -L/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/src --extra-library=harfbuzz -L/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/src --library harfbuzz-gobject -L/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/src -L/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/src --library harfbuzz --extra-library=glib-2.0 --extra-library=gobject-2.0 --extra-library=m --extra-library=freetype --extra-library=graphite2 --extra-library=girepository-1.0 --sources-top-dirs /var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0/ --sources-top-dirs /var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/
FAILED: src/HarfBuzz-0.0.gir 
env PKG_CONFIG_PATH=/var/tmp/portage/media-libs/harfbuzz-8.2.0/temp/python3.12/pkgconfig:/usr/share/pkgconfig:/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/meson-uninstalled PKG_CONFIG_LIBDIR=/usr/lib64/pkgconfig CC=x86_64-pc-linux-gnu-gcc /usr/bin/g-ir-scanner --quiet --no-libtool --namespace=HarfBuzz --nsversion=0.0 --warn-all --output src/HarfBuzz-0.0.gir --c-include=hb-gobject.h --cflags-begin -DHB_NO_SINGLE_HEADER_ERROR -DHAVE_GOBJECT -DHB_EXTERN= --cflags-end -I/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0/src -I/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/src -I/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0/. -I/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/. --filelist=/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/src/libharfbuzz-gobject.so.0.60820.0.p/HarfBuzz_0.0_gir_filelist --include=GObject-2.0 --include=freetype2-2.0 --symbol-prefix=hb --symbol-prefix=hb_gobject --identifier-prefix=hb_ --pkg-export=harfbuzz-gobject --pkg-export=harfbuzz --cflags-begin -DU_DISABLE_RENAMING=1 -DHAVE_CONFIG_H -DU_DISABLE_RENAMING=1 -DHAVE_CONFIG_H -I/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0/. -I/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/lib64/libffi/include -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0/src/. -I/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/src/. -I/usr/include/gobject-introspection-1.0 -DHB_NDEBUG -DHB_NDEBUG --cflags-end --add-include-path=/usr/share/gir-1.0 -L/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/src --extra-library=harfbuzz -L/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/src --library harfbuzz-gobject -L/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/src -L/var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/src --library harfbuzz --extra-library=glib-2.0 --extra-library=gobject-2.0 --extra-library=m --extra-library=freetype --extra-library=graphite2 --extra-library=girepository-1.0 --sources-top-dirs /var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0/ --sources-top-dirs /var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/
/usr/lib64/libsandbox.so(+0xd0f5)[0x7f0a5636f0f5]
/usr/lib64/libsandbox.so(+0xd20d)[0x7f0a5636f20d]
/usr/lib64/libsandbox.so(+0x7538)[0x7f0a56369538]
/usr/lib64/libsandbox.so(+0x7ab1)[0x7f0a56369ab1]
/usr/lib64/libsandbox.so(+0x89e7)[0x7f0a5636a9e7]
/usr/lib64/libsandbox.so(execve+0x4f)[0x7f0a5636d6af]
/bin/bash(+0x26ba2)[0x55b435331ba2]
/bin/bash(+0x2753c)[0x55b43533253c]
/bin/bash(+0x2a969)[0x55b435335969]
/bin/bash(+0x7ccf9)[0x55b435387cf9]
/proc/703/cmdline: /bin/bash /usr/bin/ldd /var/tmp/portage/media-libs/harfbuzz-8.2.0/work/harfbuzz-8.2.0-abi_x86_64.amd64/tmp-introspectjx2gy37u/HarfBuzz-0.0 

ERROR: can't resolve libraries to shared libraries: harfbuzz-gobject, harfbuzz
[93/102] x86_64-pc-linux-gnu-g++ -Isrc/libharfbuzz-cairo.so.0.60820.0.p -Isrc -I../harfbuzz-8.2.0/src -I. -I../harfbuzz-8.2.0 -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/pixman-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++11 -fno-exceptions -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DU_DISABLE_RENAMING=1 -DHAVE_CONFIG_H -march=core-avx2 -O2 -pipe -DHB_NDEBUG -fPIC -pthread -Wno-non-virtual-dtor -MD -MQ src/libharfbuzz-cairo.so.0.60820.0.p/hb-static.cc.o -MF src/libharfbuzz-cairo.so.0.60820.0.p/hb-static.cc.o.d -o src/libharfbuzz-cairo.so.0.60820.0.p/hb-static.cc.o -c ../harfbuzz-8.2.0/src/hb-static.cc
[94/102] x86_64-pc-linux-gnu-g++ -Isrc/libharfbuzz-subset.so.0.60820.0.p -Isrc -I../harfbuzz-8.2.0/src -I. -I../harfbuzz-8.2.0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++11 -fno-exceptions -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DU_DISABLE_RENAMING=1 -DHAVE_CONFIG_H -march=core-avx2 -O2 -pipe -DHB_NDEBUG -fPIC -Wno-non-virtual-dtor -MD -MQ src/libharfbuzz-subset.so.0.60820.0.p/hb-subset-plan.cc.o -MF src/libharfbuzz-subset.so.0.60820.0.p/hb-subset-plan.cc.o.d -o src/libharfbuzz-subset.so.0.60820.0.p/hb-subset-plan.cc.o -c ../harfbuzz-8.2.0/src/hb-subset-plan.cc
[95/102] x86_64-pc-linux-gnu-g++ -Isrc/libharfbuzz-subset.so.0.60820.0.p -Isrc -I../harfbuzz-8.2.0/src -I. -I../harfbuzz-8.2.0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++11 -fno-exceptions -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DU_DISABLE_RENAMING=1 -DHAVE_CONFIG_H -march=core-avx2 -O2 -pipe -DHB_NDEBUG -fPIC -Wno-non-virtual-dtor -MD -MQ src/libharfbuzz-subset.so.0.60820.0.p/hb-subset.cc.o -MF src/libharfbuzz-subset.so.0.60820.0.p/hb-subset.cc.o.d -o src/libharfbuzz-subset.so.0.60820.0.p/hb-subset.cc.o -c ../harfbuzz-8.2.0/src/hb-subset.cc
ninja: build stopped: subcommand failed.
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja -j 8 -v
 * ERROR: media-libs/harfbuzz-8.2.0::gentoo failed (compile phase):
 *   compile failed
Comment 1 Giuseppe Foti 2023-10-27 04:46:47 UTC
Created attachment 873509 [details]
build.log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-27 05:02:55 UTC
Have you set any sysctls which restrict ptrace?
Comment 3 Giuseppe Foti 2023-10-27 14:21:27 UTC
Yes, I set kernel.yama.ptrace_scope=2
Setting kernel.yama.ptrace_scope=1 the ebuild works
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-28 04:39:14 UTC

*** This bug has been marked as a duplicate of bug 821499 ***