Moteino M0 compile error

Started by nielbd, June 18, 2018, 03:32:08 PM

nielbd

Hi guys.

I've got a bit of code that compiles on the Moteino R6 but when selecting the Moteino M0 it gives the following error"exit status 1
'byte index' redeclared as different kind of
symbol"

What would cause this type of error?

Thanks in advance.

Felix

I don't know. Without more detail it's a guessing game at best.
Is this in Arduino IDE? Any more details?
What is the code causing this? Is it some library or ... ?

nielbd

Arduino: 1.8.5 (Windows XP), Board: "Moteino M0"

In file included from c:\documents and settings\computer.server.000\local settings\application data\arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1\arm-none-eabi\include\c++\4.8.3\cstddef:41:0,

                 from C:\Documents and Settings\computer.SERVER.000\Local Settings\Application Data\Arduino15\packages\Moteino\hardware\samd\1.1.0\cores\arduino/Uart.h:25,

                 from C:\Documents and Settings\computer.SERVER.000\Local Settings\Application Data\Arduino15\packages\Moteino\hardware\samd\1.1.0\variants\moteino_zero/variant.h:45,

                 from C:\Documents and Settings\computer.SERVER.000\Local Settings\Application Data\Arduino15\packages\Moteino\hardware\samd\1.1.0\cores\arduino/delay.h:23,

                 from C:\Documents and Settings\computer.SERVER.000\Local Settings\Application Data\Arduino15\packages\Moteino\hardware\samd\1.1.0\cores\arduino/Arduino.h:81,

                 from sketch\sketch_jun29a.ino.cpp:1:

c:\documents and settings\computer.server.000\local settings\application data\arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1\arm-none-eabi\include\c++\4.8.3\arm-none-eabi\armv6-m\bits\c++config.h:426:29: fatal error: bits/os_defines.h: No such file or directory

#include <bits/os_defines.h>

                             ^

compilation terminated.

exit status 1
Error compiling for board Moteino M0.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


It gives this error on any code...

Felix

Choose Arduino Zero as the target board, and try to compile.
What do you get?

perky

#4
It seems to be a compiler installation problem in not recognizing paths, similar problem to this. It may be specific to XP installs:
https://github.com/esp8266/Arduino/issues/2250

A suggested solution was to install a portable version of Arduino IDE:
https://www.arduino.cc/en/Guide/PortableIDE

Mark.