Advertisement
Guest User

linuxcnc-2.9.2-1 compile error

a guest
Feb 17th, 2024
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.92 KB | None | 0 0
  1. Compiling realtime hal/components/enum.c
  2. Compiling realtime hal/components/counter.c
  3. Compiling realtime hal/components/encoder_ratio.c
  4. Compiling realtime hal/components/stepgen.c
  5. Compiling realtime hal/components/lcd.c
  6. Compiling realtime hal/components/matrix_kb.c
  7. Compiling realtime hal/components/mux_generic.c
  8. Compiling realtime hal/components/pwmgen.c
  9. Compiling realtime hal/components/siggen.c
  10. Compiling realtime hal/components/pid.c
  11. Compiling realtime hal/components/threads.c
  12. Compiling realtime hal/components/supply.c
  13. Compiling realtime hal/components/sim_encoder.c
  14. Compiling realtime hal/components/weighted_sum.c
  15. Compiling realtime hal/components/watchdog.c
  16. Compiling realtime hal/components/modmath.c
  17. Compiling realtime hal/components/streamer.c
  18. Compiling realtime hal/components/sampler.c
  19. Compiling realtime hal/drivers/hal_parport.c
  20. Compiling realtime hal/drivers/hal_speaker.c
  21. Compiling realtime hal/drivers/hal_gm.c
  22. Compiling realtime hal/drivers/hal_ppmc.c
  23. Compiling realtime hal/drivers/hal_bb_gpio.c
  24. Compiling realtime hal/drivers/hal_pi_gpio.c
  25. Compiling realtime hal/drivers/cpuinfo.c
  26. Compiling realtime hal/drivers/hal_gpio.c
  27. Compiling realtime hal/drivers/mesa-hostmot2/hostmot2.c
  28. hal/drivers/hal_gpio.c: In function ‘build_chips_collection’:
  29. hal/drivers/hal_gpio.c:167:17: warning: implicit declaration of function ‘gpiod_line_find’; did you mean ‘gpiod_line_config_new’? [-Wimplicit-function-declaration]
  30. 167 | temp_line = gpiod_line_find(name);
  31. | ^~~~~~~~~~~~~~~
  32. | gpiod_line_config_new
  33. hal/drivers/hal_gpio.c:167:15: warning: assignment to ‘struct gpiod_line *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  34. 167 | temp_line = gpiod_line_find(name);
  35. | ^
  36. hal/drivers/hal_gpio.c:172:17: warning: implicit declaration of function ‘gpiod_line_get_chip’ [-Wimplicit-function-declaration]
  37. 172 | temp_chip = gpiod_line_get_chip(temp_line);
  38. | ^~~~~~~~~~~~~~~~~~~
  39. hal/drivers/hal_gpio.c:172:15: warning: assignment to ‘struct gpiod_chip *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  40. 172 | temp_chip = gpiod_line_get_chip(temp_line);
  41. | ^
  42. hal/drivers/hal_gpio.c:174:28: warning: implicit declaration of function ‘gpiod_chip_name’; did you mean ‘gpiod_chip_close’? [-Wimplicit-function-declaration]
  43. 174 | && (strcmp(gpiod_chip_name((*ptr)[c].chip), gpiod_chip_name(temp_chip))
  44. | ^~~~~~~~~~~~~~~
  45. | gpiod_chip_close
  46. hal/drivers/hal_gpio.c:174:28: warning: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
  47. 174 | && (strcmp(gpiod_chip_name((*ptr)[c].chip), gpiod_chip_name(temp_chip))
  48. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  49. | |
  50. | int
  51. In file included from hal/drivers/hal_gpio.c:42:
  52. /usr/include/string.h:156:32: note: expected ‘const char *’ but argument is of type ‘int’
  53. 156 | extern int strcmp (const char *__s1, const char *__s2)
  54. | ~~~~~~~~~~~~^~~~
  55. hal/drivers/hal_gpio.c:174:61: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
  56. 174 | && (strcmp(gpiod_chip_name((*ptr)[c].chip), gpiod_chip_name(temp_chip))
  57. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  58. | |
  59. | int
  60. /usr/include/string.h:156:50: note: expected ‘const char *’ but argument is of type ‘int’
  61. 156 | extern int strcmp (const char *__s1, const char *__s2)
  62. | ~~~~~~~~~~~~^~~~
  63. hal/drivers/hal_gpio.c:187:28: warning: assignment to ‘struct gpiod_chip *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  64. 187 | (*ptr)[c].chip = gpiod_line_get_chip(temp_line);
  65. | ^
  66. In file included from hal/drivers/hal_gpio.c:39:
  67. hal/drivers/hal_gpio.c:188:50: error: invalid application of ‘sizeof’ to incomplete type ‘struct gpiod_line_bulk’
  68. 188 | (*ptr)[c].bulk = rtapi_kmalloc(sizeof(*(*ptr)[c].bulk), RTAPI_GFP_KERNEL);
  69. | ^
  70. /home/ivanovp/.cache/yay/linuxcnc/src/linuxcnc-2.9.2/src/../include/rtapi_slab.h:33:42: note: in definition of macro ‘rtapi_kmalloc’
  71. 33 | #define rtapi_kmalloc(sz, flags) malloc((sz))
  72. | ^~
  73. hal/drivers/hal_gpio.c:189:13: warning: implicit declaration of function ‘gpiod_line_bulk_init’ [-Wimplicit-function-declaration]
  74. 189 | gpiod_line_bulk_init((*ptr)[c].bulk);
  75. | ^~~~~~~~~~~~~~~~~~~~
  76. hal/drivers/hal_gpio.c:190:68: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat=]
  77. 190 | rtapi_print_msg(RTAPI_MSG_INFO, "hal_gpio: added chip %s index %i\n", gpiod_chip_name((*ptr)[c].chip), c);
  78. | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  79. | | |
  80. | char * int
  81. | %d
  82. hal/drivers/hal_gpio.c:193:17: warning: implicit declaration of function ‘gpiod_chip_find_line’; did you mean ‘gpiod_chip_info_free’? [-Wimplicit-function-declaration]
  83. 193 | temp_line = gpiod_chip_find_line((*ptr)[c].chip, name);
  84. | ^~~~~~~~~~~~~~~~~~~~
  85. | gpiod_chip_info_free
  86. hal/drivers/hal_gpio.c:193:15: warning: assignment to ‘struct gpiod_line *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  87. 193 | temp_line = gpiod_chip_find_line((*ptr)[c].chip, name);
  88. | ^
  89. hal/drivers/hal_gpio.c:198:5: warning: implicit declaration of function ‘gpiod_line_set_flags’; did you mean ‘gpiod_line_settings_new’? [-Wimplicit-function-declaration]
  90. 198 | gpiod_line_set_flags(temp_line, (*ptr)[c].flags[(*ptr)[c].num_lines - 1]);
  91. | ^~~~~~~~~~~~~~~~~~~~
  92. | gpiod_line_settings_new
  93. hal/drivers/hal_gpio.c:201:5: warning: implicit declaration of function ‘gpiod_line_bulk_add’ [-Wimplicit-function-declaration]
  94. 201 | gpiod_line_bulk_add((*ptr)[c].bulk, temp_line);
  95. | ^~~~~~~~~~~~~~~~~~~
  96. hal/drivers/hal_gpio.c: In function ‘rtapi_app_main’:
  97. hal/drivers/hal_gpio.c:243:13: warning: implicit declaration of function ‘gpiod_line_request_bulk_input’; did you mean ‘gpiod_line_request_set_value’? [-Wimplicit-function-declaration]
  98. 243 | if (gpiod_line_request_bulk_input(gpio->in_chips[c].bulk, "linuxcnc") < 0){
  99. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  100. | gpiod_line_request_set_value
  101. hal/drivers/hal_gpio.c:249:25: warning: implicit declaration of function ‘gpiod_line_name’; did you mean ‘gpiod_line_info_free’? [-Wimplicit-function-declaration]
  102. 249 | line_name = gpiod_line_name(gpiod_line_bulk_get_line(gpio->in_chips[c].bulk, i));
  103. | ^~~~~~~~~~~~~~~
  104. | gpiod_line_info_free
  105. hal/drivers/hal_gpio.c:249:41: warning: implicit declaration of function ‘gpiod_line_bulk_get_line’; did you mean ‘gpiod_line_info_get_drive’? [-Wimplicit-function-declaration]
  106. 249 | line_name = gpiod_line_name(gpiod_line_bulk_get_line(gpio->in_chips[c].bulk, i));
  107. | ^~~~~~~~~~~~~~~~~~~~~~~~
  108. | gpiod_line_info_get_drive
  109. hal/drivers/hal_gpio.c:249:23: warning: assignment to ‘const char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  110. 249 | line_name = gpiod_line_name(gpiod_line_bulk_get_line(gpio->in_chips[c].bulk, i));
  111. | ^
  112. Compiling realtime hal/drivers/mesa-hostmot2/abs_encoder.c
  113. hal/drivers/hal_gpio.c:265:13: warning: implicit declaration of function ‘gpiod_line_request_bulk_output’; did you mean ‘gpiod_line_request_set_value’? [-Wimplicit-function-declaration]
  114. 265 | if (gpiod_line_request_bulk_output(gpio->out_chips[c].bulk, "linuxcnc", gpio->out_chips[c].vals) < 0){
  115. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  116. | gpiod_line_request_set_value
  117. hal/drivers/hal_gpio.c:271:23: warning: assignment to ‘const char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  118. 271 | line_name = gpiod_line_name(gpiod_line_bulk_get_line(gpio->out_chips[c].bulk, i));
  119. | ^
  120. hal/drivers/hal_gpio.c: In function ‘hal_gpio_read’:
  121. hal/drivers/hal_gpio.c:322:9: warning: implicit declaration of function ‘gpiod_line_get_value_bulk’ [-Wimplicit-function-declaration]
  122. 322 | gpiod_line_get_value_bulk(gpio->in_chips[c].bulk, gpio->in_chips[c].vals);
  123. | ^~~~~~~~~~~~~~~~~~~~~~~~~
  124. hal/drivers/hal_gpio.c: In function ‘hal_gpio_write’:
  125. hal/drivers/hal_gpio.c:342:9: warning: implicit declaration of function ‘gpiod_line_set_value_bulk’ [-Wimplicit-function-declaration]
  126. 342 | gpiod_line_set_value_bulk(gpio->out_chips[c].bulk, gpio->out_chips[c].vals);
  127. | ^~~~~~~~~~~~~~~~~~~~~~~~~
  128. Compiling realtime hal/drivers/mesa-hostmot2/bitfile.c
  129. make: *** [Makefile:1251: objects/rthal/drivers/hal_gpio.o] Error 1
  130. make: *** Waiting for unfinished jobs....
  131. ==> ERROR: A failure occurred in build().
  132. Aborting...
  133. -> error making: linuxcnc-exit status 4
  134.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement