Re: [PATCH] libgomp: Revise libgomp/Fortran support conditionals
Thomas Schwinge <[email protected]> Thu, 30 Jul 2026 15:15:33 +0200
| Newsgroups | gmane.comp.gcc.patches,gmane.comp.gcc.fortran |
|---|---|
| Message-ID | <[email protected]> |
Hi Peter! On 2026-07-30T03:06:39+0200, Peter0x44 <[email protected]> wrote: > On 2026-07-29 10:41, Thomas Schwinge wrote: >> [...] revise libgomp/Fortran support conditionals generally,=20 > Unfortunately, this patch doesn't seem to fix the problem in my=20 > circumstance. The CI run here: > https://github.com/Peter0x44/w64devkit/commit/22a780033053c041af05a6ff9c3= 012454ea628fe > https://github.com/Peter0x44/w64devkit/actions/runs/30501305847/job/90741= 350286#step:9:29 > > > Still produces a toolchain which fails with: > > gfortran bruh.f90 -fopenmp > bruh.f90:2:7: > > 2 | use omp_lib > | 1 > Fatal Error: Cannot open module file 'omp_lib.mod' for reading at (1):=20 > No such file or directory > compilation terminated. > > From this issue. > > https://github.com/skeeto/w64devkit/issues/395 I'm confirming that broken behavior with your <https://github.com/Peter0x44/w64devkit/blob/22a780033053c041af05a6ff9c3012= 454ea628fe/src/crossgcc-libgomp-gfortran-path.patch>. But: that 'crossgcc-libgomp-gfortran-path.patch' isn't the patch I've sent, but is some mangled variant of it, and applying that one doesn't change 'libgomp/configure.ac', 'libgomp/configure' in the expected way. Things certainly work fine if you correctly apply the patch I've sent: $ find ~/W/ -name omp_lib\* [...]/W/lib/gcc/x86_64-w64-mingw32/16.1.0/finclude/omp_lib.mod [...]/W/lib/gcc/x86_64-w64-mingw32/16.1.0/finclude/omp_lib_kinds.mod [...]/W/lib/gcc/x86_64-w64-mingw32/16.1.0/finclude/omp_lib.f90 [...]/W/lib/gcc/x86_64-w64-mingw32/16.1.0/finclude/omp_lib.h $ WINEPATH=3D$HOME/W/bin wine64 gfortran.exe -fopenmp o.f90 0138:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE= _INFORMATION $ OMP_NUM_THREADS=3D5 wine64 ./a.exe Hello from thread 3 Hello from thread 2 Hello from thread 1 Hello from thread 4 Hello from thread 0 Gr=C3=BC=C3=9Fe Thomas