https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124512
--- Comment #8 from Christopher Albert <albert at tugraz dot at> --- Reproduced on cfarm428.cfarm.net (NetBSD 10.1, aarch64, 16 cores): $ uname -srm NetBSD 10.1 evbarm **Build 1 failure:** undefined reference to host_detect_local_cpu This is the same issue Andre hit in comment #2. The cause is gcc/config.host line 102-103: the pattern for setting host_extra_gcc_objs="driver-aarch64.o" only matches freebsd, linux, fuchsia, and darwin -- NetBSD is missing: aarch64*-*-freebsd* | aarch64*-*-linux* | aarch64*-*-fuchsia* |\ aarch64*-*-darwin*) Workaround: add aarch64*-*-netbsd* to that pattern. This is a separate pre-existing bug, not a regression from the shmem CAF commit. Should I file it separately? **Build 2 (with config.host workaround) failure:** PR124512 confirmed libgfortran/caf/shmem/thread_support.c:79:13: error: implicit declaration of function 'pthread_condattr_setpshared'; did you mean 'pthread_condattr_destroy'? Additional notes for building on cfarm428: - Must use gmake (NetBSD default make is BSD make) - GMP/MPFR/MPC need --with-gmp=/usr/pkg --with-mpfr=/usr/pkg --with-mpc=/usr/pkg - LD_LIBRARY_PATH=/usr/pkg/lib needed for libisl at self-test time
