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

GCC is unable to compile mathplot

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
20/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
cpp
Lĩnh vực
compilers

Hướng nghiên cứu

Start with GCC Bug 124888 (linked in the issue) to understand the miscompilation the std::function usage triggers, then reproduce it by building mathplot with GCC 16.1+ (CMake configure and build). Study the two workarounds documented in the bug report and commits aeb0a83 and 24901af, which introduced the code path exposing it. Done means mathplot compiles cleanly under GCC without breaking the Clang build; note the maintainer is currently waiting on an upstream GCC fix, so confirm scope with them before investing.

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

Mô tả

At present, the GCC compiler almost compiles mathplot core. In fact, it WAS able to compile mathplot (at GCC version 16.1+) until I fixed the last mathplot architecture bug with aeb0a83 and then, later 24901af. The fix reveals a bug in GCC documented in Bug 124888.

I await a fix in GCC, as I don't feel I can implement either of the workarounds described in the bug . I also tried hacking around with the location of the std::function objects that I used without success.

Ngôn ngữ chính
C++
Star
66
Fork
13
Merge trung bình
12 giờ 42 phút
Pull request đã merge (30 ngày)
9

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 sebsjames/mathplot

Tất cả issue của sebsjames/mathplot

Issue tương tự

Thêm issue về C++

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.