I am trying to compile openpkg stable 1018 snapshot on a 64-bit machine. Once the 32-bit stuff starts building I get the attached error. I get the same error if I build the gcc from current using the multilib option. Without multilib everything works fine. I can build 32-bit using the system compiler and the -m32 flag. Anyone have any ideas?
LIBGCC2_CFLAGS="-O2 -O2 -O -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -m32 " \ MULTILIB_CFLAGS=" -m32" T=32/ 32/crtbegin.o 32/crtend.o 32/crtbeginS.o 32/crtendS.o 32/crtbeginT.o 32/crtfastmath.o ./xgcc -B./ -B/tools/x86_64-unknown-linux-gnu/bin/ -isystem /tools/x86_64-unknown-linux-gnu/include -isystem /tools/x86_64-unknown-linux-gnu/sys-include -L/tools/RPM/TMP/gcc-4.1.1/obj/gcc/../ld -O2 -O2 -O -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I32 -I/tools/RPM/TMP/gcc-4.1.1/obj/../gcc -I/tools/RPM/TMP/gcc-4.1.1/obj/../gcc/32 -I/tools/RPM/TMP/gcc-4.1.1/obj/../gcc/../include -I/tools/RPM/TMP/gcc-4.1.1/obj/../gcc/../libcpp/include -m32 -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -fno-omit-frame-pointer -fno-asynchronous-unwind-tables \ -c /tools/RPM/TMP/gcc-4.1.1/obj/../gcc/crtstuff.c -DCRT_BEGIN \ -o 32/crtbegin.o In file included from /usr/include/features.h:346, from /usr/include/stdio.h:28, from /tools/RPM/TMP/gcc-4.1.1/obj/../gcc/tsystem.h:90, from /tools/RPM/TMP/gcc-4.1.1/obj/../gcc/crtstuff.c:68: /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory make[4]: *** [32/crtbegin.o] Error 1 make[3]: *** [extra32] Error 2 make[2]: *** [stmp-multilib] Error 2 make[1]: *** [stage1_build] Error 2 make: *** [bootstrap-lean] Error 2 error: Bad exit status from /tools/RPM/TMP/rpm-tmp.78133 (%build)
RPM build errors: Bad exit status from /tools/RPM/TMP/rpm-tmp.78133 (%build)