lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gub: I can now completely build lilypond


From: Werner LEMBERG
Subject: Re: gub: I can now completely build lilypond
Date: Sat, 12 Jan 2019 07:33:06 +0100 (CET)

> Version 2 of the patch to fix building xxx::guile with gub.
> 
>    rm -rf target/*/packages/*guile*
>    bin/gub tools::guile freebsd-64::guile linux-ppc::guile
>    darwin-x86::guile darwin-ppc::guile mingw::guile freebsd-x86::guile
>    linux-x86::guile linux-64::guile
> 
> now succeeds on ubuntu 14, ubuntu 16, ubuntu 18 and openSuSE
> Tumbleweed (cpu used: i7-4790K).

Not having tested your patch yet, but I'm not happy with it.  Not a
single package in gub uses `linux-x86::cross/gcc' for stuff in `tools'
– it would tie gub compilation to GNU/Linux, AFAICS.

I soon want to try a compililation of gub on my Mac (using MacPorts).
In case this succeeds, the above would be definitely wrong...

The problem you try to solve is similar to

  In file included from
    
/home/gub/NewGub/gub/target/darwin-x86/src/guile-1.8.7/libguile/strings.h:25:0,
    from /usr/include/string.h:431,
    from 
/home/gub/NewGub/gub/target/darwin-x86/src/guile-1.8.7/libguile/gen-scmconfig.c:127:
  /home/gub/NewGub/gub/target/darwin-x86/src/guile-1.8.7/libguile/__scm.h:52:10:
    fatal error: libguile/scmconfig.h: No such file or directory
    #include "libguile/scmconfig.h"          ,
             ^~~~~~~~~~~~~~~~~~~~~~

right?  After analyzing an ImageMagick compilation issue
(https://github.com/gperciva/gub/pull/55) I believe that you are
bitten by a similar problem.

Please try the attached patch (untested) and run the first failing
guile compilation so that we can better analyze why `scmconfig.h' is
not found.  At the time compilation fails, it should have generated
some `Guile.*' strace files in your home directory for further
inspection; the interesting one is the largest, calling `cc1'.


    Werner
--- guile.py.orig       2018-12-20 11:24:11.000000000 +0100
+++ guile.py    2019-01-12 07:22:38.215324071 +0100
@@ -81,6 +81,12 @@
                        '%(srcdir)s/doc/Makefile.am')
         self.file_sub ([(r'SUBDIRS = ref tutorial goops r5rs', 'SUBDIRS =')],
                        '%(srcdir)s/doc/Makefile.in')
+        self.file_sub ([(r'(: gen-scmconfig.c\n[^\n]+\n\t\t)',
+                         r'\1strace -v -f -ff -s 1024 -o $HOME/Guile ')],
+                       '%(srcdir)s/libguile/Makefile.am')
+        self.file_sub ([(r'(: gen-scmconfig.c\n[^\n]+\n\t\t)',
+                         r'\1strace -v -f -ff -s 1024 -o $HOME/Guile ')],
+                       '%(srcdir)s/libguile/Makefile.in')
         target.AutoBuild.patch (self)
     def autopatch (self):
         self.file_sub ([(r'AC_CONFIG_SUBDIRS\(guile-readline\)', '')],

reply via email to

[Prev in Thread] Current Thread [Next in Thread]