Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950982 - app-text/poppler-25.0.3 fails to build with AttributeError module 'distutils' has no attribute 'ccompiler'
Summary: app-text/poppler-25.0.3 fails to build with AttributeError module 'distutils'...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-09 12:38 UTC by 154koz3j6
Modified: 2025-03-09 17:09 UTC (History)
4 users (show)

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


Attachments
Build.log (build.log,432.40 KB, text/x-log)
2025-03-09 12:38 UTC, 154koz3j6
Details
Emerge --info (emerge-info.txt,9.72 KB, text/plain)
2025-03-09 12:38 UTC, 154koz3j6
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 154koz3j6 2025-03-09 12:38:32 UTC
Created attachment 920424 [details]
Build.log

As per the title. Please see the attached log and emerge --info.
Comment 1 154koz3j6 2025-03-09 12:38:45 UTC
Created attachment 920425 [details]
Emerge --info
Comment 2 154koz3j6 2025-03-09 12:41:43 UTC
The key error seems to be:

AttributeError: module 'distutils' has no attribute 'ccompiler'. Did you mean: 'compilers'?
Comment 3 Andrey Grozin gentoo-dev 2025-03-09 14:11:56 UTC
^[[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'?
Comment 4 YiFei Zhu 2025-03-09 15:57:46 UTC
Masking =dev-python/setuptools-75.9.0 fixes this for me
Comment 5 Larry the Git Cow gentoo-dev 2025-03-09 17:09:31 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(+)