[Google Pixel 8 Pro] karenmcd:
hello,

I'm trying to build lineageos following these instructions: https://wiki.lineageos.org/devices/husky/build/

I'm using Gnome boxes. I setup a fresh install of Ubuntu 23.10 with 2Tb maximum hdd space:

android-build:~/android/lineage$ sudo inxi
CPU: 16-core AMD Ryzen 7 5800X (-MCP-) speed: 3793 MHz
Kernel: 6.5.0-21-generic x86_64 Up: 4h 5m Mem: 3.79/62.79 GiB (6.0%)
Storage: 533.47 GiB (33.9% used) Procs: 376 Shell: Sudo inxi: 3.3.29

Trying to repo sync the first time didnt work presumably. It crashed the terminal and never left any trace of errors or did it generate any logs. Reopening my terminal emulator didn't even show a trace of having run repo sync. So I tried restarting it. It gave me a bunch of errors many times. So eventually I read some of the errors and saw that a folder didn't exist locally /home/android-build/android/lineage/.repo/projects/frameworks/base.git/refs. So I created that folder manually. Then I also deleted this folder ~/.repo folder and re-ran repo sync with -j1 flag as suggested here: https://stackoverflow.com/questions/30071064/android-repo-sync-fatal-error because I was getting the same error message as well.

It finally seems like it's getting a lot further than before, but I'm still getting errors and unsure if it's going to build properly (guessing no...) So I'm wondering where to go from here.

Trying to repo sync -j1 with a fresh start results in these new messages and errors which I'm not finding a solution for:

android-build:~/android/lineage$ repo sync -j1
Fetching: 100% (1305/1305), done in 16m12.533s
Checking out: 60% (786/1305) LineageOS/android_frameworks_averror: The following untracked working tree files would be overwritten by checkout:
.clang-format
.gitignore
.mailmap
.prebuilt_info/OWNERS
.prebuilt_info/prebuilt_info_packages_CtsShim_apk__arm_CtsShimPriv_apk.asciipb
.prebuilt_info/prebuilt_info_packages_CtsShim_apk__arm_CtsShim_apk.asciipb
.prebuilt_info/prebuilt_info_packages_CtsShim_apk__riscv64_CtsShimPriv_apk.asciipb
.prebuilt_info/prebuilt_info_packages_CtsShim_apk__riscv64_CtsShim_apk.asciipb
.prebuilt_info/prebuilt_info_packages_CtsShim_apk__x86_CtsShimPriv_apk.asciipb
.prebuilt_info/prebuilt_info_packages_CtsShim_apk__x86_CtsShim_apk.asciipb
Android.bp
Android.mk
BATTERY_STATS_OWNERS
BROADCASTS_OWNERS
CleanSpec.mk
GAME_MANAGER_OWNERS
INPUT_OWNERS
METADATA
MODULE_LICENSE_APACHE2
MULTIUSER_OWNERS
NOTICE
OWNERS
OWNERS.md
PACKAGE_MANAGER_OWNERS
PERFORMANCE_OWNERS
PREUPLOAD.cfg
ProtoLibraries.bp
TEST_MAPPING
TRACE_OWNERS
TestProtoLibraries.bp
WEAR_OWNERS
ZYGOTE_OWNERS
apct-tests/perftests/OWNERS
apct-tests/perftests/autofill/Android.bp
apct-tests/perftests/autofill/AndroidManifest.xml
apct-tests/perftests/autofill/AndroidTest.xml
apct-tests/perftests/autofill/OWNERS
apct-tests/perftests/autofill/res/layout/autofill_dataset_picker_text_only.xml
apct-tests/perftests/autofill/res/layout/test_autofill_login.xml
apct-tests/perftests/autofill/src/android/view/autofill/AbstractAutofillPerfTestCase.java
apct-tests/perftests/autofill/src/android/view/autofill/AutofillTestHelper.java
apct-tests/perftests/autofill/src/android/view/autofill/AutofillTestWatcher.java
apct-tests/perftests/autofill/src/android/view/autofill/LoginTest.java
apct-tests/perftests/autofill/src/android/view/autofill/MyAutofillCallback.java
apct-tests/perftests/autofill/src/android/view/autofill/MyAutofillService.java
apct-tests/perftests/blobstore/Android.bp
apct-tests/perftests/blobstore/AndroidManifest.xml
apct-tests/perftests/blobstore/AndroidTest.xml
apct-tests/perftests/blobstore/OWNERS
apct-tests/perftests/blobstore/src/com/android/perftests/blob/AtraceUtils.java
apct-tests/perftests/blobstore/src/com/android/perftests/blob/BlobStorePerfTests.java
apct-tests/perftests/contentcapture/Android.bp
apct-tests/perftests/contentcapture/AndroidManifest.xml
apct-tests/perftests/contentcapture/AndroidTest.xml
apct-tests/perftests/contentcapture/OWNERS
apct-tests/perftests/contentcapture/res/layout/test_container_activity.xml
apct-tests/perftests/contentcapture/res/layout/test_login_activity.xml
apct-tests/perftests/contentcapture/src/android/view/contentcapture/AbstractContentCapturePerfTestCase.java
apct-tests/perftests/contentcapture/src/android/view/contentcapture/CustomTestActivity.java
apct-tests/perftests/contentcapture/src/android/view/contentcapture/LoginTest.java
apct-tests/perftests/contentcapture/src/android/view/contentcapture/MyContentCaptureService.java
apct-tests/perftests/core/Android.bp
apct-tests/perftests/core/AndroidManifest.xml
apct-tests/perftests/core/AndroidTest.xml
apct-tests/perftests/core/OWNERS
apct-tests/perftests/core/apps/overlay/Android.bp
apct-tests/perftests/core/apps/overlay/AndroidManifest.xml
apct-tests/perftests/core/apps/overlay/OWNERS
apct-tests/perftests/core/apps/overlay/res/values/values.xml
apct-tests/perftests/core/apps/overlay/res_large/values/values.xml
apct-tests/perftests/core/apps/reources_manager/Android.bp
apct-tests/perftests/core/apps/reources_manager/AndroidManifest.xml
apct-tests/perftests/core/jni/Android.bp
apct-tests/perftests/core/jni/SystemPerfTest.cpp
apct-tests/perftests/core/res/color/color_state_list.xml
apct-tests/perftests/core/res/drawable/vector_drawable01.xml
apct-tests/perftests/core/res/drawable/vector_drawable01.xml
apct-tests/perftests/core/res/font/samplefont.ttf
apct-tests/perftests/core/res/font/samplefont_source.ttx
apct-tests/perftests/core/res/font/samplexmlfont.xml
apct-tests/perftests/core/res/layout/linear_layout_for_xmlblock_benchmark.xml
apct-tests/perftests/core/res/layout/test_autosize_textview_10.xml
apct-tests/perftests/core/res/layout/test_autosize_textview_100.xml
apct-tests/perftests/core/res/l
Aborting
frameworks/base/: leaving master; does not track upstream
error: frameworks/base/: LineageOS/android_frameworks_base checkout 1aa3f624c40852b36a14c479daae1fc879f3d3bf
error: Cannot checkout LineageOS/android_frameworks_base
Updating files: 100% (3438/3438), done.rameworks/multidexUpdating files: 14% (485/3438)
Updating files: 100% (11868/11868), done.droid_hardware_google_pixel-sepolicyUpdating files: 46% (5545/11868)
Updating files: 100% (672/672), done.S/android_hardware_qcom_mediaUpdating files: 77% (521/672)
Updating files: 100% (14/14), done./prebuilts/4.19/arm64Updating files: 78% (11/14)
Updating files: 100% (121/121), done.rebuilts/5.10/x86-64Updating files: 23% (28/121)
Updating files: 100% (12/12), done./prebuilts/5.15/x86-64Updating files: 58% (7/12)
Updating files: 100% (120/120), done.rebuilts/5.4/x86-64Updating files: 23% (28/120)
Updating files: 100% (116/116), done.rebuilts/6.1/arm64Updating files: 23% (27/116)
Updating files: 100% (48/48), done./prebuilts/common-modules/virtual-device/4.19/x86-64Updating files: 70% (34/48)
Updating files: 100% (52/52), done./prebuilts/common-modules/virtual-device/5.15/arm64Updating files: 92% (48/52)
Updating files: 100% (49/49), done./prebuilts/common-modules/virtual-device/5.15/x86-64Updating files: 85% (42/49)
Updating files: 100% (50/50), done./prebuilts/common-modules/virtual-device/5.4/arm64Updating files: 70% (35/50)
Updating files: 100% (46/46), done./prebuilts/common-modules/virtual-device/6.1/arm64Updating files: 71% (33/46)
Updating files: 100% (55/55), done./prebuilts/common-modules/virtual-device/6.1/x86-64Updating files: 94% (52/55)
Updating files: 100% (182/182), done.rebuilts/common-modules/virtual-device/mainline/x86-64Updating files: 79% (145/182)
Updating files: 100% (7705/7705), done.tsUpdating files: 57% (4403/7705)
Updating files: 100% (167/167), done.S/charterUpdating files: 39% (66/167)
Updating files: 100% (156/156), done.S/scriptsUpdating files: 76% (119/156)
Updating files: 100% (1686/1686), done.ackages/apps/Browser2Updating files: 7% (122/1686)
Updating files: 100% (963/963), done.S/android_packages_apps_DialerUpdating files: 78% (757/963)
Updating files: 100% (706/706), done.m/packages/apps/SecureElementUpdating files: 5% (41/706)
Updating files: 100% (6843/6843), done./android_packages_apps_SeedvaultUpdating files: 48% (3341/6843)
Updating files: 100% (3232/3232), done.packages/apps/SystemUIGoUpdating files: 99% (3206/3232)
Updating files: 100% (3104/3104), done./android_packages_apps_WallpaperPicker2Updating files: 70% (2201/3104)
Updating files: 100% (2593/2593), done./android_packages_inputmethods_LeanbackIMEUpdating files: 6% (164/2593)
Updating files: 100% (5398/5398), done.packages/modules/ArtPrebuiltUpdating files: 1% (97/5398)
Updating files: 100% (209/209), done.m/packages/modules/ExtServicesUpdating files: 95% (200/209)
Updating files: 100% (1298/1298), done.packages/modules/GkiUpdating files: 8% (104/1298)
Updating files: 100% (2424/2424), done.packages/modules/NetworkStackUpdating files: 15% (370/2424)
Updating files: 100% (2241/2241), done.packages/modules/OnDevicePersonalizationUpdating files: 80% (1796/2241)
Updating files: 100% (646/646), done.m/packages/modules/UwbUpdating files: 34% (224/646)
Updating files: 100% (586/586), done.OS/android_packages_providers_DownloadProviderUpdating files: 3% (23/586)
Updating files: 100% (6745/6745), done.packages/services/BuiltInPrintServiceUpdating files: 24% (1631/6745)
Updating files: 100% (1372/1372), done./android_packages_services_TelecommUpdating files: 24% (339/1372)
Updating files: 100% (2795/2795), done.pdkUpdating files: 46% (1310/2795)
Updating files: 100% (716/716), done.m/platform_testingUpdating files: 93% (666/716)
Updating files: 100% (7462/7462), done.prebuilts/abi-dumps/platformUpdating files: 0% (5/7462)
Updating files: 100% (671/671), done.m/prebuilts/abi-dumps/vndkUpdating files: 19% (134/671)
Updating files: 100% (33/33), done.orm/prebuilts/asuiteUpdating files: 24% (8/33)
Updating files: 100% (8/8), done.tform/prebuilts/bazel/darwin-x86_64Updating files: 62% (5/8)
Updating files: 100% (7462/7462), done.prebuilts/bazel/linux-x86_64Updating files: 0% (43/7462)
Updating files: 100% (444/444), done.m/prebuilts/checkstyleUpdating files: 48% (214/444)
Updating files: 100% (18749/18749), done.ebuilts/clang-toolsUpdating files: 0% (24/18749)
Updating files: 100% (21235/21235), done.ebuilts/clang/host/darwin-x86Updating files: 0% (42/21235)
Updating files: 100% (5589/5589), done.prebuilts/clang/host/linux-x86Updating files: 0% (12/5589)
Updating files: 100% (124/124), done.OS/android_prebuilts_clang_kernel_linux-x86_clang-r416183bUpdating files: 53% (66/124)
Updating files: 100% (33/33), done.orm/prebuilts/devtoolsUpdating files: 100% (33/33)
Updating files: 100% (193/193), done.OS/android_prebuilts_gcc_linux-x86_aarch64_aarch64-linux-android-4.9Updating files: 99% (192/193)
Updating files: 100% (3584/3584), done./android_prebuilts_gcc_linux-x86_arm_arm-linux-androideabi-4.9Updating files: 58% (2088/3584)
Updating files: 100% (3959/3959), done.prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8Updating files: 44% (1769/3959)
Updating files: 100% (12749/12749), done.ndroid_prebuilts_gcc_linux-x86_x86_x86_64-linux-android-4.9Updating files: 0% (32/12749)
Updating files: 100% (12747/12747), done.ebuilts/go/darwin-x86Updating files: 3% (499/12747)
Updating files: 100% (1522/1522), done.prebuilts/gradle-pluginUpdating files: 8% (130/1522)
Updating files: 76% (1746/2297)atform/prebuilts/jdk/jdk11Updating files: 3% (79/2297)
Updating files: 100% (683/683), done.m/prebuilts/jdk/jdk17Updating files: 24% (166/683)
Updating files: 100% (763/763), done.m/prebuilts/jdk/jdk8Updating files: 9% (70/763)
Updating files: 100% (148/148), done.m/prebuilts/jdk/jdk9Updating files: 5% (8/148)
Updating files: 100% (4/4), done.nel/prebuilts/build-toolsUpdating files: 100% (4/4)
Updating files: 100% (486/486), done.m/prebuilts/maven_repo/bumptechUpdating files: 41% (203/486)
Updating files: 100% (2775/2775), done.prebuilts/module_sdk/WifiUpdating files: 17% (483/2775)
Updating files: 100% (159/159), done.m/prebuilts/ndkUpdating files: 46% (74/159)
Updating files: 100% (697/697), done.m/prebuilts/r8Updating files: 81% (571/697)
Updating files: 100% (9555/9555), done.prebuilts/remoteexecution-clientUpdating files: 0% (11/9555)
Updating files: 100% (15152/15152), done.ebuilts/runtimeUpdating files: 0% (25/15152)
Updating files: 100% (9897/9897), done.prebuilts/rustUpdating files: 0% (3/9897)
Updating files: 100% (958/958), done.m/prebuilts/sdkUpdating files: 30% (290/958)
Updating files: 100% (560/560), done.m/prebuilts/toolsUpdating files: 10% (56/560)
Updating files: 100% (2101/2101), done./android_prebuilts_tools-lineageUpdating files: 3% (84/2101)
Updating files: 100% (21272/21272), done.ebuilts/vndk/v29Updating files: 22% (4714/21272)
Updating files: 100% (18265/18265), done.ebuilts/vndk/v30Updating files: 33% (6191/18265)
Updating files: 100% (18387/18387), done.ebuilts/vndk/v31Updating files: 25% (4632/18387)
Updating files: 100% (30673/30673), done.ebuilts/vndk/v32Updating files: 24% (7609/30673)
Updating files: 100% (1151/1151), done.system/dmesgdUpdating files: 11% (130/1151)
Updating files: 100% (1789/1789), done.test/mlts/benchmarkUpdating files: 90% (1620/1789)
Updating files: 100% (68/68), done.orm/test/vts-testcase/vndkUpdating files: 29% (20/68)
Updating files: 100% (175/175), done.m/tools/currysrcUpdating files: 64% (113/175)
Updating files: 100% (23/23), done.orm/tools/test/openhstUpdating files: 78% (18/23)
Updating files: 100% (389/389), done.OS/android_vendor_crowdinUpdating files: 43% (169/389)
Checking out: 100% (1305/1305), done in 27m17.111s
error: Unable to fully sync the tree
error: Checking out local projects failed.
Failing repos:
frameworks/base
Try re-running with "-j1 --fail-fast" to exit at the first error.
================================================================================
Repo command failed due to the following `SyncError` errors:
LineageOS/android_frameworks_base checkout 1aa3f624c40852b36a14c479daae1fc879f3d3bf
android-build:~/android/lineage$