!UUYziobKGGxpovWyAN:nixos.org

Robotnix

244 Members
Build Android (AOSP) using Nix | https://github.com/danielfullmer/robotnix75 Servers

Load older messages


SenderMessageTime
17 Jan 2025
@waltmck:matrix.orgwaltmckIs there a way to override the dependency on the source which no longer exists?23:02:44
@waltmck:matrix.orgwaltmckWhat is a minimal config that is known to actually build? I've been trying several flavors and device targets but they all fail for one reason or another23:46:27
18 Jan 2025
@atemu12:matrix.orgatemu12LineageOS is the only "supported" one10:14:12
@atemu12:matrix.orgatemu12Version 13, 14 or 1510:14:29
19 Jan 2025
@waltmck:matrix.orgwaltmck ah I think I found the problem, the example config didn't set androidVersion which defaults to 12 22:39:34
@waltmck:matrix.orgwaltmck I will try it with androidVersion=15 22:39:45
@atemu12:matrix.orgatemu12Oh yeah we should up that probably22:39:54
@waltmck:matrix.orgwaltmck

Where can I find the supported devices for lineageos? I tried to build for lynx (which as far as I can tell is supported upstream):

  device = "lynx";
  flavor = "lineageos";
  androidVersion = 15;

but this config fails with error: Cannot locate config makefile for product "lineage_lynx"

23:10:06
@atemu12:matrix.orgatemu12https://github.com/nix-community/robotnix/blob/master/flavors/lineageos/supported_devices.toml23:10:31
@atemu12:matrix.orgatemu12You need to add yours, hope that it follows a convention we can follow and run the device dir updater23:11:04
@atemu12:matrix.orgatemu12A better device dir updater is currently in the works, maybe we'll have something to publish next week ;)23:12:06
21 Jan 2025
@oak:universumi.fioak 🏳️‍🌈♥️ changed their profile picture.22:36:01
@oak:universumi.fioak 🏳️‍🌈♥️ changed their profile picture.22:37:29
22 Jan 2025
@waltmck:matrix.orgwaltmck

The following config still fails to build:

  device = "cheeseburger";
  flavor = "lineageos";
  androidVersion = 15;
02:59:15
@waltmck:matrix.orgwaltmck

build logs

03:10:06
@atemu12:matrix.orgatemu12Without having looked at the logs because I'm on the phone, are you running OOM?03:16:31
@atemu12:matrix.orgatemu12Cheeseburger builds fine for me03:16:45
@atemu12:matrix.orgatemu12You need like 3-4GiB per thread at peak03:17:13
@atemu12:matrix.orgatemu12Your memory config needs to be able to handle that.03:17:42
@waltmck:matrix.orgwaltmckI was using 48 threads and my desktop has 192gb of memory. I'll try fewer threads though03:33:48
@atemu12:matrix.orgatemu12Well, did you run OOM?03:34:07
@atemu12:matrix.orgatemu12Also is your nix-daemon's tmpdir on ramfs or disk?03:34:18
@waltmck:matrix.orgwaltmckHow do I check if I ran out of memory? I don't see any log of oomkiller starting03:36:35
@waltmck:matrix.orgwaltmckI was just browsing the web waiting for it to finish, also didn't notice any interruption in interactivity03:37:02
@waltmck:matrix.orgwaltmck
In reply to @atemu12:matrix.org
Also is your nix-daemon's tmpdir on ramfs or disk?
/tmp is on disk, I'm not sure what nix-daemon does but I didn't configure it to be on ramfs if that isn't the default
03:37:36
@waltmck:matrix.orgwaltmckI'm trying again with fewer threads and keeping and eye on memory use03:40:47
@waltmck:matrix.orgwaltmckbuild just failed same as before and memory use never exceeded 40G03:41:15
@atemu12:matrix.orgatemu12 Okay took a look at the error and it's quite clear; wouldn't you say? ccache: error: Failed to create directory /var/cache/ccache/tmp: Not a directory 04:01:25
@atemu12:matrix.orgatemu12You turned on ccache and didn't configure it properly04:01:44
@atemu12:matrix.orgatemu12You need to pierce the sandbox for ccache to make any sense04:02:42

Show newer messages


Back to Room ListRoom Version: 6