checking if malloc() and friends prototypes are gmem.h compatible
来源:互联网 发布:软件需求调查问卷 编辑:程序博客网 时间:2024/04/29 20:25
类似的错误,可以使用CACHEFILE解决这个问题,还要谢谢ABSURD兄的文章给我的指导。
我是这样解决的第一步:记录下错误的地方如:checking abstract socket namespace... configure: error: cannot run test program while cross compiling
注意到abstract socket namespace在configure中查找abstract socket可以看到类似这样的结构
echo "$as_me:$LINENO: checking abstract socket namespace" >&5
echo $ECHO_N "checking abstract socket namespace... $ECHO_C" >&6
if test "${ac_cv_have_abstract_sockets+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
其中ac_cv_have_abstract_sockets是我们要查找的变量
使用echo ac_cv_have_abstract_sockets=yes>arm-linux.cache
然后
./configure --host=arm-linux --cache-file=arm-linux.cache
OK这样就搞定了
checking for growing stack pointer... configure: error: cannot run test program while cross compiling
原来configure不能为交叉编译检查glib_cv_stack_grows,glib_cv_stack_grows表示堆栈的增长方向。configure无法在目标机上运行测试程序,自然无法检查,只好手工指定。顺便看一下还哪些相关的变量不能检查的,一起写到cache文件中,并重新配置:
[root@linux glib-2.8.0]# echo ac_cv_type_long_long=yes>$ARCH-linux.cache
[root@linux glib-2.8.0]# echo glib_cv_stack_grows=no>>$ARCH-linux.cache
[root@linux glib-2.8.0]# echo glib_cv_uscore=no>>$ARCH-linux.cache
[root@linux glib-2.8.0]# echo ac_cv_func_posix_getpwuid_r=yes>>$ARCH-linux.cache
[root@linux glib-2.8.0]# ./configure --host=$ARCH-linux --prefix=$ROOTFS_DIR/usr --cache-file=$ARCH-linux.cache
glib_cv_stack_grows=no
glib_cv_uscore=no
ac_cv_func_posix_getpwuid_r=no
ac_cv_func_posix_getgrgid_r=no
这回配置成功了,编译:
[- checking if malloc() and friends prototypes are gmem.h compatible
- JavaScript: Classes and Prototypes
- Chapter9 Classes,Constructor, and Prototypes - - - Prototypes and Inheritance
- Prototypes and Inheritance in JavaScript
- Prototypes and Inheritance in JavaScript
- We are Friends!
- "Friends" are so important.
- Log and data area are not compatible because 'Restart position not found
- ValueError: Shapes (40, 4, 4, 1) and (?, 8, 8, 1) are not compatible
- Avoid float and double types if exact answers are required.
- Check if the name and password are correct for domain
- 334. Old friends and old wines are best. 陈酒味醇,老友情深
- Filesystem Formatting and Checking
- Testing and Checking Refined
- Javascript 原型和继承(Prototypes and Inheritance)
- Javascript 原型和继承(Prototypes and Inheritance)
- Are Friends Unfaithful to OOP?
- none of the 1 split apks are compatible with the current device with density "-1" and ABIs "". 解决办法
- HDUJ 1020 Encoding
- 智能指针tr1::shared_ptr、boost::shared_ptr使用
- poj 1068 Parencodings(模拟)
- 实现一个做双向NAT的虚拟网卡
- 关于scrollview嵌套listview运行后显示出来的位置不在顶部而是litview内容项
- checking if malloc() and friends prototypes are gmem.h compatible
- 黑马程序员--C语言指针与动态内存分配
- poj 2406 Power Strings KMP
- BEGINNING SHAREPOINT® 2013 DEVELOPMENT 第1章节--SharePoint 2013 介绍 逐渐了解SharePoint
- 我不与“好人”交朋友
- 《第一行代码——Android》封面诞生记
- ARM学习随笔(2)关于位域的一些事
- hive原生和复合类型的数据加载和使用
- 关于安卓查看网络图片的一些问题