Maybe you've not the correct java version set up.
See here for the requirements
https://source.android.com/docs/setup/start/requirements
Yeah. I also get this error on my "regular" builds. But because it is the last patch to be applied ("vendor" luckily comming very late in the alphabet) it's no big problem. Only If there ever be a "W...", "X...", "Y..." or "Z..." patch it would not work anymore.
Maybe the "exit 1" on the "cd" could be replaced with a test and warning messege. I simply copied from another repo without much thinking.
Thanks I cant see anything wrong with the java setup, maybe the disk space was a bit light but i now have 168G free before i run the brunch command (hopefully that's ok).
As far as I can see it is always using the java from the repository
Environment Variables:
JAVA_HOME=/mnt/store/android/lineage/prebuilts/jdk/jdk11/linux-x86
PATH=/mnt/store/android/lineage/prebuilts/build-tools/path/linux-x86:/mnt/store/android/lineage/out/.path
SHELL=/bin/bash
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f1f3eb3a6bd, pid=2198, tid=2210
#
# JRE version: OpenJDK Runtime Environment (11.0.4) (build 11.0.4+0-5935077)
# Java VM: OpenJDK 64-Bit Server VM (11.0.4+0-5935077, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x5066bd] RegionNode::is_unreachable_region(PhaseGVN*) const+0x23d
--------------- S Y S T E M ---------------
OS

ISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.5 LTS"
uname:Linux 5.15.0-56-generic #62~20.04.1-Ubuntu SMP Tue Nov 22 21:24:20 UTC 2022 x86_64
libc:glibc 2.31 NPTL 2.31
rlimit: STACK 8192k, CORE 0k, NPROC 256489, NOFILE 1024, AS infinity, DATA infinity, FSIZE infinity
load average:13.77 4.52 2.97
/proc/meminfo:
MemTotal: 65788664 kB
MemFree: 20602952 kB
MemAvailable: 55851524 kB
Buffers: 2484600 kB
I saw something about libc being somehow mismatched or there being multiples, I am not sure about this but am trying to check. I have to go away for a couple of days now and Christmas is getting perilously close so it may be that I don't get much time to look at this again for a while.