(...) Adding multilib support to Makefile in ../../zlib multidirs=32 with_multisubdir= Running configure in multilib subdirs 32 pwd: /home/users/pluto/rpm/BUILD/gcc-4_2-branch/builddir/zlib Running configure in multilib subdir 32 pwd: /home/users/pluto/rpm/BUILD/gcc-4_2-branch/builddir mkdir 32 configure: creating cache ./config.cache checking build system type... x86_64-pld-linux-gnu checking host system type... x86_64-pld-linux-gnu checking target system type... x86_64-pld-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether /usr/bin/make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for x86_64-pld-linux-gcc... /home/users/pluto/rpm/BUILD/gcc-4_2-branch/builddir/32/./prev-gcc/xgcc -B/home/users/pluto/rpm/BUILD/gcc-4_2-branch/builddir/32/./prev-gcc/ -B/usr/x86_64-pld-linux/bin/ -m32 checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. make[2]: *** [configure-stage2-zlib] Error 1 the problem is in path to xgcc. /home/users/pluto/rpm/BUILD/gcc-4_2-branch/builddir/32/./prev-gcc/xgcc ^^^^ should be a 32/..
with 4.2-20061231 (rev. 120298) it works fine, so closing.
seems to work now.
I'm seeing a regression with the exact symptoms in GCC-7.3.1 when attempting to build with internal zlib on x86_64 when it attempts to build the 32 bit library.