Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950978 - dev-libs/libjcat-0.2.2 with dev-python/setuptools-75.9.0 - AttributeError: module distutils has no attribute ccompiler. Did you mean: compilers?
Summary: dev-libs/libjcat-0.2.2 with dev-python/setuptools-75.9.0 - AttributeError: mo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 951055 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-03-09 10:35 UTC by Toralf Förster
Modified: 2025-03-09 22:08 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.03 KB, text/plain)
2025-03-09 10:35 UTC, Toralf Förster
Details
dev-libs:libjcat-0.2.2:20250309-042932.log (dev-libs:libjcat-0.2.2:20250309-042932.log,45.37 KB, text/plain)
2025-03-09 10:35 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,164.17 KB, text/plain)
2025-03-09 10:35 UTC, Toralf Förster
Details
environment (environment,120.53 KB, text/plain)
2025-03-09 10:35 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.58 KB, application/x-xz)
2025-03-09 10:35 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,25.42 KB, application/x-xz)
2025-03-09 10:35 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,5.23 KB, application/x-xz)
2025-03-09 10:35 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,49.04 KB, application/x-xz)
2025-03-09 10:35 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,26.64 KB, application/x-xz)
2025-03-09 10:35 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2025-03-09 10:35:49 UTC
  File "/usr/lib64/gobject-introspection/giscanner/sourcescanner.py", line 298, in _parse
    cc = CCompiler(compiler_name=self._compiler)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/gobject-introspection/giscanner/ccompiler.py", line 175, in __init__
    compiler_name = distutils.ccompiler.get_default_compiler()
                    ^^^^^^^^^^^^^^^^^^^
AttributeError: module 'distutils' has no attribute 'ccompiler'. Did you mean: 'compilers'?
ninja: build stopped: subcommand failed.
 * ERROR: dev-libs/libjcat-0.2.2::gentoo failed (compile phase):

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_systemd-20250306-135502

  UNMASKED:

  [ffmpeg] Requested by sam
  =media-video/ffmpeg-7*

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang version 20.1.0
llvm-config: 20.1.0
Python 3.12.9
go version go1.24.0 linux/amd64
Available Ruby profiles:
  [1]   ruby32 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.85.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.26_p4 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.14_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.6_p7 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.442_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit d01e7a5ec1e20450c62b2b1f6801485bf26543a7
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Mar 9 03:48:28 2025 +0000

    2025-03-09 03:48:27 UTC

emerge -qpvO =dev-libs/libjcat-0.2.2
[ebuild  N    ] dev-libs/libjcat-0.2.2  USE="ed25519 gpg introspection man pkcs7 -gtk-doc -test -vala"
Comment 1 Toralf Förster gentoo-dev 2025-03-09 10:35:50 UTC
Created attachment 920405 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2025-03-09 10:35:51 UTC
Created attachment 920406 [details]
dev-libs:libjcat-0.2.2:20250309-042932.log
Comment 3 Toralf Förster gentoo-dev 2025-03-09 10:35:53 UTC
Created attachment 920407 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2025-03-09 10:35:54 UTC
Created attachment 920408 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2025-03-09 10:35:55 UTC
Created attachment 920409 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2025-03-09 10:35:56 UTC
Created attachment 920410 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2025-03-09 10:35:57 UTC
Created attachment 920411 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2025-03-09 10:35:58 UTC
Created attachment 920412 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2025-03-09 10:35:59 UTC
Created attachment 920413 [details]
temp.tar.xz
Comment 10 Alfred Wingate 2025-03-09 10:51:10 UTC
Not the same issue but it has background information on this area of distutils getting changed in setuptools-75.9.0.

https://github.com/pypa/setuptools/issues/4866
https://github.com/pypa/distutils/pull/295
Comment 11 Niklāvs Koļesņikovs 2025-03-09 16:48:01 UTC
As a heads-up this same issue seems to affect dev-libs/gobject-introspection-1.82.0-r2 as well as dev-libs/json-glib-1.10.6 which in turn makes me suspect it will shop up in other places using g-ir-scanner, too.
Comment 12 Larry the Git Cow gentoo-dev 2025-03-09 17:09:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07bd8814d5e62dd3958aab1be6cd9f013a5ffbad

commit 07bd8814d5e62dd3958aab1be6cd9f013a5ffbad
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-03-09 17:07:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-09 17:08:51 +0000

    profiles: mask new setuptools
    
    Breaks distutils.ccompiler with a lot of fallout. bug #950978 and
    many others.
    
    Included preemptive 76.0.0 mask as it doesn't seem to fix any of this.
    
    Closes: https://bugs.gentoo.org/950978
    Closes: https://bugs.gentoo.org/950981
    Closes: https://bugs.gentoo.org/950982
    Closes: https://bugs.gentoo.org/950983
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 10 ++++++++++
 1 file changed, 10 insertions(+)
Comment 13 Kris Scott 2025-03-09 22:08:37 UTC
*** Bug 951055 has been marked as a duplicate of this bug. ***