gcc10: undefined reference to `_gfortran_os_error_at'

Solution In Progress - Updated -

Issue

  • libgfortran seems to be missing _gfortran_os_error_at
  • Compilation while using libgfortran fails with
g++  '-shared' '-Wl,-z,defs' '-Wl,-z,now' ascii.o -lgfortran -lunistring -o lib.so
/opt/rh/devtoolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/ld: ascii.o: in function `ascii':
ascii:(.text+0xd7): undefined reference to `_gfortran_os_error_at'
collect2: error: ld returned 1 exit status

Environment

  • Red Hat Enterprise Linux 7
  • Developer toolset 10

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content