I have two Linux boxes, GCC, binutils are identical (quickpkg on one and emerge -K on other). Emerge packets and compile my projects work fine, but when I try compile kernel: root@host2 usr/src/linux # make -j1 clean bzImage modules CLEAN /usr/local/src/linux-2.6.18-hardened CLEAN init CLEAN usr CLEAN .tmp_versions CHK include/linux/version.h CHK include/linux/utsrelease.h HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/docproc CC arch/i386/kernel/asm-offsets.s GEN include/asm-i386/asm-offsets.h CC scripts/mod/empty.o HOSTCC scripts/mod/mk_elfconfig MKELF scripts/mod/elfconfig.h HOSTCC scripts/mod/file2alias.o HOSTCC scripts/mod/modpost.o HOSTCC scripts/mod/sumversion.o HOSTLD scripts/mod/modpost HOSTCC scripts/conmakehash HOSTCC scripts/bin2c CC init/main.o init/main.c: In function `unknown_bootoption': init/main.c:248: warning: asm operand 1 probably doesn't match constraints init/main.c:248: error: impossible constraint in `asm' distcc[18639] ERROR: compile init/main.c on 192.168.1.3 failed make[1]: *** [init/main.o] Error 1 make: *** [init] Error 2 Reproducible: Always Steps to Reproduce: root@host2 ~ # cat /etc/distcc/hosts 192.168.1.3 root@host2 ~ # emerge --info Portage 2.1.2.2 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r5, 2.6.18-hardened i686) ================================================================= System uname: 2.6.18-hardened i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System release 1.12.9 Timestamp of tree: Tue, 20 Mar 2007 07:00:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-mtune=i386 -O2 -pipe -fforce-addr" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib/X11/xkb /usr/share/X11/xkb /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -mcpu=i386 -pipe -fforce-addr" DISTDIR="/usr/local/p/distfiles" FEATURES="autoconfig distcc distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS=" http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo " LANG="ru_RU.KOI8-R" LC_ALL="ru_RU.KOI8-R" LINGUAS="ru" PKGDIR="/usr/local/p/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="7zip acpi alsa avi bzip2 caps crypt cups dri dvd dvdr dvdread enca fortran gdbm gif gnutls hardened hardenedphp jpeg lirc mad mbox mikmod mmx mmxext mp3 mpeg ncurses nls nptl nptlonly opengl pam pic png posix quicktime readline rtc sasl sse sse2 ssl tcpd tiff truetype udev usb userlocales v4l v4l2 vorbis wmf x86 xinetd xv" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev microtouch mutouch" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="i810 nv radeon v4l vesa vga via vmware" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY root@host3 ~ # emerge --info Portage 2.1.2.2 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r5, 2.6.18.5_rt7 i686) ================================================================= System uname: 2.6.18.5_rt7 i686 Intel(R) Celeron(R) CPU 2.60GHz Gentoo Base System release 1.12.9 Timestamp of tree: Tue, 20 Mar 2007 07:00:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-mtune=i386 -O2 -pipe -fforce-addr" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib/X11/xkb /usr/share/X11/xkb /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -mcpu=i386 -pipe -fforce-addr" DISTDIR="/usr/local/p/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS=" http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo " LANG="ru_RU.KOI8-R" LC_ALL="ru_RU.KOI8-R" LINGUAS="ru" PKGDIR="/usr/local/p/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="7zip acpi alsa avi bzip2 caps crypt cups dri dvd dvdr dvdread enca fortran gdbm gif gnutls hardened hardenedphp jpeg lirc mad mbox mikmod mmx mmxext mp3 mpeg ncurses nls nptl nptlonly opengl pam pic png posix quicktime readline rtc sasl sse sse2 ssl tcpd tiff truetype udev usb userlocales v4l v4l2 vorbis wmf x86 xinetd xv" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev microtouch mutouch" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="i810 nv radeon v4l vesa vga via vmware" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Indeed, compiling the kernel (or kernel modules) with distcc doesn't work with the hardened compiler. Disable distcc when building the kernel or kernel modules. *** This bug has been marked as a duplicate of bug 167844 ***