Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 166059 - app-editors/emacs-cvs-22.0.93-r2 compilation failed
Summary: app-editors/emacs-cvs-22.0.93-r2 compilation failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
Depends on: 166682
Blocks:
  Show dependency tree
 
Reported: 2007-02-09 12:38 UTC by Martin Bays
Modified: 2007-02-20 22:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
site-gentoo.el (site-gentoo.el,5.52 KB, text/plain)
2007-02-13 14:03 UTC, Martin Bays
Details
emacs-cvs-22.0.9999 config.log (config.log,255.52 KB, text/plain)
2007-02-13 14:05 UTC, Martin Bays
Details
emerge log (app-editors:emacs-cvs-22.0.9999-r2:20070213-173313.log,666.09 KB, text/plain)
2007-02-13 18:16 UTC, Martin Bays
Details
Proposed bugfix: files/emacs-cvs-blessmail-build.patch (emacs-cvs-blessmail-build.patch,651 bytes, patch)
2007-02-17 10:47 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Bays 2007-02-09 12:38:55 UTC
Compilation failed:

Compressing *.el ...
chmod -R a+r /var/tmp/portage/app-editors/emacs-cvs-22.0.93-r2/image//usr/share/emacs/22.0.93/leim
make[1]: Leaving directory `/var/tmp/portage/app-editors/emacs-cvs-22.0.93-r2/work/emacs-22.0.93/leim'
cd lib-src; make maybe-blessmail  \
          MAKE='make' archlibdir='/usr/libexec/emacs/22.0.93/i686-pc-linux-gnu'
make[1]: Entering directory `/var/tmp/portage/app-editors/emacs-cvs-22.0.93-r2/work/emacs-22.0.93/lib-src'
../src/emacs -batch -l /var/tmp/portage/app-editors/emacs-cvs-22.0.93-r2/work/emacs-22.0.93/lib-src/../lisp/mail/blessmail.el
Loading /usr/share/emacs/site-lisp/site-gentoo.el (source)...
Cannot open load file: ipython
make[1]: *** [blessmail] Error 255
make[1]: Leaving directory `/var/tmp/portage/app-editors/emacs-cvs-22.0.93-r2/work/emacs-22.0.93/lib-src'
make: *** [blessmail] Error 2


$ emerge -pv emacs-cvs
[ebuild  N    ] app-editors/emacs-cvs-22.0.93-r2  USE="X alsa gif gtk jpeg motif nls png spell -Xaw3d (-aqua) -gnome -gzip-el -lesstif -source -tiff -toolkit-scroll-bars" 0 kB


$ emerge --info
Portage 2.1.2-r8 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gonz i686)
=================================================================
System uname: 2.6.19-gonz i686 Pentium III (Katmai)
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 09 Feb 2007 08:20:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.3.6, 2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
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.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.4.3-r1, 1.5.22
virtual/os-headers:  2.6.20
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.3/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/share/X11/xkb /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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch publicworks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://gentoo.seren.com/gentoo http://gentoo.kems.net"
PKGDIR="/usr/portage/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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="X aalib alsa apache2 arts avi bash-completion berkdb bitmap-fonts caca cli cracklib crypt dga directfb dlloader dri eds emacs emboss encode esd fbcon foomaticdb fortran gatos gdbm gif gpm gstreamer gtk gtk2 guile iconv imlib ipv6 isdnlog jpeg libg++ libwww mad midi mikmod mmx motif mozilla mp3 mpeg ncurses nls nptl nsplugin ogg oggvorbis opengl oss pam pcre perl png pppd python qt3 qt4 quicktime readline real reflection sdl session spell spl sse ssl svga tcpd theora truetype truetype-fonts type1-fonts udev unicode vorbis x86 xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="mach64 matrox mga vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS


/usr/share/emacs/site-lisp/site-gentoo.el does contain the line:
(require 'ipython)

I'm fairly sure I didn't put it there myself!

dev-python/ipython-0.7.3 is installed.

app-editors/emacs-21.4-r6 is installed and starts up correctly, without choking in any obvious way on that line from site-gentoo.el.
Comment 1 Christian Faulhammer (RETIRED) gentoo-dev 2007-02-13 06:26:27 UTC
Those compilation errors in a live ebuild are hard to catch and mostly caused by upstream.  So please remove /usr/portage/cvs-src/emacs/ and try again.
Comment 2 Martin Bays 2007-02-13 09:25:55 UTC
But it appears not to actually be a true cvs ebuild: rather it uses the source at ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-22.0.93.tar.gz which has datestamp Jan 23.

I should wait for 22.0.94? Or unmask emacs-cvs-22.0.9999, which seems to be an actual live ebuild?
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2007-02-13 09:58:27 UTC
(In reply to comment #2)
> But it appears not to actually be a true cvs ebuild: rather it uses the source
> at ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-22.0.93.tar.gz which has
> datestamp Jan 23.

 Damn, I misread the summary...I thought it was 23.

> I should wait for 22.0.94? Or unmask emacs-cvs-22.0.9999, which seems to be an
> actual live ebuild?

 The release of emacs 22 isn't so far away.  Yes, please try the .9999, I will have a look at 22.0.93-r2.
Comment 4 Martin Bays 2007-02-13 11:58:51 UTC
22.0.9999-r2 bombed out with the same error:

make[1]: Entering directory `/var/tmp/portage/app-editors/emacs-cvs-22.0.9999-r2/work/emacs/lib-src'
../src/emacs -batch -l /var/tmp/portage/app-editors/emacs-cvs-22.0.9999-r2/work/emacs/lib-src/../lisp/mail/blessmail.el
Loading /usr/share/emacs/site-lisp/site-gentoo.el (source)...
Cannot open load file: ipython
make[1]: *** [blessmail] Error 255
make[1]: Leaving directory `/var/tmp/portage/app-editors/emacs-cvs-22.0.9999-r2/work/emacs/lib-src'
make: *** [blessmail] Error 2
Comment 5 Christian Faulhammer (RETIRED) gentoo-dev 2007-02-13 12:28:30 UTC
I can't reproduce with your USE flags, with and without ipython, stable and latest testing.  Please provide `emerge -pv ipython`.
Comment 6 Martin Bays 2007-02-13 12:54:27 UTC
$ emerge -pv ipython
[ebuild   R   ] dev-python/ipython-0.7.3  USE="emacs -doc -examples -gnuplot -test" 0 kB
Comment 7 Christian Faulhammer (RETIRED) gentoo-dev 2007-02-13 13:24:12 UTC
What I think is that a path isn't exported to the Sandbox.  Try `ROOTPATH="/usr/share/emacs/site-lisp/" emerge emacs-cvs` please.  I can't reproduce your errors here.

Please give the contents of /usr/share/emacs/site-list/site-gentoo.el and I will investigate a bit more.
Comment 8 Christian Faulhammer (RETIRED) gentoo-dev 2007-02-13 13:28:18 UTC
Oh and maybe you can provide your config.log (using the ebuild command to compile you should have it in /var/tmp/portage/.....).
Comment 9 Martin Bays 2007-02-13 14:03:32 UTC
Created attachment 110061 [details]
site-gentoo.el
Comment 10 Martin Bays 2007-02-13 14:05:45 UTC
Created attachment 110062 [details]
emacs-cvs-22.0.9999 config.log
Comment 11 Martin Bays 2007-02-13 14:06:20 UTC
Same error when emerging with ROOTPATH set.
Comment 12 Martin Bays 2007-02-13 14:12:06 UTC
Hmm... I don't know elisp, but going on pattern recognition alone my
site-gentoo.el appears to missing a line like
(add-to-list 'load-path "/usr/share/emacs/site-lisp/ipython")

I've tried adding that in, and am remerging.
Comment 13 Christian Faulhammer (RETIRED) gentoo-dev 2007-02-13 14:24:00 UTC
(In reply to comment #12)
> Hmm... I don't know elisp, but going on pattern recognition alone my
> site-gentoo.el appears to missing a line like
> (add-to-list 'load-path "/usr/share/emacs/site-lisp/ipython")
> > I've tried adding that in, and am remerging.

 I just recognized, that blessmail is ignored on my system, so I think you could be right.
Comment 14 Martin Bays 2007-02-13 14:52:03 UTC
Well, it stopped complaining about ipython after adding that line. But now I
get:

make[1]: Entering directory
`/var/tmp/portage/app-editors/emacs-cvs-22.0.9999-r2/work/emacs/lib-src'
../src/emacs -batch -l
/var/tmp/portage/app-editors/emacs-cvs-22.0.9999-r2/work/emacs/lib-src/../lisp/mail/blessmail.el
Loading /usr/share/emacs/site-lisp/site-gentoo.el (source)...
Cannot open load file: python-mode
make[1]: *** [blessmail] Error 255
make[1]: Leaving directory
`/var/tmp/portage/app-editors/emacs-cvs-22.0.9999-r2/work/emacs/lib-src'
make: *** [blessmail] Error 2

even though there is an "add-to-list 'load-path" for the appropriate path to
python-mode.
Comment 15 Martin Bays 2007-02-13 16:50:12 UTC
I just tried remerging python-mode, and this reverted /usr/share/emacs/site-lisp/site-gentoo.el to the form I attached earlier, with the ipython directory not being added to 'load-path. So now emerging emacs-cvs gives the original error "Cannot open load file: ipython".

Is this a bug in dev-python/ipython's 50ipython-mode-gentoo.el, which currently consists of the single line "(require 'ipython)"?
Comment 16 Martin Bays 2007-02-13 16:52:52 UTC
Ah. Great minds think alike, eh?
Comment 17 Christian Faulhammer (RETIRED) gentoo-dev 2007-02-13 17:11:50 UTC
(In reply to comment #14)
> Well, it stopped complaining about ipython after adding that line. But now I
> get:

 Ok, I had a look at the build system of Emacs, but can't find an obvious hint.
 So please provide the complete output of the emerge process.  Maybe I can find
something.
Comment 18 Martin Bays 2007-02-13 18:16:12 UTC
Created attachment 110084 [details]
emerge log

note that this is after hand-editing site-gentoo.el to fix the ipython problem
Comment 19 Ulrich Müller gentoo-dev 2007-02-16 22:49:07 UTC
Hm, ipython requires python-mode, so the ipython configuration within site-gentoo.el should really be moved behind the one for python-mode.

Changing the ipython site-init file from 50ipython-mode-gentoo.el (why is it called *-mode*, BTW?) to something like 62ipython-gentoo.el should do the job.

Martin: Could you edit your site-gentoo.el again, and verify if this fixes the problem? Just move the line
(require 'ipython)
down and place it just after the python-mode configuration.
Comment 20 Ulrich Müller gentoo-dev 2007-02-17 07:27:34 UTC
dev-python/ipython also fails to rebuild the site-gentoo file. See bug #167305 (that I have just filed).
Comment 21 Martin Bays 2007-02-17 09:30:35 UTC
After editing as requested in comment #19, it gets a fair bit further but still fails on blessmail...

make[1]: Entering directory `/var/tmp/portage/app-editors/emacs-cvs-22.0.9999-r2/work/emacs/lib-src'
../src/emacs -batch -l /var/tmp/portage/app-editors/emacs-cvs-22.0.9999-r2/work/emacs/lib-src/../lisp/mail/blessmail.el
Loading /usr/share/emacs/site-lisp/site-gentoo.el (source)...
Loading /usr/share/emacs/site-lisp/haskell-mode/haskell-site-file...
Loading /usr/share/emacs/site-lisp/cedet/common/cedet...
"/usr/share/emacs/site-lisp/cedet/common/" added to `load-path'
"/usr/share/emacs/site-lisp/cedet/cogre" added to `load-path'
"/usr/share/emacs/site-lisp/cedet/ede" added to `load-path'
"/usr/share/emacs/site-lisp/cedet/eieio" added to `load-path'
"/usr/share/emacs/site-lisp/cedet/semantic" added to `load-path'
"/usr/share/emacs/site-lisp/cedet/contrib" added to `load-path'
Setting up cedet...
Setting up cedet...done
Setting up cogre...
Setting up cogre...done
Setting up ede...
Setting up ede...done
Setting up eieio...
Setting up eieio...done
Setting up semantic...
Setting up semantic...done
Setting up speedbar...
Cannot open load file: speedbar-load
Setting up cedet-contrib...
Setting up cedet-contrib...done
ECB 2.32 uses loaded semantic 2.0pre3, eieio 1.0pre3 and speedbar 1.0.
Cannot open load file: semantic-el
make[1]: *** [blessmail] Error 255
make[1]: Leaving directory `/var/tmp/portage/app-editors/emacs-cvs-22.0.9999-r2/work/emacs/lib-src'
make: *** [blessmail] Error 2


The path to semantic-el is /usr/share/emacs/site-lisp/cedet/bovine/semantic-el.el

/usr/share/emacs/site-lisp/cedet/semantic/semantic.el also exists.

app-emacs/1.0_pre3-r2 is installed.
Comment 22 Ulrich Müller gentoo-dev 2007-02-17 10:45:30 UTC
I believe what we observe here are incompatibilities of some of your installed Emacs extensions (cedet, ipython?) with Emacs-22.

On the other hand, during its build phase Emacs should not load the site-init files at all. Indeed, in lisp/Makefile.in there is "EMACSOPT = -batch --no-site-file --multibyte", whereas in lib-src/Makefile emacs is called on blessmail.el without the "--no-site-file" option.

Attached patch should (hopefully) fix it.
Comment 23 Ulrich Müller gentoo-dev 2007-02-17 10:47:27 UTC
Created attachment 110458 [details, diff]
Proposed bugfix: files/emacs-cvs-blessmail-build.patch
Comment 24 Martin Bays 2007-02-17 11:16:55 UTC
Good work, Ulrich. With that patch applied, it compiles without a hitch. It also starts up without any obvious problems (though much slower that emacs-21).

Thanks.
Comment 25 Ulrich Müller gentoo-dev 2007-02-17 12:16:26 UTC
(In reply to comment #24)
> Good work, Ulrich. With that patch applied, it compiles without a hitch.

O.K., I have also reported the bug (and my patch) to Upstream.

This problem was already present in emacs-21.4 and I wonder why it had not shown up before.

> Thanks.

You are welcome.
Comment 26 Ulrich Müller gentoo-dev 2007-02-20 08:22:14 UTC
The patch has been accepted by upstream and the bug is fixed in CVS:

> From: Glenn Morris <rgm@gnu.org>
> Thanks, I installed your fix...
> ... maybe you'd like to add this info to the Gentoo bug?

Only question that remains: Should the bugfix be applied to emacs-21.4, too?
Comment 27 Christian Faulhammer (RETIRED) gentoo-dev 2007-02-20 22:23:04 UTC
(In reply to comment #26)
> The patch has been accepted by upstream and the bug is fixed in CVS:
> > From: Glenn Morris <rgm@gnu.org>
> > Thanks, I installed your fix...
> > ... maybe you'd like to add this info to the Gentoo bug?
> Only question that remains: Should the bugfix be applied to emacs-21.4, too?

 I did apply it to emacs-21.4-r7 (together with the temp string thingy) and emacs-cvs-22.0.93-r2 (no revision bump, as it won't afflict users for which it worked before).  Thanks a lot Ulrich for having a look as promised.  Fixed.