https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85768
Bug ID: 85768 Summary: FreeBSD bootstrap fails due to undefined reference to 'backtrace' Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: andreast at gcc dot gnu.org Target Milestone: --- A recent commit (260054) broke bootstrap on FreeBSD. The reason is an undefined reference to 'backtrace'. This function is available on FreeBSD too but not in libc. It is available in libexecinfo. A quick hack to linkage.m4 to add this library if found showed a 37 failure count instead of 7k+ without. I do not know the right to link an additional library for debug purposes. Also, this might be applicable to NetBSD too, don't have it here but the man page of backtrace notes that the function appeared in NetBSD 7.0 and FreeBSD 10.