Re: gfortran, OpenMP and static linking

2021-04-04 Thread Bernhard Reutner-Fischer via Fortran
Harald, On Sat, 03 Apr 2021 23:24:52 +0200 Bernhard Reutner-Fischer wrote: > On 3 April 2021 20:55:39 CEST, Harald Anlauf via Fortran > wrote: > >Dear all, > > > >is there a reason that one should not be able to statically link a > >Fortran binary that has been compiled with -fopenmp? > > M

Re: gfortran, OpenMP and static linking

2021-04-04 Thread Harald Anlauf via Fortran
Hi Bernhard, > $ gfortran -o omp -fopenmp omp.f90 -static -Wl,--whole-archive -lpthread > -Wl,--no-whole-archive && OMP_NUM_THREADS=2 ./omp that does indeed do the trick! As suggested in your other mail, I should ask Jakub for his opinion. (Statically compiling/linking on the same machine with

Re: [Patch, fortran] PR99818 - [10/11 Regression] ICE in gfc_get_tree_for_caf_expr, at fortran/trans-expr.c:2186

2021-04-04 Thread Paul Richard Thomas via Fortran
Hi Jerry, A belated thanks is in order. Pushed as fc27115d6107f219e6f3dc610c99210005fe9dc5. I'll wait a little while for 10-branch since it is an ICE on wrong code. Regards Paul On Fri, 2 Apr 2021 at 04:11, Jerry DeLisle wrote: > Paul, > > This looks OK to me for Trunk. I believe 10 is in fr