Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By pidloop
#59112 Posted to https://github.com/esp8266/Arduino/issues/2517 back in September but no response so will try here.

Basic Infos

Hardware

Hardware: ?ESP-12?
Core Version: ?2.1.0-rc2?

Description

Problem description

Settings in IDE

Module: Adafruit HUZZAH Feather
Flash Size: ?4MB/1MB?
CPU Frequency: ?80Mhz?
Flash Mode: ?qio?
Flash Frequency: ?40Mhz?
Upload Using: ?OTA / SERIAL?
Reset Method: ?ck / nodemcu?

Sketch

Code: Select all#include <stdlib.h>
#include <math.h>
#include <Arduino.h>

void setup() {
    float x = fmodf (10.0, 20.0);
}

void loop() {

}


Whenever I try to use fmodf() I get the following link error:

/Users/ecdowney/Library/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-ef_fmod.o):(.literal+0x0): undefined reference to __ieee754_remainderf' /Users/ecdowney/Library/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-ef_fmod.o): In function__ieee754_fmodf':
ef_fmod.c:(.text+0x36): undefined reference to `__ieee754_remainderf'
collect2: error: ld returned 1 exit status


Thanks.
User avatar
By McChubby007
#72453 Most likely the same or similar to these : Basically a disjoint between newlib and libgcc.

https://github.com/espressif/esp-idf/issues/83

https://github.com/espressif/newlib-esp ... emainder.c

There appears to be a fix :

https://github.com/esp8266/Arduino/issues/3216

Just google "__ieee754_remainder" and you will see lots of posts on it, it is not a new problem.