UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Error when compiling halium-boot (porting Ubuntu Touch to a Samsung Note 10)

    Scheduled Pinned Locked Moved Unsolved Porting
    2 Posts 1 Posters 936 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V Offline
      VinceAle7082
      last edited by

      I'm using the Lenovo Ideapad S340 (shitty computer with 8 GB of RAM) and I am trying to port Ubuntu Touch with Halium13 to my Samsung Note 10.
      I did exactly what the Ubports porting guide says to do but when I did "mka halium-boot" this happend:

      
      00:06:40 ************************************************************
      00:06:40 You are building on a machine with 6.7GB of RAM
      00:06:40 
      00:06:40 The minimum required amount of free memory is around 16GB,
      00:06:40 and even with that, some configurations may not work.
      00:06:40 
      00:06:40 If you run into segfaults or other errors, try reducing your
      00:06:40 -j value.
      00:06:40 ************************************************************
      00:06:40 Build sandboxing disabled due to nsjail error.
      ============================================
      PLATFORM_VERSION_CODENAME=REL
      PLATFORM_VERSION=13
      TARGET_PRODUCT=aosp_arm
      TARGET_BUILD_VARIANT=eng
      TARGET_BUILD_TYPE=release
      TARGET_ARCH=arm
      TARGET_ARCH_VARIANT=armv7-a-neon
      TARGET_CPU_VARIANT=generic
      HOST_ARCH=x86_64
      HOST_2ND_ARCH=x86
      HOST_OS=linux
      HOST_OS_EXTRA=Linux-6.5.0-26-generic-x86_64-Ubuntu-22.04.1-LTS
      HOST_CROSS_OS=windows
      HOST_CROSS_ARCH=x86
      HOST_CROSS_2ND_ARCH=x86_64
      HOST_BUILD_TYPE=release
      BUILD_ID=TQ3A.230901.001
      OUT_DIR=out
      PRODUCT_SOONG_NAMESPACES=device/generic/goldfish device/generic/goldfish-opengl hardware/google/camera hardware/google/camera/devices/EmulatedCamera device/generic/goldfish device/generic/goldfish-opengl
      ============================================
      [100% 1/1] 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 build --globFile out/soong/globs-build.ninja -t -l out/.module_paths/Android.bp.list --available_env out/soong/soong.environment.available --used_env out/
      soong/soong.environment.used.build Android.bp
      internal error: panic in GenerateBuildActions for singleton glob
      error parsing variable "args": invalid character after '$' at byte offset 5
      goroutine 1 [running]:
      github.com/google/blueprint.newPanicErrorf({0xd45b60, 0xc2bffd4290}, {0xc164f804b0, 0x27}, {0x0, 0x0, 0x0})
      	/home/vincenzo/halium13/build/blueprint/context.go:4252 +0x79
      github.com/google/blueprint.(*Context).generateSingletonBuildActions.func1.1()
      	/home/vincenzo/halium13/build/blueprint/context.go:3003 +0x30b
      panic({0xd45b60, 0xc2bffd4290})
      	prebuilts/go/linux-x86/src/runtime/panic.go:838 +0x207
      github.com/google/blueprint.(*singletonContext).Build(_, {_, _}, {{0x0, 0x0}, {0x0, 0x0}, 0x0, {0xc164f80450, 0x21}, ...})
      	/home/vincenzo/halium13/build/blueprint/singleton_ctx.go:266 +0x145
      github.com/google/blueprint/bootstrap.multipleGlobFilesRule({0x7eaa8e47cf68, 0xc0fd9be580}, {0xc014ea99b0, 0x18}, 0x1000?, {0xc2923fb800?, 0x2b?, 0x0?})
      	/home/vincenzo/halium13/build/blueprint/bootstrap/glob.go:112 +0x284
      github.com/google/blueprint/bootstrap.(*GlobSingleton).GenerateBuildActions(0xc1f05fb540, {0x104e4f8?, 0xc0fd9be580})
      	/home/vincenzo/halium13/build/blueprint/bootstrap/glob.go:206 +0x1af
      github.com/google/blueprint.(*Context).generateSingletonBuildActions.func1(0xc093f38720?, 0xea1cc3?)
      	/home/vincenzo/halium13/build/blueprint/context.go:3007 +0x78
      github.com/google/blueprint.(*Context).generateSingletonBuildActions(0xc12a5a85a0, {0xe86fa0?, 0xc00024d000}, {0xc301c22038, 0x1, 0xc1f05fb580?}, 0xc298962fc0)
      	/home/vincenzo/halium13/build/blueprint/context.go:3008 +0x34e
      github.com/google/blueprint.(*Context).PrepareBuildActions.func1({0x10453e8?, 0xc298963650?})
      	/home/vincenzo/halium13/build/blueprint/context.go:2474 +0x25e
      runtime/pprof.Do({0x1045378?, 0xc000034020?}, {{0xc09a5af660?, 0x1799820?, 0xc32f7a9910?}}, 0xc32f7a99c0)
      	prebuilts/go/linux-x86/src/runtime/pprof/runtime.go:40 +0xa3
      github.com/google/blueprint.(*Context).PrepareBuildActions(0xc12a5a85a0, {0xe86fa0, 0xc00024d000})
      	/home/vincenzo/halium13/build/blueprint/context.go:2455 +0x445
      github.com/google/blueprint/bootstrap.generateGlobNinjaFile(0xc1f05fb540, {0xe86fa0, 0xc00024d000})
      	/home/vincenzo/halium13/build/blueprint/bootstrap/glob.go:240 +0xc6
      github.com/google/blueprint/bootstrap.WriteBuildGlobsNinjaFile(0xc1f05fb540, {0xe86fa0?, 0xc00024d000?})
      	/home/vincenzo/halium13/build/blueprint/bootstrap/glob.go:214 +0x35
      main.writeBuildGlobsNinjaFile(0xc000374080, {0x7fffa6640eba, 0x9}, {0xe86fa0, 0xc00024d000})
      	/home/vincenzo/halium13/build/soong/cmd/soong_build/main.go:219 +0x405
      main.doChosenActivity({0xc00024d000?}, {0xc32f7a9f50?, 0x2, 0x2})
      	/home/vincenzo/halium13/build/soong/cmd/soong_build/main.go:276 +0x24f
      main.main()
      	/home/vincenzo/halium13/build/soong/cmd/soong_build/main.go:362 +0x255
      
      
      00:15:44 soong bootstrap failed with: exit status 1
      ninja: build stopped: subcommand failed.
      
      #### failed to build some targets (09:06 (mm:ss)) ####
      
      
      

      I know, I don't have much RAM so I have a 64GB swap partition because... yes?
      (Sorry for bad english)

      V 1 Reply Last reply Reply Quote 0
      • V Offline
        VinceAle7082 @VinceAle7082
        last edited by VinceAle7082

        @VinceAle7082 I did everything again and now I get this error when doing "mka mkbootimg":

        15:50:03 ************************************************************
        15:50:03 You are building on a machine with 6.7GB of RAM
        15:50:03 
        15:50:03 The minimum required amount of free memory is around 16GB,
        15:50:03 and even with that, some configurations may not work.
        15:50:03 
        15:50:03 If you run into segfaults or other errors, try reducing your
        15:50:03 -j value.
        15:50:03 ************************************************************
        15:50:03 Build sandboxing disabled due to nsjail error.
        ============================================
        PLATFORM_VERSION_CODENAME=REL
        PLATFORM_VERSION=13
        LINEAGE_VERSION=20.0-20240402-UNOFFICIAL-d1
        TARGET_PRODUCT=lineage_d1
        TARGET_BUILD_VARIANT=userdebug
        TARGET_BUILD_TYPE=release
        TARGET_ARCH=arm64
        TARGET_ARCH_VARIANT=armv8-2a-dotprod
        TARGET_CPU_VARIANT=cortex-a75
        TARGET_2ND_ARCH=arm
        TARGET_2ND_ARCH_VARIANT=armv8-2a
        TARGET_2ND_CPU_VARIANT=cortex-a55
        HOST_ARCH=x86_64
        HOST_2ND_ARCH=x86
        HOST_OS=linux
        HOST_OS_EXTRA=Linux-6.5.0-26-generic-x86_64-Ubuntu-22.04.1-LTS
        HOST_CROSS_OS=windows
        HOST_CROSS_ARCH=x86
        HOST_CROSS_2ND_ARCH=x86_64
        HOST_BUILD_TYPE=release
        BUILD_ID=TQ3A.230901.001
        OUT_DIR=out
        PRODUCT_SOONG_NAMESPACES=vendor/samsung/exynos9820-common device/samsung/exynos9820-common hardware/google/interfaces hardware/google/pixel hardware/samsung hardware/samsung/aidl/power-libperfmgr vendor/s
        amsung/d1
        ============================================
        device/samsung/d1/BoardConfig.mk was modified, regenerating...
        Adding CUSTOM_LOCALES [ast_ES gd_GB cy_GB fur_IT] to PRODUCT_LOCALES [en_US en_US af_ZA am_ET ar_EG ar_XB as_IN az_AZ be_BY bg_BG bn_BD bs_BA ca_ES cs_CZ da_DK de_DE el_GR en_AU en_CA en_GB en_IN en_XA es
        _ES es_US et_EE eu_ES fa_IR fi_FI fr_CA fr_FR gl_ES gu_IN hi_IN hr_HR hu_HU hy_AM in_ID is_IS it_IT iw_IL ja_JP ka_GE kk_KZ km_KH kn_IN ko_KR ky_KG lo_LA lt_LT lv_LV mk_MK ml_IN mn_MN mr_IN ms_MY my_MM nb
        _NO ne_NP nl_NL or_IN pa_IN pl_PL pt_BR pt_PT ro_RO ru_RU si_LK sk_SK sl_SI sq_AL sr_Latn_RS sr_RS sv_SE sw_TZ ta_IN te_IN th_TH tl_PH tr_TR uk_UA ur_PK uz_UZ vi_VN zh_CN zh_HK zh_TW zu_ZA en_XC]
        [100% 1025/1025] initializing build system ...
        Adding CUSTOM_LOCALES [ast_ES gd_GB cy_GB fur_IT] to PRODUCT_LOCALES [en_US en_US af_ZA am_ET ar_EG ar_XB as_IN az_AZ be_BY bg_BG bn_BD bs_BA ca_ES cs_CZ da_DK de_DE el_GR en_AU en_CA en_GB en_IN en_XA es
        _ES es_US et_EE eu_ES fa_IR fi_FI fr_CA fr_FR gl_ES gu_IN hi_IN hr_HR hu_HU hy_AM in_ID is_IS it_IT iw_IL ja_JP ka_GE kk_KZ km_KH kn_IN ko_KR ky_KG lo_LA lt_LT lv_LV mk_MK ml_IN mn_MN mr_IN ms_MY my_MM nb
        _NO ne_NP nl_NL or_IN pa_IN pl_PL pt_BR pt_PT ro_RO ru_RU si_LK sk_SK sl_SI sq_AL sr_Latn_RS sr_RS sv_SE sw_TZ ta_IN te_IN th_TH tl_PH tr_TR uk_UA ur_PK uz_UZ vi_VN zh_CN zh_HK zh_TW zu_ZA en_XC]
        [ 92% 1138/1224] including hardware/samsung_slsi-linaro/exynos/Android.mk ...
        Build Gralloc 1.x libhardware HAL
        [ 97% 1197/1224] including vendor/halium/audioflingerglue/Android.mk ...
        vendor/halium/audioflingerglue/Android.mk:41: warning: *** ANDROID_MICRO undefined. Assuming 0
        /bin/bash: riga 1: test: -le: atteso operatore unario
        cat: frameworks/av/include/media/AudioSystem.h: No such file or directory
        [ 97% 1199/1224] including vendor/halium/droidmedia/Android.mk ...
        vendor/halium/droidmedia/Android.mk:43: warning: *** ANDROID_MICRO undefined. Assuming 0
        [ 99% 1223/1224] finishing build rules ...
        FAILED: 
        build/make/core/main.mk:1312: warning:  device/samsung/d1/lineage_d1.mk includes non-existent modules in PRODUCT_PACKAGES
        Offending entries:
        SimpleSettingsConfig
        fsck.ntfs
        htop
        mkfs.ntfs
        mount.ntfs
        nano
        rsync
        scp
        sftp
        ssh
        ssh-keygen
        sshd
        sshd_config
        start-ssh
        unrar
        vim
        webview
        build/make/core/main.mk:1312: error: Build failed.
        15:51:32 ckati failed with: exit status 1
        
        #### failed to build some targets (01:30 (mm:ss)) ####
        
        
        
        1 Reply Last reply Reply Quote 0
        • V VinceAle7082 marked this topic as a question on

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post