0

第一次在这里的android builder。我过去常常在 FreeBSD 上做很多自己的事情。用 android 回到极客世界。

我正在尝试为 Nexus 6 NBD90Z 构建 android-7.0.0_r14 以在仿真下运行。我计划最终为我的实际手机构建,这个配置非常接近。我正在构建 ubuntu 18.04 LTS,它比文档推荐的更新。也许这有点冒险。

这是我运行 make 时得到的结果。

... 剪断

build/core/base_rules.mk:316: warning: ignoring old commands for target 

out/target/product/shamu/system/lib/soundfx/libqcomvoiceprocessing.so'
Starting build with ninja
ninja: Entering directory.' 

ninja: warning: multiple rules generate out/target/product/shamu/system/etc/gps.conf. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]

[  0% 1/35600] Lex: libaidl-common <= system/tools/aidl/aidl_language_l.ll

FAILED: /bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -oout/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp system/tools/aidl/aidl_language_l.ll"

flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.

Aborted (core dumped)
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

A core dump for flex was not produced in spite of the error message given.

out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp  does not exist. That entire folder is empty. It would seem that something is not downloading/copying the aidl_language_l.cpp. 

关于我可能搞砸的任何想法?

我仍然git/repo/make/ninja/soong/lunch对进行构建的复杂性感到有些困惑。我很可能错过了一些明显的东西。

谢谢,杰森·C·威尔斯

4

3 回答 3

1

只需替换您make的 byexport LC_ALL=C make或放入export您的 .bashrc

于 2019-02-08T15:18:13.197 回答
0

我执行了 Snorky 的步骤。我删除了 libaidl-common_intermediates 的输出目录。我删除了我的软链接并恢复了 flex 的 android 树版本。我在本地 repo 的顶部重新运行了 make 。构建超越了上面的错误,并在一个新的错误处停止。Snorky 的回答似乎奏效了。

嗬!我是新来的,所以我没有对我的支持表示赞赏。

于 2019-02-09T02:37:36.263 回答
0

在我仔细看了一下之后,我意识到预建的 prebuilts/misc/linux-x86/flex/flex-2.5.39 会在没有参数的情况下转储核心。我创建了一个指向 /usr/bin/flex 的软链接。编译似乎正在进行中。

我还没有回答为什么预建的倾销。我的目标是编译 android,而不是对工具进行故障排除。

于 2019-02-07T04:38:54.497 回答