gpt4 book ai didi

gdb - 在我的 Mac 上的 gdb 7.6 上运行 make 时出错

转载 作者:行者123 更新时间:2023-12-04 22:31:51 34 4
gpt4 key购买 nike

我遇到了为 gdb 运行 make 的以下错误。
这是在运行带有 i7 处理器的 OS X 10.8.5 的 Mac 上运行配置之后。

gcc 版本是

$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --withgxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.76) (based on LLVM 3.3svn
Target: x86_64-apple-darwin12.5.0
Thread model: posix

错误:
/Users/sbala/Downloads/gdb-7.6/opcodes/i386-dis.c:12078:18: error: adding 'char' to a string does not append to the string [-Werror,-Wstring-plus-int]
oappend ("%st" + intel_syntax);
~~~~~~^~~~~~~~~~~~~~
/Users/sbala/Downloads/gdb-7.6/opcodes/i386-dis.c:12078:18: note: use array indexing to silence this warning
oappend ("%st" + intel_syntax);
^
& [ ]
/Users/sbala/Downloads/gdb-7.6/opcodes/i386-dis.c:12609:23: error: adding 'char' to a string does not append to the string [-Werror,-Wstring-plus-int]
oappend ("%cs:" + intel_syntax);
~~~~~~~^~~~~~~~~~~~~~
/Users/sbala/Downloads/gdb-7.6/opcodes/i386-dis.c:12609:23: note: use array indexing to silence this warning
oappend ("%cs:" + intel_syntax);
^
& [ ]
/Users/sbala/Downloads/gdb-7.6/opcodes/i386-dis.c:12614:23: error: adding 'char' to a string does not append to the string [-Werror,-Wstring-plus-int]
oappend ("%ds:" + intel_syntax);
~~~~~~~^~~~~~~~~~~~~~
/Users/sbala/Downloads/gdb-7.6/opcodes/i386-dis.c:12614:23: note: use array indexing to silence this warning
oappend ("%ds:" + intel_syntax);
^
& [ ]
/Users/sbala/Downloads/gdb-7.6/opcodes/i386-dis.c:12619:23: error: adding 'char' to a string does not append to the string [-Werror,-Wstring-plus-int]
oappend ("%ss:" + intel_syntax);
~~~~~~~^~~~~~~~~~~~~~
/Users/sbala/Downloads/gdb-7.6/opcodes/i386-dis.c:12619:23: note: use array indexing to silence this warning
oappend ("%ss:" + intel_syntax);
^
& [ ]
/Users/sbala/Downloads/gdb-7.6/opcodes/i386-dis.c:12624:23: error: adding 'char' to a string does not append to the string [-Werror,-Wstring-plus-int]
oappend ("%es:" + intel_syntax);
~~~~~~~^~~~~~~~~~~~~~
/Users/sbala/Downloads/gdb-7.6/opcodes/i386-dis.c:12624:23: note: use array indexing to silence this warning
oappend ("%es:" + intel_syntax);
^
& [ ]
/Users/sbala/Downloads/gdb-7.6/opcodes/i386-dis.c:12629:23: error: adding 'char' to a string does not append to the string [-Werror,-Wstring-plus-int]
oappend ("%fs:" + intel_syntax);
~~~~~~~^~~~~~~~~~~~~~
/Users/sbala/Downloads/gdb-7.6/opcodes/i386-dis.c:12629:23: note: use array indexing to silence this warning
oappend ("%fs:" + intel_syntax);
^
& [ ]
/Users/sbala/Downloads/gdb-7.6/opcodes/i386-dis.c:12634:23: error: adding 'char' to a string does not append to the string [-Werror,-Wstring-plus-int]
oappend ("%gs:" + intel_syntax);
~~~~~~~^~~~~~~~~~~~~~
/Users/sbala/Downloads/gdb-7.6/opcodes/i386-dis.c:12634:23: note: use array indexing to silence this warning
oappend ("%gs:" + intel_syntax);
^
& [ ]
/Users/sbala/Downloads/gdb-7.6/opcodes/i386-dis.c:13973:19: error: adding 'char' to a string does not append to the string [-Werror,-Wstring-plus-int]
oappend ("%es:" + intel_syntax);
~~~~~~~^~~~~~~~~~~~~~
/Users/sbala/Downloads/gdb-7.6/opcodes/i386-dis.c:13973:19: note: use array indexing to silence this warning
oappend ("%es:" + intel_syntax);
^
& [ ]
8 errors generated.
make[4]: *** [i386-dis.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-opcodes] Error 2
make: *** [all] Error 2"

如果您需要更多详细信息,请告诉我。

最佳答案

在 OSX 上构建 gdb-7.6.1 时,默认情况下似乎启用了 --enable-werror。

./configure --disable-werror
make

对我来说工作得很好。

关于gdb - 在我的 Mac 上的 gdb 7.6 上运行 make 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19367279/

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