Re: 2.21.3 build problem on Mac OS X Mojave

2020-07-19 Thread Jacques Menu
Thanks a lot Werner, works like a charm!

JM

> Le 19 juil. 2020 à 09:11, Werner LEMBERG  a écrit :
> 
> 
> 
>> In fact I did the ‘git clone’ afresh, moving aside previous
>> attempts. Thus the contents of ‘build’ on both OSes is the result of
>> the commands I showed, up to '../configure'.
>> 
>> That’s why I don’t get what happens…
> 
> For me, using an up-to-date MacPorts system, compilation of LilyPond
> from the git works as follows.
> 
> (1) Clone `lilypond.git` or clean an existing repository with
> 
>  git clean -fdx 
> 
> (2) Configure LilyPond with
> 
>  ./autogen.sh --noconfigure
>  && ./configure \
> CC="ccache clang-mp-9.0" \
> CXX="ccache clang++-mp-9.0" \
> GUILE=/opt/local/bin/guile18 \
> GUILE_FLAVOR=guile-1.8 \
> --prefix="/foo/bar" \
> 
> --with-texgyre-dir="/usr/local/texlive/2020/texmf-dist/fonts/opentype/public/tex-gyre"
>  \
> --with-flexlexer-dir="/opt/local/include" \
> --disable-documentation
> 
>Remarks:
> 
>  . Adjust `--prefix` to whatever is suitable for you.
>  . Using `ccache` is optional.
>  . Slightly older clang versions should work, too.
>  . I use TeXLive directly, so please adapt the path to the
>TeX-Gyre fonts as necessary if you use the MacPorts packages
>of TeXLive.
> 
> (3) Build and install with
> 
>  make all && make install
> 
> (4) Run lilypond as
> 
>  LTDL_LIBRARY_PATH=/opt/local/lib \
>  PATH=/foo/bar/bin:$PATH \
>  lilypond 
> 
> 
>Werner




Re: 2.21.3 build problem on Mac OS X Mojave

2020-07-19 Thread Werner LEMBERG


> In fact I did the ‘git clone’ afresh, moving aside previous
> attempts. Thus the contents of ‘build’ on both OSes is the result of
> the commands I showed, up to '../configure'.
> 
> That’s why I don’t get what happens…

For me, using an up-to-date MacPorts system, compilation of LilyPond
from the git works as follows.

(1) Clone `lilypond.git` or clean an existing repository with

  git clean -fdx 

(2) Configure LilyPond with

  ./autogen.sh --noconfigure
  && ./configure \
 CC="ccache clang-mp-9.0" \
 CXX="ccache clang++-mp-9.0" \
 GUILE=/opt/local/bin/guile18 \
 GUILE_FLAVOR=guile-1.8 \
 --prefix="/foo/bar" \
 
--with-texgyre-dir="/usr/local/texlive/2020/texmf-dist/fonts/opentype/public/tex-gyre"
 \
 --with-flexlexer-dir="/opt/local/include" \
 --disable-documentation

Remarks:

  . Adjust `--prefix` to whatever is suitable for you.
  . Using `ccache` is optional.
  . Slightly older clang versions should work, too.
  . I use TeXLive directly, so please adapt the path to the
TeX-Gyre fonts as necessary if you use the MacPorts packages
of TeXLive.

(3) Build and install with

  make all && make install

(4) Run lilypond as

  LTDL_LIBRARY_PATH=/opt/local/lib \
  PATH=/foo/bar/bin:$PATH \
  lilypond 


Werner


Re: 2.21.3 build problem on Mac OS X Mojave

2020-07-18 Thread Jacques Menu
PS> My goal is to build Lily to do experiments on the Mac, which is much faster 
and confortable for me to work with, rather that on my Debian virtual machine.

> Le 18 juil. 2020 à 17:23, Jacques Menu  a écrit :
> 
> Hello Jonas and Werner,
> 
> In fact I did the ‘git clone’ afresh, moving aside previous attempts. Thus 
> the contents of ‘build’ on both OSes is the result of the commands I showed, 
> up to '../configure'.
> 
> That’s why I don’t get what happens…
> 
> JM
> 
> 
>> Le 18 juil. 2020 à 16:46, Werner LEMBERG  a écrit :
>> 
>> 
>>> I’m trying to build LilyPond 2.21.3 locally, both on Debian 9 and
>>> Mac OS X 10.14.6 (Mojave).  On the latter, I installed Apple’s
>>> XCode, the needed tools in /opt with MacPorts, and the needed fonts
>>> in /opt/local/share/fonts/urw-core35-fonts.
>> 
>> You might apply
>> 
>> https://github.com/macports/macports-ports/pull/7732
>> 
>> to build 2.21.3 with MacPorts.  It's a bit unfortunate that the
>> MacPorts people are slow with pull requests – 2.21.4 is coming soon...
>> 
>> 
>>   Werner
> 




Re: 2.21.3 build problem on Mac OS X Mojave

2020-07-18 Thread Jacques Menu
Hello Jonas and Werner,

In fact I did the ‘git clone’ afresh, moving aside previous attempts. Thus the 
contents of ‘build’ on both OSes is the result of the commands I showed, up to 
'../configure'.

That’s why I don’t get what happens…

JM


> Le 18 juil. 2020 à 16:46, Werner LEMBERG  a écrit :
> 
> 
>> I’m trying to build LilyPond 2.21.3 locally, both on Debian 9 and
>> Mac OS X 10.14.6 (Mojave).  On the latter, I installed Apple’s
>> XCode, the needed tools in /opt with MacPorts, and the needed fonts
>> in /opt/local/share/fonts/urw-core35-fonts.
> 
> You might apply
> 
>  https://github.com/macports/macports-ports/pull/7732
> 
> to build 2.21.3 with MacPorts.  It's a bit unfortunate that the
> MacPorts people are slow with pull requests – 2.21.4 is coming soon...
> 
> 
>Werner




Re: 2.21.3 build problem on Mac OS X Mojave

2020-07-18 Thread Werner LEMBERG

> I’m trying to build LilyPond 2.21.3 locally, both on Debian 9 and
> Mac OS X 10.14.6 (Mojave).  On the latter, I installed Apple’s
> XCode, the needed tools in /opt with MacPorts, and the needed fonts
> in /opt/local/share/fonts/urw-core35-fonts.

You might apply

  https://github.com/macports/macports-ports/pull/7732

to build 2.21.3 with MacPorts.  It's a bit unfortunate that the
MacPorts people are slow with pull requests – 2.21.4 is coming soon...


Werner


Re: 2.21.3 build problem on Mac OS X Mojave

2020-07-18 Thread Jonas Hahnfeld
Hi,

Am Samstag, den 18.07.2020, 15:14 +0200 schrieb Jacques Menu:
> Hello folks,
> 
> I’m trying to build LilyPond 2.21.3 locally, both on Debian 9 and Mac OS X 
> 10.14.6 (Mojave). 
> On the latter, I installed Apple’s XCode, the needed tools in /opt with 
> MacPorts, and the needed fonts in /opt/local/share/fonts/urw-core35-fonts. 
> 
> Performing the same ‘git clone’ and the same steps alongside, I run into a 
> situation in which the contents of the build directory is by far different on 
> both OSes, see below.
> 
> Then ‘make' runs fine on Debian, but fails on Mojave due to a missing 
> build/make directory.
> 
> That beats me. Can someone explain why ‘../configure’ creates fewer files on 
> the Mac OS X side? The trace it produces is at the end of this message.
> 
> [...]
> 
> menu@macbookprojm: ~/lilypond-git/build > ../configure 
> --with-urwotf-dir=/opt/local/share/fonts/urw-core35-fonts
> [...]
> configure: creating ./config.status
> config.status: creating config.make
> config.status: creating config.hh
> config.status: config.hh is unchanged

This looks as if the build directory was not empty. Could it be that
the directory still contained stale results from a previous invocation
of configure? If that failed, I'm not sure if configure correctly
recovers in all cases...
It's of course possible that this is the result of executing configure
again to obtain a log after the failures described before. In that
case, creating a new build directory won't help much and maybe you
already tried...

Jonas


signature.asc
Description: This is a digitally signed message part


2.21.3 build problem on Mac OS X Mojave

2020-07-18 Thread Jacques Menu
Hello folks,

I’m trying to build LilyPond 2.21.3 locally, both on Debian 9 and Mac OS X 
10.14.6 (Mojave). 
On the latter, I installed Apple’s XCode, the needed tools in /opt with 
MacPorts, and the needed fonts in /opt/local/share/fonts/urw-core35-fonts. 

Performing the same ‘git clone’ and the same steps alongside, I run into a 
situation in which the contents of the build directory is by far different on 
both OSes, see below.

Then ‘make' runs fine on Debian, but fails on Mojave due to a missing 
build/make directory.

That beats me. Can someone explain why ‘../configure’ creates fewer files on 
the Mac OS X side? The trace it produces is at the end of this message.

Thanks for your help!

JM

—

Linux side:

  574  git clone https://git.savannah.gnu.org/git/lilypond.git lilypond-git ; 
cd lilypond-git
  575  ll
  576  ./autogen.sh --noconfigure
  577  ll
  578  mkdir build/ ; cd build/
  579  ../configure


user@debian: ~/lilypond-git/build > ls -sal
total 228
 4 drwxr-xr-x 19 user user  4096 Jul 18 14:51 .
 4 drwxr-xr-x 23 user user  4096 Jul 18 14:51 ..
 4 drwxr-xr-x 20 user user  4096 Jul 18 14:51 Documentation
 4 -r--r--r--  1 user user73 Jul 18 14:51 GNUmakefile
40 -rw-r--r--  2 user user 38783 Jul 18 14:51 INSTALL.txt
 4 -rw-r--r--  2 user user  2390 Jul 18 14:51 README.txt
 4 -rw-r--r--  1 user user  2022 Jul 18 14:51 config.hh
60 -rw-r--r--  1 user user 57730 Jul 18 14:51 config.log
 8 -rw-r--r--  1 user user  4281 Jul 18 14:51 config.make
32 -rwxr-xr-x  1 user user 31770 Jul 18 14:51 config.status
 4 drwxr-xr-x  2 user user  4096 Jul 18 14:51 elisp
 4 drwxr-xr-x  2 user user  4096 Jul 18 14:51 flower
 4 drwxr-xr-x  3 user user  4096 Jul 18 14:51 input
 4 drwxr-xr-x  2 user user  4096 Jul 18 14:51 lily
 0 -rw-r--r--  1 user user 0 Jul 18 14:51 local.make
 4 drwxr-xr-x  2 user user  4096 Jul 18 14:51 ly
 4 drwxr-xr-x  2 user user  4096 Jul 18 14:51 make
 4 drwxr-xr-x  2 user user  4096 Jul 18 14:51 mf
 4 drwxr-xr-x  3 user user  4096 Jul 18 14:51 out
 4 drwxr-xr-x  2 user user  4096 Jul 18 14:51 po
 4 drwxr-xr-x  2 user user  4096 Jul 18 14:51 ps
 4 drwxr-xr-x  3 user user  4096 Jul 18 14:51 python
 4 drwxr-xr-x  2 user user  4096 Jul 18 14:51 scm
 4 drwxr-xr-x  3 user user  4096 Jul 18 14:51 scripts
 4 drwxr-xr-x  3 user user  4096 Jul 18 14:51 stepmake
 4 drwxr-xr-x  2 user user  4096 Jul 18 14:51 tex
 4 drwxr-xr-x  2 user user  4096 Jul 18 14:51 vim
user@debian: ~/lilypond-git/build >


Then ‘make' succeeds, with the make subdirectory containing:

user@debian: ~/lilypond-git/build > ls -sal make
total 108
4 drwxr-xr-x  2 user user 4096 Jul 18 14:51 .
4 drwxr-xr-x 19 user user 4096 Jul 18 14:51 ..
4 -rw-r--r--  1 user user   79 Jul 18 14:51 abc-rules.make
4 -rw-r--r--  1 user user   81 Jul 18 14:51 abc-targets.make
4 -rw-r--r--  1 user user   78 Jul 18 14:51 abc-vars.make
4 -rw-r--r--  1 user user   89 Jul 18 14:51 doc-i18n-root-rules.make
4 -rw-r--r--  1 user user   91 Jul 18 14:51 doc-i18n-root-targets.make
4 -rw-r--r--  1 user user   88 Jul 18 14:51 doc-i18n-root-vars.make
4 -rw-r--r--  1 user user   83 Jul 18 14:51 generic-rules.make
4 -rw-r--r--  1 user user   85 Jul 18 14:51 generic-targets.make
4 -rw-r--r--  1 user user   82 Jul 18 14:51 generic-vars.make
4 -rw-r--r--  1 user user   89 Jul 18 14:51 lilypond-book-rules.make
4 -rw-r--r--  1 user user   91 Jul 18 14:51 lilypond-book-targets.make
4 -rw-r--r--  1 user user   88 Jul 18 14:51 lilypond-book-vars.make
4 -rw-r--r--  1 user user   84 Jul 18 14:51 lilypond-rules.make
4 -rw-r--r--  1 user user   86 Jul 18 14:51 lilypond-targets.make
4 -rw-r--r--  1 user user   83 Jul 18 14:51 lilypond-vars.make
4 -rw-r--r--  1 user user   78 Jul 18 14:51 ly-rules.make
4 -rw-r--r--  1 user user   80 Jul 18 14:51 ly-targets.make


—

Mac OS X side:

  657  git clone https://git.savannah.gnu.org/git/lilypond.git lilypond-git ; 
cd lilypond-git
  658  ll
  659  ./autogen.sh --noconfigure
  660  ll
  661  mkdir build/ ; cd build/
  662  ../configure --with-urwotf-dir=/opt/local/share/fonts/urw-core35-fonts


menu@macbookprojm: ~/lilypond-git/build > ls -sal
total 232
  0 drwxr-xr-x   8 menu  staff256 Jul 18 14:51 .
  0 drwxr-xr-x  46 menu  staff   1472 Jul 18 14:51 ..
  8 -r--r--r--   1 menu  staff 73 Jul 18 14:51 GNUmakefile
  8 -rw-r--r--   1 menu  staff   2022 Jul 18 14:51 config.hh
128 -rw-r--r--   1 menu  staff  62212 Jul 18 14:51 config.log
 16 -rw-r--r--   1 menu  staff   5353 Jul 18 14:51 config.make
 72 -rwxr-xr-x   1 menu  staff  32811 Jul 18 14:51 config.status
  0 -rw-r--r--   1 menu  staff  0 Jul 18 14:51 local.make
menu@macbookprojm: ~/lilypond-git/build > 


Then ‘make' fails because there’s no ‘make' subdirectory:

menu@macbookprojm: ~/lilypond-git/build > make 
/Users/menu/lilypond-git/build/../GNUmakefile.in:36: make/stepmake.make: No 
such file or directory


—

menu@macbookprojm: ~/lilypond-git/build > ../configure 
--with-urwotf-dir=/opt/local/share/fonts/urw-core35-fonts
checking build system type...