acinclude.m4 has a home-brewed rule to detect whether a target can support TLS. This rule incorrectly decides that NetBSD can support this. The result is that libgomp will not load, and faults with the error: Unsupported relocation type 14 in non-PLT relocations Rather than rolling its own rule, it should be using the rule in $(topsrcdir)/config/tls.m4 -- namely GCC_CHECK_TLS.
Confirmed.
*** Bug 27179 has been marked as a duplicate of this bug. ***
This also effects sparc64-portbld-freebsd6.1 as described in PR 27179.
I understand that this might be affecting SPARC/Linux too, cf., http://gcc.gnu.org/ml/gcc/2006-04/msg00448.html
Subject: Bug 25865 Author: rth Date: Tue Apr 25 20:58:25 2006 New Revision: 113256 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113256 Log: PR libgomp/25865 * configure.ac: Use GCC_CHECK_TLS. * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove. * Makefile.in, aclocal.m4, configure: Regenerate. Modified: trunk/libgomp/ChangeLog trunk/libgomp/Makefile.in trunk/libgomp/acinclude.m4 trunk/libgomp/aclocal.m4 trunk/libgomp/configure trunk/libgomp/configure.ac trunk/libgomp/testsuite/Makefile.in
Fixed, or if not, moved the point of failure out of libgomp.