相关疑难解决方法(0)

在我的mac上运行make on gdb 7.6时出错

我遇到了以下我为gdb运行的错误.这是在运行带有i7处理器的OS X 10.8.5的mac上运行configure之后.

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
Run Code Online (Sandbox Code Playgroud)

错误:

/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); …
Run Code Online (Sandbox Code Playgroud)

gdb

4
推荐指数
2
解决办法
1945
查看次数

标签 统计

gdb ×1