Opened 3 days ago

Last modified 3 days ago

#71230 new defect

flang-19: omp_lib support is missing

Reported by: loudove Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.10.4
Keywords: arm64, monterey Cc:
Port: flang-19

Description

Compile the sample code in omp.f90 gives the error. It seems that the omp_lib.mod and relevant files are missing from the distribution (are presents in flang-18). Tested on macos 12.7.6 - MacBook Air (M1, 2020).

1) create the test file: cat <<EOT >> omp.f90 program omp

use omp_lib implicit none

!$omp parallel

print *, 'Hello from thread ', omp_get_thread_num()

!$omp end parallel

end program omp EOT

2) compile with: flang-mp-19 -fopenmp -o omp omp.f90

3) compiler output: error: Semantic errors in omp.f90 ./omp.f90:2:9: error: Cannot read module file for module 'omp_lib': Source file 'omp_lib.mod' was not found

use omp_lib

./omp.f90:6:40: error: No explicit type declared for 'omp_get_thread_num'

print *, 'Hello from thread ', omp_get_thread_num()

Change History (1)

comment:1 Changed 3 days ago by jmroot (Joshua Root)

Summary: omp_lib support is missingflang-19: omp_lib support is missing
Note: See TracTickets for help on using tickets.