gpt4 book ai didi

compiler-errors - 无法交叉编译gdb/gdbserver

转载 作者:行者123 更新时间:2023-12-02 10:56:48 24 4
gpt4 key购买 nike

我试图交叉编译OpenWrt-RTK gdb/gdbserver软件包,我在make menuconfig中选择了gdbserver并执行了make V=s,但我无法编译它,我收到了此错误

../sim/mips/libsim.a -lreadline ../opcodes/libopcodes.a ../bfd/libbfd.a  ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a    -ldl -lncurses -lz -lm  ../libiberty/libiberty.a  build-gnulib/import/libgnu.a -ldl -Wl,--dynamic-list=./proc-service.list
remote.o: In function `remote_g_packet_data_init':
remote.c:(.text+0x2124): undefined reference to `_obstack_newchunk'
gdbtypes.o: In function `make_qualified_type':
gdbtypes.c:(.text+0x160): undefined reference to `_obstack_newchunk'
gdbtypes.o: In function `alloc_type':
gdbtypes.c:(.text+0x3b8): undefined reference to `_obstack_newchunk'
gdbtypes.c:(.text+0x44c): undefined reference to `_obstack_newchunk'
gdbtypes.o: In function `make_function_type':

This patch已被应用,这是完整日志 https://pastebin.com/nA6nGzU2

最佳答案

删除libiberty/obstack.c中的#define ELIDE_CODE行解决了问题

关于compiler-errors - 无法交叉编译gdb/gdbserver,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60887221/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com