Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Compiling realtime hal/components/enum.c
- Compiling realtime hal/components/counter.c
- Compiling realtime hal/components/encoder_ratio.c
- Compiling realtime hal/components/stepgen.c
- Compiling realtime hal/components/lcd.c
- Compiling realtime hal/components/matrix_kb.c
- Compiling realtime hal/components/mux_generic.c
- Compiling realtime hal/components/pwmgen.c
- Compiling realtime hal/components/siggen.c
- Compiling realtime hal/components/pid.c
- Compiling realtime hal/components/threads.c
- Compiling realtime hal/components/supply.c
- Compiling realtime hal/components/sim_encoder.c
- Compiling realtime hal/components/weighted_sum.c
- Compiling realtime hal/components/watchdog.c
- Compiling realtime hal/components/modmath.c
- Compiling realtime hal/components/streamer.c
- Compiling realtime hal/components/sampler.c
- Compiling realtime hal/drivers/hal_parport.c
- Compiling realtime hal/drivers/hal_speaker.c
- Compiling realtime hal/drivers/hal_gm.c
- Compiling realtime hal/drivers/hal_ppmc.c
- Compiling realtime hal/drivers/hal_bb_gpio.c
- Compiling realtime hal/drivers/hal_pi_gpio.c
- Compiling realtime hal/drivers/cpuinfo.c
- Compiling realtime hal/drivers/hal_gpio.c
- Compiling realtime hal/drivers/mesa-hostmot2/hostmot2.c
- hal/drivers/hal_gpio.c: In function ‘build_chips_collection’:
- 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]
- 167 | temp_line = gpiod_line_find(name);
- | ^~~~~~~~~~~~~~~
- | gpiod_line_config_new
- hal/drivers/hal_gpio.c:167:15: warning: assignment to ‘struct gpiod_line *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- 167 | temp_line = gpiod_line_find(name);
- | ^
- hal/drivers/hal_gpio.c:172:17: warning: implicit declaration of function ‘gpiod_line_get_chip’ [-Wimplicit-function-declaration]
- 172 | temp_chip = gpiod_line_get_chip(temp_line);
- | ^~~~~~~~~~~~~~~~~~~
- hal/drivers/hal_gpio.c:172:15: warning: assignment to ‘struct gpiod_chip *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- 172 | temp_chip = gpiod_line_get_chip(temp_line);
- | ^
- hal/drivers/hal_gpio.c:174:28: warning: implicit declaration of function ‘gpiod_chip_name’; did you mean ‘gpiod_chip_close’? [-Wimplicit-function-declaration]
- 174 | && (strcmp(gpiod_chip_name((*ptr)[c].chip), gpiod_chip_name(temp_chip))
- | ^~~~~~~~~~~~~~~
- | gpiod_chip_close
- hal/drivers/hal_gpio.c:174:28: warning: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- 174 | && (strcmp(gpiod_chip_name((*ptr)[c].chip), gpiod_chip_name(temp_chip))
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- | |
- | int
- In file included from hal/drivers/hal_gpio.c:42:
- /usr/include/string.h:156:32: note: expected ‘const char *’ but argument is of type ‘int’
- 156 | extern int strcmp (const char *__s1, const char *__s2)
- | ~~~~~~~~~~~~^~~~
- hal/drivers/hal_gpio.c:174:61: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
- 174 | && (strcmp(gpiod_chip_name((*ptr)[c].chip), gpiod_chip_name(temp_chip))
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~
- | |
- | int
- /usr/include/string.h:156:50: note: expected ‘const char *’ but argument is of type ‘int’
- 156 | extern int strcmp (const char *__s1, const char *__s2)
- | ~~~~~~~~~~~~^~~~
- hal/drivers/hal_gpio.c:187:28: warning: assignment to ‘struct gpiod_chip *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- 187 | (*ptr)[c].chip = gpiod_line_get_chip(temp_line);
- | ^
- In file included from hal/drivers/hal_gpio.c:39:
- hal/drivers/hal_gpio.c:188:50: error: invalid application of ‘sizeof’ to incomplete type ‘struct gpiod_line_bulk’
- 188 | (*ptr)[c].bulk = rtapi_kmalloc(sizeof(*(*ptr)[c].bulk), RTAPI_GFP_KERNEL);
- | ^
- /home/ivanovp/.cache/yay/linuxcnc/src/linuxcnc-2.9.2/src/../include/rtapi_slab.h:33:42: note: in definition of macro ‘rtapi_kmalloc’
- 33 | #define rtapi_kmalloc(sz, flags) malloc((sz))
- | ^~
- hal/drivers/hal_gpio.c:189:13: warning: implicit declaration of function ‘gpiod_line_bulk_init’ [-Wimplicit-function-declaration]
- 189 | gpiod_line_bulk_init((*ptr)[c].bulk);
- | ^~~~~~~~~~~~~~~~~~~~
- hal/drivers/hal_gpio.c:190:68: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat=]
- 190 | rtapi_print_msg(RTAPI_MSG_INFO, "hal_gpio: added chip %s index %i\n", gpiod_chip_name((*ptr)[c].chip), c);
- | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- | | |
- | char * int
- | %d
- 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]
- 193 | temp_line = gpiod_chip_find_line((*ptr)[c].chip, name);
- | ^~~~~~~~~~~~~~~~~~~~
- | gpiod_chip_info_free
- hal/drivers/hal_gpio.c:193:15: warning: assignment to ‘struct gpiod_line *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- 193 | temp_line = gpiod_chip_find_line((*ptr)[c].chip, name);
- | ^
- 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]
- 198 | gpiod_line_set_flags(temp_line, (*ptr)[c].flags[(*ptr)[c].num_lines - 1]);
- | ^~~~~~~~~~~~~~~~~~~~
- | gpiod_line_settings_new
- hal/drivers/hal_gpio.c:201:5: warning: implicit declaration of function ‘gpiod_line_bulk_add’ [-Wimplicit-function-declaration]
- 201 | gpiod_line_bulk_add((*ptr)[c].bulk, temp_line);
- | ^~~~~~~~~~~~~~~~~~~
- hal/drivers/hal_gpio.c: In function ‘rtapi_app_main’:
- 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]
- 243 | if (gpiod_line_request_bulk_input(gpio->in_chips[c].bulk, "linuxcnc") < 0){
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- | gpiod_line_request_set_value
- 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]
- 249 | line_name = gpiod_line_name(gpiod_line_bulk_get_line(gpio->in_chips[c].bulk, i));
- | ^~~~~~~~~~~~~~~
- | gpiod_line_info_free
- 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]
- 249 | line_name = gpiod_line_name(gpiod_line_bulk_get_line(gpio->in_chips[c].bulk, i));
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- | gpiod_line_info_get_drive
- hal/drivers/hal_gpio.c:249:23: warning: assignment to ‘const char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- 249 | line_name = gpiod_line_name(gpiod_line_bulk_get_line(gpio->in_chips[c].bulk, i));
- | ^
- Compiling realtime hal/drivers/mesa-hostmot2/abs_encoder.c
- 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]
- 265 | if (gpiod_line_request_bulk_output(gpio->out_chips[c].bulk, "linuxcnc", gpio->out_chips[c].vals) < 0){
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- | gpiod_line_request_set_value
- hal/drivers/hal_gpio.c:271:23: warning: assignment to ‘const char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- 271 | line_name = gpiod_line_name(gpiod_line_bulk_get_line(gpio->out_chips[c].bulk, i));
- | ^
- hal/drivers/hal_gpio.c: In function ‘hal_gpio_read’:
- hal/drivers/hal_gpio.c:322:9: warning: implicit declaration of function ‘gpiod_line_get_value_bulk’ [-Wimplicit-function-declaration]
- 322 | gpiod_line_get_value_bulk(gpio->in_chips[c].bulk, gpio->in_chips[c].vals);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- hal/drivers/hal_gpio.c: In function ‘hal_gpio_write’:
- hal/drivers/hal_gpio.c:342:9: warning: implicit declaration of function ‘gpiod_line_set_value_bulk’ [-Wimplicit-function-declaration]
- 342 | gpiod_line_set_value_bulk(gpio->out_chips[c].bulk, gpio->out_chips[c].vals);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- Compiling realtime hal/drivers/mesa-hostmot2/bitfile.c
- make: *** [Makefile:1251: objects/rthal/drivers/hal_gpio.o] Error 1
- make: *** Waiting for unfinished jobs....
- ==> ERROR: A failure occurred in build().
- Aborting...
- -> error making: linuxcnc-exit status 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement