[Bug fortran/47571] [4.6 Regression] undefined reference to clock_gettime in Linux build of 02/01/2011

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 1 15:30:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47571

--- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-02-01 15:29:50 UTC ---
For the symbols defined in librt, cf.
http://refspecs.freestandards.org/LSB_4.0.0/LSB-Core-generic/LSB-Core-generic/librt.html

Regarding http://gcc.gnu.org/ml/fortran/2011-01/msg00326.html
>> 2) Uses clock_gettime() if available

and

(In reply to comment #3)
> clock_gettime is defined in librt, so if libgfortran started using librt
> symbols

It probably means that one needs to use libgfortran.spec for that as f951 has
no knowledge whether clock_gettime is available. Is is clear that librt exists
if clock_gettime is available? librt seems to be a Linux-specific library-name
choice. If not, one could consider moving back to a clock_gettime-free
libgfortran.



More information about the Gcc-bugs mailing list