-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stable version libm.a compilation error #612
Comments
I get same problem. Arduino: 1.6.5 (Windows 7), Board: "Generic ESP8266 Module, Serial, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS)" j:/arduino-1.6.5-r2/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/lib\libm.a(lib_a-e_pow.o):(.literal+0xec): undefined reference to |
Experiencing this as well / windows 8.1 and Arduino 1.6.5-r2
|
I think the workaround is to delete the downloaded package (it's somewhere I will bump toolchain version for the next release. On Tue, Jul 28, 2015, 20:23 Shelby Merrick notifications@github.com wrote:
|
@igrr I just tried that out, removing the ESP8266 board from the Arduino IDE and then removing all ESP and xtensa references located in the Example from a gamma table generation loop: |
I'm able to recreate this issue, but only with floats inside of loops. Code to re-create is here - https://gist.github.com/forkineye/d05909c5c0184c7300ae. The toolchain is
|
This seems to refer to a fix for this issue, but not sure how to try |
Windows toolchain is not built using crosstool-NG, so probably not exactly On Sun, Aug 9, 2015, 00:41 krulkip notifications@github.com wrote:
|
I installed this libm.a file replacing the xisting one in 1.20.0-26-gb404fb9/xtensa-lx106-elf/lib/ and the error was solved. |
same problem here, i use the Stable version on Win7-64 Is it solved on Staging Version ? |
same problem on windows using the current Stable version and Arduino ide 1.6.5 |
@krulkip |
Testato or igrr, can you please tell me how exactly I use that corrected LIB? I have the same problem and am not able to solve it... |
Doh!! I was multiplexing and missed the note from krulkip - copied his older libm.a over, now compiles - we must have a bug in the package..... but this is a workaround!Same issue here, trying to port over a module that uses math - at compile I get: c:/users/timm/appdata/roaming/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/lib\libm.a(lib_a-w_sqrt.o):(.literal+0x4): undefined reference to I'm on 1.6.5 of the IDE, and did a remove/replace of the ESP8266 board support package - no change in displayed error message. Windows dev environment. Any idea how to mitigate this? |
@erhome00 worked on Win7-64 |
Thanks for the replies. It was my mistake...got to use the Stageing version and not the Stable version. The change was not yet migrated to the Stable... Now everything works just fine! Thanks for that nice fix! |
Just to confirm, changing the libm.a with the link supplied by Krulkip and the error with - undefined reference to `__ieee754_sqrt' is no more, code compiles and works. I had to change the file in this folder :: Arduino: 1.6.5 (Windows 7 x64), Generic ESP8266 Module, Serial, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS) |
I got the same problem and did exactly what krulkip wrote. |
c:/users/n_sam/appdata/roaming/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/lib\libm.a(lib_a-w_sqrt.o):(.literal+0x4): undefined reference to What causes. |
while i am downloading krulkip file, it was of 165KB, and previoius one is 2MB, and after replacing the file i am getting below error. Arduino: 1.6.5 (Windows 8.1), Board: "Generic ESP8266 Module, Serial, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS)" c:/users/shann/appdata/roaming/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/lib\libm.a: file not recognized: File format not recognized This report would have more information with Help me in resolving the issue |
EDIT: @mytot sorry for the confusion, please ignore the path suggestion above as it points to the same folder you have used, can only confirm that the file size of libm.a is 1051142 bytes |
hi! this is my problem Arduino:1.6.5 (Windows 8.1), Placa:"Generic ESP8266 Module, Serial, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS)" c:/users/diego/appdata/roaming/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/lib\libm.a(lib_a-w_sqrt.o):(.literal+0x8): undefined reference to This report would have more information with win 10 pro I try to use MPU6050 |
Got a couple issues... NOTE: I'm using the build from 11/10 (1.6.7)
If I go there (i.e."C:\Users\JerryHB\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-947-g39819f0\libraries\esp8266") I see only 1 directory "Examples" and Nothing else. No library.
It now compiles, But I'm still getting the error #1 above and a warning (i.e. "Warning: platform.txt from core 'ESP8266 Modules' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.") |
@krulkip |
The lib from krulkip works for all functions I need, except "fmod". It gives this error: c:/users/xxx/appdata/roaming/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/lib\libm.a(lib_a-e_fmod.o):(.literal+0x4): undefined reference to |
#1752 addresses |
Thanks to @krulkip and aniston for there comments which solve my problem @krulkip said: aniston said: I had to change the file in this folder :: Arduino: 1.6.5 (Windows 7 x64), Generic ESP8266 Module, Serial, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS) |
sorry @krulkip said: |
i am Facing the Error
I Did replace the file libm.a I am Trying to use the Adafruit Ultimate Gps Library with NodeMCU |
thanks Hopperpop, thats it :) |
I am having this same error, using Adafruit Ultimate GPS library with the ESP8266WiFi Using Arduino 1.8.2 on Windows 10; using Adafruit GPS Library 1.0.2. I've attempted to replace libm.a as suggested above, but still see the following compile-time error:
c:/users/kevin/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/lib\libm.a(lib_a-e_fmod.o): In function `__ieee754_fmod': e_fmod.c:(.text+0x48): undefined reference to '__ieee754_remainder' collect2.exe: error: ld returned 1 exit status Using library ESP8266WiFi at version 1.0 in folder: C:\Users\Kevin\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi |
I am getting a similar error for fmod: c:/users/cyberpalin/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/lib\libm.a(lib_a-e_fmod.o): In function `__ieee754_fmod': e_fmod.c:(.text+0x48): undefined reference to `__ieee754_remainder' collect2.exe: error: ld returned 1 exit status exit status 1 Thanks EDIT: Ok. Think I got my answer to this from xtensa error #3216 issue. Its only fixed in master branch? |
@mjs513 Staged for release means the issue was found before 2.3.0, and has been already fixed in master branch. So try latest git. |
@igrr would you please help me fixing this issue |
Compiling project using libm.a throws:
packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/lib\libm.a(lib_a-e_pow.o):(.literal+0xf8): undefined reference to `__ieee754_sqrt'
packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/lib\libm.a(lib_a-e_pow.o): In function
__ieee754_pow': d:\ivan\projects\arduinoesp\toolchain\dl\esp-newlib\build\xtensa-lx106-elf\newlib\libm\math/../../../../../newlib/libm/math/e_pow.c:164: undefined reference to
__ieee754_sqrt'collect2.exe: error: ld returned 1 exit status
Some hints how to deal with this? Thanks
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: