1 |
I'm not sure exactly what is happening to load emacs in such a way |
2 |
that its output (when loading personal init files) causes emerge to |
3 |
error out. |
4 |
|
5 |
I do have most of the error and context to post. What I do know |
6 |
is that emacs is routinely called to byte compile stuff. Normally |
7 |
that call would include `-q --no-site-file ' on the emacs command |
8 |
line. |
9 |
|
10 |
That is routine, so I'm thinking the call is made without those |
11 |
precautions. |
12 |
|
13 |
-q prevents ~/.emacs but also /usr/share/emacs/site-lisp/default.el |
14 |
from loading if it exists. |
15 |
|
16 |
--no-stite-file prevents loading of site-start.el if it exists. |
17 |
|
18 |
Those files are reserved for system admins to set global code into |
19 |
emacs started by any user. And of coures ~/.emacs is where users put |
20 |
there own code. |
21 |
|
22 |
Any of those three files is likely to have all kinds of screwy code |
23 |
loading that has no place in a compile situation. I even think it |
24 |
breaks the emerge session. I'm guessing some of my code causes output |
25 |
from emacs not expected by emerge or maybe coming out on standard err |
26 |
caused the problem. |
27 |
|
28 |
Of coures I've recognize the source code I wrote being invoked so I |
29 |
just have to rename a couple of files or even just site-start.el |
30 |
during the emerge. |
31 |
|
32 |
That should not be necessary though. Somewhere in the build session |
33 |
emacs is called wrong and should be fixed. |
34 |
|
35 |
I don't know enough about tracing this out to pull out the hard facts |
36 |
so before posting a bug on this, I'd like to hear some commentary. |
37 |
|
38 |
==================================================================== |
39 |
emerge error with context: |
40 |
(see asterisks below) |
41 |
|
42 |
/bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -Os -march=pentium4 -pipe -o msguniq msguniq-msguniq.o libgettextsrc.la |
43 |
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 |
44 |
creating msguniq |
45 |
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 |
46 |
-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 |
47 |
/bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -Os -march=pentium4 -pipe -o hostname hostname-hostname.o ../lib/libgettextlib.la |
48 |
i686-pc-linux-gnu-gcc -Os -march=pentium4 -pipe -o .libs/hostname hostname-hostname.o ../lib/.libs/libgettextlib.so -lc |
49 |
creating hostname |
50 |
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 |
51 |
-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 |
52 |
/bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -Os -march=pentium4 -pipe -o urlget urlget-urlget.o ../lib/libgettextlib.la |
53 |
i686-pc-linux-gnu-gcc -Os -march=pentium4 -pipe -o .libs/urlget urlget-urlget.o ../lib/.libs/libgettextlib.so -lc |
54 |
creating urlget |
55 |
make[4]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/src' |
56 |
make[3]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/src' |
57 |
Making all in po |
58 |
make[3]: Entering directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/po' |
59 |
make[3]: Nothing to be done for `all'. |
60 |
make[3]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/po' |
61 |
Making all in projects |
62 |
make[3]: Entering directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/projects' |
63 |
make[3]: Nothing to be done for `all'. |
64 |
make[3]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/projects' |
65 |
Making all in misc |
66 |
make[3]: Entering directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/misc' |
67 |
WARNING: Warnings can be ignored. :-) |
68 |
if test "emacs" != no; then \ |
69 |
set x; \ |
70 |
list='start-po.el po-mode.el po-compat.el'; for p in $list; do \ |
71 |
if test -f "$p"; then d=; else d="./"; fi; \ |
72 |
set x "$@" "$d$p"; shift; \ |
73 |
done; \ |
74 |
shift; \ |
75 |
EMACS="emacs" /bin/sh ../../build-aux/elisp-comp "$@" || exit 1; \ |
76 |
else : ; fi |
77 |
Loading /usr/local/share/emacs/site-lisp/site-start.d/lang-coding-systems-init.el (source)... |
78 |
Loading /usr/local/share/emacs/site-lisp/site-start.d/php-mode-init.el (source)... |
79 |
Loading /usr/local/share/emacs/site-lisp/site-start.d/po-mode-init.el (source)... |
80 |
Loading /usr/local/share/emacs/site-lisp/site-start.d/psgml-init.el (source)... |
81 |
Loading /usr/local/share/emacs/site-lisp/site-start.d/python-mode-init.el (source)... |
82 |
Loading /usr/local/share/emacs/site-lisp/site-start.d/rpm-spec-mode-init.el (source)... |
83 |
|
84 |
****************** |
85 |
Below is the ouput of code from my site-start.el file. It should not |
86 |
be getting loaded. It appears, up above a ways, that emacs has been |
87 |
called with no flags, which would allow it to load stuff it should |
88 |
not. All that guff in /usr/local/share/emacs/site-lisp/site-start.d |
89 |
probably shouldm't be loaded either. |
90 |
|
91 |
*==* |
92 |
Loading whats_loading.el (source)... |
93 |
(Tip from Kai G): Now loading: nil |
94 |
Cannot open load file: ~/.emacs-custom |
95 |
*==* |
96 |
|
97 |
make[3]: *** [elc-stamp] Error 1 |
98 |
make[3]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools/misc' |
99 |
make[2]: *** [all-recursive] Error 1 |
100 |
make[2]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools' |
101 |
make[1]: *** [all] Error 2 |
102 |
make[1]: Leaving directory `/var/tmp/portage/gettext-0.14.5/work/gettext-0.14.5/gettext-tools' |
103 |
make: *** [all-recursive] Error 1 |
104 |
|
105 |
!!! ERROR: sys-devel/gettext-0.14.5 failed. |
106 |
!!! Function src_compile, Line 72, Exitcode 2 |
107 |
!!! (no error message) |
108 |
!!! If you need support, post the topmost build error, NOT this status message. |
109 |
|
110 |
|
111 |
-- |
112 |
gentoo-user@g.o mailing list |