- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
I am attempting to compile a sicentific computational code (not written by myself), but during the make process I keep getting the following error towards the end of the build:
ifort: error #10236: File not found: '___pthread_once'
The compiler works fine on all of the other files until this point in the make process. Does anyone have an idea of what should be done to amerliorate this error? Thanks
ifort: error #10236: File not found: '___pthread_once'
The compiler works fine on all of the other files until this point in the make process. Does anyone have an idea of what should be done to amerliorate this error? Thanks
- Etiquetas:
- Intel® Fortran Compiler
Enlace copiado
2 Respuestas
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Look in your source files and makefile for "pthread_once".
The error is probably caused by an error in the makefile, which causes the compiler to hand over a presumed object file named "___pthread_once" to the linker, and the linker cannot find a file with that name.
The error is probably caused by an error in the makefile, which causes the compiler to hand over a presumed object file named "___pthread_once" to the linker, and the linker cannot find a file with that name.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
It looks like a symbol decorations issue. The pthread library defines both pthread_once (with no leading underscore) and __pthread_once (with two leading underscores). The code you're trying to compile seems to require the latter (although, I guess it's intended for internal use only), and it's getting an extra underscore somehow.
As mecej4 suggests, check if the symbol is defined correctly ---in compiler directives or bind(C) attributes.

Responder
Opciones de temas
- Suscribirse a un feed RSS
- Marcar tema como nuevo
- Marcar tema como leído
- Flotar este Tema para el usuario actual
- Favorito
- Suscribir
- Página de impresión sencilla