https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83436
--- Comment #3 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- Daan, Works for me here. It could be that the compiler is trying to use a wrong library version. Did you build gfortran yourself? What system are you running on?