Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115491 - gettext-0.14.4 fails to build with emacs
Summary: gettext-0.14.4 fails to build with emacs
Status: RESOLVED DUPLICATE of bug 164494
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-13 19:00 UTC by Linus van Geuns
Modified: 2007-05-14 07:03 UTC (History)
4 users (show)

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


Attachments
full backtrace (backtrace.txt,15.55 KB, text/plain)
2006-08-06 16:29 UTC, Brant Gurganus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Linus van Geuns 2005-12-13 19:00:56 UTC
I changed to gcc-3.4.4 following the guide
(http://www.gentoo.org/doc/en/gcc-upgrading.xml). Since gcc-3.4.4 gettext-0.14.4
fails to build with the following output:

Making all in misc
make[3]: Entering directory
`/var/tmp/portage/gettext-0.14.4/work/gettext-0.14.4/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
While compiling toplevel forms in file
/var/tmp/portage/gettext-0.14.4/work/gettext-0.14.4/gettext-tools/misc/elc.27390/po-compat.el:
  !! Wrong type argument ((listp 0))
While compiling toplevel forms in file
/var/tmp/portage/gettext-0.14.4/work/gettext-0.14.4/gettext-tools/misc/elc.27390/po-mode.el:
  !! Wrong type argument ((listp -128580040))
Wrote
/var/tmp/portage/gettext-0.14.4/work/gettext-0.14.4/gettext-tools/misc/elc.27390/start-po.elc
Done
make[3]: *** [elc-stamp] Error 1
make[3]: Leaving directory
`/var/tmp/portage/gettext-0.14.4/work/gettext-0.14.4/gettext-tools/misc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/gettext-0.14.4/work/gettext-0.14.4/gettext-tools'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/var/tmp/portage/gettext-0.14.4/work/gettext-0.14.4/gettext-tools'
make: *** [all-recursive] Error 1

!!! ERROR: sys-devel/gettext-0.14.4 failed.
!!! Function src_compile, Line 65, Exitcode 2
!!! (no error message)

Reproducible: Always
Steps to Reproduce:
1. Upgrade to gcc-3.4.4
2. Run emerge gettext



Expected Results:  
A clean build. ;-)

# emerge info
Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2,
2.6.14-gentoo-r2caesium i686)
=================================================================
System uname: 2.6.14-gentoo-r2caesium i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -finline-functions -pipe -march=pentium4"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /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="-O2 -finline-functions -pipe -march=pentium4"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.hadiko.de/pub/dists/gentoo/gentoo"
LANG="en_GB.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://ftp.hadiko.de/pub/dists/gentoo/gentoo-portage"
USE="x86 X Xaw3d aalib acl acpi adns aim alsa audiofile avi bash-completion
bcmath berkdb bitmap-fonts blas bluetooth bmp bonobo bzip2 calendar cdinstall
cdparanoia cdr cpdflib crypt cscope ctype cups curl curlwrappers dbus dga doc
dri dts dv dvb dvd dvdr dvdread eds emacs emboss encode esd ethereal exif expat
fam fdftk ffmpeg flac flash foomaticdb fortran ftp gd gdbm gdm geoip gif glut
gmp gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal howl iconv icq idn
ieee1394 imagemagick imap imlib ipv6 jabber jack java javascript jikes jpeg
junit lcms ldap libcaca libg++ libwww lm_sensors mad matroska mhash mikmod mime
ming mmap mng mono motif mozilla mp3 mpeg mpi ncurses netcdf nls nsplugin ntpl
ogg oggvorbis openal opengl oscar oss pam pcre pdflib perl plotutils png
portaudio posix ppds python quicktime readline recode ruby s52 samba sasl sdl
sharedmem shorten skey slang slp smartcard socket speex spell sse ssl svg
sysvipc tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts udev
unicode usb v4l vcd videos vorbis win32codecs wmf xine xml2 xmlrpc xmms xpm xv
xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2005-12-13 19:45:47 UTC
i doubt this has anything to do with gcc-3.4 considering ive built it many times
with 3.4.[345]

looks more like emacs sucks

try emerging with USE=-emacs
Comment 2 Linus van Geuns 2005-12-14 02:46:39 UTC
I'll try later today, but gcc-3.3.? has built it successfully..
Comment 3 Linus van Geuns 2005-12-14 12:50:29 UTC
Ok, it worked with USE=-emacs, thanks.
Comment 4 Anthony Staines 2006-01-02 03:18:24 UTC
This isn't a gcc upgrade problem, it's either a USE flags problem with USE=emacs; or a gettext problem, and maybe a gpm problem too (See forum posts 405193, 389021, 411242). I was bitten by it before. 

You can fix it by typing :-

USE=-emacs emerge gettext

Details

Doing emerge --newuse -uavD world fails on gettext as follows :-

Calculating dependencies  >>> Unpacking source...
>>> Unpacking gettext-0.14.4.tar.gz to /var/tmp/portage/gettext-0.14.4/work

make[3]: Leaving directory `/var/tmp/portage/gettext-0.14.4/work/gettext-0.14.4/gettext-tools/po'
Making all in projects
make[3]: Entering directory `/var/tmp/portage/gettext-0.14.4/work/gettext-0.14.4/gettext-tools/projects'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/tmp/portage/gettext-0.14.4/work/gettext-0.14.4/gettext-tools/projects'
Making all in misc
make[3]: Entering directory `/var/tmp/portage/gettext-0.14.4/work/gettext-0.14.4/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

QA Notice: USE Flag 'elibc_glibc' not in IUSE for sys-devel/gettext-0.14.4
Loading /usr/share/emacs/site-lisp/site-gentoo (source)...
Opening directory: permission denied, /opt/bin
make[3]: *** [elc-stamp] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

!!! ERROR: sys-devel/gettext-0.14.4 failed.
!!! Function src_compile, Line 65, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.



emerge --info
Gentoo Base System version 1.6.13
Portage 2.0.53 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.13-gentoo-r3 i686)
=================================================================
System uname: 2.6.13-gentoo-r3 i686 Pentium III (Katmai)
distcc 2.16 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/grass60/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /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="-O2 -march=pentium3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo/ http://gentoo.blueyonder.co.uk http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirror.uni-c.dk/gentoo/"
LINGUAS="en_GB en fr de es"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X acl alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bzip2 cdparanoia cdr crypt cups curl eds emacs emboss encode esd exif expat f77 fam flac foomaticdb fortran gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 idn imagemagick imlib ipv6 java jpeg junit kde lcms ldap libg++ libwww lua mad mhash mikmod mmx mng motif mozilla mozsvg mp3 mpeg mysql ncurses nls ogg oggvorbis opengl oss pam pcre pda pdflib perl png python qt quicktime readline recode samba sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev vorbis xine xml xml2 xmms xv xvid zlib linguas_en_GB linguas_en linguas_fr linguas_de linguas_es userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, MAKEOPTS





> 
Comment 5 witr 2006-02-07 16:33:09 UTC
In my case the first time I did an "emerge -e system" after upgrading to gcc-3.4.4  the compile went fine.  The problem happened when I later did an "emerge -e world".  Now I have the same problem.
Comment 6 witr 2006-02-09 10:06:59 UTC
The above "workarounds" really aren't workarounds, because future "world" emerges will just hit this again.

These are the involved versions and use-flags for me:

[ebuild   R   ] app-editors/emacs-21.4-r1  +X +Xaw3d +gnome -leim -lesstif +motif +nls -nosendmail 0 kB
[ebuild   R   ] sys-devel/gettext-0.14.4  -doc +emacs +nls 0 kB
[ebuild   R   ] sys-libs/gpm-1.20.1-r4  +emacs (-selinux) 0 kB

I'm no emacs guru, but if I run emacs and try to byte-compile-file one of these, emacs segfaults! 
 
Program received signal SIGSEGV, Segmentation fault.
0x08181c15 in error ()
(gdb) bt
#0  0x08181c15 in error ()
#1  0x00000007 in ?? ()
#2  0x00000000 in ?? ()
(gdb)

Running it in batch mode produces the above error message.

So, agreeing with the above, seems like an emacs bug.
Comment 7 Brant Gurganus 2006-08-06 16:29:10 UTC
Created attachment 93617 [details]
full backtrace

I have attached a full backtrace of manually running the command used to do the compilation.
Comment 8 witr 2006-08-13 08:13:18 UTC
FWIW, exactly the same problem exists with gettext-0.14.5.  Is any progress being made with this bug?
Comment 9 Kasnol Abrinski 2006-09-22 21:05:28 UTC
This bug still exist in gettext-0.15.0 ~ 
I managed to resolve this problem for the time being by removing USE Flag emacs and emacs-w3
Comment 10 witr 2006-10-23 06:35:03 UTC
Other bugs and threads state that this emacs crash is caused by too-agressive optimization, but it happens to me on two different systems, with different CPUs and "approved" optimizations:

CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"

and

CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"

This apparent emacs bug affects a number of ebuilds, including for me just yesterday, subversion.
Comment 11 Dominique Michel 2007-01-24 09:41:55 UTC
I get the same problem and almost the same error with gettext 0.16.1 and gcc-4.1.1:

Making all in misc
make[3]: Entering directory `/var/tmp/portage/gettext-0.16.1/work/gettext-0.16.1/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
Symbol's value as variable is void: load
make[3]: *** [elc-stamp] Error 1
make[3]: Leaving directory `/var/tmp/portage/gettext-0.16.1/work/gettext-0.16.1/gettext-tools/misc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gettext-0.16.1/work/gettext-0.16.1/gettext-tools'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/gettext-0.16.1/work/gettext-0.16.1/gettext-tools'
make: *** [all-recursive] Error 1

!!! ERROR: sys-devel/gettext-0.16.1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  gettext-0.16.1.ebuild, line 58:   Called die

!!! (no error message) 

# emerge --info
Portage 2.1.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.19.1-rt15-3D-fb i686)
=================================================================
System uname: 2.6.19.1-rt15-3D-fb i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.12.6
Last Sync: Tue, 23 Jan 2007 17:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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.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="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo http://gentoo.mirror.solnet.ch"
LANG="en_GB"
LC_ALL="en_GB"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="fr en sv"
MAKEOPTS="-j2"
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/science /usr/portage/local/layman/kpex-media /usr/portage/local/layman/pro-audio /usr/portage/local/layman/xfce4-svn /usr/portage/local/layman/WTK-Testing /usr/portage/local/layman/test /usr/portage/local/layman/gentoo-old"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d a52 aac acpi aim alsa alsa_cards_bt87x alsa_cards_dummy alsa_cards_emu10k1 alsa_cards_ens1370 alsa_cards_intel8x0 alsa_cards_mpu401 alsa_cards_usb-audio alsa_cards_virmidi alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol arts audiofile avi berkdb bidi bindist bitmap-fonts bxip2 bzip2 cairo cdparanoia cdr cjk clamav cli cracklib crypt css cups dbus dga dio div4linux dlloader dri dssi dts dv dvb dvd dvdr dvdread eds elibc_glibc emacs emacs-w3 emboss encode esd exif expat fam ffmpeg fftw firefox flac flash fluidsynth foomaticdb fortran ftp gb gd gdbm gif gnome gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml hal howl iconv icq ieee1394 imagemagick imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog jabber jack jack-tmpfs jackmidi java jbig jpeg jpeg2k kde kernel_linux ladspa lapack lash lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text lcms ldap libedit libg++ libsamplerate linguas_en linguas_fr linguas_sv mad mikmod mime ming mmx mng motif mp3 mpeg mpi mplayer msn mule musepack mysql nas ncurses nls nntp nptl nptlonly nsplugin offensive ogg openal openexr opengl oscar oss pam pcre pdf perl pic plotutils png posix ppds pppd python qt3 qt4 quicktime readline recode reflection scanner sdl seamonkey session shorten slang slp sndfile sox speex spell spl sse sse2 ssl svg szip tcl tcltk tcpd tetex theora threads tiff tk truetype truetype-fonts type1-fonts udev unicode userland_GNU v4l vcd video_cards_nv video_cards_nvidia video_cards_v4l video_cards_vesa vorbis vst win32codecs wmf wxwindows x264 xface xine xinerama xml xml2 xorg xosd xpm xv xvid yahoo zlib"
Unset:  CTARGET, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS

About the WTK-Testing overlay, I don't have the time to do profiling and it will be removed soon. So, I use only the system CFLAGS and they are safe.

I merged gettext with USE=-emacs and it worked.
Comment 12 Ulrich Müller gentoo-dev 2007-04-28 07:06:06 UTC
This might be the same issue as in bug #164494 (I'm not entirely sure though).

Could you try the attached patch (attachment #110615 [details, diff]) from there?
Comment 13 Dominique Michel 2007-05-09 21:52:45 UTC
Sorry for the delay, I was very busy.

The patch worked fine. I included it in the ebuild for commodity of use and portage emerged gettext with USE=emacs.

Thank you. 
Comment 14 Ulrich Müller gentoo-dev 2007-05-14 07:03:54 UTC
(In reply to comment #13)
> The patch worked fine. I included it in the ebuild for commodity of use and
> portage emerged gettext with USE=emacs.

Closing as duplicate then.


*** This bug has been marked as a duplicate of bug 164494 ***