- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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
링크가 복사됨
2 응답
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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.