------- Comment #10 from burnus at gcc dot gnu dot org 2010-07-16 07:09 ------- (In reply to comment #9) > (In reply to comment #6) > > Please don't keep reopening this bug. > > The symbols are weak undefs because libgfortran doesn't require (and > > shouldn't > > require) libpthread, it is thread-safe only when libpthread is linked in. > > > > After reviewing the thread (and recalling others along this line), > Jakub, if you want to make the combination of -static -fopenmp > a fatal error for gfortran, a patch is pre-approved.
I am against it - if you "properly" link it, e.g. using -Wl,--whole-archive or with a POSIX Threads (pthread) library, which is linked with "ld -r", it works. That's a similar issue to -m(no-)align-double: It leads to difficult to understand crashes, but it is nontrivial to diagnose properly as there are valid/working combinations - even though most combinations lead to crashes. -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44927