BeagleV Ahead Android build error

Hello, I am facing an error while I am building BeagleV Ahead Android.
Anyone here tried to build?

Thanks,

  1. Ubuntu 22.04 docker
  2. repo init and sync as the link
  3. m

cat out/error.log

FAILED: compile out/host/linux-x86/bin/go/soong-wayland-protocol-codegen/pkg/android/soong/external/wayland-protocol.a
Outputs: out/host/linux-x86/bin/go/soong-wayland-protocol-codegen/pkg/android/soong/external/wayland-protocol.a
Error: exited with code: 1
Command: GOROOT=‘prebuilts/go/linux-x86’ prebuilts/go/linux-x86/pkg/tool/linux_amd64/compile -c 8 -o out/host/linux-x86/bin/go/soong-wayland-protocol-codegen/pkg/android/soong/external/wayland-protocol.a.tmp -p android/soong/external/wayland-protocol -complete -I out/host/linux-x86/bin/go/blueprint-metrics/pkg -I out/host/linux-x86/bin/go/blueprint-parser/pkg -I out/host/linux-x86/bin/go/blueprint-deptools/pkg -I out/host/linux-x86/bin/go/blueprint-pathtools/pkg -I out/host/linux-x86/bin/go/blueprint-proptools/pkg -I out/host/linux-x86/bin/go/blueprint/pkg -I out/host/linux-x86/bin/go/blueprint-bootstrap-bpdoc/pkg -I out/host/linux-x86/bin/go/blueprint-bootstrap/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-detrand/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-errors/pkg -I out/host/linux-x86/bin/go/golang-protobuf-encoding-protowire/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-pragma/pkg -I out/host/linux-x86/bin/go/golang-protobuf-reflect-protoreflect/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-descfmt/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-descopts/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-flags/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-strs/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-encoding-text/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-encoding-defval/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-encoding-messageset/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-genid/pkg -I out/host/linux-x86/bin/go/go-cmp-internal-flags/pkg -I out/host/linux-x86/bin/go/go-cmp-internal-diff/pkg -I out/host/linux-x86/bin/go/go-cmp-internal-function/pkg -I out/host/linux-x86/bin/go/go-cmp-internal-testprotos/pkg -I out/host/linux-x86/bin/go/go-cmp-internal-teststructs/pkg -I out/host/linux-x86/bin/go/go-cmp-internal-value/pkg -I out/host/linux-x86/bin/go/go-cmp/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-order/pkg -I out/host/linux-x86/bin/go/golang-protobuf-reflect-protoregistry/pkg -I out/host/linux-x86/bin/go/golang-protobuf-runtime-protoiface/pkg -I out/host/linux-x86/bin/go/golang-protobuf-proto/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-filedesc/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-set/pkg -I out/host/linux-x86/bin/go/golang-protobuf-encoding-prototext/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-encoding-tag/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-impl/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-filetype/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-version/pkg -I out/host/linux-x86/bin/go/golang-protobuf-runtime-protoimpl/pkg -I out/host/linux-x86/bin/go/sbox_proto/pkg -I out/host/linux-x86/bin/go/soong/pkg -I out/host/linux-x86/bin/go/bazel_build_proto/pkg -I out/host/linux-x86/bin/go/bazel_analysis_v2_proto/pkg -I out/host/linux-x86/bin/go/soong-bazel/pkg -I out/host/linux-x86/bin/go/soong-starlark-format/pkg -I out/host/linux-x86/bin/go/soong-android-soongconfig/pkg -I out/host/linux-x86/bin/go/soong-cquery/pkg -I out/host/linux-x86/bin/go/soong-remoteexec/pkg -I out/host/linux-x86/bin/go/soong-response/pkg -I out/host/linux-x86/bin/go/soong-shared/pkg -I out/host/linux-x86/bin/go/go-starlark-syntax/pkg -I out/host/linux-x86/bin/go/go-starlark-internal-spell/pkg -I out/host/linux-x86/bin/go/go-starlark-resolve/pkg -I out/host/linux-x86/bin/go/go-starlark-internal-compile/pkg -I out/host/linux-x86/bin/go/go-starlark-starlark/pkg -I out/host/linux-x86/bin/go/go-starlark-starlarkstruct/pkg -I out/host/linux-x86/bin/go/go-starlark-starlarkjson/pkg -I out/host/linux-x86/bin/go/go-starlark-starlarktest/pkg -I out/host/linux-x86/bin/go/soong-starlark/pkg -I out/host/linux-x86/bin/go/soong-ui-bp2build_metrics_proto/pkg -I out/host/linux-x86/bin/go/soong-ui-metrics_proto/pkg -I out/host/linux-x86/bin/go/soong-android-allowlists/pkg -I out/host/linux-x86/bin/go/androidmk-parser/pkg -I out/host/linux-x86/bin/go/soong-android/pkg -I out/host/linux-x86/bin/go/soong-genrule/pkg -pack external/wayland-protocols/locations.go external/wayland-protocols/wayland_protocol_codegen.go && if cmp --quiet out/host/linux-x86/bin/go/soong-wayland-protocol-codegen/pkg/android/soong/external/wayland-protocol.a.tmp out/host/linux-x86/bin/go/soong-wayland-protocol-codegen/pkg/android/soong/external/wayland-protocol.a; then rm out/host/linux-x86/bin/go/soong-wayland-protocol-codegen/pkg/android/soong/external/wayland-protocol.a.tmp; else mv -f out/host/linux-x86/bin/go/soong-wayland-protocol-codegen/pkg/android/soong/external/wayland-protocol.a.tmp out/host/linux-x86/bin/go/soong-wayland-protocol-codegen/pkg/android/soong/external/wayland-protocol.a; fi
Output:
external/wayland-protocols/wayland_protocol_codegen.go:826:26: cannot use m (variable of type *Module) as android.BazelModule value in argument to android.InitBazelModule: *Module does not implement android.BazelModule (wrong type for method ConvertWithBp2build)
have ConvertWithBp2build(android.Bp2buildMutatorContext)
want ConvertWithBp2build(android.TopDownMutatorContext)

FAILED: compile out/host/linux-x86/bin/go/soong-wayland-protocol-codegen/test/android/soong/external/wayland-protocol.a
Outputs: out/host/linux-x86/bin/go/soong-wayland-protocol-codegen/test/android/soong/external/wayland-protocol.a
Error: exited with code: 1
Command: GOROOT=‘prebuilts/go/linux-x86’ prebuilts/go/linux-x86/pkg/tool/linux_amd64/compile -c 8 -o out/host/linux-x86/bin/go/soong-wayland-protocol-codegen/test/android/soong/external/wayland-protocol.a.tmp -p android/soong/external/wayland-protocol -complete -I out/host/linux-x86/bin/go/blueprint-metrics/pkg -I out/host/linux-x86/bin/go/blueprint-parser/pkg -I out/host/linux-x86/bin/go/blueprint-deptools/pkg -I out/host/linux-x86/bin/go/blueprint-pathtools/pkg -I out/host/linux-x86/bin/go/blueprint-proptools/pkg -I out/host/linux-x86/bin/go/blueprint/pkg -I out/host/linux-x86/bin/go/blueprint-bootstrap-bpdoc/pkg -I out/host/linux-x86/bin/go/blueprint-bootstrap/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-detrand/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-errors/pkg -I out/host/linux-x86/bin/go/golang-protobuf-encoding-protowire/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-pragma/pkg -I out/host/linux-x86/bin/go/golang-protobuf-reflect-protoreflect/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-descfmt/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-descopts/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-flags/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-strs/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-encoding-text/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-encoding-defval/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-encoding-messageset/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-genid/pkg -I out/host/linux-x86/bin/go/go-cmp-internal-flags/pkg -I out/host/linux-x86/bin/go/go-cmp-internal-diff/pkg -I out/host/linux-x86/bin/go/go-cmp-internal-function/pkg -I out/host/linux-x86/bin/go/go-cmp-internal-testprotos/pkg -I out/host/linux-x86/bin/go/go-cmp-internal-teststructs/pkg -I out/host/linux-x86/bin/go/go-cmp-internal-value/pkg -I out/host/linux-x86/bin/go/go-cmp/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-order/pkg -I out/host/linux-x86/bin/go/golang-protobuf-reflect-protoregistry/pkg -I out/host/linux-x86/bin/go/golang-protobuf-runtime-protoiface/pkg -I out/host/linux-x86/bin/go/golang-protobuf-proto/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-filedesc/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-set/pkg -I out/host/linux-x86/bin/go/golang-protobuf-encoding-prototext/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-encoding-tag/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-impl/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-filetype/pkg -I out/host/linux-x86/bin/go/golang-protobuf-internal-version/pkg -I out/host/linux-x86/bin/go/golang-protobuf-runtime-protoimpl/pkg -I out/host/linux-x86/bin/go/sbox_proto/pkg -I out/host/linux-x86/bin/go/soong/pkg -I out/host/linux-x86/bin/go/bazel_build_proto/pkg -I out/host/linux-x86/bin/go/bazel_analysis_v2_proto/pkg -I out/host/linux-x86/bin/go/soong-bazel/pkg -I out/host/linux-x86/bin/go/soong-starlark-format/pkg -I out/host/linux-x86/bin/go/soong-android-soongconfig/pkg -I out/host/linux-x86/bin/go/soong-cquery/pkg -I out/host/linux-x86/bin/go/soong-remoteexec/pkg -I out/host/linux-x86/bin/go/soong-response/pkg -I out/host/linux-x86/bin/go/soong-shared/pkg -I out/host/linux-x86/bin/go/go-starlark-syntax/pkg -I out/host/linux-x86/bin/go/go-starlark-internal-spell/pkg -I out/host/linux-x86/bin/go/go-starlark-resolve/pkg -I out/host/linux-x86/bin/go/go-starlark-internal-compile/pkg -I out/host/linux-x86/bin/go/go-starlark-starlark/pkg -I out/host/linux-x86/bin/go/go-starlark-starlarkstruct/pkg -I out/host/linux-x86/bin/go/go-starlark-starlarkjson/pkg -I out/host/linux-x86/bin/go/go-starlark-starlarktest/pkg -I out/host/linux-x86/bin/go/soong-starlark/pkg -I out/host/linux-x86/bin/go/soong-ui-bp2build_metrics_proto/pkg -I out/host/linux-x86/bin/go/soong-ui-metrics_proto/pkg -I out/host/linux-x86/bin/go/soong-android-allowlists/pkg -I out/host/linux-x86/bin/go/androidmk-parser/pkg -I out/host/linux-x86/bin/go/soong-android/pkg -I out/host/linux-x86/bin/go/soong-genrule/pkg -pack external/wayland-protocols/locations.go external/wayland-protocols/wayland_protocol_codegen.go external/wayland-protocols/wayland_protocol_codegen_test.go && if cmp --quiet out/host/linux-x86/bin/go/soong-wayland-protocol-codegen/test/android/soong/external/wayland-protocol.a.tmp out/host/linux-x86/bin/go/soong-wayland-protocol-codegen/test/android/soong/external/wayland-protocol.a; then rm out/host/linux-x86/bin/go/soong-wayland-protocol-codegen/test/android/soong/external/wayland-protocol.a.tmp; else mv -f out/host/linux-x86/bin/go/soong-wayland-protocol-codegen/test/android/soong/external/wayland-protocol.a.tmp out/host/linux-x86/bin/go/soong-wayland-protocol-codegen/test/android/soong/external/wayland-protocol.a; fi
Output:
external/wayland-protocols/wayland_protocol_codegen.go:826:26: cannot use m (variable of type *Module) as android.BazelModule value in argument to android.InitBazelModule: *Module does not implement android.BazelModule (wrong type for method ConvertWithBp2build)
have ConvertWithBp2build(android.Bp2buildMutatorContext)
want ConvertWithBp2build(android.TopDownMutatorContext)

got a bit further than you, i used “m -j” vs just “m”
not sure which branch you used, i did the main_202, might try the other one later.
i’m building in VirtualBox Debian11

[ 99% 633/634] finishing legacy Make module parsing …
device/thead/th1520/build/tasks/dtbimages.mk:22: warning: DTB_FILES:device/thead
/th1520-kernel/light-lpi4a-android.dtb DTBO_FILES:
FAILED: ninja: ‘out/target/product/beaglev_ahead/obj/SHARED_LIBRARIES/libbase_in
termediates/libbase.so.toc’, needed by ‘out/target/product/beaglev_ahead/obj/EXE
CUTABLES/android.hardware.configstore@1.1-service_intermediates/LINKED/android.h
ardware.configstore@1.1-service’, missing and no known rule to make it
13:43:59 ninja failed with: exit status 1