Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.05 KB | None | 0 0
  1. gcc -Wall -Wextra -Werror -Wno-char-subscripts -Wno-cast-function-type -Ic:\libusb\include -Og -g -std=gnu99 -g3 -MD -I. -Iinclude -Iplatfor
  2. ms/common -Iplatforms/stlinkv2 -DLIBFTDI -DSTLINKV2 -DJTAG_HL -I ./target -Wno-cast-function-type -c command.c -o command.o
  3. In file included from command.c:31:0:
  4. include/version.h:1:1: error: expected identifier or '(' before string constant
  5. "#define FIRMWARE_VERSION \"`git describe --always --dirty`\""
  6. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  7. command.c:41:2: error: unknown type name 'cmd_handler'
  8. cmd_handler handler;
  9. ^~~~~~~~~~~
  10. command.c:67:15: error: 'cmd_handler' undeclared here (not in a function); did you mean 'cmd_hard_srst'?
  11. {"version", (cmd_handler)cmd_version, "Display firmware version info"},
  12. ^~~~~~~~~~~
  13. cmd_hard_srst
  14. command.c:67:27: error: expected '}' before 'cmd_version'
  15. {"version", (cmd_handler)cmd_version, "Display firmware version info"},
  16. ^~~~~~~~~~~
  17. command.c:67:27: error: missing initializer for field 'handler' of 'const struct command_s' [-Werror=missing-field-initializers]
  18. command.c:41:14: note: 'handler' declared here
  19. cmd_handler handler;
  20. ^~~~~~~
  21. command.c:68:24: error: expected '}' before 'cmd_help'
  22. {"help", (cmd_handler)cmd_help, "Display help for monitor commands"},
  23. ^~~~~~~~
  24. command.c:68:24: error: missing initializer for field 'handler' of 'const struct command_s' [-Werror=missing-field-initializers]
  25. command.c:41:14: note: 'handler' declared here
  26. cmd_handler handler;
  27. ^~~~~~~
  28. command.c:69:29: error: expected '}' before 'cmd_jtag_scan'
  29. {"jtag_scan", (cmd_handler)cmd_jtag_scan, "Scan JTAG chain for devices" },
  30. ^~~~~~~~~~~~~
  31. command.c:69:29: error: missing initializer for field 'handler' of 'const struct command_s' [-Werror=missing-field-initializers]
  32. command.c:41:14: note: 'handler' declared here
  33. cmd_handler handler;
  34. ^~~~~~~
  35. command.c:70:29: error: expected '}' before 'cmd_swdp_scan'
  36. {"swdp_scan", (cmd_handler)cmd_swdp_scan, "Scan SW-DP for devices" },
  37. ^~~~~~~~~~~~~
  38. command.c:70:29: error: missing initializer for field 'handler' of 'const struct command_s' [-Werror=missing-field-initializers]
  39. command.c:41:14: note: 'handler' declared here
  40. cmd_handler handler;
  41. ^~~~~~~
  42. command.c:71:27: error: expected '}' before 'cmd_targets'
  43. {"targets", (cmd_handler)cmd_targets, "Display list of available targets" },
  44. ^~~~~~~~~~~
  45. command.c:71:27: error: missing initializer for field 'handler' of 'const struct command_s' [-Werror=missing-field-initializers]
  46. command.c:41:14: note: 'handler' declared here
  47. cmd_handler handler;
  48. ^~~~~~~
  49. command.c:72:25: error: expected '}' before 'cmd_morse'
  50. {"morse", (cmd_handler)cmd_morse, "Display morse error message" },
  51. ^~~~~~~~~
  52. command.c:72:25: error: missing initializer for field 'handler' of 'const struct command_s' [-Werror=missing-field-initializers]
  53. command.c:41:14: note: 'handler' declared here
  54. cmd_handler handler;
  55. ^~~~~~~
  56. command.c:73:32: error: expected '}' before 'cmd_halt_timeout'
  57. {"halt_timeout", (cmd_handler)cmd_halt_timeout, "Timeout (ms) to wait until Cortex-M is halted: (Default 2000)" },
  58. ^~~~~~~~~~~~~~~~
  59. command.c:73:32: error: missing initializer for field 'handler' of 'const struct command_s' [-Werror=missing-field-initializers]
  60. command.c:41:14: note: 'handler' declared here
  61. cmd_handler handler;
  62. ^~~~~~~
  63. command.c:74:32: error: expected '}' before 'cmd_connect_srst'
  64. {"connect_srst", (cmd_handler)cmd_connect_srst, "Configure connect under SRST: (enable|disable)" },
  65. ^~~~~~~~~~~~~~~~
  66. command.c:74:32: error: missing initializer for field 'handler' of 'const struct command_s' [-Werror=missing-field-initializers]
  67. command.c:41:14: note: 'handler' declared here
  68. cmd_handler handler;
  69. ^~~~~~~
  70. command.c:75:29: error: expected '}' before 'cmd_hard_srst'
  71. {"hard_srst", (cmd_handler)cmd_hard_srst, "Force a pulse on the hard SRST line - disconnects target" },
  72. ^~~~~~~~~~~~~
  73. command.c:75:29: error: missing initializer for field 'handler' of 'const struct command_s' [-Werror=missing-field-initializers]
  74. command.c:41:14: note: 'handler' declared here
  75. cmd_handler handler;
  76. ^~~~~~~
  77. command.c:83:29: error: expected '}' before 'cmd_debug_bmp'
  78. {"debug_bmp", (cmd_handler)cmd_debug_bmp, "Output BMP \"debug\" strings to the second vcom: (enable|disable)"},
  79. ^~~~~~~~~~~~~
  80. command.c:83:29: error: missing initializer for field 'handler' of 'const struct command_s' [-Werror=missing-field-initializers]
  81. command.c:41:14: note: 'handler' declared here
  82. cmd_handler handler;
  83. ^~~~~~~
  84. command.c:85:9: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
  85. {NULL, NULL, NULL}
  86. ^~~~
  87. command.c:85:9: note: (near initialization for 'cmd_list[10].handler')
  88. command.c: In function 'command_process':
  89. command.c:116:12: error: called object is not a function or function pointer
  90. return !c->handler(t, argc, argv);
  91. ^
  92. command.c: In function 'cmd_version':
  93. command.c:127:42: error: expected ')' before 'FIRMWARE_VERSION'
  94. gdb_outf("Black Magic Probe (Firmware " FIRMWARE_VERSION ") (Hardware Version %d)\n", platform_hwversion());
  95. ^~~~~~~~~~~~~~~~
  96. At top level:
  97. command.c:313:13: error: 'cmd_debug_bmp' defined but not used [-Werror=unused-function]
  98. static bool cmd_debug_bmp(target *t, int argc, const char **argv)
  99. ^~~~~~~~~~~~~
  100. command.c:271:13: error: 'cmd_hard_srst' defined but not used [-Werror=unused-function]
  101. static bool cmd_hard_srst(void)
  102. ^~~~~~~~~~~~~
  103. command.c:261:13: error: 'cmd_halt_timeout' defined but not used [-Werror=unused-function]
  104. static bool cmd_halt_timeout(target *t, int argc, const char **argv)
  105. ^~~~~~~~~~~~~~~~
  106. command.c:250:13: error: 'cmd_connect_srst' defined but not used [-Werror=unused-function]
  107. static bool cmd_connect_srst(target *t, int argc, const char **argv)
  108. ^~~~~~~~~~~~~~~~
  109. command.c:243:6: error: 'cmd_morse' defined but not used [-Werror=unused-function]
  110. bool cmd_morse(void)
  111. ^~~~~~~~~
  112. command.c:192:6: error: 'cmd_swdp_scan' defined but not used [-Werror=unused-function]
  113. bool cmd_swdp_scan(void)
  114. ^~~~~~~~~~~~~
  115. command.c:151:13: error: 'cmd_jtag_scan' defined but not used [-Werror=unused-function]
  116. static bool cmd_jtag_scan(target *t, int argc, char **argv)
  117. ^~~~~~~~~~~~~
  118. command.c:135:6: error: 'cmd_help' defined but not used [-Werror=unused-function]
  119. bool cmd_help(target *t)
  120. ^~~~~~~~
  121. command.c:125:6: error: 'cmd_version' defined but not used [-Werror=unused-function]
  122. bool cmd_version(void)
  123. ^~~~~~~~~~~
  124. cc1.exe: error: unrecognized command line option '-Wno-cast-function-type' [-Werror]
  125. cc1.exe: error: unrecognized command line option '-Wno-cast-function-type' [-Werror]
  126. cc1.exe: all warnings being treated as errors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement