Always build failed in on minute

96 views
Skip to first unread message

Leojangh (Jaily)

unread,
May 3, 2023, 3:55:03 PM5/3/23
to Android Building
I downloaded the latest aosp code 2 days ago on ubuntu 22.04(WSL), and it was built successful.
 But now I always encounter a failure in  1 minute and the error message like this:

```
        /home/leojangh/workspace/aosp/build/soong/android/rule_builder.go:1066 +0x106
android/soong/java.(*AndroidApp).generateJavaUsedByApex(0xc0ef8c8000, {0x13fcd00?, 0xc034695400})
        /home/leojangh/workspace/aosp/build/soong/java/app_builder.go:284 +0x3a5
        /home/leojangh/workspace/aosp/build/soong/android/module.go:2382 +0xe4d
github.com/google/blueprint.(*Context).generateModuleBuildActions.func2.1(0xc02bb8a810?, 0x11a000f?)
        /home/leojangh/workspace/aosp/build/blueprint/context.go:3371 +0x7f
github.com/google/blueprint.(*Context).generateModuleBuildActions.func2(0xc06655f600, 0x7261682f64696f72?)
        /home/leojangh/workspace/aosp/build/blueprint/context.go:3372 +0x36a
github.com/google/blueprint.parallelVisit.func1.1()
        /home/leojangh/workspace/aosp/build/blueprint/context.go:2380 +0x43
created by github.com/google/blueprint.parallelVisit.func1
        /home/leojangh/workspace/aosp/build/blueprint/context.go:2379 +0x178


23:20:37 soong bootstrap failed with: exit status 1

#### failed to build some targets (59 seconds) ####
```

There is no any modification for repos because  i just download aosp and have a try of [hello_rust](https://source.android.google.cn/docs/setup/build/rust/building-rust-modules/hello-rust-example), both `m` for whole aosp and `m hello_rust` for this toy were success.But today erverything fails and the stacktrace is printed above.

I try to resync,  delete out dir manually,  `m clean` and `repo forall -vc "git reset --hard"` but same error message goes out. How to fix?



Reply all
Reply to author
Forward
0 new messages