[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fixing ant-bootstrap / jamvm segfault (i686)
From: |
Ricardo Wurmus |
Subject: |
Fixing ant-bootstrap / jamvm segfault (i686) |
Date: |
Mon, 16 Sep 2019 15:20:11 +0200 |
User-agent: |
mu4e 1.2.0; emacs 26.2 |
Hi Guix,
here’s a probably needlessly complicated patch to fix the build of
ant-bootstrap. It currently fails to build because jamvm segfaults.
--8<---------------cut here---------------start------------->8---
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 403c446a82..6bb4f8167f 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.
--8<---------------cut here---------------end--------------->8---
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 used this command to build ant-bootstrap:
./pre-inst-env guix build -K --system=i686-linux -e '(@@ (gnu packages
java) ant-bootstrap)'
--
Ricardo
- Fixing ant-bootstrap / jamvm segfault (i686),
Ricardo Wurmus <=
- Re: Fixing ant-bootstrap / jamvm segfault (i686), Gábor Boskovits, 2019/09/16
- Re: Fixing ant-bootstrap / jamvm segfault (i686), Ricardo Wurmus, 2019/09/27
- Re: Fixing ant-bootstrap / jamvm segfault (i686), Gábor Boskovits, 2019/09/27
- Re: Fixing ant-bootstrap / jamvm segfault (i686), Ricardo Wurmus, 2019/09/27
- Re: Fixing ant-bootstrap / jamvm segfault (i686), Gábor Boskovits, 2019/09/28
- Re: Fixing ant-bootstrap / jamvm segfault (i686), Gábor Boskovits, 2019/09/28
- Re: Fixing ant-bootstrap / jamvm segfault (i686), Ricardo Wurmus, 2019/09/30
- Re: Fixing ant-bootstrap / jamvm segfault (i686), Ricardo Wurmus, 2019/09/30