1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

Solved Having Firmware Issues

Discussion in 'Troubleshooting' started by mclemens7, Nov 30, 2017.

  1. mclemens7

    mclemens7 Member

    Joined:
    Jan 29, 2017
    Messages:
    165
    Likes Received:
    6
    Im having some firmware issues uploading it to an arduino, I get an fpos error then after that I got "expected unqualified-id before ')' token" error. Is there a way to fix this and yes im using 1.6.9 and 1.8.3 (I tried both)


    Arduino: 1.8.3 (Mac OS X), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

    In file included from sketch/Marlin.h:23:0,
    from sketch/BlinkM.cpp:5:
    sketch/pins.h:2564:0: warning: "X_MAX_PIN" redefined
    #define X_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/BlinkM.cpp:5:
    sketch/pins.h:445:0: note: this is the location of the previous definition
    #define X_MAX_PIN 2
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/BlinkM.cpp:5:
    sketch/pins.h:2565:0: warning: "Y_MAX_PIN" redefined
    #define Y_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/BlinkM.cpp:5:
    sketch/pins.h:451:0: note: this is the location of the previous definition
    #define Y_MAX_PIN 15
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/BlinkM.cpp:5:
    sketch/pins.h:2566:0: warning: "Z_MAX_PIN" redefined
    #define Z_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/BlinkM.cpp:5:
    sketch/pins.h:457:0: note: this is the location of the previous definition
    #define Z_MAX_PIN 19
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/ConfigurationStore.cpp:1:
    sketch/pins.h:2564:0: warning: "X_MAX_PIN" redefined
    #define X_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/ConfigurationStore.cpp:1:
    sketch/pins.h:445:0: note: this is the location of the previous definition
    #define X_MAX_PIN 2
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/ConfigurationStore.cpp:1:
    sketch/pins.h:2565:0: warning: "Y_MAX_PIN" redefined
    #define Y_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/ConfigurationStore.cpp:1:
    sketch/pins.h:451:0: note: this is the location of the previous definition
    #define Y_MAX_PIN 15
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/ConfigurationStore.cpp:1:
    sketch/pins.h:2566:0: warning: "Z_MAX_PIN" redefined
    #define Z_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/ConfigurationStore.cpp:1:
    sketch/pins.h:457:0: note: this is the location of the previous definition
    #define Z_MAX_PIN 19
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/MarlinSerial.cpp:23:
    sketch/pins.h:2564:0: warning: "X_MAX_PIN" redefined
    #define X_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/MarlinSerial.cpp:23:
    sketch/pins.h:445:0: note: this is the location of the previous definition
    #define X_MAX_PIN 2
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/MarlinSerial.cpp:23:
    sketch/pins.h:2565:0: warning: "Y_MAX_PIN" redefined
    #define Y_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/MarlinSerial.cpp:23:
    sketch/pins.h:451:0: note: this is the location of the previous definition
    #define Y_MAX_PIN 15
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/MarlinSerial.cpp:23:
    sketch/pins.h:2566:0: warning: "Z_MAX_PIN" redefined
    #define Z_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/MarlinSerial.cpp:23:
    sketch/pins.h:457:0: note: this is the location of the previous definition
    #define Z_MAX_PIN 19
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Marlin_main.cpp:30:
    sketch/pins.h:2564:0: warning: "X_MAX_PIN" redefined
    #define X_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Marlin_main.cpp:30:
    sketch/pins.h:445:0: note: this is the location of the previous definition
    #define X_MAX_PIN 2
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Marlin_main.cpp:30:
    sketch/pins.h:2565:0: warning: "Y_MAX_PIN" redefined
    #define Y_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Marlin_main.cpp:30:
    sketch/pins.h:451:0: note: this is the location of the previous definition
    #define Y_MAX_PIN 15
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Marlin_main.cpp:30:
    sketch/pins.h:2566:0: warning: "Z_MAX_PIN" redefined
    #define Z_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Marlin_main.cpp:30:
    sketch/pins.h:457:0: note: this is the location of the previous definition
    #define Z_MAX_PIN 19
    ^
    sketch/Marlin_main.cpp:2192:36: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
    LCD_MESSAGEPGM(MACHINE_NAME" "MSG_OFF".");
    ^
    In file included from sketch/SdFile.h:27:0,
    from sketch/cardreader.h:8,
    from sketch/Marlin_main.cpp:44:
    SdBaseFile.h:43: error: expected unqualified-id before ')' token
    fpos_t() : position(0), cluster(0) {}
    ^
    sketch/Marlin_main.cpp: In function 'void loop()':
    sketch/Marlin_main.cpp:588:49: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    card.openFile("robo~1.gco",true);
    ^
    sketch/Marlin_main.cpp: In function 'void set_bed_level_equation_lsq(double*)':
    sketch/Marlin_main.cpp:884:36: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    planeNormal.debug("planeNormal");
    ^
    exit status 1
    expected unqualified-id before ')' token

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

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    What firmware are you trying to compile?
     
  3. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
  4. mclemens7

    mclemens7 Member

    Joined:
    Jan 29, 2017
    Messages:
    165
    Likes Received:
    6
    I checked the forum changed everything that you told me but i get this error


    Arduino: 1.6.9 (Mac OS X), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

    In file included from sketch/Marlin.h:23:0,
    from sketch/BlinkM.cpp:5:
    sketch/pins.h:2564:0: warning: "X_MAX_PIN" redefined
    #define X_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/BlinkM.cpp:5:
    sketch/pins.h:445:0: note: this is the location of the previous definition
    #define X_MAX_PIN 2
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/BlinkM.cpp:5:
    sketch/pins.h:2565:0: warning: "Y_MAX_PIN" redefined
    #define Y_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/BlinkM.cpp:5:
    sketch/pins.h:451:0: note: this is the location of the previous definition
    #define Y_MAX_PIN 15
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/BlinkM.cpp:5:
    sketch/pins.h:2566:0: warning: "Z_MAX_PIN" redefined
    #define Z_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/BlinkM.cpp:5:
    sketch/pins.h:457:0: note: this is the location of the previous definition
    #define Z_MAX_PIN 19
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/ConfigurationStore.cpp:1:
    sketch/pins.h:2564:0: warning: "X_MAX_PIN" redefined
    #define X_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/ConfigurationStore.cpp:1:
    sketch/pins.h:445:0: note: this is the location of the previous definition
    #define X_MAX_PIN 2
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/ConfigurationStore.cpp:1:
    sketch/pins.h:2565:0: warning: "Y_MAX_PIN" redefined
    #define Y_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/ConfigurationStore.cpp:1:
    sketch/pins.h:451:0: note: this is the location of the previous definition
    #define Y_MAX_PIN 15
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/ConfigurationStore.cpp:1:
    sketch/pins.h:2566:0: warning: "Z_MAX_PIN" redefined
    #define Z_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/ConfigurationStore.cpp:1:
    sketch/pins.h:457:0: note: this is the location of the previous definition
    #define Z_MAX_PIN 19
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/MarlinSerial.cpp:23:
    sketch/pins.h:2564:0: warning: "X_MAX_PIN" redefined
    #define X_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/MarlinSerial.cpp:23:
    sketch/pins.h:445:0: note: this is the location of the previous definition
    #define X_MAX_PIN 2
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/MarlinSerial.cpp:23:
    sketch/pins.h:2565:0: warning: "Y_MAX_PIN" redefined
    #define Y_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/MarlinSerial.cpp:23:
    sketch/pins.h:451:0: note: this is the location of the previous definition
    #define Y_MAX_PIN 15
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/MarlinSerial.cpp:23:
    sketch/pins.h:2566:0: warning: "Z_MAX_PIN" redefined
    #define Z_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/MarlinSerial.cpp:23:
    sketch/pins.h:457:0: note: this is the location of the previous definition
    #define Z_MAX_PIN 19
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Marlin_main.cpp:30:
    sketch/pins.h:2564:0: warning: "X_MAX_PIN" redefined
    #define X_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Marlin_main.cpp:30:
    sketch/pins.h:445:0: note: this is the location of the previous definition
    #define X_MAX_PIN 2
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Marlin_main.cpp:30:
    sketch/pins.h:2565:0: warning: "Y_MAX_PIN" redefined
    #define Y_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Marlin_main.cpp:30:
    sketch/pins.h:451:0: note: this is the location of the previous definition
    #define Y_MAX_PIN 15
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Marlin_main.cpp:30:
    sketch/pins.h:2566:0: warning: "Z_MAX_PIN" redefined
    #define Z_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Marlin_main.cpp:30:
    sketch/pins.h:457:0: note: this is the location of the previous definition
    #define Z_MAX_PIN 19
    ^
    sketch/Marlin_main.cpp: In function 'void loop()':
    sketch/Marlin_main.cpp:588:49: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    card.openFile("robo~1.gco",true);
    ^
    sketch/Marlin_main.cpp: In function 'void set_bed_level_equation_lsq(double*)':
    sketch/Marlin_main.cpp:884:36: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    planeNormal.debug("planeNormal");
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/thermistortables.h:4,
    from sketch/Configuration.h:710,
    from /Users/iLab/Downloads/ROBO3DR1PLUSV2/ROBO3DR1PLUSV2.ino:33:
    sketch/pins.h:2564:0: warning: "X_MAX_PIN" redefined
    #define X_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/thermistortables.h:4,
    from sketch/Configuration.h:710,
    from /Users/iLab/Downloads/ROBO3DR1PLUSV2/ROBO3DR1PLUSV2.ino:33:
    sketch/pins.h:445:0: note: this is the location of the previous definition
    #define X_MAX_PIN 2
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/thermistortables.h:4,
    from sketch/Configuration.h:710,
    from /Users/iLab/Downloads/ROBO3DR1PLUSV2/ROBO3DR1PLUSV2.ino:33:
    sketch/pins.h:2565:0: warning: "Y_MAX_PIN" redefined
    #define Y_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/thermistortables.h:4,
    from sketch/Configuration.h:710,
    from /Users/iLab/Downloads/ROBO3DR1PLUSV2/ROBO3DR1PLUSV2.ino:33:
    sketch/pins.h:451:0: note: this is the location of the previous definition
    #define Y_MAX_PIN 15
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/thermistortables.h:4,
    from sketch/Configuration.h:710,
    from /Users/iLab/Downloads/ROBO3DR1PLUSV2/ROBO3DR1PLUSV2.ino:33:
    sketch/pins.h:2566:0: warning: "Z_MAX_PIN" redefined
    #define Z_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/thermistortables.h:4,
    from sketch/Configuration.h:710,
    from /Users/iLab/Downloads/ROBO3DR1PLUSV2/ROBO3DR1PLUSV2.ino:33:
    sketch/pins.h:457:0: note: this is the location of the previous definition
    #define Z_MAX_PIN 19
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Sd2Card.cpp:20:
    sketch/pins.h:2564:0: warning: "X_MAX_PIN" redefined
    #define X_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Sd2Card.cpp:20:
    sketch/pins.h:445:0: note: this is the location of the previous definition
    #define X_MAX_PIN 2
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Sd2Card.cpp:20:
    sketch/pins.h:2565:0: warning: "Y_MAX_PIN" redefined
    #define Y_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Sd2Card.cpp:20:
    sketch/pins.h:451:0: note: this is the location of the previous definition
    #define Y_MAX_PIN 15
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Sd2Card.cpp:20:
    sketch/pins.h:2566:0: warning: "Z_MAX_PIN" redefined
    #define Z_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Sd2Card.cpp:20:
    sketch/pins.h:457:0: note: this is the location of the previous definition
    #define Z_MAX_PIN 19
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/SdBaseFile.cpp:21:
    sketch/pins.h:2564:0: warning: "X_MAX_PIN" redefined
    #define X_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/SdBaseFile.cpp:21:
    sketch/pins.h:445:0: note: this is the location of the previous definition
    #define X_MAX_PIN 2
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/SdBaseFile.cpp:21:
    sketch/pins.h:2565:0: warning: "Y_MAX_PIN" redefined
    #define Y_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/SdBaseFile.cpp:21:
    sketch/pins.h:451:0: note: this is the location of the previous definition
    #define Y_MAX_PIN 15
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/SdBaseFile.cpp:21:
    sketch/pins.h:2566:0: warning: "Z_MAX_PIN" redefined
    #define Z_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/SdBaseFile.cpp:21:
    sketch/pins.h:457:0: note: this is the location of the previous definition
    #define Z_MAX_PIN 19
    ^
    SdBaseFile.cpp:297: error: prototype for 'void SdBaseFile::getpos(fpos_t*)' does not match any in class 'SdBaseFile'
    void SdBaseFile::getpos(fpos_t* pos) {
    ^
    In file included from sketch/SdBaseFile.cpp:24:0:
    SdBaseFile.h:199: error: candidate is: void SdBaseFile::getpos(fpos_t2*)
    void getpos(fpos_t2* pos);
    ^
    sketch/SdBaseFile.cpp: In member function 'int SdBaseFile::peek()':
    SdBaseFile.cpp:929: error: no matching function for call to 'SdBaseFile::getpos(fpos_t*)'
    getpos(&pos);
    ^
    sketch/SdBaseFile.cpp:929:14: note: candidate is:
    In file included from sketch/SdBaseFile.cpp:24:0:
    sketch/SdBaseFile.h:199:8: note: void SdBaseFile::getpos(fpos_t2*)
    void getpos(fpos_t2* pos);
    ^
    sketch/SdBaseFile.h:199:8: note: no known conversion for argument 1 from 'fpos_t* {aka long long int*}' to 'fpos_t2*'
    SdBaseFile.cpp:931: error: no matching function for call to 'SdBaseFile::setpos(fpos_t*)'
    if (c >= 0) setpos(&pos);
    ^
    sketch/SdBaseFile.cpp:931:26: note: candidate is:
    In file included from sketch/SdBaseFile.cpp:24:0:
    sketch/SdBaseFile.h:203:8: note: void SdBaseFile::setpos(fpos_t2*)
    void setpos(fpos_t2* pos);
    ^
    sketch/SdBaseFile.h:203:8: note: no known conversion for argument 1 from 'fpos_t* {aka long long int*}' to 'fpos_t2*'
    sketch/SdBaseFile.cpp: At global scope:
    SdBaseFile.cpp:1495: error: prototype for 'void SdBaseFile::setpos(fpos_t*)' does not match any in class 'SdBaseFile'
    void SdBaseFile::setpos(fpos_t* pos) {
    ^
    In file included from sketch/SdBaseFile.cpp:24:0:
    SdBaseFile.h:203: error: candidate is: void SdBaseFile::setpos(fpos_t2*)
    void setpos(fpos_t2* pos);
    ^
    exit status 1
    prototype for 'void SdBaseFile::getpos(fpos_t*)' does not match any in class 'SdBaseFile'

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

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    SdBaseFile.cpp:297: error: prototype for 'void SdBaseFile::getpos(fpos_t*)' does not match any in class 'SdBaseFile'
    void SdBaseFile::getpos(fpos_t* pos) {


    Typo. You have a syntax error in your typing.

    Did you edit the files yourself or use the ones I uploaded?
    Here they are attached to this thread as well. Extract them and overwrite your copies.

    Compilers are brutally unforgiving about spelling and white-spaces.
     

    Attached Files:

  6. mclemens7

    mclemens7 Member

    Joined:
    Jan 29, 2017
    Messages:
    165
    Likes Received:
    6
    Ok, Im sorry for the consistent b
    othering with this, but before you sent me those files I just deleted the unedited firmware and downloaded a new one. I then changed it (since i have the v6) so i changed one of the max temps to 310 and the the number for which thermister to use. I then went to upload then i got this error

    Arduino: 1.8.3 (Mac OS X), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

    In file included from sketch/Marlin.h:23:0,
    from sketch/BlinkM.cpp:5:
    sketch/pins.h:2564:0: warning: "X_MAX_PIN" redefined
    #define X_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/BlinkM.cpp:5:
    sketch/pins.h:445:0: note: this is the location of the previous definition
    #define X_MAX_PIN 2
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/BlinkM.cpp:5:
    sketch/pins.h:2565:0: warning: "Y_MAX_PIN" redefined
    #define Y_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/BlinkM.cpp:5:
    sketch/pins.h:451:0: note: this is the location of the previous definition
    #define Y_MAX_PIN 15
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/BlinkM.cpp:5:
    sketch/pins.h:2566:0: warning: "Z_MAX_PIN" redefined
    #define Z_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/BlinkM.cpp:5:
    sketch/pins.h:457:0: note: this is the location of the previous definition
    #define Z_MAX_PIN 19
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/ConfigurationStore.cpp:1:
    sketch/pins.h:2564:0: warning: "X_MAX_PIN" redefined
    #define X_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/ConfigurationStore.cpp:1:
    sketch/pins.h:445:0: note: this is the location of the previous definition
    #define X_MAX_PIN 2
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/ConfigurationStore.cpp:1:
    sketch/pins.h:2565:0: warning: "Y_MAX_PIN" redefined
    #define Y_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/ConfigurationStore.cpp:1:
    sketch/pins.h:451:0: note: this is the location of the previous definition
    #define Y_MAX_PIN 15
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/ConfigurationStore.cpp:1:
    sketch/pins.h:2566:0: warning: "Z_MAX_PIN" redefined
    #define Z_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/ConfigurationStore.cpp:1:
    sketch/pins.h:457:0: note: this is the location of the previous definition
    #define Z_MAX_PIN 19
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/MarlinSerial.cpp:23:
    sketch/pins.h:2564:0: warning: "X_MAX_PIN" redefined
    #define X_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/MarlinSerial.cpp:23:
    sketch/pins.h:445:0: note: this is the location of the previous definition
    #define X_MAX_PIN 2
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/MarlinSerial.cpp:23:
    sketch/pins.h:2565:0: warning: "Y_MAX_PIN" redefined
    #define Y_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/MarlinSerial.cpp:23:
    sketch/pins.h:451:0: note: this is the location of the previous definition
    #define Y_MAX_PIN 15
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/MarlinSerial.cpp:23:
    sketch/pins.h:2566:0: warning: "Z_MAX_PIN" redefined
    #define Z_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/MarlinSerial.cpp:23:
    sketch/pins.h:457:0: note: this is the location of the previous definition
    #define Z_MAX_PIN 19
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Marlin_main.cpp:30:
    sketch/pins.h:2564:0: warning: "X_MAX_PIN" redefined
    #define X_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Marlin_main.cpp:30:
    sketch/pins.h:445:0: note: this is the location of the previous definition
    #define X_MAX_PIN 2
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Marlin_main.cpp:30:
    sketch/pins.h:2565:0: warning: "Y_MAX_PIN" redefined
    #define Y_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Marlin_main.cpp:30:
    sketch/pins.h:451:0: note: this is the location of the previous definition
    #define Y_MAX_PIN 15
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Marlin_main.cpp:30:
    sketch/pins.h:2566:0: warning: "Z_MAX_PIN" redefined
    #define Z_MAX_PIN -1
    ^
    In file included from sketch/Marlin.h:23:0,
    from sketch/Marlin_main.cpp:30:
    sketch/pins.h:457:0: note: this is the location of the previous definition
    #define Z_MAX_PIN 19
    ^
    sketch/Marlin_main.cpp:2192:36: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
    LCD_MESSAGEPGM(MACHINE_NAME" "MSG_OFF".");
    ^
    In file included from sketch/SdFile.h:27:0,
    from sketch/cardreader.h:8,
    from sketch/Marlin_main.cpp:44:
    SdBaseFile.h:38: error: using typedef-name 'fpos_t' after 'struct'
    struct fpos_t {
    ^
    In file included from sketch/Marlin.h:10:0,
    from sketch/Marlin_main.cpp:30:
    /Users/iLab/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/avr/include/stdio.h:950:33: note: 'fpos_t' has a previous declaration here
    __extension__ typedef long long fpos_t;
    ^
    sketch/Marlin_main.cpp: In function 'void loop()':
    sketch/Marlin_main.cpp:588:49: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    card.openFile("robo~1.gco",true);
    ^
    sketch/Marlin_main.cpp: In function 'void set_bed_level_equation_lsq(double*)':
    sketch/Marlin_main.cpp:884:36: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    planeNormal.debug("planeNormal");
    ^
    exit status 1
    using typedef-name 'fpos_t' after 'struct'

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

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    That is the same error @mark tomlinson already told you about. There is a construct labeled fpos_t that was changed by a library used in the Arduino compiler for version 1.6.8 and newer. Robo was too lazy to change the construct so everyone using the current compiler gets the same error message. Change the lines you have already been given and you will be able to compile the firmware.
     
  8. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Even after extracting that source you MUST replace the two files I uploaded into the ones that came with the source... or you will continue to get that error. You really have these steps.
    1) download and extract the firmware source
    2) make your edits to configuration.h
    3) extract the two files I gave you to replace the ones you have
    4) then compile
     
    Chetan Jariwala likes this.

Share This Page