https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88805
Janne Blomqvist <jb at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jb at gcc dot gnu.org --- Comment #3 from Janne Blomqvist <jb at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #2) > >/usr/bin/ld: a.out: hidden symbol `__cpu_model' in > >/tmp/gcc9/bin/../lib/gcc/x86_64-pc-linux-gnu/9.0.0/libgcc.a(cpuinfo.o) is > >referenced by DSO > > > Could you figure out which shared library references __cpu_model ? I doubt > it is one that GCC just built. > > I suspect it is libc which means your libc is broken. You will most likely > need a newer libc which does not reference __cpu_model any more. libgfortran/generated/matmul_*.c uses __cpu_model. As to why it does that instead of using the function multiversioning support, well, beats me.