When I try to emerge emacs, leim support is broken. Byte-compile the created files by: % emacs -batch -f batch-byte-compile XXX.el if [ -f quail/CCDOSPY.elc ]; then true; else \ EMACSLOADPATH=/var/tmp/portage/emacs-21.3-r3/work/emacs-21.3/leim/../lisp ../src/emacs -batch --no-init-file --no-site-file --multibyte -l /var/tmp/portage/emacs-21.3-r3/work/emacs-21.3/leim/../lisp/international/quail \ -f batch-byte-compile quail/CCDOSPY.el quail/Punct.el quail/QJ.el quail/SW.el quail/TONEPY.el quail/4Corner.el quail/ARRAY30.el quail/ECDICT.el quail/ETZY.el quail/Punct-b5.el quail/PY-b5.el quail/QJ-b5.el quail/ZOZY.el; fi While compiling toplevel forms in file /var/tmp/portage/emacs-21.3-r3/work/emacs-21.3/leim/quail/CCDOSPY.el: !! Wrong type argument ((listp 16777853)) While compiling toplevel forms in file /var/tmp/portage/emacs-21.3-r3/work/emacs-21.3/leim/quail/Punct.el: !! Wrong type argument ((listp 16777849)) While compiling toplevel forms in file /var/tmp/portage/emacs-21.3-r3/work/emacs-21.3/leim/quail/QJ.el: !! Wrong type argument ((listp 16777843)) While compiling toplevel forms in file /var/tmp/portage/emacs-21.3-r3/work/emacs-21.3/leim/quail/SW.el: !! Wrong type argument ((listp 16777843)) While compiling toplevel forms in file /var/tmp/portage/emacs-21.3-r3/work/emacs-21.3/leim/quail/TONEPY.el: !! Wrong type argument ((listp 16777851)) Wrote /var/tmp/portage/emacs-21.3-r3/work/emacs-21.3/leim/quail/4Corner.elc Wrote /var/tmp/portage/emacs-21.3-r3/work/emacs-21.3/leim/quail/ARRAY30.elc Wrote /var/tmp/portage/emacs-21.3-r3/work/emacs-21.3/leim/quail/ECDICT.elc While compiling toplevel forms in file /var/tmp/portage/emacs-21.3-r3/work/emacs-21.3/leim/quail/ETZY.el: !! Wrong type argument ((listp 16777847)) While compiling toplevel forms in file /var/tmp/portage/emacs-21.3-r3/work/emacs-21.3/leim/quail/Punct-b5.el: !! Wrong type argument ((listp 16777855)) While compiling toplevel forms in file /var/tmp/portage/emacs-21.3-r3/work/emacs-21.3/leim/quail/PY-b5.el: !! Wrong type argument ((listp 16777849)) While compiling toplevel forms in file /var/tmp/portage/emacs-21.3-r3/work/emacs-21.3/leim/quail/QJ-b5.el: !! Wrong type argument ((listp 16777849)) Wrote /var/tmp/portage/emacs-21.3-r3/work/emacs-21.3/leim/quail/ZOZY.elc Done make[1]: *** [quail/CCDOSPY.elc] Error 1 make[1]: Leaving directory `/var/tmp/portage/emacs-21.3-r3/work/emacs-21.3/leim' make: *** [leim] Error 2 !!! ERROR: app-editors/emacs-21.3-r3 failed. !!! Function src_compile, Line 77, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. 2. 3. [06.28.04 14:21:43 bc@obi-wan keys]$ sudo emerge info Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.4.0, glibc-2.3.3.20040420-r0, 2.6.7-gentoo-r3) ================================================================= System uname: 2.6.7-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 1.70GHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apache2 apm avi berkdb cdr cjk crypt cups doc emacs encode esd ethereal f77 fbcon foomaticdb gcj gd gdbm gif gmp gnome gpm gtk gtk+ gtk2 icc imagemagick imlib ipv6 java jpeg kde leim libg++ libwww mad mikmod mmx motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline samba sdl slang spell sse ssl svga tcpd tetex tiff truetype unicode usb vhosts wmf x86 xinerama xml xml2 xmms xv xvid zlib"
It doesn't fail on my laptop. Could you shrink down your CFLAGS/CXXFLAGS a bit (and/or try gcc-3.3.x) and see if it makes any difference?
We need some more info to look into it. (I cannot reproduce the bug described)