Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125967 - app-text/rhyme-0.9 emerge fails - error opening words.db for writing
Summary: app-text/rhyme-0.9 emerge fails - error opening words.db for writing
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jeremy Olexa (darkside) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-12 11:31 UTC by Steve Christman
Modified: 2008-06-14 00:51 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Christman 2006-03-12 11:31:57 UTC
Do you want me to merge these packages? [Yes/No]
>>> Emerging (1 of 1) app-text/rhyme-0.9 to /
>>> checksums files   ;-) rhyme-0.9.ebuild
>>> checksums files   ;-) files/digest-rhyme-0.9
>>> checksums src_uri ;-) rhyme-0.9.tar.gz
>>> Unpacking source...
>>> Unpacking rhyme-0.9.tar.gz to /var/tmp/portage/rhyme-0.9/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/rhyme-0.9/work/rhyme-0.9 ...
gcc -O2 -march=pentium4 -c longline.c
gcc -O2 -march=pentium4 -c dict.c
gcc -O2 -march=pentium4 -c parts.c
gcc -O2 -march=pentium4 -c alloc.c
gcc -O2 -march=pentium4 -c rhyme.c -I/usr/include/readline
gcc -O2 -march=pentium4 -c setup.c -I/usr/include/readline -DDEFAULT_RHYMEPATH="\"/usr/share/rhyme\""
gcc -O2 -march=pentium4 -c getopt1.c
gcc -O2 -march=pentium4 -c getopt.c
gcc -O2 -march=pentium4 -o makedb makedb.c longline.o dict.o parts.o alloc.o
gcc -O2 -march=pentium4 -o compile compile.c alloc.o longline.o -lgdbm
gcc -O2 -march=pentium4 -o merge merge.c alloc.o longline.o
gcc -O2 -march=pentium4 -o rhyme main.c rhyme.o setup.o alloc.o getopt1.o getopt.o -I/usr/include/readline -lgdbm -lreadline -lncurses
./merge cmudict.0.6-2 cmudict.patch | ./makedb words.db rhymes.db multiple.db
./merge cmudict.0.6-2 cmudict.patch | ./makedb words.db rhymes.db multiple.db
128007 lines read from standard input
128007 lines read from standard input
error opening words.db for writing
/bin/sh: line 1: 19052 Done                    ./merge cmudict.0.6-2 cmudict.patch
     19053 Broken pipe             | ./makedb words.db rhymes.db multiple.db
make: *** [rhymes.db] Error 141
make: *** Waiting for unfinished jobs....
Inserted 125619 lines into words.db
Inserted 48017 lines into rhymes.db
Inserted 4868 lines into multiple.db

!!! ERROR: app-text/rhyme-0.9 failed.
Call stack:
  ebuild.sh, line 1933:   Called dyn_compile
  ebuild.sh, line 971:   Called src_compile

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-03-12 13:13:49 UTC
<snip>
Bugzilla: Bugs regarding the Gentoo Bugzilla website  (bugs.gentoo.org),
Bugs related to ebuilds belong in 'Gentoo Linux'
</snip>

Could you explain what does lead you to the conclusion that app-text/rhyme is any *any* way related to Gentoo Bugzilla website?!
Comment 2 Tavis Ormandy (RETIRED) gentoo-dev 2006-03-12 13:42:55 UTC
That step requires a fair chunk of memory, is it possible you're running out?

I'm considering pre-building the dictionaries so this step wont be needed.
Comment 3 calvin 2006-07-04 19:37:29 UTC
I get a very similar error too, and I have 1.5GB of memory, so I hope that is not the issue.

For what it's worth, I'm also march=pentium4, and here's my log output:

>>> Unpacking source...
>>> Unpacking rhyme-0.9.tar.gz to /var/tmp/portage/rhyme-0.9/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/rhyme-0.9/work/rhyme-0.9 ...
gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -c longline.c
gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -c dict.c
gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -c parts.c
gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -c alloc.c
gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -c rhyme.c -I/usr/include/readline
gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -c setup.c -I/usr/include/readline -DDEFAULT_RHYMEPATH="\"/usr/share/rhyme\""
gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -c getopt1.c
gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -c getopt.c
gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -o makedb makedb.c longline.o dict.o parts.o alloc.o
gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -o compile compile.c alloc.o longline.o -lgdbm
gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -o merge merge.c alloc.o longline.o
gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -o rhyme main.c rhyme.o setup.o alloc.o getopt1.o getopt.o -I/usr/include/readline -lgdbm -lreadline -lncurses
./merge cmudict.0.6-2 cmudict.patch | ./makedb words.db rhymes.db multiple.db
./merge cmudict.0.6-2 cmudict.patch | ./makedb words.db rhymes.db multiple.db
128007 lines read from standard input
128007 lines read from standard input
error opening words.db for writing
make: *** [words.db] Error 141
make: *** Waiting for unfinished jobs....
Inserted 125619 lines into words.db
Inserted 48017 lines into rhymes.db
Inserted 4868 lines into multiple.db

!!! ERROR: app-text/rhyme-0.9 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  rhyme-0.9.ebuild, line 31:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 4 calvin 2006-07-04 19:38:48 UTC
Oops, ignore march=pentium4 comment. I'm filing this from my laptop, but have seen it on my pentium4 machine as well, so that's probably a red herring.
Comment 5 Willie Wong 2006-09-21 08:50:10 UTC
The same error on my 512M memory laptop. If it were a memory issue, would it always fail on 128007 lines across machines with different sized memory?

>>> Emerging (1 of 1) app-text/rhyme-0.9 to /
 * rhyme-0.9.tar.gz MD5 ;-) ...                                           [ ok ]
 * rhyme-0.9.tar.gz size ;-) ...                                          [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking rhyme-0.9.tar.gz ;-) ...                                      [ ok ]
>>> Unpacking source...
>>> Unpacking rhyme-0.9.tar.gz to /tmp/portage/rhyme-0.9/work
>>> Source unpacked.
>>> Compiling source in /tmp/portage/rhyme-0.9/work/rhyme-0.9 ...
gcc -Os -march=pentium-m -ftracer -pipe -c longline.c
gcc -Os -march=pentium-m -ftracer -pipe -c dict.c
gcc -Os -march=pentium-m -ftracer -pipe -c parts.c
gcc -Os -march=pentium-m -ftracer -pipe -c alloc.c
gcc -Os -march=pentium-m -ftracer -pipe -c rhyme.c -I/usr/include/readline
gcc -Os -march=pentium-m -ftracer -pipe -c setup.c -I/usr/include/readline -DDEFAULT_RHYMEPATH="\"/usr/share/rhyme\""
gcc -Os -march=pentium-m -ftracer -pipe -c getopt1.c
gcc -Os -march=pentium-m -ftracer -pipe -c getopt.c
gcc -Os -march=pentium-m -ftracer -pipe -o makedb makedb.c longline.o dict.o parts.o alloc.o
gcc -Os -march=pentium-m -ftracer -pipe -o compile compile.c alloc.o longline.o -lgdbm
gcc -Os -march=pentium-m -ftracer -pipe -o merge merge.c alloc.o longline.o
gcc -Os -march=pentium-m -ftracer -pipe -o rhyme main.c rhyme.o setup.o alloc.o getopt1.o getopt.o -I/usr/include/readline -lgdbm -lreadline -lncurses
./merge cmudict.0.6-2 cmudict.patch | ./makedb words.db rhymes.db multiple.db
./merge cmudict.0.6-2 cmudict.patch | ./makedb words.db rhymes.db multiple.db
128007 lines read from standard input
128007 lines read from standard input
error opening words.db for writing
make: *** [words.db] Error 141
make: *** Waiting for unfinished jobs....
Inserted 125619 lines into words.db
Inserted 48017 lines into rhymes.db
Inserted 4868 lines into multiple.db

!!! ERROR: app-text/rhyme-0.9 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  rhyme-0.9.ebuild, line 31:   Called die
Comment 6 Rolf Schuler 2007-10-22 19:43:04 UTC
I'm getting the same error as Willie Wong on x86.

Also, any chance of rhyme being un-masked for AMD-64?
Comment 7 Jabari R. Roberts 2008-04-19 15:46:56 UTC
Same error as Willie Wong in comment #5, and I have 2 GB of RAM on the computer used for compiling.

emerge --info:
***************

Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r4 i686)
=================================================================
System uname: 2.6.24-gentoo-r4 i686 AMD Athlon(tm) XP 3000+
Timestamp of tree: Sat, 19 Apr 2008 04:45:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -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/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en en_US ja"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --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.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip R X Xaw3d a52 aac aalib accessibility acl acpi activefilter ada addbookmarks additions adplug aio akode alisp allegro alsa amr amrnb amrwb anthy ao arts artswrappersuid artworkextra asterisk asyncns audiofile autoipd autoreplace avahi bash-completion bcp bdf beagle berkdb bidi bjam bl branding bzip2 cairo caps cdda cddb cdio cdparanoia cdr charconv chardet chicken chm chroot cjk clearcase cli clisp connectionstatus contactnotes cracklib crypt cscope css cups curl cvs d daap dar64 dbus dc1394 device-mapper devil dga dhcp disk-partition diskio divx djbfft djvu doc dts dv dvd dvdr dvdread dvi eap-tls eds elf emboss emovix enca encode escreen esd etwin evo examples exif expat extra-cardsets fam fame fat ffmpeg fftw firefox flac fontconfig foomaticdb fortran fpx freetts ftp galago gd gdbm gecko gif gimp glib glitz gmedia gmp gnokii gnome gnutls gphoto2 gpm grammar graphviz gs gsl gstreamer gtk gtkhtml guile hal hdri hfs highlight history howl-compat hpn ical iconv icu id3tag idn ieee1394 imagemagick imlib immqt-bc insecure-savers ipv6 irc isdnlog jack jai java javascript jbig jce jingle jmf joystick jpeg jpeg2k jsapi justify kde kdehiddenvisibility kerberos keyring kig-scripting kipi kpathsea ladspa lame lapack latex lcms ldap libcaca libgda libnotify libsamplerate live lm_sensors logitech-mouse loop-aes lua lzo m17n-lib mad math matroska mbrola md5sum mdnsresponder-compat meanwhile mfd-rewrites midi mikmod mime mjpeg mmap mmx mmxext mng modplug mono motif mp2 mp3 mp4 mpeg mplayer mtp mudflap musepack musicbrainz mzscheme nas ncurses nemesi nethack netjack netmeeting network network-cron networking networkmanager new-clx nfs nls nntp nowlistening npp nptl nptlonly nsplugin ntfs objc objc++ objc-gc ocaml offensive ogg ole openal openexr opengl openmp oss ots overlays pam pango parse-clocks pascal pccts pch pcre pda pdf perforce perl physfs pike png pnm portaudio povray ppds pppd prediction prime pth pulseaudio pyste python qt3 qt3support qt4 quicktime rar rdesktop readline real realmedia reflection regex reiser4 reiserfs remote replytolist rle rpm rrdcgi rtc rtsp ruby samba sametime sasl scanner sdl sdl-image sdlaudio sensord serial session shout sid silc skins slang slp sms sndfile snmp solver soundex source speex spell spl sql sqlite sqlite3 srt sse ssl statistics stream subtitles subversion svg swat symlink sysfs syslog t1lib talkfilters tcl tcpd teletext tetex texteffect tga theora thesaurus threads threadsafe tiff timidity tivo tk toolbar tools translator truetype tta unicode usb utempter utils v4l v4l2 vcd vidix vim-pager vim-syntax vim-with-x vlm vorbis vorbis-psy wavpack webpresence win32codecs winpopup wma wmf wmp wordperfect wxwindows x264 x86 xanim xattr xcomposite xerces-c xext xft xine xinerama xml xorg xosd xpm xscreensaver xv xvid xvmc yahoo yp yv12 zeroconf zlib zoran zvbi" 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard joystick mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US ja" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 8 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-06-14 00:51:01 UTC
Hmm, The ebuild said that it worked fine with parallel building but I resolved this exact issue with MAKEOPTS=-j1, so I'm going to assume that parallel building doesn't work anymore for whatever reason..?

Please re-open if you still have problems.

Thanks for reporting!