lilypond-devel
[Top][All Lists]
Advanced

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

Re: Need help with guile 1.88 or using guile 2.2 with lilypond-2.20


From: Dave Plater
Subject: Re: Need help with guile 1.88 or using guile 2.2 with lilypond-2.20
Date: Mon, 8 Jun 2020 13:53:15 +0200

On 6/8/20, Jonas Hahnfeld <hahnjo@hahnjo.de> wrote:
> Am Montag, den 08.06.2020, 10:24 +0200 schrieb Dave Plater:
>> Hi, I maintain Lilypond for openSUSE and also created guile1 for
>> lilypond using guile-1.8.8
>> I have a problem, guile-1.8.8 doesn't build with gcc 10:
>> [...]
>>
>> Causes a:
>> 15388 Segmentation fault      |
>> GUILE="/home/abuild/rpmbuild/BUILD/guile-1.8.8/pre-inst-guile"
>> ../scripts/snarf-check-and-output-texi > guile-procedures.texi
>>
>> This is beyond my capabilities, the above command resists gdb --args
>> so I'm unable to see where the segfault happens. Something in gcc10 is
>> exposing a problem in guile-1.8.8
>
> Yep, GCC 10 "breaks" the configure check to find the stack direction.
> This makes Guile believe the stack grows up, which is of course plain
> wrong. I was able to workaround this issue by disabling optimizations
> for the configure check, see attached diff.
>
> (For the technically interested: GCC 10 succeeds in rewriting a
> particular tail call into jumps. This avoids stack frames from the
> recursive call which the check relies on. Funnily enough, a comment
> says: "If the code could be inlined, that might cause the test to give
> an incorrect answer." - indeed.)
>
> Cheers
> Jonas
>

Thanks, I didn't use the patch because CFLAGS are modified by the
%configure macro, just used CFLAGS=`echo %optflags | tr 02 00` on the
build service build and it works like a charm.

Thanks
Dave Plater



reply via email to

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