-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I find that sometimes MAKEOPTS=-j2 is the culprit. Make sometimes tries to link an executable before all of its constituent object files are compiled (this shouldn't normally happen, but maybe the structure of the Makefile isn't exactly what make expects or something).
After modifying the MAKEOPTS line in /etc/make.conf to explicityly allow only one thread: MAKEOPTS="-j1" (and patching kernel-mod.eclass so that it respects KBUILD_OUTPUT http://bugs.gentoo.org/show_bug.cgi?id=89142), all my compilations have gone smoothly. - -----------make.conf----------- # # make.conf CHOST="i686-pc-linux-gnu" CFLAGS="-O3 -march=i686 -fforce-addr -ftracer -pipe" CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden" PORTAGE_NICENESS=3 MAKEOPTS="-j1" AUTOCLEAN="yes" FEATURES="ccache distlocks sandbox buildpkg userpriv fixpackages" CCACHE_SIZE="4G" PORTAGE_TMPDIR=/var/portage DISTDIR=${PORTAGE_TMPDIR}/distfiles PKGDIR=${PORTAGE_TMPDIR}/packages PORT_LOGDIR=/var/log/portage PORTDIR_OVERLAY=/usr/local/portage PORTAGE_TMPFS="/dev/shm" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo" USE="3dnow Xaw3d acpi audiofile bash-completion cdparanoia cjk dvd dvdr dvdread esd flac immqt java junit kdeenablefinal mmx mozilla nptl nvidia offensive samba sse unicode usb win32codecs xine xscreensaver" # for KDE and OpenOffice.org LINGUAS="en zh_TW" # for gtk 1.x #LINGUAS="en zh_TW.Big5" # for packages that build kernel modules KBUILD_OUTPUT=/tmp/kernel - ----------------------end make.conf----------------- - --myk Grant wrote: > All of my machines will sometimes fail to emerge a package > successfully, but the next try will be successful. I've read through > this metabug: > > http://bugs.gentoo.org/show_bug.cgi?id=20600 > > but it can't be bad hardware because it happens on 4 different systems > including a hosted remote server. Here are my CFLAGS: > > CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer" > > Could the -O2 be the problem? > > - Grant > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCgNsVBOPsJyAQkeARArBCAJ9w92jf52vx9GzrHi9lItJHX8K+GwCguBo3 Q1JXYYLzd6J6T+DSEKl1YI4= =T/+H -----END PGP SIGNATURE----- -- gentoo-user@gentoo.org mailing list