The i686 build fails with:
gcc -nostdlib -nostartfiles -r -o
/builddir/build/BUILD/glibc-2.24-592-g73dfd08/build-i686-redhat-linux/elf/librtld.os
'-Wl,-('
/builddir/build/BUILD/glibc-2.24-592-g73dfd08/build-i686-redhat-linux/elf/dl-allobjs.os
/builddir/build/BUILD/glibc-2.24-592-g73dfd08/build-i686-redhat-linux/elf/rtld-libc.a
-lgcc '-Wl,-)' \
-Wl,-Map,/builddir/build/BUILD/glibc-2.24-592-g73dfd08/build-i686-redhat-linux/elf/librtld.os.map
gcc -nostdlib -nostartfiles -shared -o
/builddir/build/BUILD/glibc-2.24-592-g73dfd08/build-i686-redhat-linux/elf/ld.so.new
\
-Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -Wl,-z,defs
-Wl,-z,now \
/builddir/build/BUILD/glibc-2.24-592-g73dfd08/build-i686-redhat-linux/elf/librtld.os
-Wl,--version-script=/builddir/build/BUILD/glibc-2.24-592-g73dfd08/build-i686-redhat-linux/ld.map
\
-Wl,-soname=ld-linux.so.2 \
-Wl,-defsym=_begin=0
/builddir/build/BUILD/glibc-2.24-592-g73dfd08/build-i686-redhat-linux/elf/librtld.os:
In function `getenv':
/builddir/build/BUILD/glibc-2.24-592-g73dfd08/stdlib/getenv.c:84:
undefined reference to `strncmp'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:460:
/builddir/build/BUILD/glibc-2.24-592-g73dfd08/build-i686-redhat-linux/elf/ld.so]
Error 1
make[2]: Leaving directory
'/builddir/build/BUILD/glibc-2.24-592-g73dfd08/elf'
I can reproduce it upstream with this configure invocation:
../git/configure --prefix=/usr CC="gcc -m32" CFLAGS="-O3 -g" CXX="g++
-m32" CXXFLAGS="-O3" --enable-tunables --enable-stack-protector=strong
--build=i686-linux
I believe it was introduced by the tunables changes.
Unfortunately, I probably won't have a chance to fix this until 2017-01-04.
Thanks,
Florian