I can successfully build 1.7S for gts4lv on my laptop (8-core AMD 5700U and Ubuntu 22.04), however when I try to build on my PC (16 core AMD 5950x with Mint Linux 21.1) it fails. Both have 32 GB Ram and over 1 TB of free SSD space
I receive FAILED: out/soong/build.ninja …
which device do you build for? - if you post the soong build logs determining the cause sure is possible.
I have no 16 thread machine lying around, but I have a hunch it puts more memory pressure on the system, can be wrong ofc - Trying to Build for dumpling One Plus 5T - #6 by tcecyk (in that thread it turns out though that device partitioning seemed to be the issue though)
gts4lv is Samsung Galaxy Tab S5e LTE. Since I have a dual boot I tried now with Zorin OS 16.2 (also Ubuntu based) and it worked! So I assume the issue is within my Mint Linux
I used to see that error regularly, usually at the end of the build when the kernel is being linked. It’s on"out of memory" error, which indicates that the ld process has used up all the available physical memory and swap. I got rid of it by increasing the size of the configured swap. The amount to increase was arrived at by trail and error: looking at System Monitor to see how much was being used, then adding a bit more
I have ended up with a total of 28GB of swap (on top of the 16GB of physical memory) split between two different disks/partitions. It’s probably more than I need but I ave disk space to spare
Thanks! That was the issue. I had a new SSD, cloned my old one which all went fine.
But did not realized that the swap partition was disabled, and simply activated it again. Though I have 32 GB without swap this was the issue
I tried now the traditional build but got following error when I started brunch gts4lv (using v-1.7S branch):
FAILED: ninja: ‘prebuilts/prebuiltapks/AccountManager/app-standard-release-unsigned.apk’, needed by ‘out/target/product/gts4lv/obj/APPS/AccountManager_intermediates/package.apk’, missing and no known rule to make it
I tried also with LineageOS 20 for gts4lv but got diffferent error
make[1]: Verzeichnis „/mnt/media/e/lineage20/out/target/product/gts4lv/obj/KERNEL_OBJ“ wird verlassen
make: *** [Makefile:152: sub-make] Fehler 2
make: Verzeichnis „/mnt/media/e/lineage20/kernel/samsung/sdm670“ wird verlassen
because soong/make is chaining lots of commands together it might be hard to see which command in a “( cmd1 -arg blah ) && ( cmd2 -arg blub ) && ( cp -R .. )” is specifically failing. You’d need to pastebin the last few hundred lines of a build log for outsiders to see it
I’d checked and it seems I have the latest OpenSSL version installed for Ubuntu.
However I did now use my Zorin OS partition on my computer and successfully build the traditional way
and now also on Mint Linux successfully after compiling openSSL from the sources
Next step: unofficial builds with LineageOS / eOS
Is there a good how-to available - all what I found is pretty outdated and not much guiding…?