I'm not sure exactly what is happening to load emacs in such a way that its output (when loading personal init files) causes emerge to error out.
I do have most of the error and context to post. What I do know is that emacs is routinely called to byte compile stuff. Normally that call would include `-q --no-site-file ' on the emacs command line. That is routine, so I'm thinking the call is made without those precautions. -q prevents ~/.emacs but also /usr/share/emacs/site-lisp/default.el from loading if it exists. --no-stite-file prevents loading of site-start.el if it exists. Those files are reserved for system admins to set global code into emacs started by any user. And of coures ~/.emacs is where users put there own code. Any of those three files is likely to have all kinds of screwy code loading that has no place in a compile situation. I even think it breaks the emerge session. I'm guessing some of my code causes output from emacs not expected by emerge or maybe coming out on standard err caused the problem. Of coures I've recognize the source code I wrote being invoked so I just have to rename a couple of files or even just site-start.el during the emerge. That should not be necessary though. Somewhere in the build session emacs is called wrong and should be fixed. I don't know enough about tracing this out to pull out the hard facts so before posting a bug on this, I'd like to hear some commentary. ==================================================================== emerge error with context: (see asterisks below) /bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -Os -march=pentium4 -pipe -o msguniq msguniq-msguniq.o libgettextsrc.la i686-pc-linux-gnu-gcc -Os -march=pentium4 -pipe -o .libs/msguniq msguniq-msguniq.o ./.libs/libgettextsrc.so /var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/lib/.libs/libgettextlib.so -lc creating msguniq i686-pc-linux-gnu-gcc -DLOCALEDIR=\"/usr/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/share/locale\" -DUSEJEXE=0 -DGETTEXTJEXEDIR=\"/usr/lib/gettext\" -DGETTEXTJAR=\"/usr/share/gettext/gettext.jar\" -DLIBDIR=\"/usr/lib\" -DGETTEXTDATADIR=\"/usr/share/gettext\" -DPROJECTSDIR=\"/usr/share/gettext/projects\" -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -I.. -I../libgrep -I../libuniname -I../lib -I../lib -I../intl -I../../gettext-runtime/intl -DINSTALLDIR=\"/usr/lib/gettext\" -Os -march=pentium4 -pipe -c -o hostname-hostname.o `test -f 'hostname.c' || echo './'`hostname.c /bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -Os -march=pentium4 -pipe -o hostname hostname-hostname.o ../lib/libgettextlib.la i686-pc-linux-gnu-gcc -Os -march=pentium4 -pipe -o .libs/hostname hostname-hostname.o ../lib/.libs/libgettextlib.so -lc creating hostname i686-pc-linux-gnu-gcc -DLOCALEDIR=\"/usr/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/share/locale\" -DUSEJEXE=0 -DGETTEXTJEXEDIR=\"/usr/lib/gettext\" -DGETTEXTJAR=\"/usr/share/gettext/gettext.jar\" -DLIBDIR=\"/usr/lib\" -DGETTEXTDATADIR=\"/usr/share/gettext\" -DPROJECTSDIR=\"/usr/share/gettext/projects\" -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -I.. -I../libgrep -I../libuniname -I../lib -I../lib -I../intl -I../../gettext-runtime/intl -DINSTALLDIR=\"/usr/lib/gettext\" -Os -march=pentium4 -pipe -c -o urlget-urlget.o `test -f 'urlget.c' || echo './'`urlget.c /bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -Os -march=pentium4 -pipe -o urlget urlget-urlget.o ../lib/libgettextlib.la i686-pc-linux-gnu-gcc -Os -march=pentium4 -pipe -o .libs/urlget urlget-urlget.o ../lib/.libs/libgettextlib.so -lc creating urlget make[4]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/src' make[3]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/src' Making all in po make[3]: Entering directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/po' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/po' Making all in projects make[3]: Entering directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/projects' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/projects' Making all in misc make[3]: Entering directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/misc' WARNING: Warnings can be ignored. :-) if test "emacs" != no; then \ set x; \ list='start-po.el po-mode.el po-compat.el'; for p in $list; do \ if test -f "$p"; then d=; else d="./"; fi; \ set x "$@" "$d$p"; shift; \ done; \ shift; \ EMACS="emacs" /bin/sh ../../build-aux/elisp-comp "$@" || exit 1; \ else : ; fi Loading /usr/local/share/emacs/site-lisp/site-start.d/lang-coding-systems-init.el (source)... Loading /usr/local/share/emacs/site-lisp/site-start.d/php-mode-init.el (source)... Loading /usr/local/share/emacs/site-lisp/site-start.d/po-mode-init.el (source)... Loading /usr/local/share/emacs/site-lisp/site-start.d/psgml-init.el (source)... Loading /usr/local/share/emacs/site-lisp/site-start.d/python-mode-init.el (source)... Loading /usr/local/share/emacs/site-lisp/site-start.d/rpm-spec-mode-init.el (source)... ****************** Below is the ouput of code from my site-start.el file. It should not be getting loaded. It appears, up above a ways, that emacs has been called with no flags, which would allow it to load stuff it should not. All that guff in /usr/local/share/emacs/site-lisp/site-start.d probably shouldm't be loaded either. *==* Loading whats_loading.el (source)... (Tip from Kai G): Now loading: nil Cannot open load file: ~/.emacs-custom *==* make[3]: *** [elc-stamp] Error 1 make[3]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/misc' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools' make: *** [all-recursive] Error 1 !!! ERROR: sys-devel/gettext-0.14.5 failed. !!! Function src_compile, Line 72, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. -- gentoo-user@gentoo.org mailing list