"Error compiling for board seeduino wio terminal"?

#include <Adafruit_PWMServoDriver.h>

#include <Servo.h>
Servo myservo;

int pos = 0;

void setup() {
myservo.attach(D0); //Connect servo to Grove Digital Port
}

void loop() {
for (pos = 0; pos <= 179; pos += 1) {
// in steps of 1 degree
myservo.write(pos);
delay(15);
}
for (pos = 179; pos >= 0; pos -= 1) {
myservo.write(pos);
delay(15);
}
}

The error message is below:

/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp: In function ‘void Servo_Handler(timer16_Sequence_t, Tc*, uint8_t, uint8_t)’:
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:44:60: error: ‘volatile struct TC_STATUS_Type::’ has no member named ‘SYNCBUSY’
#define WAIT_TC16_REGS_SYNC(x) while(x->COUNT16.STATUS.bit.SYNCBUSY);
^
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:64:9: note: in expansion of macro ‘WAIT_TC16_REGS_SYNC’
WAIT_TC16_REGS_SYNC(tc)
^~~~~~~~~~~~~~~~~~~
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:44:60: error: ‘volatile struct TC_STATUS_Type::’ has no member named ‘SYNCBUSY’
#define WAIT_TC16_REGS_SYNC(x) while(x->COUNT16.STATUS.bit.SYNCBUSY);
^
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:81:9: note: in expansion of macro ‘WAIT_TC16_REGS_SYNC’
WAIT_TC16_REGS_SYNC(tc)
^~~~~~~~~~~~~~~~~~~
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:44:60: error: ‘volatile struct TC_STATUS_Type::’ has no member named ‘SYNCBUSY’
#define WAIT_TC16_REGS_SYNC(x) while(x->COUNT16.STATUS.bit.SYNCBUSY);
^
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:84:9: note: in expansion of macro ‘WAIT_TC16_REGS_SYNC’
WAIT_TC16_REGS_SYNC(tc)
^~~~~~~~~~~~~~~~~~~
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:44:60: error: ‘volatile struct TC_STATUS_Type::’ has no member named ‘SYNCBUSY’
#define WAIT_TC16_REGS_SYNC(x) while(x->COUNT16.STATUS.bit.SYNCBUSY);
^
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:91:9: note: in expansion of macro ‘WAIT_TC16_REGS_SYNC’
WAIT_TC16_REGS_SYNC(tc)
^~~~~~~~~~~~~~~~~~~
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:44:60: error: ‘volatile struct TC_STATUS_Type::’ has no member named ‘SYNCBUSY’
#define WAIT_TC16_REGS_SYNC(x) while(x->COUNT16.STATUS.bit.SYNCBUSY);
^
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:99:9: note: in expansion of macro ‘WAIT_TC16_REGS_SYNC’
WAIT_TC16_REGS_SYNC(tc)
^~~~~~~~~~~~~~~~~~~
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp: In function ‘void resetTC(Tc*)’:
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:44:60: error: ‘volatile struct TC_STATUS_Type::’ has no member named ‘SYNCBUSY’
#define WAIT_TC16_REGS_SYNC(x) while(x->COUNT16.STATUS.bit.SYNCBUSY);
^
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:112:5: note: in expansion of macro ‘WAIT_TC16_REGS_SYNC’
WAIT_TC16_REGS_SYNC(TCx)
^~~~~~~~~~~~~~~~~~~
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:44:60: error: ‘volatile struct TC_STATUS_Type::’ has no member named ‘SYNCBUSY’
#define WAIT_TC16_REGS_SYNC(x) while(x->COUNT16.STATUS.bit.SYNCBUSY);
^
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:116:5: note: in expansion of macro ‘WAIT_TC16_REGS_SYNC’
WAIT_TC16_REGS_SYNC(TCx)
^~~~~~~~~~~~~~~~~~~
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp: In function ‘void _initISR(Tc*, uint8_t, uint32_t, IRQn_Type, uint8_t, uint8_t)’:
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:123:11: error: ‘struct Gclk’ has no member named ‘CLKCTRL’; did you mean ‘GENCTRL’?
GCLK->CLKCTRL.reg = (uint16_t) (GCLK_CLKCTRL_CLKEN | GCLK_CLKCTRL_GEN_GCLK0 | GCLK_CLKCTRL_ID(gcmForTimer));
^~~~~~~
GENCTRL
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:123:37: error: ‘GCLK_CLKCTRL_CLKEN’ was not declared in this scope
GCLK->CLKCTRL.reg = (uint16_t) (GCLK_CLKCTRL_CLKEN | GCLK_CLKCTRL_GEN_GCLK0 | GCLK_CLKCTRL_ID(gcmForTimer));
^~~~~~~~~~~~~~~~~~
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:123:37: note: suggested alternative: ‘GCLK_CLKCTRL_IDs’
GCLK->CLKCTRL.reg = (uint16_t) (GCLK_CLKCTRL_CLKEN | GCLK_CLKCTRL_GEN_GCLK0 | GCLK_CLKCTRL_ID(gcmForTimer));
^~~~~~~~~~~~~~~~~~
GCLK_CLKCTRL_IDs
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:123:58: error: ‘GCLK_CLKCTRL_GEN_GCLK0’ was not declared in this scope
GCLK->CLKCTRL.reg = (uint16_t) (GCLK_CLKCTRL_CLKEN | GCLK_CLKCTRL_GEN_GCLK0 | GCLK_CLKCTRL_ID(gcmForTimer));
^~~~~~~~~~~~~~~~~~~~~~
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:123:58: note: suggested alternative: ‘GCLK_PCHCTRL_GEN_GCLK0’
GCLK->CLKCTRL.reg = (uint16_t) (GCLK_CLKCTRL_CLKEN | GCLK_CLKCTRL_GEN_GCLK0 | GCLK_CLKCTRL_ID(gcmForTimer));
^~~~~~~~~~~~~~~~~~~~~~
GCLK_PCHCTRL_GEN_GCLK0
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:123:83: error: ‘GCLK_CLKCTRL_ID’ was not declared in this scope
GCLK->CLKCTRL.reg = (uint16_t) (GCLK_CLKCTRL_CLKEN | GCLK_CLKCTRL_GEN_GCLK0 | GCLK_CLKCTRL_ID(gcmForTimer));
^~~~~~~~~~~~~~~
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:123:83: note: suggested alternative: ‘GCLK_CLKCTRL_IDs’
GCLK->CLKCTRL.reg = (uint16_t) (GCLK_CLKCTRL_CLKEN | GCLK_CLKCTRL_GEN_GCLK0 | GCLK_CLKCTRL_ID(gcmForTimer));
^~~~~~~~~~~~~~~
GCLK_CLKCTRL_IDs
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:124:18: error: ‘struct Gclk’ has no member named ‘STATUS’
while (GCLK->STATUS.bit.SYNCBUSY);
^~~~~~
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:134:30: error: ‘TC_CTRLA_WAVEGEN_NPWM’ was not declared in this scope
tc->COUNT16.CTRLA.reg |= TC_CTRLA_WAVEGEN_NPWM;
^~~~~~~~~~~~~~~~~~~~~
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:134:30: note: suggested alternative: ‘TC_WAVE_WAVEGEN_NPWM’
tc->COUNT16.CTRLA.reg |= TC_CTRLA_WAVEGEN_NPWM;
^~~~~~~~~~~~~~~~~~~~~
TC_WAVE_WAVEGEN_NPWM
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:44:60: error: ‘volatile struct TC_STATUS_Type::’ has no member named ‘SYNCBUSY’
#define WAIT_TC16_REGS_SYNC(x) while(x->COUNT16.STATUS.bit.SYNCBUSY);
^
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:141:5: note: in expansion of macro ‘WAIT_TC16_REGS_SYNC’
WAIT_TC16_REGS_SYNC(tc)
^~~~~~~~~~~~~~~~~~~
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:44:60: error: ‘volatile struct TC_STATUS_Type::’ has no member named ‘SYNCBUSY’
#define WAIT_TC16_REGS_SYNC(x) while(x->COUNT16.STATUS.bit.SYNCBUSY);
^
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:145:5: note: in expansion of macro ‘WAIT_TC16_REGS_SYNC’
WAIT_TC16_REGS_SYNC(tc)
^~~~~~~~~~~~~~~~~~~
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:44:60: error: ‘volatile struct TC_STATUS_Type::’ has no member named ‘SYNCBUSY’
#define WAIT_TC16_REGS_SYNC(x) while(x->COUNT16.STATUS.bit.SYNCBUSY);
^
/Users/anmolbaruwal/Documents/Arduino/libraries/Servo/src/samd/Servo.cpp:159:5: note: in expansion of macro ‘WAIT_TC16_REGS_SYNC’
WAIT_TC16_REGS_SYNC(tc)
^~~~~~~~~~~~~~~~~~~
Multiple libraries were found for “Servo.h”
Used: /Users/anmolbaruwal/Documents/Arduino/libraries/Servo
Not used: /Users/anmolbaruwal/Documents/Arduino/libraries/Servo-master
Not used: /private/var/folders/2g/f0w4vjh51dq27j_m2k5p3pp80000gn/T/AppTranslocation/CD2CDC8A-4EAB-4DA0-B2D3-3FF5EA2FCF60/d/Arduino 2.app/Contents/Java/libraries/Servo
exit status 1
Error compiling for board Seeeduino Wio Terminal.

I found a reply to your similar question in Arduino forum. You can see that it should be the same question as you.

The “Multiple libraries found for” message is just some helpful information the Arduino IDE provides. Generally, you can safely ignore the “Multiple libraries found for” messages. The only time you need to pay attention to it is when the Arduino IDE picked a different library than the one you had intended.

In this case, the “Multiple libraries found for” messages are actually not helpful at all because there is a bug in Arduino IDE 1.8.10 that causes it to display “Multiple libraries found for” messages even when there were no multiple libraries. You’ll know the legitimate “Multiple libraries found for” messages because they’ll show the path to a library that was not used. The false “Multiple libraries found for” messages only show the path to the library that was used.

I hope this information is useful to you.

  1. Select File > Preferences from the Arduino IDE menus.
  2. Check the box next to “Show verbose output during: ☐ compilation”.
  3. Click the OK button.
  4. Select Sketch > Verify/Compile from the Arduino IDE menus.
  5. Wait for the compilation to end.
  6. Right click on the black “Output” pane at the bottom of the Arduino IDE 2.x window.
  7. From the context menu, click Copy All.
  8. Open a forum reply here by clicking the Reply button.
  9. Click the </> icon on the post composer toolbar.
  10. This will add the forum’s code block markup (```) to your reply to make sure the error messages are correctly formatted.
  11. Press Ctrl+V.
  12. This will paste 1 the compilation output into the code block.
  13. Move the cursor outside of the code tags before you add any additional text to your reply.
  14. Click the Reply button to post the output.

Hope This Works,
Peter