Installed f77blas.h fails to compile on develop: undefined OPENBLAS_API and OPENBLAS_EXPORT
Mantenedores costumam responder em até 1 dia
Um pull request relacionado já foi integrado.
- #6116 de @martin-frbg — integrado
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 45/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- c, cmake
- Domínio
- api, build-system
Direção de pesquisa
Start by reproducing the failure: install the library and compile the one-line test.c against the installed headers with gcc. The header is generated in Makefile.install and the CMake path from common_interface.h and openblas_config.h, so compare that with how cblas.h already strips OPENBLAS_EXPORT. Done means the installed f77blas.h compiles cleanly on both build paths. Where OPENBLAS_API and OPENBLAS_EXPORT come from is in common.h and exports.h.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
On develop (b366de2d66111344cd867576810ad71651674b9e), the installed f77blas.h fails to compile on its own:
#include <f77blas.h>
int main(void) { return 0; }
gcc -c -I"$PREFIX/include" test.c
With GCC 15.2 this gives 887 errors. The first is at the direct OPENBLAS_EXPORT declaration:
f77blas.h:52:16: error: expected ‘;’ before ‘void’
The following declarations then produce errors such as:
f77blas.h:59:11: error: ‘OPENBLAS_API’ declared as function returning a function
cblas.h on its own compiles.
Makefile.install generates f77blas.h by including openblas_config.h and copying common_interface.h verbatim. The CMake generation path does the same when f77blas.h is enabled.
common_interface.h contains both OPENBLAS_API(name) declarations and a direct OPENBLAS_EXPORT on openblas_set_num_threads_. However, the installed openblas_config.h defines neither macro. Internally, common.h supplies OPENBLAS_API, while exports.h supplies OPENBLAS_EXPORT.
The OPENBLAS_API conversion came from da494a58 ("windows needs declaration to match definition"), merged through #5577. v0.3.34 predates that merge; its common_interface.h uses neither annotation.
The installed header needs handling for both macros in both generation paths. An OPENBLAS_API alias alone still leaves the direct OPENBLAS_EXPORT declaration unresolved. The existing cblas.h generation already removes OPENBLAS_EXPORT; analogous handling for f77blas.h, or suitable public macro definitions, may be appropriate.
Observed after make TARGET=NEOVERSEN1 DYNAMIC_ARCH=0 NO_FORTRAN=1 and installation on aarch64 Linux with GCC 15.2. The CMake path was checked by source inspection. Found with AI assistance.
- Linguagem predominante
- C
- Estrelas
- 7.6k
- Forks
- 1.7k
- Merge médio
- 1d 13h
- PRs com merge (30d)
- 37
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
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de OpenMathLib/OpenBLAS
-
openblas_set_threads_callback_function is a silent no-op on WindowsTalvez já em andamento @martin-frbg assumiu há 10 dias. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 43/100
OpenMathLib/OpenBLAS#6108 · 2 comentários · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
OpenMathLib/OpenBLAS#6104 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 58/100
OpenMathLib/OpenBLAS#6103 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 52/100
OpenMathLib/OpenBLAS#6102 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 65/100
OpenMathLib/OpenBLAS#6100 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de OpenMathLib/OpenBLAS
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
FujiNetWIFI/fujinet-firmware#2079 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 84/100
VirusTotal/yara#2255 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
-
state:needs triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
zed-industries/zed#65836 · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
neutralinojs/neutralinojs#1861 ·
Mantenedores costumam responder em até 1 dia