https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69953
--- Comment #23 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- (In reply to Vincent Lefèvre from comment #22) > I get the same kind of errors with "make check" for GMP 6.1.1 by using GCC > 6.2.1 and LTO (-flto=jobserve -fuse-linker-plugin), e.g. > > /tmp/ccZvS3pG.ltrans0.ltrans.o: In function `main': > <artificial>:(.text.startup+0xc): undefined reference to `tests_start' > <artificial>:(.text.startup+0x17): undefined reference to `mp_trace_base' > <artificial>:(.text.startup+0x43): undefined reference to `__gmpn_random' > [...] > > but this is plain C, not C++. Is this the same bug? (I'm wondering because > this bug is attributed to the c++ component.) No, this must be a different issue.