build - 在 Ubuntu 20.04 上构建 Alexa Auto SDK 时将 gnulib fseeko.c 移植到您的平台
问题描述
构建 Alexa Auto SDK https://github.com/alexa/alexa-auto-sdk/blob/3.2/builder/README.md
使用 Ubuntu 20.04(我没有 18.04)我运行
./builder/build.sh android -t androidx86-64 --android-api 28
进入
| ../../m4-1.4.18/lib/freadahead.c: In function ‘freadahead’:
| ../../m4-1.4.18/lib/freadahead.c:92:3: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
| 92 | #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
| | ^~~~~
| make[3]: *** [Makefile:1915: freadahead.o] Error 1
| make[3]: *** Waiting for unfinished jobs....
| ../../m4-1.4.18/lib/fseeko.c: In function ‘rpl_fseeko’:
| ../../m4-1.4.18/lib/fseeko.c:110:4: error: #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
| 110 | #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
| | ^~~~~
| make[3]: *** [Makefile:1915: fseeko.o] Error 1
| make[3]: Leaving directory '/home/hannes/git/alexa-auto-sdk/builder/build/tmp-android-28/work/x86_64-linux/m4-native/1.4.18-r0/build/lib'
| make[2]: *** [Makefile:1674: all] Error 2
| make[2]: Leaving directory '/home/hannes/git/alexa-auto-sdk/builder/build/tmp-android-28/work/x86_64-linux/m4-native/1.4.18-r0/build/lib'
| make[1]: *** [Makefile:1572: all-recursive] Error 1
| make[1]: Leaving directory '/home/hannes/git/alexa-auto-sdk/builder/build/tmp-android-28/work/x86_64-linux/m4-native/1.4.18-r0/build'
| make: *** [Makefile:1528: all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/hannes/git/alexa-auto-sdk/builder/build/tmp-android-28/work/x86_64-linux/m4-native/1.4.18-r0/temp/log.do_compile.2647129)
ERROR: Task (/home/hannes/oe-core/meta/recipes-devtools/m4/m4-native_1.4.18.bb:do_compile) failed with exit code '1'
这是 /home/hannes/git/alexa-auto-sdk/builder/build/tmp-android-28/work/x86_64-linux/m4-native/1.4.18-r0/temp/log 的最后一个重要部分。 do_compile.2647129
有人知道如何解决吗?
解决方案
这是 GNU m4 1.4.18 和更新的 glibc 头文件之间的互操作性问题。
它已在 GNU m4 1.4.19 中修复,可从https://ftp.gnu.org/gnu/m4/和 GNU 镜像获得。
推荐阅读
- xml - 使用 Mapbox TMS 创建 XML 文件
- r - 在 R 中将数据帧中的值分隔为 3 列
- c# - 如何在 EF 中移动具有导航属性的子对象
- .net - 无法构建引用具有 2 位版本号的 .net 程序集的 VB6 项目
- python-3.x - unittest 模拟和多重继承:TypeError:元类冲突
- python - 在 pandas 数据框中的某个范围内查找值
- pandas - 不平衡_学习对标签进行排序
- java - 单元测试错误:java.util.NoSuchElementException:java.util.Optional.get 中没有值
- ios - 比较两个日期以在 Swift 4 中更新数据库
- database - 哪个更重要:优化数据库大小或减少进程