在x86_64 linux机器上编译gentoo-bionic

Ho1*_*Ho1 5 ubuntu automake android compilation bionic

您可能知道,Bionic是Google用来运行Android应用程序的C库.有人在Linux机器上进行编译,因此可以在Android之外轻松使用.这是最近一次努力的代码,最初称为Gentoo-bionic.原始项目是基于Gentoo的,但目前的来源不是Gentoo特有的.我正在使用Ubuntu.这是代码:

https://github.com/gentoobionic/bionic

这是关于ELC2013的介绍:

我试图在X86_64 Ubuntu上编译它,但失败了.我试过了:

./autogen.sh
./configure
Run Code Online (Sandbox Code Playgroud)

我有:

configure: error: unsupported host cpu x86_64
Run Code Online (Sandbox Code Playgroud)

所以我尝试过:

./configure --build=arm-linux --target=arm-linux --host=arm-linux
Run Code Online (Sandbox Code Playgroud)

配置很好,但我得到:

$ make
make: *** No rule to make target `libc/arch-x86/include/machine/cpu-features.h',
    needed by `all-am'.  Stop.
Run Code Online (Sandbox Code Playgroud)

是否有人可以建议解决方法?

kri*_*sk0 2

自 2015 年 11 月以来,我的一组 ebuid 脚本在我的 Gentoo x86_64 桌面上为 x86_64 和 i386 编译仿生。所需工具:glibc-targeting GCC 版本 4.9.3 或 5.3.0;binutils 2.4.25 或更早版本,glibc 目标 clang 3.5.0,make。

如果您可以在桌面上安装这些工具,则有可能编译仿生。

但请注意,我的 ebuild 应用了无数的补丁。

要查看他们做了什么,您可以执行以下操作:

  1. 在 x86_64 台式机或笔记本电脑上启动实时 Gentoo DVD。
  2. 安装我的脚本。
  3. 例如,运行它们捕获输出

    USE=verbose ebuild bionic/bionic-5.1.1-r29.ebuild clean install qmerge 2>&1 | 三通/tmp/bionic.cout

一旦这样的命令终止,您就可以使用 gcc/clang/ld/ar 命令行获得修补的源代码树、中间和最终编译结果以及完整的构建日志。