all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: "Gábor Boskovits" <boskovits@gmail.com>
Cc: Guix-devel <guix-devel@gnu.org>, julien lepiller <roptat@lepiller.eu>
Subject: Re: Fixing ant-bootstrap / jamvm segfault (i686)
Date: Tue, 01 Oct 2019 03:01:48 +0200	[thread overview]
Message-ID: <874l0tffcz.fsf@elephly.net> (raw)
In-Reply-To: <877e5pftdl.fsf@elephly.net>


Ricardo Wurmus <rekado@elephly.net> writes:

> Hi Gábor,
>
>> The attached patch also works for me. Can you check?
>
> I just noticed that this is not enough for me to build
> classpath-0.99-1.e7c13ee0c.  ant-bootstrap builds fine but Classpath
> fails.  (This is with --system=i686-linux.)
>
> I haven’t tried to build all the way to the final JDK with my previous
> patch yet.

I can build up to the first icedtea package with this patch, whereas the
reduced patch leads to a failure to build classpath.

--8<---------------cut here---------------start------------->8---
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 403c446a82..597bd8733b 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -186,10 +186,15 @@ language.")
     (arguments
      `(#:configure-flags
        (list (string-append "--with-classpath-install-dir="
-                            (assoc-ref %build-inputs "classpath")))))
+                            (assoc-ref %build-inputs "classpath"))
+             "--disable-int-caching"
+             "--enable-runtime-reloc-checks"
+             "--disable-int-inlining"
+             "--enable-ffi")))
     (inputs
      `(("classpath" ,classpath-bootstrap)
        ("jikes" ,jikes)
+       ("libffi" ,libffi)
        ("zlib" ,zlib)))
     (home-page "http://jamvm.sourceforge.net/")
     (synopsis "Small Java Virtual Machine")
@@ -258,7 +263,7 @@ JNI.")
                 ,@(if (string-prefix? "armhf" (or (%current-system)
                                                   (%current-target-system)))
                       `((string-append m "-Xnocompact "))
-                      `((string-append m "-Xnocompact -Xnoinlining ")))))
+                      `((string-append m "-Xnocompact ")))))

              ;; Disable tests because we are bootstrapping and thus don't have
              ;; any of the dependencies required to build and run the tests.
@@ -537,7 +542,7 @@ gnu.classpath.tools.~a.~a $@"
                                    (if (string=? "native2ascii" tool)
                                        "Native2ASCII" "Main")))
                                  `((format #t "#!~a/bin/sh
-~a/bin/jamvm -Xnocompact -Xnoinlining -classpath ~a/share/classpath/tools.zip \
+~a/bin/jamvm -Xnocompact -classpath ~a/share/classpath/tools.zip \
 gnu.classpath.tools.~a.~a $@"
                                    bash jamvm classpath tool
                                    (if (string=? "native2ascii" tool)
--8<---------------cut here---------------end--------------->8---

I would like to push this.  Not sure if just to core-updates or to
master as well, because Java on i686-linux is currently broken on
master.

--
Ricardo

  reply	other threads:[~2019-10-01  1:01 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-16 13:20 Fixing ant-bootstrap / jamvm segfault (i686) Ricardo Wurmus
2019-09-16 14:42 ` Gábor Boskovits
2019-09-27  7:13   ` Ricardo Wurmus
2019-09-27  7:41     ` Gábor Boskovits
2019-09-27  7:52       ` Ricardo Wurmus
2019-09-28 21:14         ` Gábor Boskovits
2019-09-28 21:49           ` Gábor Boskovits
2019-09-30 19:59             ` Ricardo Wurmus
2019-10-01  1:01               ` Ricardo Wurmus [this message]
2019-10-01  5:46                 ` Gábor Boskovits

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874l0tffcz.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=boskovits@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=roptat@lepiller.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.