- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
I need to install an older toolset using ifort, but I downloaded the latest version, ifx, from the official website, which caused compatibility issues. Specifically, I encountered an error when make the Makefile :
ld: .../libforutils.a: error adding symbols: file format not recognized
After inspecting the contents of libforutils.a:
file libforutils.a
libforutils.a: current ar archive
ar t libforutils.a
I found that it contains a series of .o files such as MatrixUtils.o.
Running file libforutils.a returned:
MatrixUtils.o: LLVM IR bitcode
Although the .o files are of LLVM type, I can still recognize them with nm without issues—they are not corrupted.
From what I understand, ifx is based on LLVM, which might be causing the issue with ld not recognizing the file format?(In fact, the Makefile still uses xild and xiar, so I modified them to ld and ar )Or it could be something else?
However, I'm not familiar with Fortran, so I’m unsure how to resolve this issue within the ifx toolchain. I would greatly appreciate any guidance on how to fix this.
Thank you in advance for your help!
링크가 복사됨