I can successfully build Android 12 Car for emulator using commands:
source build/envsetup.sh
lunch sdk_car_x86_64-userdebug
m
But I'm getting the error when try to build image for arm:
source build/envsetup.sh
lunch aosp_car_arm-userdebug
m
with the next error:
internal error: panic in GenerateBuildActions for module "com.android.permission" variant "android_common_com.android.permission.gms_com.android.permission_image"
runtime error: invalid memory address or nil pointer dereference
goroutine 6844339 [running]:
github.com/google/blueprint.newPanicErrorf(0xd5e5c0, 0x15e1260, 0xc119275b90, 0x89, 0x0, 0x0, 0x0, 0x3, 0xc17fdd7f60)
/home/ihor/work/phx/build/blueprint/context.go:4142 +0x7b
github.com/google/blueprint.(*Context).generateModuleBuildActions.func2.1.1(0xc0c178ec40, 0xc01b82d040)
/home/ihor/work/phx/build/blueprint/context.go:2831 +0x3a5
panic(0xd5e5c0, 0x15e1260)
prebuilts/go/linux-x86/src/runtime/panic.go:969 +0x1b9
android/soong/apex.(*apexBundle).GenerateAndroidBuildActions.func2(0xc180e9bc00, 0x7, 0x8, 0x0, 0x0, 0x0)
/home/ihor/work/phx/build/soong/apex/apex.go:1970 +0x126
android/soong/apex.(*apexBundle).GenerateAndroidBuildActions(0xc0bdd9e000, 0x102ee40, 0xc118ca1680)
/home/ihor/work/phx/build/soong/apex/apex.go:1986 +0x269
android/soong/android.(*ModuleBase).GenerateBuildActions(0xc0bdd9e000, 0x101dec0, 0xc01b82d040)
/home/ihor/work/phx/build/soong/android/module.go:1850 +0xc5f
github.com/google/blueprint.(*Context).generateModuleBuildActions.func2.1(0xc0c178ec40, 0xc01b82d040)
/home/ihor/work/phx/build/blueprint/context.go:2835 +0x85
github.com/google/blueprint.(*Context).generateModuleBuildActions.func2(0xc0c178ec40, 0xc0026b5860, 0x0)
/home/ihor/work/phx/build/blueprint/context.go:2836 +0x345
github.com/google/blueprint.parallelVisit.func1.1(0xc1146d0440, 0xc0c178ec40, 0xc0026b5860, 0xc0026b5800, 0xc0026b56e0)
/home/ihor/work/phx/build/blueprint/context.go:1973 +0x3a
created by github.com/google/blueprint.parallelVisit.func1
/home/ihor/work/phx/build/blueprint/context.go:1972 +0x12e
This is not a resource issue - I have 64Gb of RAM and 16Gb of swap. To the moment of issue only 12Gb of RAM was used and no swap. Restart also is not a solution )