https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114233
--- Comment #1 from Iain Sandoe <iains at gcc dot gnu.org> --- note Darwin's linker does not, by default permit symbols to be undefined. If the test case requires allowing undefined symbols to complete, then either we need to specify them thus: -Wl,-U,_XXXXXXX (for each symbol) or if they are unknown at build time, but required dynamically at runtime... -Wl,-undefined,dynamic_lookup ( I am not sure if this is a requirement of the test, or some artefact of the test case reduction ).