https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81066
George R. Goffe <grgoffe at yahoo dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |grgoffe at yahoo dot com --- Comment #9 from George R. Goffe <grgoffe at yahoo dot com> --- Hi, I'm building the "latest" gcc on a Fedora 27 (rawhide) system and am seeing this same problem. x86_64-pc-linux-gnu/libsanitizer/tsan# /tools/gcc/obj-x86_64-pc-linux-gnu/./gcc/xgcc --save-temps -shared-libgcc -B/tools/gcc/obj-x86_64-pc-linux-gnu/./gcc -nostdinc++ -L/tools/gcc/obj-x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/libstdc++-v3/src -L/tools/gcc/obj-x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/tools/gcc/obj-x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -B/usr/lsd/Linux/x86_64-pc-linux-gnu/bin/ -B/usr/lsd/Linux/x86_64-pc-linux-gnu/lib/ -isystem /usr/lsd/Linux/x86_64-pc-linux-gnu/include -isystem /usr/lsd/Linux/x86_64-pc-linux-gnu/sys-include -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DCAN_SANITIZE_UB=0 -I. -I../../../../gcc/libsanitizer/tsan -I.. -I ../../../../gcc/libsanitizer -I ../../../../gcc/libsanitizer/include -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC -fno-builtin -fno-exceptions -fno-rtti -fomit-frame-pointer -funwind-tables -fvisibility=hidden -Wno-variadic-macros -I../../libstdc++-v3/include -I../../libstdc++-v3/include/x86_64-pc-linux-gnu -I../../../../gcc/libsanitizer/../libstdc++-v3/libsupc++ -std=gnu++11 -g -O2 -D_GNU_SOURCE -MT tsan_platform_linux.lo -MD -MP -MF .deps/tsan_platform_linux.Tpo -c ../../../../gcc/libsanitizer/tsan/tsan_platform_linux.cc -fPIC -DPIC -o .libs/tsan_platform_linux.o ../../../../gcc/libsanitizer/tsan/tsan_platform_linux.cc: In function ‘int __tsan::ExtractResolvFDs(void*, int*, int)’: ../../../../gcc/libsanitizer/tsan/tsan_platform_linux.cc:290:16: error: ‘statp’ was not declared in this scope __res_state *statp = (__res_state*)state; ^~~~~ ../../../../gcc/libsanitizer/tsan/tsan_platform_linux.cc:290:16: note: suggested alternative: ‘state’ __res_state *statp = (__res_state*)state; ^~~~~ state ../../../../gcc/libsanitizer/tsan/tsan_platform_linux.cc:290:37: error: expected primary-expression before ‘)’ token __res_state *statp = (__res_state*)state; ^ glibc-2.25.90-21.fc27.x86_64 gcc-7.1.1-2.fc27.x86_64