Closed dragon888888888888 closed 2 months ago
make[3]: Entering directory '/home/abc/im/package/utils/pcat-manager' rm -f /home/abc/im/build_dir/target-aarch64_generic_musl/pcat-manager-2023.11.13~0149b478/.built touch /home/abc/im/build_dir/target-aarch64_generic_musl/pcat-manager-2023.11.13~0149b478/.built_check MAKEFLAGS="" /home/abc/im/staging_dir/host/bin/ninja -j1 -C /home/abc/im/build_dir/target-aarch64_generic_musl/pcat-manager-2023.11.13~0149b478/openwrt-build ninja: Entering directory /home/abc/im/build_dir/target-aarch64_generic_musl/pcat-manager-2023.11.13~0149b478/openwrt-build' [1/2] Compiling C object src/pcat-manager.p/modem-manager.c.o ../src/modem-manager.c: In function 'pcat_modem_manager_modem_power_init': ../src/modem-manager.c:137:42: warning: implicit declaration of function 'gpiod_chip_open_by_name'; did you mean 'gpiod_chip_info_get_name'? [-Wimplicit-function-declaration] 137 | mm_data->gpio_modem_power_chip = gpiod_chip_open_by_name( | ^~~~~~~~~~~~~~~~~~~~~~~ | gpiod_chip_info_get_name ../src/modem-manager.c:137:40: warning: assignment to 'struct gpiod_chip *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 137 | mm_data->gpio_modem_power_chip = gpiod_chip_open_by_name( | ^ ../src/modem-manager.c:151:42: warning: assignment to 'struct gpiod_chip *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 151 | mm_data->gpio_modem_rf_kill_chip = gpiod_chip_open_by_name( | ^ ../src/modem-manager.c:161:40: warning: assignment to 'struct gpiod_chip *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 161 | mm_data->gpio_modem_reset_chip = gpiod_chip_open_by_name( | ^ ../src/modem-manager.c:173:42: warning: implicit declaration of function 'gpiod_chip_get_line'; did you mean 'gpiod_chip_get_info'? [-Wimplicit-function-declaration] 173 | mm_data->gpio_modem_power_line = gpiod_chip_get_line( | ^~~~~~~~~~~~~~~~~~~ | gpiod_chip_get_info ../src/modem-manager.c:173:40: warning: assignment to 'struct gpiod_line *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 173 | mm_data->gpio_modem_power_line = gpiod_chip_get_line( | ^ ../src/modem-manager.c:183:9: warning: implicit declaration of function 'gpiod_line_is_requested'; did you mean 'gpiod_line_request_get_fd'? [-Wimplicit-function-declaration] 183 | if(!gpiod_line_is_requested(mm_data->gpio_modem_power_line)) | ^~~~~~~~~~~~~~~~~~~~~~~ | gpiod_line_request_get_fd ../src/modem-manager.c:185:15: warning: implicit declaration of function 'gpiod_line_request_output'; did you mean 'gpiod_line_request_get_fd'? [-Wimplicit-function-declaration] 185 | ret = gpiod_line_request_output(mm_data->gpio_modem_power_line, | ^~~~~~~~~~~~~~~~~~~~~~~~~ | gpiod_line_request_get_fd ../src/modem-manager.c:195:9: warning: implicit declaration of function 'gpiod_line_set_value'; did you mean 'g_key_file_set_value'? [-Wimplicit-function-declaration] 195 | gpiod_line_set_value(mm_data->gpio_modem_power_line, | ^~~~~~~~~~~~~~~~~~~~ | g_key_file_set_value ../src/modem-manager.c:202:42: warning: assignment to 'struct gpiod_line *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 202 | mm_data->gpio_modem_rf_kill_line = gpiod_chip_get_line( | ^ ../src/modem-manager.c:232:40: warning: assignment to 'struct gpiod_line *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 232 | mm_data->gpio_modem_reset_line = gpiod_chip_get_line( | ^ ../src/modem-manager.c: In function 'pcat_modem_manager_modem_work_thread_func': ../src/modem-manager.c:986:9: warning: implicit declaration of function 'gpiod_line_release' [-Wimplicit-function-declaration] 986 | gpiod_line_release(mm_data->gpio_modem_reset_line); | ^~~~~~~~~~~~~~~~~~ [2/2] Linking target src/pcat-manager FAILED: src/pcat-manager aarch64-openwrt-linux-musl-gcc -o src/pcat-manager src/pcat-manager.p/main.c.o src/pcat-manager.p/pmu-manager.c.o src/pcat-manager.p/modem-manager.c.o src/pcat-manager.p/controller.c.o -L/home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/usr/lib -L/home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib -Wl,--as-needed -Wl,--no-undefined -fuse-ld=bfd -fuse-ld=bfd -znow -zrelro -Wl,-rpath,/home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib -Wl,-rpath-link,/home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib -Wl,--start-group /home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib/libglib-2.0.so /home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib/libgthread-2.0.so -pthread /home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib/libgio-2.0.so /home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib/libgobject-2.0.so /home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib/libusb-1.0.so /home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib/libjson-c.so /home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib/libgpiod.so -Wl,--end-group /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: src/pcat-manager.p/modem-manager.c.o: in functionpcat_modem_manager_device_rfkill_mode_set': modem-manager.c:(.text+0x9d4): undefined reference to gpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: src/pcat-manager.p/modem-manager.c.o: in functionpcat_modem_manager_modem_work_thread_func': modem-manager.c:(.text+0xb3c): undefined reference to gpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xb44): undefined reference togpiod_line_release' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xb60): undefined reference to gpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xb68): undefined reference togpiod_line_release' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xb84): undefined reference to gpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xb8c): undefined reference togpiod_line_release' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xc58): undefined reference to gpiod_chip_open_by_name' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xc8c): undefined reference togpiod_chip_open_by_name' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xcbc): undefined reference to gpiod_chip_open_by_name' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xce8): undefined reference togpiod_chip_get_line' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xd08): undefined reference to gpiod_line_is_requested' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xd28): undefined reference togpiod_line_request_output' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xd58): undefined reference to gpiod_chip_get_line' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xd84): undefined reference togpiod_line_is_requested' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xda4): undefined reference to gpiod_line_request_output' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xdd0): undefined reference togpiod_chip_get_line' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xdf4): undefined reference to gpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xe04): undefined reference togpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xe10): undefined reference to gpiod_line_is_requested' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xe30): undefined reference togpiod_line_request_output' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xe84): undefined reference to gpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xe9c): undefined reference togpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xeb4): undefined reference to gpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xecc): undefined reference togpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xf18): undefined reference to gpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: src/pcat-manager.p/modem-manager.c.o:modem-manager.c:(.text+0xf58): more undefined references togpiod_line_set_value' follow collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. make[3]: [Makefile:54: /home/abc/im/build_dir/target-aarch64_generic_musl/pcat-manager-2023.11.13~0149b478/.built] Error 1 make[3]: Leaving directory '/home/abc/im/package/utils/pcat-manager' time: package/utils/pcat-manager/compile#0.50#0.17#0.69 ERROR: package/utils/pcat-manager failed to build. make[2]: [package/Makefile:173: package/utils/pcat-manager/compile] Error 1 make[2]: Leaving directory '/home/abc/im' make[1]: [package/Makefile:167: /home/abc/im/staging_dir/target-aarch64_generic_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/abc/im' make: [/home/abc/im/include/toplevel.mk:248:world] 错误 2 abc@abc:~/im$
/home/abc/im/build_dir/target-aarch64_generic_musl/pcat-manager-2023.11.13~0149b478/openwrt-build' [1/2] Compiling C object src/pcat-manager.p/modem-manager.c.o ../src/modem-manager.c: In function 'pcat_modem_manager_modem_power_init': ../src/modem-manager.c:137:42: warning: implicit declaration of function 'gpiod_chip_open_by_name'; did you mean 'gpiod_chip_info_get_name'? [-Wimplicit-function-declaration] 137 | mm_data->gpio_modem_power_chip = gpiod_chip_open_by_name( | ^~~~~~~~~~~~~~~~~~~~~~~ | gpiod_chip_info_get_name ../src/modem-manager.c:137:40: warning: assignment to 'struct gpiod_chip *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 137 | mm_data->gpio_modem_power_chip = gpiod_chip_open_by_name( | ^ ../src/modem-manager.c:151:42: warning: assignment to 'struct gpiod_chip *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 151 | mm_data->gpio_modem_rf_kill_chip = gpiod_chip_open_by_name( | ^ ../src/modem-manager.c:161:40: warning: assignment to 'struct gpiod_chip *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 161 | mm_data->gpio_modem_reset_chip = gpiod_chip_open_by_name( | ^ ../src/modem-manager.c:173:42: warning: implicit declaration of function 'gpiod_chip_get_line'; did you mean 'gpiod_chip_get_info'? [-Wimplicit-function-declaration] 173 | mm_data->gpio_modem_power_line = gpiod_chip_get_line( | ^~~~~~~~~~~~~~~~~~~ | gpiod_chip_get_info ../src/modem-manager.c:173:40: warning: assignment to 'struct gpiod_line *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 173 | mm_data->gpio_modem_power_line = gpiod_chip_get_line( | ^ ../src/modem-manager.c:183:9: warning: implicit declaration of function 'gpiod_line_is_requested'; did you mean 'gpiod_line_request_get_fd'? [-Wimplicit-function-declaration] 183 | if(!gpiod_line_is_requested(mm_data->gpio_modem_power_line)) | ^~~~~~~~~~~~~~~~~~~~~~~ | gpiod_line_request_get_fd ../src/modem-manager.c:185:15: warning: implicit declaration of function 'gpiod_line_request_output'; did you mean 'gpiod_line_request_get_fd'? [-Wimplicit-function-declaration] 185 | ret = gpiod_line_request_output(mm_data->gpio_modem_power_line, | ^~~~~~~~~~~~~~~~~~~~~~~~~ | gpiod_line_request_get_fd ../src/modem-manager.c:195:9: warning: implicit declaration of function 'gpiod_line_set_value'; did you mean 'g_key_file_set_value'? [-Wimplicit-function-declaration] 195 | gpiod_line_set_value(mm_data->gpio_modem_power_line, | ^~~~~~~~~~~~~~~~~~~~ | g_key_file_set_value ../src/modem-manager.c:202:42: warning: assignment to 'struct gpiod_line *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 202 | mm_data->gpio_modem_rf_kill_line = gpiod_chip_get_line( | ^ ../src/modem-manager.c:232:40: warning: assignment to 'struct gpiod_line *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 232 | mm_data->gpio_modem_reset_line = gpiod_chip_get_line( | ^ ../src/modem-manager.c: In function 'pcat_modem_manager_modem_work_thread_func': ../src/modem-manager.c:986:9: warning: implicit declaration of function 'gpiod_line_release' [-Wimplicit-function-declaration] 986 | gpiod_line_release(mm_data->gpio_modem_reset_line); | ^~~~~~~~~~~~~~~~~~ [2/2] Linking target src/pcat-manager FAILED: src/pcat-manager aarch64-openwrt-linux-musl-gcc -o src/pcat-manager src/pcat-manager.p/main.c.o src/pcat-manager.p/pmu-manager.c.o src/pcat-manager.p/modem-manager.c.o src/pcat-manager.p/controller.c.o -L/home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/usr/lib -L/home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib -Wl,--as-needed -Wl,--no-undefined -fuse-ld=bfd -fuse-ld=bfd -znow -zrelro -Wl,-rpath,/home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib -Wl,-rpath-link,/home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib -Wl,--start-group /home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib/libglib-2.0.so /home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib/libgthread-2.0.so -pthread /home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib/libgio-2.0.so /home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib/libgobject-2.0.so /home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib/libusb-1.0.so /home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib/libjson-c.so /home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib/libgpiod.so -Wl,--end-group /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: src/pcat-manager.p/modem-manager.c.o: in function
gpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: src/pcat-manager.p/modem-manager.c.o: in function
gpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xb44): undefined reference to
gpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xb68): undefined reference to
gpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xb8c): undefined reference to
gpiod_chip_open_by_name' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xc8c): undefined reference to
gpiod_chip_open_by_name' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xce8): undefined reference to
gpiod_line_is_requested' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xd28): undefined reference to
gpiod_chip_get_line' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xd84): undefined reference to
gpiod_line_request_output' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xdd0): undefined reference to
gpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xe04): undefined reference to
gpiod_line_is_requested' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xe30): undefined reference to
gpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xe9c): undefined reference to
gpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xecc): undefined reference to
gpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: src/pcat-manager.p/modem-manager.c.o:modem-manager.c:(.text+0xf58): more undefined references to
不支持 libgpiod2.1.2造成的 目前已知最高只支持1.6.4版
make[3]: Entering directory '/home/abc/im/package/utils/pcat-manager' rm -f /home/abc/im/build_dir/target-aarch64_generic_musl/pcat-manager-2023.11.13~0149b478/.built touch /home/abc/im/build_dir/target-aarch64_generic_musl/pcat-manager-2023.11.13~0149b478/.built_check MAKEFLAGS="" /home/abc/im/staging_dir/host/bin/ninja -j1 -C /home/abc/im/build_dir/target-aarch64_generic_musl/pcat-manager-2023.11.13~0149b478/openwrt-build ninja: Entering directory
/home/abc/im/build_dir/target-aarch64_generic_musl/pcat-manager-2023.11.13~0149b478/openwrt-build' [1/2] Compiling C object src/pcat-manager.p/modem-manager.c.o ../src/modem-manager.c: In function 'pcat_modem_manager_modem_power_init': ../src/modem-manager.c:137:42: warning: implicit declaration of function 'gpiod_chip_open_by_name'; did you mean 'gpiod_chip_info_get_name'? [-Wimplicit-function-declaration] 137 | mm_data->gpio_modem_power_chip = gpiod_chip_open_by_name( | ^~~~~~~~~~~~~~~~~~~~~~~ | gpiod_chip_info_get_name ../src/modem-manager.c:137:40: warning: assignment to 'struct gpiod_chip *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 137 | mm_data->gpio_modem_power_chip = gpiod_chip_open_by_name( | ^ ../src/modem-manager.c:151:42: warning: assignment to 'struct gpiod_chip *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 151 | mm_data->gpio_modem_rf_kill_chip = gpiod_chip_open_by_name( | ^ ../src/modem-manager.c:161:40: warning: assignment to 'struct gpiod_chip *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 161 | mm_data->gpio_modem_reset_chip = gpiod_chip_open_by_name( | ^ ../src/modem-manager.c:173:42: warning: implicit declaration of function 'gpiod_chip_get_line'; did you mean 'gpiod_chip_get_info'? [-Wimplicit-function-declaration] 173 | mm_data->gpio_modem_power_line = gpiod_chip_get_line( | ^~~~~~~~~~~~~~~~~~~ | gpiod_chip_get_info ../src/modem-manager.c:173:40: warning: assignment to 'struct gpiod_line *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 173 | mm_data->gpio_modem_power_line = gpiod_chip_get_line( | ^ ../src/modem-manager.c:183:9: warning: implicit declaration of function 'gpiod_line_is_requested'; did you mean 'gpiod_line_request_get_fd'? [-Wimplicit-function-declaration] 183 | if(!gpiod_line_is_requested(mm_data->gpio_modem_power_line)) | ^~~~~~~~~~~~~~~~~~~~~~~ | gpiod_line_request_get_fd ../src/modem-manager.c:185:15: warning: implicit declaration of function 'gpiod_line_request_output'; did you mean 'gpiod_line_request_get_fd'? [-Wimplicit-function-declaration] 185 | ret = gpiod_line_request_output(mm_data->gpio_modem_power_line, | ^~~~~~~~~~~~~~~~~~~~~~~~~ | gpiod_line_request_get_fd ../src/modem-manager.c:195:9: warning: implicit declaration of function 'gpiod_line_set_value'; did you mean 'g_key_file_set_value'? [-Wimplicit-function-declaration] 195 | gpiod_line_set_value(mm_data->gpio_modem_power_line, | ^~~~~~~~~~~~~~~~~~~~ | g_key_file_set_value ../src/modem-manager.c:202:42: warning: assignment to 'struct gpiod_line *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 202 | mm_data->gpio_modem_rf_kill_line = gpiod_chip_get_line( | ^ ../src/modem-manager.c:232:40: warning: assignment to 'struct gpiod_line *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 232 | mm_data->gpio_modem_reset_line = gpiod_chip_get_line( | ^ ../src/modem-manager.c: In function 'pcat_modem_manager_modem_work_thread_func': ../src/modem-manager.c:986:9: warning: implicit declaration of function 'gpiod_line_release' [-Wimplicit-function-declaration] 986 | gpiod_line_release(mm_data->gpio_modem_reset_line); | ^~~~~~~~~~~~~~~~~~ [2/2] Linking target src/pcat-manager FAILED: src/pcat-manager aarch64-openwrt-linux-musl-gcc -o src/pcat-manager src/pcat-manager.p/main.c.o src/pcat-manager.p/pmu-manager.c.o src/pcat-manager.p/modem-manager.c.o src/pcat-manager.p/controller.c.o -L/home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/usr/lib -L/home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib -Wl,--as-needed -Wl,--no-undefined -fuse-ld=bfd -fuse-ld=bfd -znow -zrelro -Wl,-rpath,/home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib -Wl,-rpath-link,/home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib -Wl,--start-group /home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib/libglib-2.0.so /home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib/libgthread-2.0.so -pthread /home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib/libgio-2.0.so /home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib/libgobject-2.0.so /home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib/libusb-1.0.so /home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib/libjson-c.so /home/abc/im/staging_dir/target-aarch64_generic_musl/usr/lib/libgpiod.so -Wl,--end-group /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: src/pcat-manager.p/modem-manager.c.o: in function
pcat_modem_manager_device_rfkill_mode_set': modem-manager.c:(.text+0x9d4): undefined reference togpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: src/pcat-manager.p/modem-manager.c.o: in function
pcat_modem_manager_modem_work_thread_func': modem-manager.c:(.text+0xb3c): undefined reference togpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xb44): undefined reference to
gpiod_line_release' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xb60): undefined reference togpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xb68): undefined reference to
gpiod_line_release' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xb84): undefined reference togpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xb8c): undefined reference to
gpiod_line_release' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xc58): undefined reference togpiod_chip_open_by_name' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xc8c): undefined reference to
gpiod_chip_open_by_name' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xcbc): undefined reference togpiod_chip_open_by_name' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xce8): undefined reference to
gpiod_chip_get_line' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xd08): undefined reference togpiod_line_is_requested' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xd28): undefined reference to
gpiod_line_request_output' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xd58): undefined reference togpiod_chip_get_line' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xd84): undefined reference to
gpiod_line_is_requested' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xda4): undefined reference togpiod_line_request_output' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xdd0): undefined reference to
gpiod_chip_get_line' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xdf4): undefined reference togpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xe04): undefined reference to
gpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xe10): undefined reference togpiod_line_is_requested' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xe30): undefined reference to
gpiod_line_request_output' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xe84): undefined reference togpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xe9c): undefined reference to
gpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xeb4): undefined reference togpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xecc): undefined reference to
gpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: modem-manager.c:(.text+0xf18): undefined reference togpiod_line_set_value' /home/abc/im/staging_dir/toolchain-aarch64_generic_gcc-13.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/13.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: src/pcat-manager.p/modem-manager.c.o:modem-manager.c:(.text+0xf58): more undefined references to
gpiod_line_set_value' follow collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. make[3]: [Makefile:54: /home/abc/im/build_dir/target-aarch64_generic_musl/pcat-manager-2023.11.13~0149b478/.built] Error 1 make[3]: Leaving directory '/home/abc/im/package/utils/pcat-manager' time: package/utils/pcat-manager/compile#0.50#0.17#0.69 ERROR: package/utils/pcat-manager failed to build. make[2]: [package/Makefile:173: package/utils/pcat-manager/compile] Error 1 make[2]: Leaving directory '/home/abc/im' make[1]: [package/Makefile:167: /home/abc/im/staging_dir/target-aarch64_generic_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/abc/im' make: [/home/abc/im/include/toplevel.mk:248:world] 错误 2 abc@abc:~/im$