gcc10: undefined reference to `_gfortran_os_error_at'
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.