Ai-Thinker-Open / Ai-Thinker-WB2

Apache License 2.0
42 stars 28 forks source link

applications/protocols/http_server/simple_server - hal_machw.c:351: undefined reference to `g_bl_ops_funcs' #22

Open jpat11 opened 5 months ago

jpat11 commented 5 months ago

Hello, I am trying to run the applications/protocols/http_server/simple_server code by following the instructions at (https://github.com/Ai-Thinker-Open/Ai-Thinker-WB2/tree/main/applications/protocols/http_server/simple_server) on a Ai-WB2-12F-Kit, and am getting the follow error when I run make -j8 in Ubuntu.

LD build_out/main.elf /home/john/Ai-Thinker-WB2/toolchain/riscv/Linux/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/john/Ai-Thinker-WB2/components/network/wifi/lib/libwifi.a(hal_machw.o): in function hal_machw_init': /home/blxu/customer/aithinker/source_bliu_aithinker_iot_stable/components/network/wifi/ip/lmac/src/hal/hal_machw.c:351: undefined reference tog_bl_ops_funcs' /home/john/Ai-Thinker-WB2/toolchain/riscv/Linux/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/blxu/customer/aithinker/source_bliu_aithinker_iot_stable/components/network/wifi/ip/lmac/src/hal/hal_machw.c:351: undefined reference to g_bl_ops_funcs' /home/john/Ai-Thinker-WB2/toolchain/riscv/Linux/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/john/Ai-Thinker-WB2/components/network/wifi/lib/libwifi.a(mm.o): in functionelement_notify_status_enabled': /home/blxu/customer/aithinker/source_bliu_aithinker_iot_stable/components/network/wifi/ip/lmac/src/mm/mm.c:1818: undefined reference to g_bl_ops_funcs' /home/john/Ai-Thinker-WB2/toolchain/riscv/Linux/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/blxu/customer/aithinker/source_bliu_aithinker_iot_stable/components/network/wifi/ip/lmac/src/mm/mm.c:1818: undefined reference tog_bl_ops_funcs' /home/john/Ai-Thinker-WB2/toolchain/riscv/Linux/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/john/Ai-Thinker-WB2/components/network/wifi/lib/libwifi.a(mm.o): in function element_notify_time_last_received_set': /home/blxu/customer/aithinker/source_bliu_aithinker_iot_stable/components/network/wifi/ip/lmac/src/mm/mm.c:1825: undefined reference tog_bl_ops_funcs' /home/john/Ai-Thinker-WB2/toolchain/riscv/Linux/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/john/Ai-Thinker-WB2/components/network/wifi/lib/libwifi.a(mm.o):/home/blxu/customer/aithinker/source_bliu_aithinker_iot_stable/components/network/wifi/ip/lmac/src/mm/mm.c:1825: more undefined references to `g_bl_ops_funcs' follow collect2: error: ld returned 1 exit status make: *** [/home/john/Ai-Thinker-WB2/applications/protocols/http_server/simple_server/../../../../make_scripts_riscv/project.mk:483: /home/john/Ai-Thinker-WB2/applications/protocols/http_server/simple_server/build_out/main.elf] Error 1

Can anyone point me in the right direction?

Thank you! John