In the broader scope, there are two separate problems here.

One is that libgomp does not honor --disable-werror indeed. However, --disable-werror, if it worked for libgomp, would be too big a hammer to work around the second (real) problem, and not quite useful for development builds anyway.

The second issue is how libgomp configure detects availability of
pthread_{attr,}_{get,set}affinity_np. It uses link test and does not pass -Wall -Werror to compiler; thus, libgomp build fails if those functions are declared in /usr/include/nptl/pthread.h but not in /usr/include/pthread.h (libgomp only includes the latter).

This can be fixed by making configure use -Werror (I believe that
adding --with-pthread= option is out of the question).

Bootstraps on affected systems should probably use

make CFLAGS_FOR_TARGET='-g -O2 -I/usr/include/nptl'

as a clean workaround.

--
Alexander Monakov

Reply via email to