undefined reference to `swap_byte_32'
Posted: Wed Aug 14, 2019 6:18 am
linking is failing with the following output. Its odd, since swap_byte_32 is declared as inline in bt_defs.h. Let me know if there is a more I can do to investigate this further.
Code: Select all
/home/redengin/opt/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/bt/libbt.a(bta_jv_act.c.obj):(.literal.bta_jv_start_discovery_cback+0x10): undefined reference to `swap_byte_32'
/home/redengin/opt/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/bt/libbt.a(bta_jv_act.c.obj): in function `bta_jv_start_discovery_cback':
/home/redengin/opt/esp-idf/components/bt/host/bluedroid/bta/jv/bta_jv_act.c:868: undefined reference to `swap_byte_32'
/home/redengin/opt/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/bt/libbt.a(btc_util.c.obj):(.literal.uuid_to_string_legacy+0x4): undefined reference to `swap_byte_32'
/home/redengin/opt/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/bt/libbt.a(btc_util.c.obj): in function `ntohl':
/home/redengin/opt/esp-idf/components/bt/host/bluedroid/common/include/common/bt_defs.h:112: undefined reference to `swap_byte_32'
/home/redengin/opt/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/redengin/opt/esp-idf/components/bt/host/bluedroid/common/include/common/bt_defs.h:112: undefined reference to `swap_byte_32'
collect2: error: ld returned 1 exit status