The error from entering USE="-*" emerge samba on a fresh installation: distcc[14444] ERROR: compile /var/tmp/ccache/regfio.tmp.trinity.14436.i on local host failed distcc[14439] ERROR: compile /var/tmp/ccache/srv_reg_nt.tmp.trinity.14427.i on l ocalhost failed Compiling rpc_server/srv_lsa_ds_nt.c registry/regfio.c: In function `write_block': registry/regfio.c:67: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. distcc[14477] ERROR: compile /var/tmp/ccache/srv_lsa_ds.tmp.trinity.14472.i on l ocalhost failed Preprocessed source stored into /var/tmp/portage/samba-3.0.21b/temp/ccY3UE7z.out file, please attach this to your bugreport. distcc[14436] ERROR: compile registry/regfio.c on localhost failed make: *** [registry/regfio.o] Error 1 make: *** Waiting for unfinished jobs.... rpc_server/srv_lsa_ds_nt.c: In function `_dsrole_get_primary_dominfo': rpc_server/srv_lsa_ds_nt.c:123: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /var/tmp/portage/samba-3.0.21b/temp/cc7uRMWI.out file, please attach this to your bugreport. distcc[14472] ERROR: compile rpc_server/srv_lsa_ds_nt.c on localhost failed make: *** [rpc_server/srv_lsa_ds_nt.o] Error 1 !!! ERROR: net-fs/samba-3.0.21b failed. !!! Function src_compile, Line 130, Exitcode 2 !!! SAMBA make everything error !!! If you need support, post the topmost build error, NOT this status message. Emerge --info: Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15-gentoo-r1 i686) ================================================================= System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.6.14 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium4 -mtune=pentium4 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -mmmx -msse -mfpmath=sse,387 -ffast-math -momit-leaf-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -mtune=pentium4 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -mmmx -msse -mfpmath=sse,387 -ffast-math -momit-leaf-frame-pointer -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acpi apache2 apm bash-completion bzip2 cdb cpudetection crypt ctype cups curl dba dpms eds elibc_glibc emboss encode esd expat fam fastbuild foomaticdb force-cgi-redirect fortran ftp gd gdbm glibc-omitfp glut gpm gstreamer idn imagemagick imap imlib isdnlog kernel_linux lcms libg++ libwww mad maildir memlimit mikmod mmx motif mysql ncurses nls nptl nptlonly offensive oss pam pcre pdflib perl png posix pppd python readline rtc samba server session simplexml snmp sockets spl sse sse2 ssl tcpd tokenizer udev usb userland_GNU userlocales x86 xml xml2 xsl zlib" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
No wonder your system is unstable w/ those C[XX]FLAGS.