- 积分
- 41
贡献229
飞刀68 FD
注册时间2019-4-19
在线时间9 小时
扫一扫,手机访问本帖
|
1、tar zxvf gdb-7.6.tar.gz
2、cd tmp/gdb-7.6
3、mkdir _install
4、./configure --target=arm-poky-linux-gnueabi --disable-werror --prefix=/tmp/gdb-7.6/_install/ --host=x86_64-pokysdk-linux --build=x86_64-linux
5、make时出现问题
编译问题如下:
linux-tdep.c: In function 'linux_core_info_proc_mappings':
./common/gdb_assert.h:26:14: error: size of array 'never_defined_just_used_for_checking' is negative
extern int never_defined_just_used_for_checking[(expr) ? 1 : -1]
^
linux-tdep.c:547:3: note: in expansion of macro 'gdb_static_assert'
gdb_static_assert (sizeof (ULONGEST) >= 8);
^
make[2]: *** [linux-tdep.o] Error 1
make[2]: Leaving directory `/tmp/gdb-7.6/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/tmp/gdb-7.6'
make: *** [all] Error 2
|
|