https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117177

Sergei Trofimovich <slyfox at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |slyfox at gcc dot gnu.org

--- Comment #4 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
I suspect a similar regression on python-3.12.7. Bisected to the same `gcc`
commit.

The reproducer:

  # build gcc
  $ ~/dev/git/gcc/configure --disable-multilib --disable-bootstrap
--disable-lto --disable-libsanitizer --disable-libstdcxx-pch
--enable-languages=c,c++ --disable-libgomp --disable-libquadmath
--disable-libvtv 'CFLAGS=-O1 -g0' 'CXXFLAGS=-O1 -g0' 'LDFLAGS=-O1 -g0'
--prefix=/tmp/gb/__i__
  $ make -j$(nproc)
  $ make install -j$(nproc)

  # build python
  $ wget https://www.python.org/ftp/python/3.12.7/Python-3.12.7.tar.xz
  $ tar xf Python-3.12.7.tar.xz
  $ cd Python-3.12.7
  $ ./configure CC=$PWD/../__i__/bin/gcc CXX=$PWD/../__i__/bin/g++
  $ make

./_bootstrap_python ./Programs/_freeze_module.py abc ./Lib/abc.py
Python/frozen_modules/abc.h
Fatal Python error: _PyImport_InitCore: failed to initialize importlib
Python runtime state: preinitialized
ImportError: Frozen object named '_frozen_importlib' is invalid

Current thread 0x00007f77c28efb80 (most recent call first):
  <no Python frame>
make: *** [Makefile:1311: Python/frozen_modules/abc.h] Error 1

$ $PWD/../__i__/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/tmp/gb/Python-3.12.7/../__i__/bin/gcc
COLLECT_LTO_WRAPPER=/tmp/gb/__i__/libexec/gcc/x86_64-pc-linux-gnu/15.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /home/slyfox/dev/git/gcc/configure --disable-multilib
--disable-bootstrap --disable-lto --disable-libsanitizer
--disable-libstdcxx-pch --enable-languages=c,c++ --disable-libgomp
--disable-libquadmath --disable-libvtv CFLAGS='-O1 -g0' CXXFLAGS='-O1 -g0'
LDFLAGS='-O1 -g0' --prefix=/tmp/gb/__i__ : (reconfigured)
/home/slyfox/dev/git/gcc/configure --disable-multilib --disable-bootstrap
--disable-lto --disable-libsanitizer --disable-libstdcxx-pch
--enable-languages=c,c++ --disable-libgomp --disable-libquadmath
--disable-libvtv CFLAGS='-O1 -g0' CXXFLAGS='-O1 -g0' LDFLAGS='-O1 -g0'
--prefix=/tmp/gb/__i__
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 15.0.0 20241016 (experimental) (GCC)

Reply via email to