Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 869347 - dev-python/pygobject-3.42.2 compile error PermissionError: [Errno 13] Permission denied: '/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../lib64'
Summary: dev-python/pygobject-3.42.2 compile error PermissionError: [Errno 13] Permiss...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-09 14:54 UTC by Christophe PEREZ
Modified: 2022-09-10 02:56 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe PEREZ 2022-09-09 14:54:11 UTC
Error while updating dev-python/pygobject-3.42.2

 * Package:    dev-python/pygobject-3.42.2
 * Repository: gentoo
 * Maintainer: gnome@gentoo.org python@gentoo.org
 * USE:        abi_x86_64 amd64 cairo elibc_glibc kernel_linux python_targets_python3_10 userland_GNU
 * FEATURES:   ccache network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking pygobject-3.42.2.tar.xz to /var/tmp/portage/dev-python/pygobject-3.42.2/work
>>> Source unpacked in /var/tmp/portage/dev-python/pygobject-3.42.2/work
>>> Preparing source in /var/tmp/portage/dev-python/pygobject-3.42.2/work/pygobject-3.42.2 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/pygobject-3.42.2/work/pygobject-3.42.2 ...
 * python3_10: running distutils-r1_run_phase python_configure
meson setup --libdir lib64 --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --build.pkg-config-path /var/tmp/portage/dev-python/pygobject-3.42.2/temp/python3.10/pkgconfig:/usr/share/pkgconfig --pkg-config-path /var/tmp/portage/dev-python/pygobject-3.42.2/temp/python3.10/pkgconfig:/usr/share/pkgconfig --native-file /var/tmp/portage/dev-python/pygobject-3.42.2/temp/meson.x86_64-pc-linux-gnu.amd64.ini -Db_pch=false -Dwerror=false --buildtype plain -Dpycairo=enabled -Dtests=false -Dpython=python3.10 /var/tmp/portage/dev-python/pygobject-3.42.2/work/pygobject-3.42.2 /var/tmp/portage/dev-python/pygobject-3.42.2/work/pygobject-3.42.2-python3_10
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/mesonbuild/mesonmain.py", line 153, in run
    return options.run_func(options)
  File "/usr/lib/python3.10/site-packages/mesonbuild/msetup.py", line 301, in run
    app.generate()
  File "/usr/lib/python3.10/site-packages/mesonbuild/msetup.py", line 185, in generate
    self._generate(env)
  File "/usr/lib/python3.10/site-packages/mesonbuild/msetup.py", line 229, in _generate
    intr.run()
  File "/usr/lib/python3.10/site-packages/mesonbuild/interpreter/interpreter.py", line 2724, in run
    super().run()
  File "/usr/lib/python3.10/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 149, in run
    self.evaluate_codeblock(self.ast, start=1)
  File "/usr/lib/python3.10/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 174, in evaluate_codeblock
    raise e
  File "/usr/lib/python3.10/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 167, in evaluate_codeblock
    self.evaluate_statement(cur)
  File "/usr/lib/python3.10/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 182, in evaluate_statement
    self.assignment(cur)
  File "/usr/lib/python3.10/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 567, in assignment
    value = self.evaluate_statement(node.value)
  File "/usr/lib/python3.10/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 180, in evaluate_statement
    return self.function_call(cur)
  File "/usr/lib/python3.10/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 455, in function_call
    res = func(node, func_args, kwargs)
  File "/usr/lib/python3.10/site-packages/mesonbuild/interpreterbase/decorators.py", line 768, in wrapped
    return f(*wrapped_args, **wrapped_kwargs)
  File "/usr/lib/python3.10/site-packages/mesonbuild/interpreterbase/decorators.py", line 768, in wrapped
    return f(*wrapped_args, **wrapped_kwargs)
  File "/usr/lib/python3.10/site-packages/mesonbuild/interpreterbase/decorators.py", line 768, in wrapped
    return f(*wrapped_args, **wrapped_kwargs)
  [Previous line repeated 5 more times]
  File "/usr/lib/python3.10/site-packages/mesonbuild/interpreterbase/decorators.py", line 109, in wrapped
    ret = f(*wrapped_args, **wrapped_kwargs)
  File "/usr/lib/python3.10/site-packages/mesonbuild/interpreterbase/decorators.py", line 127, in wrapped
    return f(*wrapped_args, **wrapped_kwargs)
  File "/usr/lib/python3.10/site-packages/mesonbuild/interpreterbase/decorators.py", line 277, in wrapper
    return f(*nargs, **wrapped_kwargs)
  File "/usr/lib/python3.10/site-packages/mesonbuild/interpreter/interpreter.py", line 1638, in func_dependency
    d = df.lookup(kwargs)
  File "/usr/lib/python3.10/site-packages/mesonbuild/interpreter/dependencyfallbacks.py", line 352, in lookup
    dep = func(kwargs, func_args, func_kwargs)
  File "/usr/lib/python3.10/site-packages/mesonbuild/interpreter/dependencyfallbacks.py", line 93, in _do_dependency
    dep = dependencies.find_external_dependency(name, self.environment, kwargs)
  File "/usr/lib/python3.10/site-packages/mesonbuild/dependencies/detect.py", line 112, in find_external_dependency
    d = c()
  File "/usr/lib/python3.10/site-packages/mesonbuild/dependencies/pkgconfig.py", line 99, in __init__
    self._set_libs()
  File "/usr/lib/python3.10/site-packages/mesonbuild/dependencies/pkgconfig.py", line 384, in _set_libs
    self.link_args, self.raw_link_args = self._search_libs(out, out_raw)
  File "/usr/lib/python3.10/site-packages/mesonbuild/dependencies/pkgconfig.py", line 310, in _search_libs
    args = self.clib_compiler.find_library(lib[2:], self.env,
  File "/usr/lib/python3.10/site-packages/mesonbuild/compilers/mixins/clike.py", line 1118, in find_library
    return self._find_library_impl(libname, env, extra_dirs, code, libtype)
  File "/usr/lib/python3.10/site-packages/mesonbuild/compilers/mixins/clike.py", line 1107, in _find_library_impl
    value = self._find_library_real(libname, env, extra_dirs, code, libtype)
  File "/usr/lib/python3.10/site-packages/mesonbuild/compilers/mixins/clike.py", line 1087, in _find_library_real
    for d in itertools.chain(extra_dirs, self.get_library_dirs(env, elf_class)):
  File "/usr/lib/python3.10/site-packages/mesonbuild/compilers/mixins/clike.py", line 254, in get_library_dirs
    return self._get_library_dirs(env, elf_class).copy()
  File "/usr/lib/python3.10/site-packages/mesonbuild/compilers/mixins/clike.py", line 224, in _get_library_dirs
    files = [f for f in os.listdir(d) if f.endswith('.so') and os.path.isfile(os.path.join(d, f))]
PermissionError: [Errno 13] Permission denied: '/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../lib64'
The Meson build system
Version: 0.62.2
Source dir: /var/tmp/portage/dev-python/pygobject-3.42.2/work/pygobject-3.42.2
Build dir: /var/tmp/portage/dev-python/pygobject-3.42.2/work/pygobject-3.42.2-python3_10
Build type: native build
Project name: pygobject
Project version: 3.42.2
C compiler for the host machine: x86_64-pc-linux-gnu-gcc (gcc 11.3.0 "x86_64-pc-linux-gnu-gcc (Gentoo 11.3.0 p4) 11.3.0")
C linker for the host machine: x86_64-pc-linux-gnu-gcc ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python3.10 found: YES (/usr/bin/python3.10)
Found pkg-config: /usr/bin/x86_64-pc-linux-gnu-pkg-config (1.8.0)
 * ERROR: dev-python/pygobject-3.42.2::gentoo failed (configure phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_configure
 *   environment, line 3636:  Called distutils-r1_src_configure
 *   environment, line 1737:  Called _distutils-r1_run_foreach_impl 'python_configure'
 *   environment, line  722:  Called python_foreach_impl 'distutils-r1_run_phase' 'python_configure'
 *   environment, line 3310:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_configure'
 *   environment, line 2853:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_configure'
 *   environment, line 2851:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_configure'
 *   environment, line 1191:  Called distutils-r1_run_phase 'python_configure'
 *   environment, line 1707:  Called python_configure
 *   environment, line 3106:  Called meson_src_configure '-Dpycairo=enabled' '-Dtests=false' '-Dpython=python3.10'
 *   environment, line 2791:  Called die
 * The specific snippet of code:
 *       "${mesonargs[@]}" ) || die
 * 
 * If you need support, post the output of `emerge --info '=dev-python/pygobject-3.42.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/pygobject-3.42.2::gentoo'`.
 * The complete build log is located at '/var/log/portage/dev-python:pygobject-3.42.2:20220909-143854.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/pygobject-3.42.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/pygobject-3.42.2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/pygobject-3.42.2/work/pygobject-3.42.2'
 * S: '/var/tmp/portage/dev-python/pygobject-3.42.2/work/pygobject-3.42.2'
Comment 1 Mike Gilbert gentoo-dev 2022-09-10 01:08:12 UTC
I suspect the "portage" user does not have read access to one of the following paths:

/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0
/usr/lib/gcc/x86_64-pc-linux-gnu
/usr/lib/gcc
/usr/lib
/usr/lib64
/lib64
/
Comment 2 Mike Gilbert gentoo-dev 2022-09-10 01:15:32 UTC
Actually, it could be missing either read permission or execute permission on those directories.

Anyway, it is likely a failure specific to your system.
Comment 3 Christophe PEREZ 2022-09-10 02:56:49 UTC
(In reply to Mike Gilbert from comment #1)
> I suspect the "portage" user does not have read access to one of the
> following paths:
> 
> /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0
> /usr/lib/gcc/x86_64-pc-linux-gnu
> /usr/lib/gcc
> /usr/lib
> /usr/lib64
> /lib64
> /

You're right. For some reason, /usr/lib64 was 751 and not 755.
And I had to look carefully to see it.
Sorry for the disturbance.