ChangeLog/1.4419 fails to compile correctly

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

ChangeLog/1.4419 fails to compile correctly

Tapio Tuovila
Hi,

when trying to compile
ChangeLog/1.4419/Mon Jan  2 05:28:33 2006
on SuSE 10.0 it spits out the following:

 out/feta-braces-h.otf-table
cat out/feta-braces-i.lisp \
 \
 > out/feta-braces-i.otf-table
make[1]: *** No rule to make target
`/usr/share/fonts/default/Type1/c059013l.pfb', needed by
`out/CenturySchL-Ital.ttf'.  Stop.
make[1]: Leaving directory `/home/tapu/Downloads/Lily/lilypond/mf'
make: *** [all] Error 2



it is possible to try lily/out/lilypond, this gives the following:

lily/out/lilypond
GNU LilyPond 2.7.27
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/lily-library.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/file-cache.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/define-music-types.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/output-lib.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/c++.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/chord-ignatzek-names.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/chord-entry.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/chord-generic-names.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/stencil.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/markup.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/music-functions.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/part-combiner.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/autochange.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/define-music-properties.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/auto-beam.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/chord-name.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/parser-ly-from-scheme.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/define-context-properties.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/translation-functions.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/script.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/midi.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/layout-beam.scm]
/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/parser-clef.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/layout-slur.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/font.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/encoding.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/fret-diagrams.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/define-markup-commands.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/define-grob-properties.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/define-grobs.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/define-grob-interfaces.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/define-stencil-commands.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/layout-page-layout.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/titling.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/paper.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/backend-library.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/x11-color.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/safe-lily.scm]
Usage: lilypond [OPTION]... FILE...

Typeset music and/or produce MIDI from FILE.

LilyPond produces beautiful music notation.
For more information, see http://lilypond.org

Options:
  -b, --backend=BACK               use backend BACK (gnome, ps,eps,
                                     scm, svg, tex, texstr)
                                     default: PS
  -d, --define-default=SYM=VAL     set a Scheme program option. Uses #t
if VAL is not specified
                                     Try -dhelp for help.
  -e, --evaluate=EXPR              evaluate scheme code
  -f, --formats=FORMATs            dump FORMAT,...  Also as separate
options:
      --dvi                        generate DVI (tex backend only)
      --relocate                   relocate using directory of lilypond
program
      --pdf                        generate PDF (default)
      --png                        generate PNG
      --ps                         generate PostScript
      --tex                        generate TeX (tex backend only)
  -h, --help                       print this help
  -H, --header=FIELD               dump a header field to file
BASENAME.FIELD
  -I, --include=DIR                add DIR to search path
  -i, --init=FILE                  use FILE as init file
  -o, --output=FILE                write output to FILE (suffix will be
added)
  -j, --jail=USER,GROUP,JAIL,DIR   chroot to JAIL, become USER:GROUP
                                     and cd into DIR
      --no-print                   do not generate printed output
  -p, --preview                    generate a preview of the first system
  -s, --safe-mode                  disallow unsafe Scheme and PostScript
operations
  -v, --version                    print version number
  -V, --verbose                    be verbose
  -w, --warranty                   show warranty and copyright

Report bugs via
http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs



I did also try the next:
cd input ../lily/out/lilypond simple

this gives the following:

[...]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/x11-color.scm]
[/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/safe-lily.scm]Backtrace:
In unknown file:
   ?: 0* [lilypond-main ("simple")]
   ?: 1* (letrec ((no-files-handler #)) (if (ly:get-option #) (gui-main
files)) ...)
In
/home/tapu/Downloads/Lily/lilypond/out/share/lilypond/2.7.27/scm/lily.scm:
 367: 2  (let ((failed #)) (if (pair? failed) (begin # #) (begin # #)))
 367: 3* [lilypond-all ("simple")]
In unknown file:
   ?: 4* blablalblah

<unnamed port>: In expression blablalblah:
<unnamed port>: Unbound variable: blablalblah




_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: ChangeLog/1.4419 fails to compile correctly

Johannes Schindelin
Hi,

On Mon, 2 Jan 2006, Tapio Tuovila wrote:

> when trying to compile
> ChangeLog/1.4419/Mon Jan  2 05:28:33 2006
> on SuSE 10.0 it spits out the following:
>
>  out/feta-braces-h.otf-table
> cat out/feta-braces-i.lisp \
>  \
>  > out/feta-braces-i.otf-table
> make[1]: *** No rule to make target
> `/usr/share/fonts/default/Type1/c059013l.pfb', needed by
> `out/CenturySchL-Ital.ttf'.  Stop.
> make[1]: Leaving directory `/home/tapu/Downloads/Lily/lilypond/mf'
> make: *** [all] Error 2

This looks like there is a dependency left. Did you "make clean && sh
autogen.sh && make all"?

Hth,
Dscho

P.S.: I have been bitten several times by the fact that the dependency
system does not work well together with updating from CVS. In that case, I
either "rm -rf the/respective/out", or "make clean".



_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: ChangeLog/1.4419 fails to compile correctly

Han-Wen Nienhuys
In reply to this post by Tapio Tuovila
Tapio Tuovila wrote:

> Hi,
>
> when trying to compile
> ChangeLog/1.4419/Mon Jan  2 05:28:33 2006
> on SuSE 10.0 it spits out the following:
>
>  out/feta-braces-h.otf-table
> cat out/feta-braces-i.lisp \
>  \
>  > out/feta-braces-i.otf-table
> make[1]: *** No rule to make target
> `/usr/share/fonts/default/Type1/c059013l.pfb', needed by
> `out/CenturySchL-Ital.ttf'.  Stop.
> make[1]: Leaving directory `/home/tapu/Downloads/Lily/lilypond/mf'
> make: *** [all] Error 2
>

Can you tell me where on your harddisk you have c059013l.pfb ?

Also, does anyone know a way to figure out that information?

> In unknown file:
>    ?: 4* blablalblah
>
> <unnamed port>: In expression blablalblah:
> <unnamed port>: Unbound variable: blablalblah
>
>

opps, some debugging code crept in :-)

--
  Han-Wen Nienhuys - [hidden email] - http://www.xs4all.nl/~hanwen


_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: ChangeLog/1.4419 fails to compile correctly

Tapio Tuovila
In reply to this post by Johannes Schindelin
Lainaus Johannes Schindelin <[hidden email]>:

>
> This looks like there is a dependency left. Did you "make clean && sh
> autogen.sh && make all"?
>
> Hth,
> Dscho
>
> P.S.: I have been bitten several times by the fact that the dependency
> system does not work well together with updating from CVS. In that case, I
> either "rm -rf the/respective/out", or "make clean".
>
 

Johannes,
Indeed I did "make clean" ; when this did not work properly I even deleted the
whole lilypond tree and did a fresh CVS. After doing so i copied clily and
here-lily as told in the HACKING file and did "clily && make" - thanks for your
answer anyway

and Han-Wen,
I do not know where this c0590131.pfb lives in my hard disk, but try to find out
as soon as I get home again (currently at work).


-My best, Tapio


_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: ChangeLog/1.4419 fails to compile correctly

Johannes Schindelin
Hi,

On Mon, 2 Jan 2006, [hidden email] wrote:

> Lainaus Johannes Schindelin <[hidden email]>:
>
> >
> > This looks like there is a dependency left. Did you "make clean && sh
> > autogen.sh && make all"?
> >
> > Hth,
> > Dscho
> >
> > P.S.: I have been bitten several times by the fact that the dependency
> > system does not work well together with updating from CVS. In that case, I
> > either "rm -rf the/respective/out", or "make clean".
> >
>  
>
> Johannes,
> Indeed I did "make clean" ; when this did not work properly I even deleted the
> whole lilypond tree and did a fresh CVS. After doing so i copied clily and
> here-lily as told in the HACKING file and did "clily && make" - thanks for your
> answer anyway

sorry. I just saw the problem myself. This fixes it here:

diff --git a/mf/GNUmakefile b/mf/GNUmakefile
index 92586b0..305b04d 100644
--- a/mf/GNUmakefile
+++ b/mf/GNUmakefile
@@ -36,7 +36,7 @@ SVG_FILES = $(OTF_FILES:%.otf=%.svg) $(A
 
 NCSB_SOURCE_FILES=c059013l c059016l c059033l c059036l
 NCSB_TTFS=$(addprefix $(outdir)/,CenturySchL-Ital.ttf CenturySchL-BoldItal.ttf CenturySchL-Roma.ttf CenturySchL-Bold.ttf)
-NCSB_PATH=/usr/share/fonts/default/Type1
+NCSB_PATH=/usr/local/share/ghostscript/fonts
 NCSB_INSTALL_DIR=$(local_lilypond_datadir)/fonts/otf
 
 LOG_FILES = $(FETA_MF_FILES:%.mf=$(outdir)/%.log)

> and Han-Wen,

I do not have any experience with fontconfig, but this path should be
queried, right?

Ciao,
Dscho



_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: ChangeLog/1.4419 fails to compile correctly

Johannes Schindelin
In reply to this post by Tapio Tuovila
Hi,

On Mon, 2 Jan 2006, Tapio Tuovila wrote:

> <unnamed port>: In expression blablalblah:
> <unnamed port>: Unbound variable: blablalblah

This helps:

diff --git a/scm/lily.scm b/scm/lily.scm
index 961f87c..b315362 100644
--- a/scm/lily.scm
+++ b/scm/lily.scm
@@ -376,7 +376,7 @@ The syntax is the same as `define*-publi
 
 (define-public (lilypond-all files)
 
-  blablalblah
+  "blablalblah"
   (let* ((failed '())
         (handler (lambda (key failed-file)
                    (set! failed (append (list failed-file) failed)))))



_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: ChangeLog/1.4419 fails to compile correctly

Johannes Schindelin
In reply to this post by Han-Wen Nienhuys
Hi,

On Mon, 2 Jan 2006, Han-Wen Nienhuys wrote:

> Can you tell me where on your harddisk you have c059013l.pfb ?

On my box:

/sw/share/ghostscript/fonts/c059013l.pfb
/usr/local/share/ghostscript/fonts/c059013l.pfb

> Also, does anyone know a way to figure out that information?

I thought that is what fontconfig is for? However, I find the
documentation more than hard to read. So, I have no idea how you would go
about finding the path to a certain font. Also, fc-cache keeps crashing on
me, so I cannot even reverse-engineer what it should to, and how. More and
more I look at fontconfig, more I deem it a BPOC.

Also note that I needed the attached patch to "make web". Most notably,
the TTFs generated by fontforge are not recognized by ghostscript: they
begin with "true" instead of "\000". The patch contains a workaround for
that.

Hth,
Dscho




_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: ChangeLog/1.4419 fails to compile correctly

Mats Bengtsson-6
In reply to this post by Tapio Tuovila



>and Han-Wen,
>I do not know where this c0590131.pfb lives in my hard disk, but try to find out
>as soon as I get home again (currently at work).
>  
>
If you have your locate database updated, the simplest is probably to use
locate c0590131.pfb

   /Mats


_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: ChangeLog/1.4419 fails to compile correctly

Han-Wen Nienhuys
In reply to this post by Johannes Schindelin
Johannes Schindelin wrote:
> I do not have any experience with fontconfig, but this path should be
> queried, right?

yes. Question is: how.

the easiest is probably to do

   locate c059033l.pfb

in configure.

--
  Han-Wen Nienhuys - [hidden email] - http://www.xs4all.nl/~hanwen


_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: ChangeLog/1.4419 fails to compile correctly

Tapio Tuovila
In reply to this post by Han-Wen Nienhuys

>
> Can you tell me where on your harddisk you have c059013l.pfb ?
>
Back home, now I can tell you:

/usr/share/ghostscript/fonts/c059013l.pfb



- Tapio


_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: ChangeLog/1.4419 fails to compile correctly

Johannes Schindelin
In reply to this post by Han-Wen Nienhuys
Hi,

On Mon, 2 Jan 2006, Han-Wen Nienhuys wrote:

> Johannes Schindelin wrote:
> > I do not have any experience with fontconfig, but this path should be
> > queried, right?
>
> yes. Question is: how.
>
> the easiest is probably to do
>
>   locate c059033l.pfb
>
> in configure.

Sorry, if you want to stay portable you better not rely on the presence of
locate.

What I meant with "queried" was: now that we link in that BPOC named
fontconfig, whose purpose is to ease the font configuration, fontconfig
should tell us where the font is, right? Is not a call to
FcConfigGetFontDirs() the correct thing? So, configure should write,
compile and run something like this:

-- snip --
#include <fontconfig.h>
#include <stdio.h>
#include <sys/stat.h>

int main()
{
        FcStrList* list = FcConfigGetFontDirs(FcInitLoadConfig());
        FcChar8* dir;
        static char filename[] = "/c059013l.pfb";

        while ((dir = FcStrListNext(list))) {
                char buffer[1024];
                int len = strlen(dir);

                if (len + sizeof(filename) + 1 > sizeof(buffer))
                        fprintf(stderr, "WARNING: path too long: %s\n",
                                dir);
                else {
                        struct stat st;

                        strcpy(buffer, dir);
                        strcpy(buffer + len, filename);
                        if (stat(buffer, &st) >= 0) {
                                printf("%s\n", dir);
                                return 0;
                        }
                }
        }

        fprintf(stderr, "Font not found: %s\n", filename + 1);
        return 1;
}
-- snap --

If this program succeeds, it prints the (first) directory containing the
desired font. If it fails, the font could not be found.

However, this means that fontconfig must be configured properly, which
most people compiling fontconfig from scratch don't do. And it does not do
it automatically either.

BTW the absence of a program like this in fontconfig just adds to my
frustration with fontconfig.

Ciao,
Dscho



_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: ChangeLog/1.4419 fails to compile correctly

Han-Wen Nienhuys
Johannes Schindelin wrote:

> Hi,
>
> On Mon, 2 Jan 2006, Han-Wen Nienhuys wrote:
>
>
>>Johannes Schindelin wrote:
>>
>>>I do not have any experience with fontconfig, but this path should be
>>>queried, right?
>>
>>yes. Question is: how.
>>
>>the easiest is probably to do
>>
>>  locate c059033l.pfb
>>
>>in configure.
>
>
> Sorry, if you want to stay portable you better not rely on the presence of
> locate.
>
> What I meant with "queried" was: now that we link in that BPOC named
> fontconfig, whose purpose is to ease the font configuration, fontconfig
> should tell us where the font is, right? Is not a call to
> FcConfigGetFontDirs() the correct thing? So, configure should write,
> compile and run something like this:

> If this program succeeds, it prints the (first) directory containing the
> desired font. If it fails, the font could not be found.

I think you can directly ask fontconfig to locate a font for "Century
Schoolbook", and retrieve the filename. However, this is IMO over the
top.  I propose that people without locate just use configure with
--enable-ncsb-path

--
  Han-Wen Nienhuys - [hidden email] - http://www.xs4all.nl/~hanwen


_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: ChangeLog/1.4419 fails to compile correctly

Johannes Schindelin
Hi,

On Mon, 2 Jan 2006, Han-Wen Nienhuys wrote:

> I think you can directly ask fontconfig to locate a font for "Century
> Schoolbook", and retrieve the filename. However, this is IMO over the
> top.  I propose that people without locate just use configure with
> --enable-ncsb-path

BTW: Why are the TTFs generated? Does this fix something?

Ciao,
Dscho



_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: ChangeLog/1.4419 fails to compile correctly

Han-Wen Nienhuys
Johannes Schindelin wrote:

> BTW: Why are the TTFs generated? Does this fix something?

Pango 1.12 will be able to do kerning & ligatures with TTF files.

--
  Han-Wen Nienhuys - [hidden email] - http://www.xs4all.nl/~hanwen


_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: ChangeLog/1.4419 fails to compile correctly

Johannes Schindelin
Hi,

On Tue, 3 Jan 2006, Han-Wen Nienhuys wrote:

> Johannes Schindelin wrote:
>
> > BTW: Why are the TTFs generated? Does this fix something?
>
> Pango 1.12 will be able to do kerning & ligatures with TTF files.

Cool! That's worth it.

Thanks,
Dscho



_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel