openmp support in aarch64-none-elf-gfortran

Hi,

I just recently downloaded the gnu toolchain

when i invoke the openmp flag, it fails

$ aarch64-none-elf-gfortran -c -o mod_constants.fppized.o -fopenmp -O3 -march=native mod_constants.fppized.f90
aarch64-none-elf-gfortran: error: unrecognized command line option '-pthread'

[yhuerta@cn4002 build_base_compsys.0000]$ aarch64-none-elf-gfortran --version
GNU Fortran (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)
) 9.2.1 20191025
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[yhuerta@cn4002 build_base_compsys.0000]$

that is not the case, when i used the gcc9 compiler i downloaded directly from gnu gcc website

$  gcc-gcc9 -c -o mod_constants.fppized.o -fopenmp -O3 -march=native mod_constants.fppized.f90

$

[yhuerta@cn4002 build_base_compsys.0000]$ gcc-gcc9 -v
Using built-in specs.
COLLECT_GCC=gcc-gcc9
COLLECT_LTO_WRAPPER=/home/yhuerta/gcc/local-gcc9/libexec/gcc/aarch64-unknown-lin
ux-gnu/9.2.0/lto-wrapper
Target: aarch64-unknown-linux-gnu
Configured with: ../configure --prefix=/home/yhuerta/gcc/local-gcc9 --program-su
ffix=-gcc9 --enable-languages=c,c++,fortran --disable-multilib
Thread model: posix
gcc version 9.2.0 (GCC)
[yhuerta@cn4002 build_base_compsys.0000]$


do i need to compile aarch64-none-elf-gfortran and add openmp support to it?

thanks

Parents Reply Children
No data
More questions in this forum