Solve the warnings being treated as errors error when installing the cross-debugger arm-GDB.

Source: Internet
Author: User

Make [4]: In directory '/root/downloads/gdb-6.6/Opcodes'
/Bin/sh. /libtool -- mode = compile gcc-dhave_config_h-I. -I .. /. /Opcodes-I. -d_gnu_source-I. -I .. /. /Opcodes-I .. /BFD-I .. /. /Opcodes /.. /include-I .. /. /Opcodes /.. /BFD-w-wall-wstrict-prototypes-wmissing-prototypes
-Werror-g-O2-c-o dis-buf.lo dis-buf.c
Gcc-dhave_config_h-I. -I .. /. /Opcodes-I. -d_gnu_source-I. -I .. /. /Opcodes-I .. /BFD-I .. /. /Opcodes /.. /include-I .. /. /Opcodes /.. /BFD-w-wall-wstrict-prototypes-wmissing-prototypes-werror-g-O2-C dis-buf.c-O dis-buf.o
/Bin/sh. /libtool -- mode = compile gcc-dhave_config_h-I. -I .. /. /Opcodes-I. -d_gnu_source-I. -I .. /. /Opcodes-I .. /BFD-I .. /. /Opcodes /.. /include-I .. /. /Opcodes /.. /BFD-w-wall-wstrict-prototypes-wmissing-prototypes-werror-g-O2-C-darch_arm .. /. /Opcodes/disassemble. c
Gcc-dhave_config_h-I. -I .. /. /Opcodes-I. -d_gnu_source-I. -I .. /. /Opcodes-I .. /BFD-I .. /. /Opcodes /.. /include-I .. /. /Opcodes /.. /BFD-w-wall-wstrict-prototypes-wmissing-prototypes-werror-g-O2-C-darch_arm .. /. /Opcodes/disassemble. c-o disassemble. O
/Bin/sh. /libtool -- mode = compile gcc-dhave_config_h-I. -I .. /. /Opcodes-I. -d_gnu_source-I. -I .. /. /Opcodes-I .. /BFD-I .. /. /Opcodes /.. /include-I .. /. /Opcodes /.. /BFD-w-wall-wstrict-prototypes-wmissing-prototypes-werror-g-O2-c-o dis-init.lo dis-init.c
Gcc-dhave_config_h-I. -I .. /. /Opcodes-I. -d_gnu_source-I. -I .. /. /Opcodes-I .. /BFD-I .. /. /Opcodes /.. /include-I .. /. /Opcodes /.. /BFD-w-wall-wstrict-prototypes-wmissing-prototypes-werror-g-O2-C dis-init.c-O dis-init.o
/Bin/sh. /libtool -- mode = compile gcc-dhave_config_h-I. -I .. /. /Opcodes-I. -d_gnu_source-I. -I .. /. /Opcodes-I .. /BFD-I .. /. /Opcodes /.. /include-I .. /. /Opcodes /.. /BFD-w-wall-wstrict-prototypes-wmissing-prototypes-werror-g-O2-c-o arm-dis.lo arm-dis.c
Gcc-dhave_config_h-I. -I .. /. /Opcodes-I. -d_gnu_source-I. -I .. /. /Opcodes-I .. /BFD-I .. /. /Opcodes /.. /include-I .. /. /Opcodes /.. /BFD-w-wall-wstrict-prototypes-wmissing-prototypes-werror-g-O2-C arm-dis.c-O arm-dis.o
C0: warnings being treated as errors
Arm-dis.c: In function 'print _ insn_thumv2 ':
Arm-dis.c: 3101: Error: format not a string literal and no format arguments
Arm-dis.c: 3108: Error: format not a string literal and no format arguments
Arm-dis.c: In function 'print _ insn_thumb32 ':
Arm-dis.c: 3651: Error: format not a string literal and no format arguments
Arm-dis.c: 3659: Error: format not a string literal and no format arguments
Make [4]: *** [arm-dis.lo] Error 1
Make [4]: Leaving directory '/root/downloads/gdb-6.6/Opcodes'
Make [3]: *** [All-recursive] Error 1
Make [3]: Leaving directory '/root/downloads/gdb-6.6/Opcodes'
Make [2]: *** [all] Error 2
Make [2]: Leaving directory '/root/downloads/gdb-6.6/Opcodes'
Make [1]: *** [All-Opcodes] Error 2
Make [1]: Leaving directory '/root/downloads/gdb-6.6'

Make: *** [all] Error 2

If the above error occurs, go to the '/root/downloads/gdb-6.6/Opcodes' directory, copy the blue annotation command, remove the-werror option, and run the command. At this time, there is only warning information and no error information.


Then make again.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.