Bug 21305 - Lilypond fails to build
|
Bug#:
21305
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: x86
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: major
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: text-markup@gentoo.org
|
Reported By: daniel@timpsons.org
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: Lilypond fails to build
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2003-05-19 19:44 0000
|
I get the following error when trying to build lilypond.
parser.yy: In function `int yyparse(void*)':
parser.yy:1963: warning: unused variable `Input i'
parser.yy:2000: warning: unused variable `Input i'
make -C ../flower && true
make[2]: Entering directory
`/var/tmp/portage/lilypond-1.6.9/work/lilypond-1.6.9/flower'
make[2]: *** No rule to make target
`/root/.ccache/tmp.stdout.bluenote.32054.ii', needed by `out/axis.o'. Stop.
make[2]: Leaving directory
`/var/tmp/portage/lilypond-1.6.9/work/lilypond-1.6.9/flower'
make[1]: *** [out/lilypond] Error 2
rm out/parser.cc
make[1]: Leaving directory
`/var/tmp/portage/lilypond-1.6.9/work/lilypond-1.6.9/lily'
make: *** [all] Error 2
!!! ERROR: media-sound/lilypond-1.6.9 failed.
!!! Function src_compile, Line 48, Exitcode 2
!!! emake failed
Reproducible: Always
Steps to Reproduce:
1.emerge lilypond
2.
3.
Mine aborts building in a similar way:
rm -f ./out/lexer.dep; DEPENDENCIES_OUTPUT="./out/lexer.dep ./out/lexer.o" g++ -c
-march=athlon-tbird -O2 -pipe -fomit-frame-pointer -DHAVE_CONFIG_H -DSTRING_UTILS_INLINED
-Iinclude -I./out -I../flower/include -I../flower/./out -I../flower/include -march=athlon-tbird -O2 -pipe
-fomit-frame-pointer -O2 -finline-functions -g -march=athlon-tbird -O2 -pipe
-fomit-frame-pointer -O2 -finline-functions -g -Wall -W -Wmissing-prototypes -Wconversion -o
out/lexer.o out/lexer.cc
lexer.ll:128: warning: `int yy_start_stack_ptr' defined but not used
lexer.ll:129: warning: `int yy_start_stack_depth' defined but not used
lexer.ll:130: warning: `int*yy_start_stack' defined but not used
lexer.ll:132: warning: `void yy_push_state(int)' declared `static' but never
defined
lexer.ll:135: warning: `void yy_pop_state()' declared `static' but never
defined
lexer.ll:138: warning: `int yy_top_state()' declared `static' but never defined
bison parser.yy
parser.yy contains 2 shift/reduce conflicts.
mv: cannot stat `parser.yy.tab.c': No such file or directory
make[1]: [out/parser.cc] Error 1 (ignored)
mv parser.tab.cc out/parser.cc
rm -f ./out/parser.dep; DEPENDENCIES_OUTPUT="./out/parser.dep ./out/parser.o" g++ -c
-march=athlon-tbird -O2 -pipe -fomit-frame-pointer -DHAVE_CONFIG_H -DSTRING_UTILS_INLINED
-Iinclude -I./out -I../flower/include -I../flower/./out -I../flower/include -march=athlon-tbird -O2 -pipe
-fomit-frame-pointer -O2 -finline-functions -g -march=athlon-tbird -O2 -pipe
-fomit-frame-pointer -O2 -finline-functions -g -Wall -W -Wmissing-prototypes -Wconversion -o
out/parser.o out/parser.cc
In file included from
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include/g++-v3/backward/iostream.h:31,
from parser.yy:26:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include/g++-v3/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or antiquated header. Please consider
using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include
substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the
deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
parser.yy: In function `int yyparse(void*)':
parser.yy:1963: warning: unused variable `Input i'
parser.yy:2000: warning: unused variable `Input i'
make -C ../flower && true
make[2]: Entering directory `/mp3/portage/portage/lilypond-1.6.9/work/lilypond-1.6.9/flower'
make[2]: *** No rule to make target `/mp3/portage/ccache/tmp.stdout.asara.mine.nu.28676.ii',
needed by `out/polynomial.o'. Stop.
make[2]: Leaving directory `/mp3/portage/portage/lilypond-1.6.9/work/lilypond-1.6.9/flower'
make[1]: *** [out/lilypond] Error 2
rm out/parser.cc
make[1]: Leaving directory `/mp3/portage/portage/lilypond-1.6.9/work/lilypond-1.6.9/lily'
make: *** [all] Error 2
!!! ERROR: media-sound/lilypond-1.6.9 failed.
!!! Function src_compile, Line 48, Exitcode 2
!!! emake failed
asara root # emerge info
Portage 2.0.48 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r1 i686 AMD Duron(tm) Processor
GENTOO_MIRRORS="ftp://ftp.is.co.za/pub/linux/distributions/gentoo/
ftp://sunsite.dk/mirrors/gentoo/ ftp://gentoo.linux.no/pub/gentoo/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo/ "
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config
/etc/env.d /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mp3/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 3dnow apm avi crypt cups encode gif jpeg gnome libg++ mmx mpeg ncurses nls pdflib
png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline arts nas
bonobo svga ggi java guile ruby X sdl gpm tcpd pam libwww ssl python esd imlib oggvorbis gtk qt
kde opengl scanner aalib acl alsa cdr curl dga doc dvd flash gd gphoto2 imap innodb ldap mbox
-mikmod -motif mozilla mysql -oss pda perl postgres samba snmp tcltk tetex tiff usb wmf
xinerama artswrappersuid"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=athlon-tbird -O2 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="ccache sandbox distcc userpriv prelink"
Lilypond fails to build for me, but it has a different message:
mftrace 1.0.10
Font (cmbxti8)...
error: Can not find a TFM file to match `cmbxti8'
Traceback (most recent call last):
File "/usr/bin/mftrace", line 898, in ?
error (_("Can not find a TFM file to match `%s'") % basename)
File "/usr/bin/mftrace", line 115, in error
raise _ ("Exiting ... ")
Exiting ...
make[1]: *** [out/cmbxti7.pfa] Error 1
make[1]: Leaving directory `/var/tmp/portage/lilypond-1.6.9/work/lilypond-1.6.9/mf'
make: *** [pfa-fonts] Error 2
!!! ERROR: media-sound/lilypond-1.6.9 failed.
!!! Function src_compile, Line 58, Exitcode 2
!!! make web-doc failed
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-lilypond-1.6.9-13385.log"
mkdir: /var/cache/fonts/tfm/jknappen/sauter
--------------------------------------------------------------------------------
My info:
# emerge info
Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20 i686 Pentium III (Coppermine)
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss 3dnow encode libg++ mikmod nls xml2 xmms xv berkdb guile X sdl libwww gphoto2 alsa apache2 apm arts atlas avi cdr crypt cups doc -esd gd gdbm ggi gif -gnome gpm -gtk -gtk2 -gtkhtml imlib java jpeg kde maildir mmx motif mozilla mpeg mysql ncurses oav odbc oggvorbis opengl pam pda pdflib perl plotutils png python qt quicktime readline samba slang spell sse ssl svga tcltk tcpd tetex tiff truetype zeo zlib"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox distcc ccache"
-- Stephen
Has anybody looked at this defect? It's still a problem.
Thanks,
Daniel Timson
Please try FEATURES=-ccache and let us know what happens
Okay,
with Features="-ccache" the build works just fine. Why is that the case? I'm new to the development side of things but don't you usually want ccache? Everything else seems to build okay with it? Also, what was it the led you to believe that it was a problem with ccache?
Thanks,
Dan
This line clued me in:
make[2]: *** No rule to make target
`/mp3/portage/ccache/tmp.stdout.asara.mine.nu.28676.ii',
Make shouldn't know about ccache; it's supposed to be transparent to
make. Clearly if make is considering something in /mp3/portage/ccache
a target, then ccache is conflicting somehow with the lilypond ebuild.
I don't know how to specify in the lilypond ebuild to avoid ccache, or
if it's really possible. We might need to fix lilypond instead so
that ccache works.
Still fails here with ccache disabled. Lots of warnings; here's the tail:
warning: autotrace: command exited with value 32512 (ignored) warning: Autotrace failed on
bitmap. Bitmap left in `/var/tmp/portage/lilypond-1.6.9/work/lilypond-1.6.9/mf/autotrace-
bug-cmbxti7-127.pbm'
Failed command was:
autotrace -background-color FFFFFF --output-format=eps --input-format=pbm --outpu
t-file=char.eps -filter-iterations 9 /var/tmp/portage/lilypond-1.6.9/work/lilypond-1.6.9/m
f/autotrace-bug-cmbxti7-127.pbm
Please submit a bugreport to autotrace development.
Continuing trace...
autotrace: error while loading shared libraries: libMagick-5.5.6-Q16.so.0: cannot open sha
red object file: No such file or directory
warning: autotrace: command exited with value 32512 (ignored) autotrace: error while loadi
ng shared libraries: libMagick-5.5.6-Q16.so.0: cannot open shared object file: No such fil
e or directory
warning: autotrace: command exited with value 32512 (ignored) autotrace: error while loadi ng shared libraries: libMagick-5.5.6-Q16.so.0: cannot open shared object file: No such fil e or directory
warning: autotrace: command exited with value 32512 (ignored) autotrace: error while loadi ng shared libraries: libMagick-5.5.6-Q16.so.0: cannot open shared object file: No such fil e or directory
warning: autotrace: command exited with value 32512 (ignored) autotrace: error while loadi ng shared libraries: libMagick-5.5.6-Q16.so.0: cannot open shared object file: No such fil e or directory
warning: autotrace: command exited with value 32512 (ignored) autotrace: error while loadi ng shared libraries: libMagick-5.5.6-Q16.so.0: cannot open shared object file: No such fil e or directory
warning: autotrace: command exited with value 32512 (ignored) autotrace: error while loadi ng shared libraries: libMagick-5.5.6-Q16.so.0: cannot open shared object file: No such fil e or directory
warning: autotrace: command exited with value 32512 (ignored) autotrace: error while loadi ng shared libraries: libMagick-5.5.6-Q16.so.0: cannot open shared object file: No such fil e or directory
warning: autotrace: command exited with value 32512 (ignored) autotrace: error while loadi ng shared libraries: libMagick-5.5.6-Q16.so.0: cannot open shared object file: No such fil e or directory
warning: autotrace: command exited with value 32512 (ignored) warning: Failing even -filt er-iterations=0. Skipping character.
(skipping character)]
Assembling font (cmbxti7.pfa)...
Simplifying font (cmbxti7.pfa)... Copyright
Still fails here with ccache disabled. Lots of warnings; here's the tail:
warning: autotrace: command exited with value 32512 (ignored) warning: Autotrace failed on
bitmap. Bitmap left in `/var/tmp/portage/lilypond-1.6.9/work/lilypond-1.6.9/mf/autotrace-
bug-cmbxti7-127.pbm'
Failed command was:
autotrace -background-color FFFFFF --output-format=eps --input-format=pbm --outpu
t-file=char.eps -filter-iterations 9 /var/tmp/portage/lilypond-1.6.9/work/lilypond-1.6.9/m
f/autotrace-bug-cmbxti7-127.pbm
Please submit a bugreport to autotrace development.
Continuing trace...
autotrace: error while loading shared libraries: libMagick-5.5.6-Q16.so.0: cannot open sha
red object file: No such file or directory
warning: autotrace: command exited with value 32512 (ignored) autotrace: error while loadi
ng shared libraries: libMagick-5.5.6-Q16.so.0: cannot open shared object file: No such fil
e or directory
warning: autotrace: command exited with value 32512 (ignored) autotrace: error while loadi ng shared libraries: libMagick-5.5.6-Q16.so.0: cannot open shared object file: No such fil e or directory
warning: autotrace: command exited with value 32512 (ignored) autotrace: error while loadi ng shared libraries: libMagick-5.5.6-Q16.so.0: cannot open shared object file: No such fil e or directory
warning: autotrace: command exited with value 32512 (ignored) autotrace: error while loadi ng shared libraries: libMagick-5.5.6-Q16.so.0: cannot open shared object file: No such fil e or directory
warning: autotrace: command exited with value 32512 (ignored) autotrace: error while loadi ng shared libraries: libMagick-5.5.6-Q16.so.0: cannot open shared object file: No such fil e or directory
warning: autotrace: command exited with value 32512 (ignored) autotrace: error while loadi ng shared libraries: libMagick-5.5.6-Q16.so.0: cannot open shared object file: No such fil e or directory
warning: autotrace: command exited with value 32512 (ignored) autotrace: error while loadi ng shared libraries: libMagick-5.5.6-Q16.so.0: cannot open shared object file: No such fil e or directory
warning: autotrace: command exited with value 32512 (ignored) autotrace: error while loadi ng shared libraries: libMagick-5.5.6-Q16.so.0: cannot open shared object file: No such fil e or directory
warning: autotrace: command exited with value 32512 (ignored) warning: Failing even -filt er-iterations=0. Skipping character.
(skipping character)]
Assembling font (cmbxti7.pfa)...
Simplifying font (cmbxti7.pfa)... Copyright © 2000-2003 by George Williams.
Executable based on sources from 16:26 12-5-2003.
mftrace 1.0.10
Font (cmbxti8)...
error: Can not find a TFM file to match `cmbxti8'
Traceback (most recent call last):
File "/usr/bin/mftrace", line 898, in ?
error (_("Can not find a TFM file to match `%s'") % basename)
File "/usr/bin/mftrace", line 115, in error
raise _ ("Exiting ... ")
Exiting ...
make[1]: *** [out/cmbxti7.pfa] Error 1
make[1]: Leaving directory `/var/tmp/portage/lilypond-1.6.9/work/lilypond-1.6.9/mf'
make: *** [pfa-fonts] Error 2
!!! ERROR: media-sound/lilypond-1.6.9 failed.
!!! Function src_compile, Line 58, Exitcode 2
!!! make web-doc failed
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-lilypond-1.6.9-20590.log"
-- Stephen
Stephen, if you could supply an attachment with the full output of the
emerge, that might be helpful. (Please use the attachment feature of
bugzilla... don't paste it all into the bug report)
It looks like autotrace was compiled with imagemagick support,
but imagemagick is no longer installed. My guess is that you
can get past this by re-emerging autotrace.
On the other hand, you're just going to run into other problems
because the web-doc build is broken in lilypond-1.6.9.ebuild.
To build everything but web-doc:
USE="-doc" emerge lilypond
If you really want the html documentation, you can try my new
1.6.10 ebuild (bug 24687). You'll still have to fix imagemagick.
I meant to say that you'll still have to fix autotrace.
I re-emerged autotrace, and
USE="-doc" emerge lilypond
worked for me. Thanks. -- Stephen
I believe I've fixed the various bugs reported here. First I disabled ccache
in the 1.6.9 ebuild. Second I removed web-doc building from the ebuild since
it's broken (and it sounds like the 1.8.0 ebuild might have it fixed).
The new ebuild worked fine for me; it's no longer necessary to do USE="-doc"
emerge lilypond. Thanks for the work on the ebuild.
Are you working on making an ebuild for the development branch? ;)
I see on the site that 1.95 is feature complete and that 2.0 is going to come
out in a few weeks.
-- Stephen
I'm not personaly working on an ebuild for the development branch. I'm totally
depending on Mike Ossman to provide this stuff... ;-)
Either way, I'm overjoyed at this open source thing. Thanks for fixing the
defect. I'm amazed that an app that has such a limited following among us
gentoo-ites is a priority for someone. Thanks again!
Dan
I just submitted a 2.0.0 ebuild, bug 29619. Fast on the heels of 1.8!
I'm not sure how this bug got marked NEW again, but I'm pretty sure it should
be CLOSED.
Most likely related to the recent bugzilla hiccups. The lid should stay on
this time.