Author Topic: Moteino M0 compile error  (Read 1666 times)

nielbd

  • NewMember
  • *
  • Posts: 6
Moteino M0 compile error
« on: June 18, 2018, 03:32:08 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: Moteino M0 compile error
« Reply #1 on: June 18, 2018, 03:40:43 PM »
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

  • NewMember
  • *
  • Posts: 6
Re: Moteino M0 compile error
« Reply #2 on: June 29, 2018, 11:00:46 AM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: Moteino M0 compile error
« Reply #3 on: June 29, 2018, 12:58:55 PM »
Choose Arduino Zero as the target board, and try to compile.
What do you get?

perky

  • Hero Member
  • *****
  • Posts: 873
  • Country: gb
Re: Moteino M0 compile error
« Reply #4 on: June 29, 2018, 02:42:51 PM »
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.
« Last Edit: June 29, 2018, 03:19:52 PM by perky »