【发布时间】: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?
【问题讨论】:
-
config.log的输出是什么? -
嗨菲利普。请在这里找到它gist.github.com/sampathkumar81293/…
-
conftest.c:199:12: 错误:'test_array' 的存储大小不是常数 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)]; — 看起来你的交叉编译器不够聪明,无法使用 offsetof() 计算数组大小。你能得到这个平台的更新工具链吗?
-
我会试试这个版本github.com/foss-for-synopsys-dwc-arc-processors/toolchain/… 看看能不能解决它。
-
更新:github.com/foss-for-synopsys-dwc-arc-processors/toolchain/… 版本的 glib 2.40.2 能够解决这个问题
标签: cross-compiling glib toolchain