tutorial - Error al ejecutar make en gdb 7.6 en mi mac
read fasta python (2)
El compilador es demasiado exigente, por lo que emite advertencias para la aritmética del puntero que implica literales de cadena. Además, probablemente configuró gdb
con --enable-werror
o -Werror
se hereda de alguna parte, por lo que estas advertencias inofensivas se convierten en errores. (Solo mostró los indicadores de configuración para el compilador, no gdb
).
Solución: apague -Werror
, o silencie esta advertencia específicamente usando -Wno-string-plus-int
(agregue a CFLAGS
)
Estoy golpeando los siguientes errores que corrobopo para gdb. Esto es después de ejecutar configure en mi Mac ejecutando OS X 10.8.5 con i7 inter processor.
la versión de gcc es
$ 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
Error:
/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"
Déjeme saber si usted necesita más detalles.
Parece que - habilitable-werror está habilitado de forma predeterminada al compilar gdb-7.6.1 en OSX.
./configure --disable-werror
make
funcionó bien para mí