1
[ 34% 16888/49032] Building with Jack:...l_intermediates/with-
local/classes.dex
FAILED: /bin/bash out/target/common/obj/JAVA_LIBRARIES/core-
all_intermediates/with-local/classes.dex.rsp
java.lang.AssertionError
at com.android.sched.scheduler.MultiWorkersScheduleInstance.process(MultiWorkersScheduleInstance.java:523)
at com.android.jack.Jack.run(Jack.java:738)
at com.android.jack.Jack.checkAndRun(Jack.java:412)
at com.android.jack.CommandLine.runJack(CommandLine.java:79)
at com.android.jack.api.v01.impl.Cli01CompilationTaskImpl.run(Cli01CompilationTaskImpl.java:85)
at com.android.jack.server.tasks.JackTask.handle(JackTask.java:168)
at com.android.jack.server.tasks.SynchronousServiceTask.handle(SynchronousServiceTask.java:49)
at com.android.jack.server.tasks.JackTask.handle(JackTask.java:55)
at com.android.jack.server.router.PathRouter.handle(PathRouter.java:65)
at com.android.jack.server.router.ContentTypeParameterRouter.handle(ContentTypeParameterRouter.java:84)
at com.android.jack.server.router.ContentTypeRouter.handle(ContentTypeRouter.java:82)
at com.android.jack.server.router.ContentTypeRouter.handle(ContentTypeRouter.java:82)
at com.android.jack.server.router.ContentTypeRouter.handle(ContentTypeRouter.java:82)
at com.android.jack.server.router.ContentTypeParameterRouter.handle(ContentTypeParameterRouter.java:84)
at com.android.jack.server.router.ContentTypeRouter.handle(ContentTypeRouter.java:82)
at com.android.jack.server.router.ContentTypeRouter.handle(ContentTypeRouter.java:82)
at com.android.jack.server.router.MethodRouter.handle(MethodRouter.java:67)
at com.android.jack.server.router.RootContainer.handle(RootContainer.java:49)
at org.simpleframework.http.core.RequestDispatcher.dispatch(RequestDispatcher.java:121)
at org.simpleframework.http.core.RequestDispatcher.run(RequestDispatcher.java:103)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Internal compiler error (version 1.2-rc4 'Carnac' (298900 
f95d7bdecfceb327f9d201a1348397ed8a843843 by android-jack-
team@google.com)).
Warning: This may have produced partial or corrupted output.
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

我在用 jack 服务器编译 rom 时遇到这些错误。我正在尝试为我的设备编译 AOSP RoM。请帮我解决这个问题。

4

2 回答 2

0

我刚刚遇到了类似的错误,谷歌搜索它把我送到了这里

我的机器有 4 个处理核心,但只有 4GB 的 RAM,所以我规定只在导出的 ANDROID_JACK_VM_ARGS 变量上使用 -Xmx3g 并编辑我的 ~/.jack-server/config.properties 文件以将 max-service 参数从 4 减少为 1。

也许尝试这些更改,看看是否有帮助?

于 2017-03-02T15:21:35.407 回答
0

创建一个 15G 交换文件。谷歌说明如何在 Linux 上执行...

糟糕,这是内部编译器错误。您要么中断了构建,导致损坏,要么之前的内存不足情况也是如此。最好的解决办法是做 clobber 或 make clean 并从头开始。您也可以尝试手动删除 Jack 正在构建的 java 中间体,但我更喜欢前者。先制作一个交换文件...

于 2017-03-02T23:19:23.637 回答