| 26 Mar 2024 |
eyJhb | Trying to build for FP4, applied PR 226
| 08:36:25 |
eyJhb | * Trying to build for FP4, applied PR 226
[ 99% 396/398] test android/soong/java
[ 99% 397/398] test android/soong/apex
[100% 398/398] analyzing Android.bp files and generating ninja file at out/soong/build.ninja
FAILED: out/soong/build.ninja
cd "$(dirname "out/host/linux-x86/bin/soong_build")" && BUILDER="$PWD/$(basename "out/host/linux-x86/bin/soong_build")" && cd / && env -i "$BUILDER" --top "$TOP" --soong_out "out/soong" --out "out" -o out/soong/build.ninja --globListDir b>
ninja: build stopped: subcommand failed.
08:17:20 soong bootstrap failed with: exit status 1
buildPhase completed in 1 minutes 23 seconds
@nix { "action": "setPhase", "phase": "installPhase" }
installing
cat: ANDROID_PRODUCT_OUT: No such file or directory
cp: cannot stat '/otatools.zip': No such file or directory
cp: cannot stat '/obj/PACKAGING/target_files_intermediates/lineage_FP4-target_files-2023100409.zip': No such file or directory
Any suggestions? Tried to update the directories, but a proprietary vendor repo doesn't have branch lineageos 20.
| 08:37:20 |
eyJhb | [nix-shell:~/stash/robotnix/flavors/lineageos]$ grep -ir1 '//github.com/TheMuppets/proprietary_vendor_fairphone'
lineage-18.1/vendor-dirs.json- "sha256": "09z5wv2ckrrmm323mlya9l19vlv78a2js3rdgbikcgzlqa75r3ad",
lineage-18.1/vendor-dirs.json: "url": "https://github.com/TheMuppets/proprietary_vendor_fairphone"
lineage-18.1/vendor-dirs.json- },
--
lineage-19.1/vendor-dirs.json- "sha256": "0z9ixzzs8r929gpsbgwrcv3hpzh5nwmlfir1p2rxqgxir0fri7c9",
lineage-19.1/vendor-dirs.json: "url": "https://github.com/TheMuppets/proprietary_vendor_fairphone"
lineage-19.1/vendor-dirs.json- },
--
lineage-17.1/vendor-dirs.json- "sha256": "0121a8fam9dg5lb2jm0pmqhnwcgy81kqi2aqadf5x58ykd6xzr7g",
lineage-17.1/vendor-dirs.json: "url": "https://github.com/TheMuppets/proprietary_vendor_fairphone"
lineage-17.1/vendor-dirs.json- },
--
lineage-20.0/vendor-dirs.json- "sha256": "1197412xmzby9b43ck3h64xy7zyx1jpbwmdpa2p3dm0x10yn12ls",
lineage-20.0/vendor-dirs.json: "url": "https://github.com/TheMuppets/proprietary_vendor_fairphone_FP3"
lineage-20.0/vendor-dirs.json- },
--
lineage-20.0/vendor-dirs.json- "sha256": "1iin8ivv4y6d25sm6vxyr09vqf36r3d4gg38l5qmbryl02ppfgad",
lineage-20.0/vendor-dirs.json: "url": "https://github.com/TheMuppets/proprietary_vendor_fairphone_FP4"
lineage-20.0/vendor-dirs.json- },
[nix-shell:~/stash/robotnix/flavors/lineageos]$ ./update_device_dirs.py --branch lineageos-20.0 fairphone_FP4
WARNING: You have less than 10 GiB free under /run/user/1000.
This script might fail if a checked-out repository is larger than 10 GiB.
Either free space at this location or set the TMPDIR environment variable to a path which has enough free space.
SKIP: lineageos-20.0 branch does not exist for FP4
SKIP: lineageos-20.0 branch does not exist for https://github.com/TheMuppets/proprietary_vendor_fairphone
I'm not even sure why it tries to use that repo for 20.0
| 08:40:02 |
eyJhb | In reply to @eyjhb:eyjhb.dk
[nix-shell:~/stash/robotnix/flavors/lineageos]$ grep -ir1 '//github.com/TheMuppets/proprietary_vendor_fairphone'
lineage-18.1/vendor-dirs.json- "sha256": "09z5wv2ckrrmm323mlya9l19vlv78a2js3rdgbikcgzlqa75r3ad",
lineage-18.1/vendor-dirs.json: "url": "https://github.com/TheMuppets/proprietary_vendor_fairphone"
lineage-18.1/vendor-dirs.json- },
--
lineage-19.1/vendor-dirs.json- "sha256": "0z9ixzzs8r929gpsbgwrcv3hpzh5nwmlfir1p2rxqgxir0fri7c9",
lineage-19.1/vendor-dirs.json: "url": "https://github.com/TheMuppets/proprietary_vendor_fairphone"
lineage-19.1/vendor-dirs.json- },
--
lineage-17.1/vendor-dirs.json- "sha256": "0121a8fam9dg5lb2jm0pmqhnwcgy81kqi2aqadf5x58ykd6xzr7g",
lineage-17.1/vendor-dirs.json: "url": "https://github.com/TheMuppets/proprietary_vendor_fairphone"
lineage-17.1/vendor-dirs.json- },
--
lineage-20.0/vendor-dirs.json- "sha256": "1197412xmzby9b43ck3h64xy7zyx1jpbwmdpa2p3dm0x10yn12ls",
lineage-20.0/vendor-dirs.json: "url": "https://github.com/TheMuppets/proprietary_vendor_fairphone_FP3"
lineage-20.0/vendor-dirs.json- },
--
lineage-20.0/vendor-dirs.json- "sha256": "1iin8ivv4y6d25sm6vxyr09vqf36r3d4gg38l5qmbryl02ppfgad",
lineage-20.0/vendor-dirs.json: "url": "https://github.com/TheMuppets/proprietary_vendor_fairphone_FP4"
lineage-20.0/vendor-dirs.json- },
[nix-shell:~/stash/robotnix/flavors/lineageos]$ ./update_device_dirs.py --branch lineageos-20.0 fairphone_FP4
WARNING: You have less than 10 GiB free under /run/user/1000.
This script might fail if a checked-out repository is larger than 10 GiB.
Either free space at this location or set the TMPDIR environment variable to a path which has enough free space.
SKIP: lineageos-20.0 branch does not exist for FP4
SKIP: lineageos-20.0 branch does not exist for https://github.com/TheMuppets/proprietary_vendor_fairphone
I'm not even sure why it tries to use that repo for 20.0
Fixed this part, had to specify lineage-20, for it to work. However, that gave other fun troubles (e.g. it wanted to output to lineage-20 folder, but it should be lineage-20.0. Solved by just renaming it for a short while) | 08:45:53 |
eyJhb | In reply to @eyjhb:eyjhb.dk
Trying to build for FP4, applied PR 226
[ 99% 396/398] test android/soong/java
[ 99% 397/398] test android/soong/apex
[100% 398/398] analyzing Android.bp files and generating ninja file at out/soong/build.ninja
FAILED: out/soong/build.ninja
cd "$(dirname "out/host/linux-x86/bin/soong_build")" && BUILDER="$PWD/$(basename "out/host/linux-x86/bin/soong_build")" && cd / && env -i "$BUILDER" --top "$TOP" --soong_out "out/soong" --out "out" -o out/soong/build.ninja --globListDir b>
ninja: build stopped: subcommand failed.
08:17:20 soong bootstrap failed with: exit status 1
buildPhase completed in 1 minutes 23 seconds
@nix { "action": "setPhase", "phase": "installPhase" }
installing
cat: ANDROID_PRODUCT_OUT: No such file or directory
cp: cannot stat '/otatools.zip': No such file or directory
cp: cannot stat '/obj/PACKAGING/target_files_intermediates/lineage_FP4-target_files-2023100409.zip': No such file or directory
Any suggestions? Tried to update the directories, but a proprietary vendor repo doesn't have branch lineageos 20.
This still persists however :/ | 08:47:35 |
eyJhb | So it seems the reason it silently fails, is because it runs out of memory. If I closed all other software on my PC, I could get past that stage. However, now it's a new set of errors
| 08:57:19 |
eyJhb | * So it seems the reason it silently fails, is because it runs out of memory. If I closed all other software on my PC, I could get past that stage. However, now it's a new set of errors
[ 99% 589/590] finishing build rules ...
vendor/lineage/build/tasks/kernel.mk:139: warning: ***************************************************************
vendor/lineage/build/tasks/kernel.mk:140: warning: * Using prebuilt kernel binary instead of source *
vendor/lineage/build/tasks/kernel.mk:141: warning: * THIS IS DEPRECATED, AND IS NOT ADVISED. *
vendor/lineage/build/tasks/kernel.mk:142: warning: * Please configure your device to download the kernel *
vendor/lineage/build/tasks/kernel.mk:143: warning: * source repository to kernel/fairphone/sm7225
vendor/lineage/build/tasks/kernel.mk:144: warning: * for more information *
vendor/lineage/build/tasks/kernel.mk:145: warning: ***************************************************************
[100% 590/590] writing build rules ...
out/build-lineage_FP4-package.ninja is missing, regenerating...
[ 99% 591/593] initializing packaging system ...
[ 99% 592/593] including distdir.mk ...
[100% 593/593] writing packaging rules ...
08:55:45 Allowing all environment variables during ninja; incremental builds may be unsafe.
Starting ninja...
FAILED: ninja: 'out/target/product/FP4/kernel', needed by 'out/target/product/FP4/recovery.img', missing and no known rule to make it
08:55:51 ninja failed with: exit status 1
buildPhase completed in 2 minutes 35 seconds
installing
cat: ANDROID_PRODUCT_OUT: No such file or directory
cp: cannot stat '/otatools.zip': No such file or directory
cp: cannot stat '/obj/PACKAGING/target_files_intermediates/lineage_FP4-target_files-2023100409.zip': No such file or directory
/nix/store/f4p20wwc3y4k3i4xbjlr4yl2dc8rl5gq-robotnix-lineage_FP4-2023100409
| 08:57:31 |
eyJhb | Seems like a bigger project than anticipated to build FP4 | 09:21:52 |
eyJhb | Well, it seems to be a generic thing. Maybe I'm just not allowed to build anything Android. | 10:06:08 |
eyJhb | Anyone that can give me a device name that is "known" good in the past? | 10:08:22 |
eyJhb | Just so I can try it out. | 10:08:26 |
atemu12 | You appear to be missing the device-specific dirs | 10:08:30 |
eyJhb | In reply to @atemu12:matrix.org You appear to be missing the device-specific dirs It fails the build, but says it was successful
FAILED: ninja: 'out/target/product/FP4/kernel', needed by 'out/target/product/FP4/recovery.img', missing and no known rule to make it
08:55:51 ninja failed with: exit status 1
But yeah, seems to be missing something here :D
| 10:09:06 |
eyJhb | In reply to @atemu12:matrix.org You appear to be missing the device-specific dirs * It fails the build, but says it was successful
FAILED: ninja: 'out/target/product/FP4/kernel', needed by 'out/target/product/FP4/recovery.img', missing and no known rule to make it
08:55:51 ninja failed with: exit status 1
But yeah, seems to be missing something here .. :(
| 10:09:11 |
atemu12 | The updater script should collect those as metadata and robotnix automatically adds them to the source.dirs | 10:09:27 |
eyJhb | I tried building aura | 10:09:29 |
eyJhb | * I tried building aura, but that didn't work. | 10:09:36 |
eyJhb | In reply to @atemu12:matrix.org The updater script should collect those as metadata and robotnix automatically adds them to the source.dirs I tried running the updater script, to ensure that it was up-to-date etc. ./update_device_dirs.py --debug --branch lineage-20 fairphone_FP4 | 10:10:33 |
atemu12 | So I happen to also use the FP4; it's one of two devices I test for | 10:11:08 |
atemu12 | Master should work | 10:11:11 |
eyJhb | What | 10:11:20 |
atemu12 | What's your config? | 10:11:28 |
eyJhb |
| 10:11:41 |
eyJhb | CHrist | 10:11:44 |
eyJhb | # SPDX-FileCopyrightText: 2020 Daniel Fullmer and robotnix contributors
# SPDX-License-Identifier: MIT
# This is an example configuration that I personally use for my device.
# Please read the manual instead of simply copying this file for your own use.
{ config, pkgs, lib, ... }:
let
myDomain = "daniel.fullmer.me";
in
{
# These are required options, but commented out here since I set it programmatically for my devices elsewhere
device = "FP4";
flavor = "lineageos"; # "vanilla" is another option
# buildDateTime is set by default by the flavor, and is updated when those flavors have new releases.
# If you make new changes to your build that you want to be pushed by the OTA updater, you should set this yourself.
# buildDateTime = 1584398664; # Use `date "+%s"` to get the current time
# signing.enable = true;
# signing.keyStorePath = "/var/secrets/android-keys"; # A _string_ of the path for the key store.
# Build with ccache
ccache.enable = true;
apps.fdroid.enable = true;
apps.seedvault.enable = true;
microg.enable = true;
# disable this shit
apps.chromium.enable = false;
webview.chromium.enable = false;
# webview.prebuilt.enable = true;
}
| 10:11:47 |
atemu12 | In reply to @eyjhb:eyjhb.dk I tried running the updater script, to ensure that it was up-to-date etc. ./update_device_dirs.py --debug --branch lineage-20 fairphone_FP4 IIRC you can't update a single device | 10:12:03 |
eyJhb | But I'm running the 226 patch. I'll test master as-is instead | 10:12:05 |
atemu12 | Not sure what happens with the extra arg | 10:12:13 |
atemu12 | In reply to @eyjhb:eyjhb.dk CHrist That looks rather similar to mine | 10:12:35 |
eyJhb | In reply to @atemu12:matrix.org IIRC you can't update a single device https://github.com/nix-community/robotnix/issues/58#issuecomment-716734518 | 10:12:53 |