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

Answered Firmware Update error

Discussion in 'Troubleshooting' started by Adam Ferch, Jul 31, 2017.

  1. Adam Ferch

    Adam Ferch New Member

    Joined:
    May 3, 2017
    Messages:
    4
    Likes Received:
    0
    Can anyone help me out with this?

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

    failed MSpanList_Insert 0x31e018 0xbc16bfcdeac1 0x0
    fatal error: MSpanList_Insert

    runtime stack:
    runtime.MSpanList_Insert(0x2c7888, 0x31e018)
    /usr/local/go/src/runtime/mheap.c:692 +0x8f
    runtime.MHeap_Alloc(0x2c6d20, 0x10, 0x100000000, 0x315898)
    /usr/local/go/src/runtime/mheap.c:240 +0x66

    goroutine 1 [running]:
    runtime.switchtoM()
    /usr/local/go/src/runtime/asm_amd64.s:198 fp=0xc20833d1f0 sp=0xc20833d1e8
    runtime.mallocgc(0x1f2c1, 0x0, 0xc200000003, 0x3)
    /usr/local/go/src/runtime/malloc.go:199 +0x9f3 fp=0xc20833d2a0 sp=0xc20833d1f0
    runtime.rawstring(0x1f2c1, 0x0, 0x0, 0x0, 0x0, 0x0)
    /usr/local/go/src/runtime/string.go:195 +0x93 fp=0xc20833d2d0 sp=0xc20833d2a0
    runtime.slicebytetostring(0xc208388000, 0x1f2c1, 0x1fe00, 0x0, 0x0)
    /usr/local/go/src/runtime/string.go:69 +0x4b fp=0xc20833d360 sp=0xc20833d2d0
    arduino.cc/builder/builder_utils.ExecRecipeCollectStdErr(0xc208356810, 0x1efb70, 0x15, 0x1, 0x319dc8, 0x2c09a0, 0x0, 0x0, 0x0, 0x0)
    /Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder_utils/utils.go:341 +0x22c fp=0xc20833d418 sp=0xc20833d360
    arduino.cc/builder.(*GCCPreprocRunnerForDiscoveringIncludes).Run(0xc208339180, 0xc20806a000, 0x0, 0x0)
    /Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/gcc_preproc_runner.go:91 +0x303 fp=0xc20833d528 sp=0xc20833d418
    arduino.cc/builder.runCommand(0xc20806a000, 0x31b3d0, 0xc208339180, 0x0, 0x0)
    /Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/container_find_includes.go:94 +0x6c fp=0xc20833d560 sp=0xc20833d528
    arduino.cc/builder.findIncludesUntilDone(0xc20806a000, 0xc208184180, 0x71, 0x0, 0x0)
    /Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/container_find_includes.go:112 +0x371 fp=0xc20833d6c0 sp=0xc20833d560
    arduino.cc/builder.(*ContainerFindIncludes).Run(0x2c09a0, 0xc20806a000, 0x0, 0x0)
    /Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/container_find_includes.go:74 +0x717 fp=0xc20833d8e8 sp=0xc20833d6c0
    arduino.cc/builder.runCommands(0xc20806a000, 0xc20833daf8, 0x1c, 0x1c, 0xc208038001, 0x0, 0x0)
    /Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder.go:181 +0x139 fp=0xc20833d978 sp=0xc20833d8e8
    arduino.cc/builder.(*Builder).Run(0xc20833dce0, 0xc20806a000, 0x0, 0x0)
    /Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder.go:116 +0xe8e fp=0xc20833dcc0 sp=0xc20833d978
    arduino.cc/builder.RunBuilder(0xc20806a000, 0x0, 0x0)
    /Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder.go:212 +0x49 fp=0xc20833dce8 sp=0xc20833dcc0
    main.main()
    /Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/arduino-builder/main.go:316 +0x171b fp=0xc20833df98 sp=0xc20833dce8
    runtime.main()
    /usr/local/go/src/runtime/proc.go:63 +0xf3 fp=0xc20833dfe0 sp=0xc20833df98
    runtime.goexit()
    /usr/local/go/src/runtime/asm_amd64.s:2232 +0x1 fp=0xc20833dfe8 sp=0xc20833dfe0
    arduino-builder returned 2
    Error compiling for board Arduino/Genuino Mega or Mega 2560.

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

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
  3. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Looks like an Arduino compiler issue on the Mac. If you read that thread I referenced you eventually end up to a bug on the Arduino compiler itself: Read-only file system on Mac Os Sierra #5264

    The one who filed the bug verified a fix in a later release...
     
  4. Adam Ferch

    Adam Ferch New Member

    Joined:
    May 3, 2017
    Messages:
    4
    Likes Received:
    0
    Thanks Mark,

    Looks like 1.6.12 might fix the issue. Fingers crossed.
     
  5. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Let us know. While we are not full of Mac users, we do have some :)
     
  6. Adam Ferch

    Adam Ferch New Member

    Joined:
    May 3, 2017
    Messages:
    4
    Likes Received:
    0
    Still seems not to be working.

    Arduino: 1.6.12 (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:
    /Applications/Arduino.app/Contents/Java/hardware/tools/avr/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. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Search fhe forum for fpos_t that s
    Fix is listed in another thread

    Sent from my SAMSUNG-SM-G930A using Tapatalk
     
  8. Adam Ferch

    Adam Ferch New Member

    Joined:
    May 3, 2017
    Messages:
    4
    Likes Received:
    0
    I had to pull out an old PC laptop, I got the Firmware to update but still having issues with z-offset.
     
  9. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Well, I am not sure what you were trying to do. If you have an issue with Z offset I trust you have another thread detailing that?
     

Share This Page