2017-08-27 99 views
-1

我試圖在Linux上構建iotivity受限西風口ESP32但得到以下錯誤iotivity受限西風口,無法在Linux上構建

drivers/built-in.o: In function `esp32_uart_init': 
/home/toolchains/zephyr/drivers/serial/uart_esp32.c:46:(.text.esp32_uart_init+0x3): dangerous relocation: call8: call target out of range: uartAttach 
drivers/built-in.o: In function `esp32_uart_tx': 
/home/toolchains/zephyr/drivers/serial/uart_esp32.c:19:(.text.esp32_uart_tx+0x9): dangerous relocation: call8: call target out of range: uart_tx_one_char 
collect2: error: ld returned 1 exit status 
/home/toolchains/zephyr/Makefile:878: recipe for target 'zephyr_prebuilt.elf' failed 
make[2]: *** [zephyr_prebuilt.elf] Error 1 
make[2]: Leaving directory '/home/projects/iotivity-constrained/port/zephyr/outdir/esp32' 
Makefile:178: recipe for target 'sub-make' failed 
make[1]: *** [sub-make] Error 2 
make[1]: Leaving directory '/home/toolchains/zephyr' 
/home/toolchains/zephyr/Makefile.inc:82: recipe for target 'all' failed 
make: *** [all] Error 2 

我可以分開,但不iotivity建設和風和ESP32 T-受約束。我試圖添加-mlongcalls但沒有成功。

有什麼建議嗎?

+0

請編輯您的Q可包括'makefile',或至少makefile'的'最小部分產生這些錯誤。祝你好運。 – shellter

回答

0

在/ zephyr/drivers/serial/Makefile中添加flag -mlongcalls。

參考文獻: IOT-2650