GCC is unable to compile mathplot

Aberta
#148 4 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
20/100
Tipo de issue
Bug
Clareza
Precisa de esclarecimento
Status de atividade
Pouca atividade
Stack de tecnologia
cpp
Domínio
compilers

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
C++
Estrelas
66
Forks
13
Merge médio
12h 42min
PRs com merge (30d)
9

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de sebsjames/mathplot

Todas as issues de sebsjames/mathplot

Issues semelhantes

Mais issues de C++

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.