Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Build failure on Linux with 3.14 no-GIL

Đang mở
#247 2 bình luận 2 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
c, python
Lĩnh vực
build-system

Hướng nghiên cứu

Bắt đầu với frida/_frida/extension.c, nơi quá trình build include pyconfig.h, và kiểm tra lệnh build trên Linux cùng các đường dẫn include của Python 3.14t. Tái hiện lỗi bằng workflow pip hoặc make đã nêu và so sánh với vị trí của pyconfig.h. Hoàn thành nghĩa là frida wheel được build thành công trên Linux với Python 3.14 no-GIL.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

...
  [294/295] Compiling C object frida/_frida/_frida.abi3.so.p/extension.c.o
  FAILED: frida/_frida/_frida.abi3.so.p/extension.c.o
  /usr/bin/cc -Ifrida/_frida/_frida.abi3.so.p -Ifrida/_frida -I../frida/_frida -Isubprojects/frida-core/src/api -I../subprojects/frida-core/src/api -Isubprojects/frida-gum -I../subprojects/frida-gum -Isubprojects/frida-gum/gum -I../subprojects/frida-gum/gum -I../subprojects/frida-gum/gum/arch-x86 -I../subprojects/frida-gum/gum/arch-arm -I../subprojects/frida-gum/gum/arch-arm64 -I../subprojects/frida-gum/gum/arch-mips -Isubprojects/frida-gum/libs -I../subprojects/frida-gum/libs -Isubprojects/frida-gum/libs/gum/heap -I../subprojects/frida-gum/libs/gum/heap -Isubprojects/frida-gum/libs/gum/prof -I../subprojects/frida-gum/libs/gum/prof -I../subprojects/frida-gum/gum/backend-linux/include -I../subprojects/frida-gum/gum/backend-elf -I../subprojects/frida-gum/gum/backend-libunwind/include -Isubprojects/frida-gum/bindings -I../subprojects/frida-gum/bindings -I/usr/lib/include/python3.14t -I/tmp/pip-install-hvt653oy/frida_f97db7b061b24d39a0077a8f69dd0e9a/deps/sdk-linux-x86_64/include/glib-2.0 -I/tmp/pip-install-hvt653oy/frida_f97db7b061b24d39a0077a8f69dd0e9a/deps/sdk-linux-x86_64/lib/glib-2.0/include -I/tmp/pip-install-hvt653oy/frida_f97db7b061b24d39a0077a8f69dd0e9a/deps/sdk-linux-x86_64/include -I/tmp/pip-install-hvt653oy/frida_f97db7b061b24d39a0077a8f69dd0e9a/deps/sdk-linux-x86_64/include/gee-0.8 -I/tmp/pip-install-hvt653oy/frida_f97db7b061b24d39a0077a8f69dd0e9a/deps/sdk-linux-x86_64/include/json-glib-1.0 -I/tmp/pip-install-hvt653oy/frida_f97db7b061b24d39a0077a8f69dd0e9a/deps/sdk-linux-x86_64/include/capstone -I/tmp/pip-install-hvt653oy/frida_f97db7b061b24d39a0077a8f69dd0e9a/deps/sdk-linux-x86_64/include/libsoup-3.0 -I/tmp/pip-install-hvt653oy/frida_f97db7b061b24d39a0077a8f69dd0e9a/deps/sdk-linux-x86_64/include/quickjs -I/tmp/pip-install-hvt653oy/frida_f97db7b061b24d39a0077a8f69dd0e9a/deps/sdk-linux-x86_64/include/gio-unix-2.0 -I/tmp/pip-install-hvt653oy/frida_f97db7b061b24d39a0077a8f69dd0e9a/deps/sdk-linux-x86_64/include/libusb-1.0 -I/tmp/pip-install-hvt653oy/frida_f97db7b061b24d39a0077a8f69dd0e9a/deps/sdk-linux-x86_64/include/nice -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Os -g -ffunction-sections -fdata-sections -fPIC -pthread -DNGTCP2_STATICLIB -DNGHTTP2_STATICLIB -DGUM_STATIC -DFFI_STATIC_BUILD -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS -DPy_LIMITED_API=0x03070000 -MD -MQ frida/_frida/_frida.abi3.so.p/extension.c.o -MF frida/_frida/_frida.abi3.so.p/extension.c.o.d -o frida/_frida/_frida.abi3.so.p/extension.c.o -c ../frida/_frida/extension.c
  ../frida/_frida/extension.c:33:11: fatal error: pyconfig.h: No such file or directory
     33 | # include <pyconfig.h>
        |           ^~~~~~~~~~~~
  compilation terminated.
  ninja: build stopped: subcommand failed.
  INFO: autodetecting backend as ninja
  INFO: calculating backend command to run: /tmp/pip-install-hvt653oy/frida_f97db7b061b24d39a0077a8f69dd0e9a/deps/toolchain-linux-x86_64/bin/ninja
  Command '['/workspaces/venv/bin/python3', '/tmp/pip-install-hvt653oy/frida_f97db7b061b24d39a0077a8f69dd0e9a/releng/meson/meson.py', 'compile']' returned non-zero exit status 1.
  make: *** [Makefile:4: all] Error 1
  Traceback (most recent call last):
    File "/workspaces/venv/lib/python3.14t/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
      main()
      ~~~~^^
    File "/workspaces/venv/lib/python3.14t/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
                               ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
    File "/workspaces/venv/lib/python3.14t/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                          metadata_directory)
                                          ^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-i9wel0aa/overlay/lib/python3.14t/site-packages/setuptools/build_meta.py", line 415, in build_wheel
      return self._build_with_temp_dir(
             ~~~~~~~~~~~~~~~~~~~~~~~~~^
          ['bdist_wheel'],
          ^^^^^^^^^^^^^^^^
      ...<3 lines>...
          self._arbitrary_args(config_settings),
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      )
      ^
    File "/tmp/pip-build-env-i9wel0aa/overlay/lib/python3.14t/site-packages/setuptools/build_meta.py", line 397, in _build_with_temp_dir
      self.run_setup()
      ~~~~~~~~~~~~~~^^
    File "/tmp/pip-build-env-i9wel0aa/overlay/lib/python3.14t/site-packages/setuptools/build_meta.py", line 313, in run_setup
      exec(code, locals())
      ~~~~^^^^^^^^^^^^^^^^
    File "<string>", line 130, in <module>
    File "<string>", line 18, in main
    File "/tmp/pip-build-env-i9wel0aa/overlay/lib/python3.14t/site-packages/setuptools/__init__.py", line 108, in setup
      return distutils.core.setup(**attrs)
             ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
    File "/tmp/pip-build-env-i9wel0aa/overlay/lib/python3.14t/site-packages/setuptools/_distutils/core.py", line 184, in setup
      return run_commands(dist)
    File "/tmp/pip-build-env-i9wel0aa/overlay/lib/python3.14t/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
      dist.run_commands()
      ~~~~~~~~~~~~~~~~~^^
    File "/tmp/pip-build-env-i9wel0aa/overlay/lib/python3.14t/site-packages/setuptools/_distutils/dist.py", line 964, in run_commands
      self.run_command(cmd)
      ~~~~~~~~~~~~~~~~^^^^^
    File "/tmp/pip-build-env-i9wel0aa/overlay/lib/python3.14t/site-packages/setuptools/dist.py", line 945, in run_command
      super().run_command(command)
      ~~~~~~~~~~~~~~~~~~~^^^^^^^^^
    File "/tmp/pip-build-env-i9wel0aa/overlay/lib/python3.14t/site-packages/setuptools/_distutils/dist.py", line 983, in run_command
      cmd_obj.run()
      ~~~~~~~~~~~^^
    File "/tmp/pip-build-env-i9wel0aa/overlay/lib/python3.14t/site-packages/setuptools/command/bdist_wheel.py", line 373, in run
      self.run_command("build")
      ~~~~~~~~~~~~~~~~^^^^^^^^^
    File "/tmp/pip-build-env-i9wel0aa/overlay/lib/python3.14t/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
      self.distribution.run_command(command)
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
    File "/tmp/pip-build-env-i9wel0aa/overlay/lib/python3.14t/site-packages/setuptools/dist.py", line 945, in run_command
      super().run_command(command)
      ~~~~~~~~~~~~~~~~~~~^^^^^^^^^
    File "/tmp/pip-build-env-i9wel0aa/overlay/lib/python3.14t/site-packages/setuptools/_distutils/dist.py", line 983, in run_command
      cmd_obj.run()
      ~~~~~~~~~~~^^
    File "/tmp/pip-build-env-i9wel0aa/overlay/lib/python3.14t/site-packages/setuptools/_distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
      ~~~~~~~~~~~~~~~~^^^^^^^^^^
    File "/tmp/pip-build-env-i9wel0aa/overlay/lib/python3.14t/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
      self.distribution.run_command(command)
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
    File "/tmp/pip-build-env-i9wel0aa/overlay/lib/python3.14t/site-packages/setuptools/dist.py", line 945, in run_command
      super().run_command(command)
      ~~~~~~~~~~~~~~~~~~~^^^^^^^^^
    File "/tmp/pip-build-env-i9wel0aa/overlay/lib/python3.14t/site-packages/setuptools/_distutils/dist.py", line 983, in run_command
      cmd_obj.run()
      ~~~~~~~~~~~^^
    File "/tmp/pip-build-env-i9wel0aa/overlay/lib/python3.14t/site-packages/setuptools/command/build_ext.py", line 93, in run
      _build_ext.run(self)
      ~~~~~~~~~~~~~~^^^^^^
    File "/tmp/pip-build-env-i9wel0aa/overlay/lib/python3.14t/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
      self.build_extensions()
      ~~~~~~~~~~~~~~~~~~~~~^^
    File "/tmp/pip-build-env-i9wel0aa/overlay/lib/python3.14t/site-packages/setuptools/_distutils/command/build_ext.py", line 476, in build_extensions
      self._build_extensions_serial()
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
    File "/tmp/pip-build-env-i9wel0aa/overlay/lib/python3.14t/site-packages/setuptools/_distutils/command/build_ext.py", line 502, in _build_extensions_serial
      self.build_extension(ext)
      ~~~~~~~~~~~~~~~~~~~~^^^^^
    File "<string>", line 120, in build_extension
    File "/usr/lib/python3.14/subprocess.py", line 577, in run
      raise CalledProcessError(retcode, process.args,
                               output=stdout, stderr=stderr)
  subprocess.CalledProcessError: Command '['make']' returned non-zero exit status 2.
  error: subprocess-exited-with-error
  
  × Building wheel for frida (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: /workspaces/venv/bin/python3.14t /workspaces/venv/lib/python3.14t/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /tmp/tmpom6luv9o
  cwd: /tmp/pip-install-hvt653oy/frida_f97db7b061b24d39a0077a8f69dd0e9a
  Building wheel for frida (pyproject.toml) ... error
  ERROR: Failed building wheel for frida
Failed to build frida
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (frida)

Even though

(venv) @clin1234 ➜ /workspaces $ ls /usr/include/python3.14t/pyconfig.h 
/usr/include/python3.14t/pyconfig.h
Ngôn ngữ chính
Python
Star
873
Fork
173
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của frida/frida-python

Tất cả issue của frida/frida-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.