Cannot compile code in arm64 machine

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Cannot compile code in arm64 machine

shirley breuer via cfe-dev
Hello;

I am trying to compile fortran code in a arm64 machine.  I built LLVM
using the -DLLVM_TARGETS_TO_BUILD="ARM;X86;AArch64" option.  But when I type:

flang --target=arm64 appft.f -o appft

I get the following error:

clang-10: error: unknown argument: '-fc1'
clang-10: error: unknown argument: '-triple'
clang-10: error: no such file or directory: 'aarch64'


Can you please tell me how to resolve this?

Thank you very much
_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: Cannot compile code in arm64 machine

shirley breuer via cfe-dev
+ flang-dev

Which `flang` are you using? The error that you are getting suggests
that it's not the one from llvm-project:

https://github.com/llvm/llvm-project/blob/main/flang/tools/f18/flang

-Andrzej

On 20/12/2020 01:51, Arnamoy Bhattacharyya via cfe-dev wrote:

> Hello;
>
> I am trying to compile fortran code in a arm64 machine.  I built LLVM
> using the -DLLVM_TARGETS_TO_BUILD="ARM;X86;AArch64" option.  But when I type:
>
> flang --target=arm64 appft.f -o appft
>
> I get the following error:
>
> clang-10: error: unknown argument: '-fc1'
> clang-10: error: unknown argument: '-triple'
> clang-10: error: no such file or directory: 'aarch64'
>
>
> Can you please tell me how to resolve this?
>
> Thank you very much
> _______________________________________________
> cfe-dev mailing list
> [hidden email]
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev