On Tue, Aug 03, 2004 at 10:46:30AM +0100, Paul Martin wrote: > On Tue, Aug 03, 2004 at 09:50:03AM +0200, Wouter Verhelst wrote: > > > Hm. It didn't build, but that's probably because it doesn't use whatever > > I specify as CC: > > > > cc -Wall -D_GNU_SOURCE -DLinux -DVERSION=\"3.7\" -Wall -g -O2 > > -D_FILE_OFFSET_BITS=64 -c -o config.o config.c > > config.c: In function `readConfigFile': > > config.c:1052: internal compiler error: in add_insn_before, at > > emit-rtl.c:3599 > > Please submit a full bug report, > > with preprocessed source if appropriate. > > See <URL:http://gcc.gnu.org/bugs.html> for instructions. > > For Debian GNU/Linux specific bug reporting instructions, see > > <URL:file:///usr/share/doc/gcc-3.3/README.Bugs>. > > make[1]: *** [config.o] Fout 1 > > make[1]: Leaving directory > > `/home/wouter/debian/other-peoples-source/logrotate-3.7' > > make: *** [build-stamp] Fout 2 > > > > That should start with `gcc-3.4' instead of just `cc', and yes, I've set > > CC. How do I make the logrotate build system use the right compiler? > > Strange. I used "export CC=gcc-3.0" when compiling (using > dpkg-buildpackage), and it worked. > > Is gcc-3.4 definitely going to be in sarge[m68k]?
Have you tried lowering the optimisation level already? So far I've been able to circumvent just about any gcc ICE by building with -O1. Something like the following might work in your debian/rules: DEB_OVERRIDE_CFLAGS="`echo $(CFLAGS) | sed -e \ 's/-O[2-9]/-O1/g'`"; \ DEB_HOST_ARCH=`dpkg-architecture -qDEB_HOST_ARCH`; \ case "$$DEB_HOST_ARCH" in \ m68k) \ $(MAKE) RPM_OPT_FLAGS="$$DEB_OVERRIDE_CFLAGS" \ VERSION="3.7" config.o; \ ;; \ *) \ ;; \ esac $(MAKE) RPM_OPT_FLAGS="$(CFLAGS)" VERSION="3.7" Regards, Daniel.