Hello,

Gábor Boskovits <[email protected]> ezt írta (időpont: 2019. szept. 28.,
Szo, 23:14):

> Hello,
>
> Ricardo Wurmus <[email protected]> ezt írta (időpont: 2019. szept. 27.,
> P, 9:52):
>
>>
>> Gábor Boskovits <[email protected]> writes:
>>
>> > Ricardo Wurmus <[email protected]> ezt írta (időpont: 2019. szept.
>> 27.,
>> > Pén 9:14):
>> >
>> >>
>> >> Hi Gábor,
>> >>
>> >> > Ricardo Wurmus <[email protected]> ezt írta (időpont: 2019. szept.
>> 16.,
>> >> > Hét 15:20):
>> >> >
>> >> >> Hi Guix,
>> >> >>
>> >> >> here’s a probably needlessly complicated patch to fix the build of
>> >> >> ant-bootstrap.  It currently fails to build because jamvm
>> >> >> segfaults.
>> >>
>> >> […]
>> >>
>> >> >> I’m almost certain that not all of these configure flags are needed.
>> >> >> What do you think?  Would someone like to play a little with this
>> patch
>> >> >> and see if we can figure out why exactly jamvm segfaults?
>> >> >>
>> >> > I will try to have a look at this again in the coming days.
>> >> >
>> >> >>
>> >> >> I used this command to build ant-bootstrap:
>> >> >>
>> >> >>     ./pre-inst-env guix build -K --system=i686-linux -e '(@@ (gnu
>> >> packages
>> >> >> java) ant-bootstrap)'
>> >>
>> >> Have you been able to take a look at this?  I’d like to push this or a
>> >> variant
>> >> of it to the core-updates branch soon.
>> >>
>> > Not yet. I will have a look tomorrow and report back if that is not too
>> > late.
>>
>> Tomorrow would be just fine.  There’s no real rush, but I’d like to
>> avoid forgetting about this when we already have the means to fix lots
>> of broken packages on core-updates.
>>
>> Thanks for taking a look at this!
>>
>> --
>> Ricardo
>>
>>
> So far I can confirm that the patch as is works fine for me. I will now
> have a look at reducing this.
>
> --
> OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21
>

The attached patch also works for me. Can you check?

g_bor
-- 
OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21
From 286b3934f71c0abeb66266c4a8fdbb119dea714e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=A1bor=20Boskovits?= <[email protected]>
Date: Sat, 28 Sep 2019 23:35:02 +0200
Subject: [PATCH] gnu: Fix jamvm segfault on i686.

* gnu/packages/java.scm (jamvm-1-bootstrap): Fix segfault.
[arguments]: Add --enable-ffi to #:configure-flags.
[inputs]: Add libffi.
---
 gnu/packages/java.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index def2c8d92d..55cbb33ac9 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -197,10 +197,12 @@ language.")
     (arguments
      `(#:configure-flags
        (list (string-append "--with-classpath-install-dir="
-                            (assoc-ref %build-inputs "classpath")))))
+                            (assoc-ref %build-inputs "classpath"))
+             "--enable-ffi")))
     (inputs
      `(("classpath" ,classpath-bootstrap)
        ("jikes" ,jikes)
+       ("libffi" ,libffi)
        ("zlib" ,zlib)))
     ;; When built with a recent GCC and glibc the configure step of icedtea-6
     ;; fails with an invalid instruction error.
-- 
2.23.0

Reply via email to