完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
使用了lua的库,编译出现 dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: nan错误
ESP_IDF4.3 cmd.exe /C "cd . && J:IOTEspress.espressiftoolsxtensa-esp32-elfesp-2020r3-8.4.0xtensa-esp32-elfbinxtensa-esp32-elf-g++.exe -mlongcalls -Wno-frame-address @CMakeFileslua_demo_input.elf.rsp -o lua_demo_input.elf && cd ." j:/iot/espress/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/u_app/libu_app.a(lmathlib.c.obj): in function `math_tan': j:esp32lua_demoesp32_lualua_demo_inputbuild/../components/u_app/lua-5.4.2/src/lmathlib.c:51:(.text.math_tan+0xa): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: tan j:/iot/espress/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: j:/iot/espress/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/lib/esp32-psram/no-rttilibm.a(lib_a-w_acos.o): in function `acos': /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libm/math/w_acos.c:94:(.text+0x5e): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: nan j:/iot/espress/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: j:/iot/espress/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/lib/esp32-psram/no-rttilibm.a(lib_a-w_asin.o): in function `asin': /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libm/math/w_asin.c:98:(.text+0x5e): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: nan j:/iot/espress/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: j:/iot/espress/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/lib/esp32-psram/no-rttilibm.a(lib_a-w_log.o): in function `log': /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libm/math/w_log.c:98:(.text+0xc7): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: nan j:/iot/espress/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: j:/iot/espress/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/lib/esp32-psram/no-rttilibm.a(lib_a-w_log10.o): in function `log10': /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libm/math/w_log10.c:96:(.text+0xc7): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: nan j:/iot/espress/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: j:/iot/espress/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/lib/esp32-psram/no-rttilibm.a(lib_a-e_pow.o): in function `__ieee754_pow': /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libm/math/e_pow.c:125:(.text+0x66): dangerous relocation: windowed longcall crosses 1GB boundary; return may fail: nan collect2.exe: error: ld returned 1 exit status ninja: build stopped: subcommand failed. ninja failed with exit code 1 从以上信息看,貌似是math库tan等函数对参数的验证问题,应该可以通过编译选项修改,不知道有没有遇到并解决的 |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
541浏览 6评论
454浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
434浏览 5评论
436浏览 4评论
409浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-18 20:21 , Processed in 0.752928 second(s), Total 76, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号