【问题标题】:cross compilation of glib-2.33.1 for arc-linux-uclibc host on ubuntu 14.04在 ubuntu 14.04 上为 arc-linux-uclibc 主机交叉编译 glib-2.33.1
【发布时间】:2018-01-10 07:20:46
【问题描述】:

我正在为 ubuntu 14.04 上的 arc-linux-uclibc 主机交叉编译 glib-2.33.1。但它在运行configure时失败并出现以下错误跟踪

checking for guint32... yes
checking alignment of guint32... configure: error: in`/home/tars/glib-2.33.1':
configure: error: cannot compute alignment of guint32

如何修复它并交叉编译 glib?

【问题讨论】:

标签: cross-compiling glib toolchain


【解决方案1】:

正如 cmets 中所述,这是因为交叉编译器版本过时。工具链 arc-2014.03 无法使用 offsetof() 计算出 guint 的数组大小。

我能够在 ubuntu 14.04 64 位上使用 arc-2016.03 工具链为 arc-linux-uclibc 构建 glib 2.40.2 库。

【讨论】:

    猜你喜欢
    • 2021-02-10
    • 1970-01-01
    • 2012-08-13
    • 2015-12-16
    • 1970-01-01
    • 2011-05-18
    • 2017-07-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多