Arduino compiler error with v0.92

I get a compiler error when using version v0.92, I don't get any error with v0.91 with the same settings in the web based configuration. Arduino 1.6.9
Too many errors to post the whole log, here is the start:

Arduino: 1.6.9 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from sketch\Configuration.h:41:0,

from sketch\Repetier.h:198,

from C:\Users\barney\Google Drive\Synchronized\Projects\3dp\Firmwares\Repetier-Firmware\Repetier\Repetier.ino:151:

pins.h:49: error: operator '==' has no left operand

#if MOTHERBOARD == 0

^

pins.h:122: error: operator '==' has no left operand

#if MOTHERBOARD == 1

^

In file included from sketch\Configuration.h:41:0,

from sketch\Repetier.h:198,

from C:\Users\barney\Google Drive\Synchronized\Projects\3dp\Firmwares\Repetier-Firmware\Repetier\Repetier.ino:151:

pins.h:173: error: operator '==' has no left operand

#if MOTHERBOARD == 91

^

pins.h:231: error: operator '==' has no left operand

#if MOTHERBOARD == 2

^

pins.h:292: error: operator '==' has no left operand

#if MOTHERBOARD == 21

^

pins.h:353: error: operator '==' has no left operand

#if MOTHERBOARD == 33

^

pins.h:356: error: operator '==' has no left operand

#elif MOTHERBOARD == 34

^

pins.h:360: error: operator '==' has no left operand

#elif MOTHERBOARD == 35

^

pins.h:365: error: operator '==' has no left operand

#if MOTHERBOARD == 3 || MOTHERBOARD == 33 || MOTHERBOARD == 34 || MOTHERBOARD == 35

^

pins.h:572: error: operator '==' has no left operand

#if MOTHERBOARD == 37

^

pins.h:642: error: operator '==' has no left operand

#if MOTHERBOARD == 80

^

pins.h:719: error: operator '==' has no left operand

#if MOTHERBOARD == 4

^

pins.h:767: error: operator '==' has no left operand

#if MOTHERBOARD == 5 || MOTHERBOARD == 51

^

pins.h:840: error: operator '==' has no left operand

#if MOTHERBOARD == 62

^

pins.h:843: error: operator '==' has no left operand

#if MOTHERBOARD == 65

^

pins.h:848: error: operator '==' has no left operand

#if MOTHERBOARD == 6 || MOTHERBOARD == 62 || MOTHERBOARD == 65

^

pins.h:931: error: operator '==' has no left operand

#if MOTHERBOARD == 63

^

pins.h:996: error: operator '==' has no left operand

#if MOTHERBOARD == 66

^

pins.h:1084: error: operator '==' has no left operand

#if MOTHERBOARD == 7

^

pins.h:1151: error: operator '==' has no left operand

#if MOTHERBOARD == 71

^

pins.h:1221: error: operator '==' has no left operand

#if MOTHERBOARD == 72

^

pins.h:1286: error: operator '==' has no left operand

#if MOTHERBOARD == 73

^

pins.h:1356: error: operator '==' has no left operand

#if MOTHERBOARD == 8

^

pins.h:1415: error: operator '==' has no left operand

#if MOTHERBOARD == 88

^

pins.h:1491: error: operator '==' has no left operand

#if MOTHERBOARD == 92

^

pins.h:1568: error: operator '==' has no left operand

#if MOTHERBOARD == 9

^

pins.h:1627: error: operator '==' has no left operand

#if MOTHERBOARD == 12

^

pins.h:1740: error: operator '==' has no left operand

#if MOTHERBOARD == 70

^

pins.h:1847: error: operator '==' has no left operand

#if MOTHERBOARD == 101

^

pins.h:1931: error: operator '==' has no left operand

#if MOTHERBOARD == 701

^

pins.h:2036: error: operator '==' has no left operand

#if MOTHERBOARD == 702

^

pins.h:2122: error: operator '==' has no left operand

#if MOTHERBOARD == 703

^

pins.h:2243: error: operator '==' has no left operand

#if MOTHERBOARD == 301

^

pins.h:2334: error: operator '==' has no left operand

#if MOTHERBOARD == 316

^

pins.h:2348: error: operator '==' has no left operand

#if MOTHERBOARD == 315

^

pins.h:2354: error: operator '==' has no left operand

#if MOTHERBOARD == 314

^

pins.h:2696: error: operator '==' has no left operand

#if MOTHERBOARD == 501

^

pins.h:2759: error: operator '==' has no left operand

#if MOTHERBOARD == 999

^

pins.h:2786: error: operator '==' has no left operand

#if NUM_EXTRUDER==1

^

pins.h:2791: error: operator '<' has no left operand

#if NUM_EXTRUDER < 3

^

In file included from C:\Users\barney\Google Drive\Synchronized\Projects\3dp\Firmwares\Repetier-Firmware\Repetier\Repetier.ino:151:0:

Repetier.h:208: error: operator '||' has no left operand

#if SHARED_EXTRUDER_HEATER || MIXING_EXTRUDER

^

Repetier.h:235: error: operator '==' has no left operand

#if defined(FAST_COREXYZ) && !(DRIVE_SYSTEM==XY_GANTRY || DRIVE_SYSTEM==YX_GANTRY || DRIVE_SYSTEM==XZ_GANTRY || DRIVE_SYSTEM==ZX_GANTRY || DRIVE_SYSTEM==GANTRY_FAKE)

^

In file included from C:\Users\barney\Google Drive\Synchronized\Projects\3dp\Firmwares\Repetier-Firmware\Repetier\Repetier.ino:151:0:

Repetier.h:264: error: operator '&&' has no left operand

#if FEATURE_Z_PROBE && Z_PROBE_PIN < 0

^

Repetier.h:268: error: #if with no expression

#if DISTORTION_CORRECTION

^

Repetier.h:289: error: operator '==' has no left operand

#if (MOTHERBOARD == 501)

^

Repetier.h:303: error: operator '||' has no right operand

#if !defined(Z_PROBE_REPETITIONS) || Z_PROBE_REPETITIONS < 1

^

Repetier.h:320: error: operator '&&' has no right operand

#if !defined(ROD_RADIUS) && DRIVE_SYSTEM == DELTA

^


Comments

  • Check your Configuration.h. Looks like your variables are all empty.

    Can you say how you created the config if I'm right? Do you have for example javascript disabled?
  • I created the config from the web based configuration.  I don't have java disabled or anything.  I tried this 2x both with the same results.  Same settings, .92 throws compile errors, .91 compiles fine.  Thanks
  • Yeah, there is some kind of problem with the config.h file if I download the firmware with the "Download complete firmware incl. these settings" button - the values in defs are all missing.  If I use the "Download Configuration.h" button, the values are included in the defs.
  • Strange how many differences there are between the two files, let me know if you can't see the image and I'll put it somewhere else.
  • Looks like a problem, everything in the configuration string is gone.  I've tried this on 2 different PC's, same result.

    /* Below you will find the configuration string, that created this Configuration.h

    ========== Start configuration string ==========

    Complete firmware download on left, configuration only download on right:

  • The defect version has a configuration string null meaning it was not send to php backend to create template resulting in empty values. So much is clear.

    Problem is that I can not reproduce it. If I start the config tool and download zip I still get correct configuration.h, so the question is, do you have a valid configuration.h that when uploaded and downloaded results in the empty defective string? Maybe there is something confusing the parsers so they do something untypical. 
  • When I upload a configuration.h file, it looks like it works fine, all the defs look like they have values.  There are a lot of differences when I compare the two files.  For example, my #define USER_THERMISTORTABLE0 is gone...

    The files are in this folder
  • A othe ruser gave us the hint that the error occured on non chrome browsers. After reuploading it seems to work now. Strangely downloading configuration.h alone always worked. So hope it now also works for you.
  • I was using Chrome the whole time.  It looks like it is working now, thanks for fixing it.  Thanks for your work on this great software!

    Steve
  • I now also found the real reason! First login created no session and first download always failed and second worked as the session was now set. Now we create a session on load.
Sign In or Register to comment.