Summary: | app-text/poppler-25.0.3 fails to build with AttributeError module 'distutils' has no attribute 'ccompiler' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | 154koz3j6 |
Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | 154koz3j6, grozin, leonchik1976, zhuyifei1999 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Build.log
Emerge --info |
Created attachment 920425 [details]
Emerge --info
The key error seems to be: AttributeError: module 'distutils' has no attribute 'ccompiler'. Did you mean: 'compilers'? ^[[31mFAILED: ^[[0mglib/Poppler-0.18.gir /var/tmp/portage/app-text/poppler-25.03.0/work/poppler-25.03.0_build/glib/Poppler-0.18.gir cd /var/tmp/portage/app-text/poppler-25.03.0/work/poppler-25.03.0_build/glib && /usr/bin/g-ir-scanner --add-include-path=/var/tmp/port\ age/app-text/poppler-25.03.0/work/poppler-25.03.0/glib --warn-all --namespace=Poppler --nsversion=0.18 --no-libtool --library=poppler-\ glib --library=poppler --include=GObject-2.0 --include=Gio-2.0 --include=cairo-1.0 --pkg-export=poppler-glib --c-include=poppler.h -I/\ var/tmp/portage/app-text/poppler-25.03.0/work/poppler-25.03.0/glib -I/var/tmp/portage/app-text/poppler-25.03.0/work/poppler-25.03.0_bu\ ild/glib -I/usr/include -I/usr/lib64/libffi/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libmount -I/u\ sr/include/blkid -I/usr/include/cairo -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include -I/usr/include/freetype2 -I/usr/incl\ ude/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -L/var/tmp/portage/app-text/poppler-25.03.0\ /work/poppler-25.03.0_build -L/var/tmp/portage/app-text/poppler-25.03.0/work/poppler-25.03.0_build/glib /var/tmp/portage/app-text/popp\ ler-25.03.0/work/poppler-25.03.0/glib/poppler-action.cc /var/tmp/portage/app-text/poppler-25.03.0/work/poppler-25.03.0/glib/poppler-da\ te.cc /var/tmp/portage/app-text/poppler-25.03.0/work/poppler-25.03.0/glib/poppler-document.cc /var/tmp/portage/app-text/poppler-25.03.\ 0/work/poppler-25.03.0/glib/poppler-page.cc /var/tmp/portage/app-text/poppler-25.03.0/work/poppler-25.03.0/glib/poppler-attachment.cc \ /var/tmp/portage/app-text/poppler-25.03.0/work/poppler-25.03.0/glib/poppler-form-field.cc /var/tmp/portage/app-text/poppler-25.03.0/wo\ rk/poppler-25.03.0/glib/poppler-annot.cc /var/tmp/portage/app-text/poppler-25.03.0/work/poppler-25.03.0/glib/poppler-layer.cc /var/tmp\ /portage/app-text/poppler-25.03.0/work/poppler-25.03.0/glib/poppler-movie.cc /var/tmp/portage/app-text/poppler-25.03.0/work/poppler-25\ .03.0/glib/poppler-media.cc /var/tmp/portage/app-text/poppler-25.03.0/work/poppler-25.03.0/glib/poppler.cc /var/tmp/portage/app-text/p\ oppler-25.03.0/work/poppler-25.03.0/glib/poppler-cached-file-loader.cc /var/tmp/portage/app-text/poppler-25.03.0/work/poppler-25.03.0/\ glib/poppler-input-stream.cc /var/tmp/portage/app-text/poppler-25.03.0/work/poppler-25.03.0/glib/poppler-structure-element.cc /var/tmp\ /portage/app-text/poppler-25.03.0/work/poppler-25.03.0/glib/poppler-action.h /var/tmp/portage/app-text/poppler-25.03.0/work/poppler-25\ .03.0/glib/poppler-date.h /var/tmp/portage/app-text/poppler-25.03.0/work/poppler-25.03.0/glib/poppler-document.h /var/tmp/portage/app-\ text/poppler-25.03.0/work/poppler-25.03.0/glib/poppler-page.h /var/tmp/portage/app-text/poppler-25.03.0/work/poppler-25.03.0/glib/popp\ ler-attachment.h /var/tmp/portage/app-text/poppler-25.03.0/work/poppler-25.03.0/glib/poppler-form-field.h /var/tmp/portage/app-text/po\ ppler-25.03.0/work/poppler-25.03.0/glib/poppler-annot.h /var/tmp/portage/app-text/poppler-25.03.0/work/poppler-25.03.0/glib/poppler-la\ yer.h /var/tmp/portage/app-text/poppler-25.03.0/work/poppler-25.03.0/glib/poppler-movie.h /var/tmp/portage/app-text/poppler-25.03.0/wo\ rk/poppler-25.03.0/glib/poppler-media.h /var/tmp/portage/app-text/poppler-25.03.0/work/poppler-25.03.0/glib/poppler.h /var/tmp/portage\ /app-text/poppler-25.03.0/work/poppler-25.03.0/glib/poppler-structure-element.h /var/tmp/portage/app-text/poppler-25.03.0/work/poppler\ -25.03.0_build/glib/poppler-enums.c /var/tmp/portage/app-text/poppler-25.03.0/work/poppler-25.03.0_build/glib/poppler-enums.h /var/tmp\ /portage/app-text/poppler-25.03.0/work/poppler-25.03.0_build/glib/poppler-features.h /var/tmp/portage/app-text/poppler-25.03.0/work/po\ ppler-25.03.0_build/glib/poppler-macros.h --output /var/tmp/portage/app-text/poppler-25.03.0/work/poppler-25.03.0_build/glib/Poppler-0\ .18.gir Traceback (most recent call last): File "/usr/bin/g-ir-scanner", line 104, in <module> sys.exit(scanner_main(sys.argv)) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 601, in scanner_main ss, filenames = create_source_scanner(options, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 468, in create_source_scanner ss.parse_files(filenames) File "/usr/lib64/gobject-introspection/giscanner/sourcescanner.py", line 266, in parse_files self._parse(headers) 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'? Masking =dev-python/setuptools-75.9.0 fixes this for me 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(+) |
Created attachment 920424 [details] Build.log As per the title. Please see the attached log and emerge --info.