- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi,
I'm compiling a f90 program in macos (10.4.10). If I use the g95 compiler everything compiles and runs smoothly. When I try ifort, the objects files are created correctly
but the compilation stops with an error while executing
ifort -o MFVneu -O MFVneu.o libSPheno.a
the error message is:
ipo: warning #11021: file format not recognized for /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../..//crt1.o
ipo: warning #11021: file format not recognized for /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../..//libgcc_s.10.4.dylib
ipo: warning #11021: file format not recognized for /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../..//libSystemStubs.a
ld: unknown architecture specification flag: -arch x86_64
ld: Usage: ld [options] file [...]
make: *** [MFV] Error 1
the ipo stuff is related to the optimization and disappears if I use the -O0 flag.
The ld complaint seems serious. Hopefully it's just some environment variable.
If anybody as an idea on what's the problem I would appreciate some help.
Thanks in advance,
snoo
I'm compiling a f90 program in macos (10.4.10). If I use the g95 compiler everything compiles and runs smoothly. When I try ifort, the objects files are created correctly
but the compilation stops with an error while executing
ifort -o MFVneu -O MFVneu.o libSPheno.a
the error message is:
ipo: warning #11021: file format not recognized for /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../..//crt1.o
ipo: warning #11021: file format not recognized for /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../..//libgcc_s.10.4.dylib
ipo: warning #11021: file format not recognized for /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../..//libSystemStubs.a
ld: unknown architecture specification flag: -arch x86_64
ld: Usage: ld [options] file [...]
make: *** [MFV] Error 1
the ipo stuff is related to the optimization and disappears if I use the -O0 flag.
The ld complaint seems serious. Hopefully it's just some environment variable.
If anybody as an idea on what's the problem I would appreciate some help.
Thanks in advance,
snoo
- 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
I'm not a Mac expert, but it looks to me as if you somehow have a mix of 32 and 64-bit paths in use. Are you building for 32 or 64 bits? For more help, please submit an issue to Intel Premier Support.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
I solved the problem. I had the wrong gcc installed.
I had then another linking problem that required running
ranlib -c on the library.
I had then another linking problem that required running
ranlib -c on the library.
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