Federico Baraldi wrote:
Hi all ... When i try to compile courier-mta 0.52.1 on Mandriva 2006.0 this
is what happens:
/usr/bin/make all-am
make[4]: Entering directory
`/home/federico/rpm/BUILD/courier-0.52.1/courier/module.esmtp'
Compiling esmtp.c
Linking librewrite.la
Compiling courieresmtp.c
Compiling esmtpclient.c
i586-mandriva-linux-gnu-gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <URL:https://qa.mandriva.com/> for instructions.
make[4]: *** [esmtpclient.o] Error 1
make[4]: Leaving directory
`/home/federico/rpm/BUILD/courier-0.52.1/courier/module.esmtp'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/home/federico/rpm/BUILD/courier-0.52.1/courier/module.esmtp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/federico/rpm/BUILD/courier-0.52.1/courier'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/federico/rpm/BUILD/courier-0.52.1/courier'
make: *** [all-recursive] Error 1
error: Bad exit status from /home/federico/tmp/rpm-tmp.18586 (%build)
Any hints ??
Looks similar to what I've been experiencing recently on Fedora Core 4.
When compiling esmtpclient.c GCC (cc1 process) grabs a *HUGE* chunk of
RAM, on my 1gb RAM desktop, it forces all my desktop apps to swap but
eventually does compile (after eating 3/4 of my physical ram). On my
512mb RAM laptop though, it effectively kills the machine as so much is
forced to swap that I can't even switch VTs anymore. I don't think it's
actually locking up, just non-responsive. My assumption is that this is
an issue with GCC 4.0. I've not used Mandriva but my guess is, like
FC4, it should ship with an older version of GCC for compat reason. On
FC4 I had to install compat-gcc-32 and compat-g++-32 in order to have
GCC v3.2 available. To get the rpmbuild to use 3.2 instead of 4, I did:
CC=gcc32 CXX=gcc32 rpmbuild -ta courier-0.52.1.tar.bz2
Give this a try.
Sam, any thoughts on this? I realize GCC 4.0 is not supported yet and
it won't be until RHEL5 comes out that I'll care to much but there
certainly seems to be a problem between gcc4 and esmtpclient.c
Jay