2017-08-27 75 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