Bug 248004 - databases/cassandra4: fix build on aarch64 (Java OutOfMemory during build)
Summary: databases/cassandra4: fix build on aarch64 (Java OutOfMemory during build)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords: patch
Depends on: 248228
Blocks:
  Show dependency treegraph
 
Reported: 2020-07-15 15:06 UTC by Ronald Klop
Modified: 2020-07-26 17:11 UTC (History)
2 users (show)

See Also:
language.devel: maintainer-feedback+


Attachments
increase memory 256 (default) -> 512 MB (svn diff) (1.05 KB, patch)
2020-07-15 15:06 UTC, Ronald Klop
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ronald Klop 2020-07-15 15:06:56 UTC
Created attachment 216472 [details]
increase memory 256 (default) -> 512 MB (svn diff)

The build (javac) goes OutOfMemory on aarch64 using OpenJDK8 (this is without hotspot).

http://thunderx1.nyi.freebsd.org/data/head-arm64-default/p540548_s362038/logs/errors/cassandra4-4.0.a4.log

build-test:

_build-test:
    [javac] Compiling 781 source files to /wrkdirs/usr/ports/databases/cassandra4/work/apache-cassandra-4.0-alpha4-src/build/test/classes
    [javac] 
    [javac] 
    [javac] The system is out of resources.
    [javac] Consult the following stack trace for details.
    [javac] java.lang.OutOfMemoryError: Java heap space
    [javac] 	at java.util.Arrays.copyOf(Arrays.java:3332)
    [javac] 	at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124)
    [javac] 	at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:649)
Comment 1 Ronald Klop 2020-07-17 11:52:58 UTC
See bug #247997 (about cassandra3) for some elaboration about the -Xmx512m.
Comment 2 Angelo Polo 2020-07-20 17:44:56 UTC
Will do some testing on this.
Comment 3 commit-hook freebsd_committer 2020-07-26 12:55:56 UTC
A commit references this bug:

Author: mikael
Date: Sun Jul 26 12:55:21 UTC 2020
New revision: 543475
URL: https://svnweb.freebsd.org/changeset/ports/543475

Log:
  databases/cassandra4: Update to 4.0-beta1

   - Update to version 4.0-beta1
   - fix build on aarch64

  PR:		248228 248004
  Submitted by:	Angelo Polo (maintainer), Ronald Klop (aarch64 fix)

Changes:
  head/databases/cassandra4/Makefile
  head/databases/cassandra4/distinfo
  head/databases/cassandra4/files/patch-build.xml
  head/databases/cassandra4/files/patch-conf_cassandra.yaml
  head/databases/cassandra4/files/patch-src_java_org_apache_cassandra_service_StartupChecks.java
  head/databases/cassandra4/pkg-plist