Building Android Source Code...Error

Hii all

I am using Android for VIM4
and about my Machine i am using Ubuntu 18.04.6 LTS

After repo sync & source build/envsetup.sh for VIM4 it’s showing error after lunch 11 command

please check below console log for issue

chandrakantc@linux:~/khadasvim4$ source build/envsetup.sh
chandrakantc@linux:~/khadasvim4$ lunch 11
device/khadas/common/tuner/tuner.mk:25: warning: TUNER_MODULE is cxd2856
device/khadas/common/video_algorithm/hdr10_tmo/hdr10_tmo.mk:22: warning: HDR10_TMO_MODULE is true
device/khadas/common/video_algorithm/dnlp/dnlp.mk:22: warning: DNLP_MODULE is true
device/khadas/common/ldim/ldim.mk:22: warning: LDIM_FW_MODULE is true
device/khadas/common/speech/speech.mk:23: warning: because speech does not support kernel 5.4, So set SPEECH_MODULE to false here
vendor/amlogic/common/wifi_bt/bluetooth/configs/bluetooth.mk:26: warning: BLUETOOTH_MODULE is multibt
vendor/amlogic/common/wifi_bt/bluetooth/configs/bluetooth.mk:30: warning: BLUETOOTH_INF is not set
In file included from build/make/core/config.mk:291:
In file included from build/make/core/envsetup.mk:266:
In file included from build/make/core/product_config.mk:160:
device/khadas/kvim4/kvim4.mk:424: error: Params: is_reference_project=[false],need_tv_feature=[true], is_android_tv=[false];  Error : Failed to patch [/home/chandrakantc/khadasvim4/vendor/amlogic/common/pre_submit_for_google//WaitGoogleMerge/frameworks#av#0001_media_ext.patch], Need check it.exit.
20:44:47 dumpvars failed with: exit status 1


@VikasP Download The Android Source Code | Khadas Documentation
Has step 5 been completed?

Hi
Thanks for your response

yes step 5 already has been completed i also did cross check.

device/khadas/kvim4/kvim4.mk:424: error: Params: is_reference_project=[false],need_tv_feature=[true], is_android_tv=[false]; Error : Failed to patch [/home/chandrakantc/khadasvim4/vendor/amlogic/common/pre_submit_for_google//WaitGoogleMerge/frameworks#av#0001_media_ext.patch], Need check it.exit.

/frameworks#av#0001_media_ext.patch is all ready exits

please check below attachment screenshot for your reference

@VikasP I haven’t met your question. But first, check whether the submission signal matches mine.

/vendor/amlogic/common/pre_submit_for_google$ git log
commit fd6dfb0f59a6772ccec0d18afff71810dae48cb3 (HEAD -> vim4, openlinux/openlinux/ds/r-amlogic-64-bit-20220111, m/r-amlogic)
Author: an.xi <an.xi@amlogic.com>
Date:   Mon Mar 28 10:58:10 2022 +0800

    cec: only do duplication check when earc state is on [1/1]
    
    PD#SWPL-74319
    
    Problem:
    Arc may not be established when earc state if off even
    earc settings is on.
    
    Solution:
    only do duplication check when earc state is on.
    
    Verify:
    t3
    
    Change-Id: Ia8406c0df2116008a8ca7ba247acef46bc350bd9
    Signed-off-by: an.xi <an.xi@amlogic.com>

commit a5ed85b4c85aab13aeedecbfba05e15bfeb40ebb
Author: Zhe Wang <Zhe.Wang@amlogic.com>
Date:   Mon Feb 7 13:47:22 2022 +0800

    audio: bringup headphone on AM301 [4/4]
    
    PD#SWPL-56272
    
    Problem:
    bringup headphone on AM301
    
    Solution:
    For headphone device, "set_audio_port_config"
    as volume setting
    
    Verify:
    verify by redi.
    
    Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
    Change-Id: I37a09d8635482d9ddd25792eaf4f9fb41308f9e1
.
.
.

vendor/amlogic/common/pre_submit_for_google$ cd WaitGoogleMerge/
vendor/amlogic/common/pre_submit_for_google/WaitGoogleMerge$ 
vendor/amlogic/common/pre_submit_for_google/WaitGoogleMerge$ 
vendor/amlogic/common/pre_submit_for_google/WaitGoogleMerge$ ls
external#e2fsprogs#0001_chinese_character.patch  frameworks#base#0003_bt.patch           frameworks#base#0007_passthrough.patch    frameworks#base#0012_cec.patch             frameworks#base#0017_earc.patch
frameworks#av#0001_media_ext.patch               frameworks#base#0004_cec.patch          frameworks#base#0008_cec.patch            frameworks#base#0012_earc.patch            frameworks#base#0018_earc.patch
frameworks#av#0002_media_ext.patch               frameworks#base#0005_audio.patch        frameworks#base#0008_passthrough.patch    frameworks#base#0013_earc.patch            frameworks#base#0019_earc.patch
frameworks#av#0003_audio_camera.patch            frameworks#base#0005_passthrough.patch  frameworks#base#0009_cec.patch            frameworks#base#0013_earctx_cds.patch      system#vold#0001_udisk.patch
frameworks#base#0001_stability.patch             frameworks#base#0005_soundbar.patch     frameworks#base#0009_passthrough.patch    frameworks#base#0014_cec.patch             system#vold#0002_ntfs_exfat.patch
frameworks#base#0001_tvinput_audio_patch.patch   frameworks#base#0006_cec.patch          frameworks#base#0010_audio.patch          frameworks#base#0014_earc.patch            system#vold#0003_format.patch
frameworks#base#0001_tvinput.patch               frameworks#base#0006_passthrough.patch  frameworks#base#0010_cec.patch            frameworks#base#0015_earc.patch            system#vold#0004.patch
frameworks#base#0002_mtp.patch                   frameworks#base#0006_soundbar.patch     frameworks#base#0010_globalactions.patch  frameworks#base#0016_earc.patch
frameworks#base#0002_stability.patch             frameworks#base#0007_cec.patch          frameworks#base#0011_cec.patch            frameworks#base#0016_fix_earc_crash.patch
hlm@server:/users/hlm/vim4_new/vendor/amlogic/common/pre_submit_for_google/WaitGoogleMerge$ 

@VikasP Can you tell me how this compilation error was resolved earlier?

@goenjoy can you try with repo sync

@VikasP Building Android Source Code…Error