Error Compiling when using Scheduler in my program

I wanted to blink 4 LEDs with different frequencies at the same time using the #include<Scheduler.h>. However it couldn’t compile. Below is my coding and the error messages.

CODING:

#include <Scheduler.h>
// Include Scheduler since we want to manage multiple tasks.

int led = 2;
int led1 = 3;
int led2 = 4;
int led3 = 5;

void setup() {
Serial.begin(9600);

// Setup the 4 pins as OUTPUT
pinMode(led, OUTPUT);
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);

// Add “loop2” and “loop3” to scheduling.
// “loop” is always started by default.
Scheduler.startLoop(loop2);
Scheduler.startLoop(loop3);
Scheduler.startLoop(loop4);
}

// Task no.1: blink LED with 8Hz delay.FORWARD
void loop() {
digitalWrite(led, HIGH);

// IMPORTANT:
// When multiple tasks are running ‘delay’ passes control to
// other tasks while waiting and guarantees they get executed.
delay(125);

digitalWrite(led, LOW);
delay(125);
}

// Task no.2: blink LED with 13Hz delay.BACKWARD
void loop2() {
digitalWrite(led2, HIGH);
delay(76.92307692);
digitalWrite(led2, LOW);
delay(76.92307692);
}

// Task no.3: blink LED with 10Hz delay.LEFT

void loop3() {
digitalWrite(led3, HIGH);
delay(100);
digitalWrite(led3, LOW);
delay(100);
}
// Task no.4: blink LED with 11Hz delay.RIGHT

void loop4() {
digitalWrite(led3, HIGH);
delay(90.09090991);
digitalWrite(led3, LOW);
delay(90.09090991);

// IMPORTANT:
// We must call ‘yield’ at a regular basis to pass
// control to other tasks.
yield();
}

ERROR MESSAGES:

WARNING: library Scheduler claims to run on (sam, samd) architecture(s) and may be incompatible with your current board which runs on (avr) architecture(s).
C:\Users\Aspire\AppData\Local\Temp\cc25tKU5.s: Assembler messages:

C:\Users\Aspire\AppData\Local\Temp\cc25tKU5.s:1059: Error: constant value required

lto-wrapper.exe: fatal error: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-gcc returned 1 exit status

compilation terminated.

c:/program files/windowsapps/arduinollc.arduinoide_1.8.15.0_x86__mdqgnx93n4wtt/hardware/tools/avr/bin/…/lib/gcc/avr/5.4.0/…/…/…/…/avr/bin/ld.exe: error: lto-wrapper failed

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino/Genuino Uno.

Looks pretty clear to me.
What's the problem?

Please remember to use code tags when posting code

the error is clear:
"WARNING: library Scheduler claims to run on (sam, samd) architecture(s) and may be incompatible with your current board which runs on (avr) architecture(s)."

what board are you using?

you may also want to study this link:
Several things at the same time (http://forum.arduino.cc/index.php?topic=223286.0)

sherzaad:
what board are you using?

Error compiling for board Arduino/Genuino Uno.

that was a rhetorical question! :wink: