linux-26.04-x64 builds don't start on CPUs without AVX2

Đang mở
#1,390 2 bình luận 0 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
57/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, python, typescript
Lĩnh vực
devops, infrastructure

Hướng nghiên cứu

The report names the ubuntu-26.04 x64 Python builds and shows reproduction commands using readelf and qemu-x86_64; it does not identify a repository file or test. Start by tracing how setup-python selects or downloads these builds, then check the build metadata for Python 3.11 through 3.15. Done when the affected builds start under the reported Westmere emulation, or the x86-64-v3 requirement is confirmed as intended.

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

Mô tả

The ubuntu-26.04 x64 build of 3.12.16 is marked as needing x86-64-v3, so it refuses to start on anything older than Haswell. Is that intended? We ran into it testing wheels under qemu with an older CPU model.

tar -xzf python-3.12.16-linux-26.04-x64.tar.gz -C py
readelf -n py/bin/python3.12 | grep "ISA needed"
#   x86 ISA needed: x86-64-baseline, x86-64-v2, x86-64-v3
LD_LIBRARY_PATH=py/lib qemu-x86_64 -cpu Westmere py/bin/python3.12 -S -c pass
# py/bin/python3.12: CPU ISA level is lower than required

Same command with -cpu Haswell runs fine. Probably not just 3.12, in our CI 3.11 through 3.15 on ubuntu-26.04 all crashed on an emulated Westmere.

Ngôn ngữ chính
TypeScript
Star
2.3k
Fork
752
Merge trung bình
22 ngày 15 giờ
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

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 actions/setup-python

Tất cả issue của actions/setup-python

Issue tương tự

Thêm issue về TypeScript

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.