chipKIT® Development Platform

Inspired by Arduino™

java.io.IOException: Cannot run program "avr-size"

Created Sat, 04 Jun 2011 18:19:29 +0000 by Jacob Christ


Jacob Christ

Sat, 04 Jun 2011 18:19:29 +0000

I got the IDE to launch but the simplest code will not compile...

I get the following message:

Couldn't determine program size: java.io.IOException: Cannot run program "avr-size": java.io.IOException: error=2, No such file or directory0

grrr... Anyone?

Jacob


ricklon

Sat, 04 Jun 2011 21:15:58 +0000

A quick list of things to do:

  1. Check if your FTDI drivers are installed
  2. Switch the board from Arduino to Max32 ir Uno32 see if it compiles for one but not the other
  3. Do a shift-click compile and look at the extended information see if there is some information listed
  4. From the extended information paste where it fails here, I can check it
  5. Check the permission by pasting the compile line on the command line while the software is open after a compile.

Report results back here. I'll be able to help.


Jacob Christ

Sat, 04 Jun 2011 21:49:47 +0000

Rick or whomever, thanks for your help in advance...

  1. Check if your FTDI drivers are installed

I'm pretty sure they are, I've been using FTDI chips for years on this machine.

  1. Switch the board from Arduino to Max32 ir Uno32 see if it compiles for one but not the other

Had already tried that, no dice. Same error on both.

  1. Do a shift-click compile and look at the extended information see if there is some information listed

I looked, nothing that helped me.

  1. From the extended information paste where it fails here, I can check it

Output from the verbose compile below.

  1. Check the permission by pasting the compile line on the command line while the software is open after a compile.

I'm running the app as me and all the code and app exist in directories owned by me.

I ran the last command that failed and it seemed to work without error (without complaint). It looks like the compile works, but something past the compile step looking for pic32 boards fails.

333022 [Thread-274] DEBUG processing.app.Base  - PdePreprocessor: Start
333023 [Thread-274] DEBUG processing.app.Base  - Prepro: writeProgram
333023 [Thread-274] DEBUG processing.app.Base  - Program: //#include <Stepper.h>

void setup() {                
  // initialize the digital pin as an output.
  // Pin 13 has an LED connected on most Arduino boards:
  pinMode(13, OUTPUT);     
}

void loop() {
  digitalWrite(13, HIGH);   // set the LED on
  delay(1000);              // wait for a second
  digitalWrite(13, LOW);    // set the LED off
  delay(1000);              // wait for a second
}



333023 [Thread-274] DEBUG processing.app.Base  - prototypes: [void setup();, void loop();]
333023 [Thread-274] DEBUG processing.app.Base  - write() return name: sketch_jun04a
333023 [Thread-274] DEBUG processing.app.Base  - preprocessor.getExtraImports()[]
333023 [Thread-274] DEBUG processing.app.Base  - Base.importToLibraryTable: {Client.h=/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/./hardware/pic32/libraries/Ethernet, Servo.h=/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/./hardware/pic32/libraries/Servo, Ethernet.h=/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/./hardware/pic32/libraries/Ethernet, Matrix.h=/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/./hardware/pic32/libraries/Matrix, SD.h=/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/./hardware/pic32/libraries/SD, binary.h=/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/./hardware/pic32/libraries/Sprite, ArduinoTestSuite.h=/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/./hardware/pic32/libraries/ArduinoTestSuite, EEPROM.h=/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/./hardware/pic32/libraries/EEPROM, SoftwareSerial.h=/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/./hardware/pic32/libraries/SoftwareSerial, Sprite.h=/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/./hardware/pic32/libraries/Sprite, Server.h=/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/./hardware/pic32/libraries/Ethernet, Udp.h=/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/./hardware/pic32/libraries/Ethernet, LiquidCrystal.h=/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/./hardware/pic32/libraries/LiquidCrystal, SPI.h=/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/./hardware/pic32/libraries/SPI, Firmata.h=/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/./hardware/pic32/libraries/Firmata, avr_cpunames.h=/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/./hardware/pic32/libraries/ArduinoTestSuite, Wire.h=/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/./hardware/pic32/libraries/Wire, Boards.h=/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/./hardware/pic32/libraries/Firmata, Stepper.h=/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/./hardware/pic32/libraries/Stepper}
333023 [Thread-274] DEBUG processing.app.Base  - DEBUG: Compiler(): Start no arguments
333023 [Thread-274] DEBUG processing.app.Base  - DEBUG: Compiler.java: Start Compile(...).
333023 [Thread-274] DEBUG processing.app.Base  - Get boards for: pic32
333023 [Thread-274] DEBUG processing.app.Base  - Get platformsfor: pic32
333024 [Thread-274] DEBUG processing.app.Base  - avrBasePath: {0}/hardware/pic32/compiler/pic32-tools/bin/
333024 [Thread-274] DEBUG processing.app.Base  - corePaths: /home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32
333024 [Thread-274] DEBUG processing.app.Base  - 0. getIncludes
333024 [Thread-274] DEBUG processing.app.Base  - corePath: /home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32
333024 [Thread-274] DEBUG processing.app.Base  - 1. compileSketch
333024 [Thread-274] DEBUG processing.app.Base  - compileSketch: start
333024 [Thread-274] DEBUG processing.app.Base  - getCommandCompilerCPP: start
333024 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-g++  -O2  -c  -mno-smart-io  -mprocessor=32MX795F512L  -DF_CPU=80000000L  -D_BOARD_MEGA_   -I/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32    /tmp/build4711903160180692876.tmp/sketch_jun04a.cpp  -o  /tmp/build4711903160180692876.tmp/sketch_jun04a.cpp.o
333404 [Thread-274] DEBUG processing.app.Base  - 2. compileLibraries
333404 [Thread-274] DEBUG processing.app.Base  - compileLibraries: start
333404 [Thread-274] DEBUG processing.app.Base  - 3. compileCore
333404 [Thread-274] DEBUG processing.app.Base  - compileCore(...) start
333407 [Thread-274] DEBUG processing.app.Base  - getCommandCompilerS: start
333407 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-g++  -O2  -g1  -c  -mprocessor=32MX795F512L  -DF_CPU=80000000L  -D_BOARD_MEGA_   -I/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32    /home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32/crtn.S  -o  /tmp/build4711903160180692876.tmp/crtn.S.o
333430 [Thread-274] DEBUG processing.app.Base  - getCommandCompilerS: start
333430 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-g++  -O2  -g1  -c  -mprocessor=32MX795F512L  -DF_CPU=80000000L  -D_BOARD_MEGA_   -I/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32    /home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32/cpp-startup.S  -o  /tmp/build4711903160180692876.tmp/cpp-startup.S.o
333532 [Thread-274] DEBUG processing.app.Base  - getCommandCompilerS: start
333532 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-g++  -O2  -g1  -c  -mprocessor=32MX795F512L  -DF_CPU=80000000L  -D_BOARD_MEGA_   -I/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32    /home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32/crti.S  -o  /tmp/build4711903160180692876.tmp/crti.S.o
333544 [Thread-274] DEBUG processing.app.Base  - getCommandCompilerC: start
333545 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-gcc  -O2  -c  -mno-smart-io  -mprocessor=32MX795F512L  -DF_CPU=80000000L  -D_BOARD_MEGA_   -I/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32    /home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32/wiring_digital.c  -o  /tmp/build4711903160180692876.tmp/wiring_digital.c.o
333811 [Thread-274] DEBUG processing.app.Base  - getCommandCompilerC: start
333812 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-gcc  -O2  -c  -mno-smart-io  -mprocessor=32MX795F512L  -DF_CPU=80000000L  -D_BOARD_MEGA_   -I/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32    /home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32/wiring.c  -o  /tmp/build4711903160180692876.tmp/wiring.c.o
334153 [Thread-274] DEBUG processing.app.Base  - getCommandCompilerC: start
334153 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-gcc  -O2  -c  -mno-smart-io  -mprocessor=32MX795F512L  -DF_CPU=80000000L  -D_BOARD_MEGA_   -I/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32    /home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32/wiring_pulse.c  -o  /tmp/build4711903160180692876.tmp/wiring_pulse.c.o
334226 [Thread-274] DEBUG processing.app.Base  - getCommandCompilerC: start
334226 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-gcc  -O2  -c  -mno-smart-io  -mprocessor=32MX795F512L  -DF_CPU=80000000L  -D_BOARD_MEGA_   -I/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32    /home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32/exceptions.c  -o  /tmp/build4711903160180692876.tmp/exceptions.c.o
334430 [Thread-274] DEBUG processing.app.Base  - getCommandCompilerC: start
334430 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-gcc  -O2  -c  -mno-smart-io  -mprocessor=32MX795F512L  -DF_CPU=80000000L  -D_BOARD_MEGA_   -I/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32    /home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32/pins_arduino.c  -o  /tmp/build4711903160180692876.tmp/pins_arduino.c.o
334646 [Thread-274] DEBUG processing.app.Base  - getCommandCompilerC: start
334646 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-gcc  -O2  -c  -mno-smart-io  -mprocessor=32MX795F512L  -DF_CPU=80000000L  -D_BOARD_MEGA_   -I/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32    /home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32/WInterrupts.c  -o  /tmp/build4711903160180692876.tmp/WInterrupts.c.o
334701 [Thread-274] DEBUG processing.app.Base  - getCommandCompilerC: start
334701 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-gcc  -O2  -c  -mno-smart-io  -mprocessor=32MX795F512L  -DF_CPU=80000000L  -D_BOARD_MEGA_   -I/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32    /home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32/wiring_analog.c  -o  /tmp/build4711903160180692876.tmp/wiring_analog.c.o
335049 [Thread-274] DEBUG processing.app.Base  - getCommandCompilerCPP: start
335049 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-g++  -O2  -c  -mno-smart-io  -mprocessor=32MX795F512L  -DF_CPU=80000000L  -D_BOARD_MEGA_   -I/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32    /home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32/HardwareSerial.cpp  -o  /tmp/build4711903160180692876.tmp/HardwareSerial.cpp.o
335586 [Thread-274] DEBUG processing.app.Base  - getCommandCompilerCPP: start
335587 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-g++  -O2  -c  -mno-smart-io  -mprocessor=32MX795F512L  -DF_CPU=80000000L  -D_BOARD_MEGA_   -I/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32    /home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32/main.cpp  -o  /tmp/build4711903160180692876.tmp/main.cpp.o
335965 [Thread-274] DEBUG processing.app.Base  - getCommandCompilerCPP: start
335965 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-g++  -O2  -c  -mno-smart-io  -mprocessor=32MX795F512L  -DF_CPU=80000000L  -D_BOARD_MEGA_   -I/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32    /home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32/WMath.cpp  -o  /tmp/build4711903160180692876.tmp/WMath.cpp.o
336020 [Thread-274] DEBUG processing.app.Base  - getCommandCompilerCPP: start
336020 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-g++  -O2  -c  -mno-smart-io  -mprocessor=32MX795F512L  -DF_CPU=80000000L  -D_BOARD_MEGA_   -I/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32    /home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32/Tone.cpp  -o  /tmp/build4711903160180692876.tmp/Tone.cpp.o
336397 [Thread-274] DEBUG processing.app.Base  - getCommandCompilerCPP: start
336397 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-g++  -O2  -c  -mno-smart-io  -mprocessor=32MX795F512L  -DF_CPU=80000000L  -D_BOARD_MEGA_   -I/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32    /home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32/Print.cpp  -o  /tmp/build4711903160180692876.tmp/Print.cpp.o
336596 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-ar  rcs  /tmp/build4711903160180692876.tmp/core.a  /tmp/build4711903160180692876.tmp/crtn.S.o
336598 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-ar  rcs  /tmp/build4711903160180692876.tmp/core.a  /tmp/build4711903160180692876.tmp/cpp-startup.S.o
336601 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-ar  rcs  /tmp/build4711903160180692876.tmp/core.a  /tmp/build4711903160180692876.tmp/crti.S.o
336604 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-ar  rcs  /tmp/build4711903160180692876.tmp/core.a  /tmp/build4711903160180692876.tmp/wiring_digital.c.o
336607 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-ar  rcs  /tmp/build4711903160180692876.tmp/core.a  /tmp/build4711903160180692876.tmp/wiring.c.o
336611 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-ar  rcs  /tmp/build4711903160180692876.tmp/core.a  /tmp/build4711903160180692876.tmp/wiring_pulse.c.o
336615 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-ar  rcs  /tmp/build4711903160180692876.tmp/core.a  /tmp/build4711903160180692876.tmp/exceptions.c.o
336619 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-ar  rcs  /tmp/build4711903160180692876.tmp/core.a  /tmp/build4711903160180692876.tmp/pins_arduino.c.o
336622 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-ar  rcs  /tmp/build4711903160180692876.tmp/core.a  /tmp/build4711903160180692876.tmp/WInterrupts.c.o
336626 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-ar  rcs  /tmp/build4711903160180692876.tmp/core.a  /tmp/build4711903160180692876.tmp/wiring_analog.c.o
336633 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-ar  rcs  /tmp/build4711903160180692876.tmp/core.a  /tmp/build4711903160180692876.tmp/HardwareSerial.cpp.o
336637 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-ar  rcs  /tmp/build4711903160180692876.tmp/core.a  /tmp/build4711903160180692876.tmp/main.cpp.o
336640 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-ar  rcs  /tmp/build4711903160180692876.tmp/core.a  /tmp/build4711903160180692876.tmp/WMath.cpp.o
336645 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-ar  rcs  /tmp/build4711903160180692876.tmp/core.a  /tmp/build4711903160180692876.tmp/Tone.cpp.o
336649 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-ar  rcs  /tmp/build4711903160180692876.tmp/core.a  /tmp/build4711903160180692876.tmp/Print.cpp.o
336653 [Thread-274] DEBUG processing.app.Base  - 4. compileLink
336653 [Thread-274] DEBUG processing.app.Base  - compileLink: start
336653 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-g++  -Os  -Wl,--gc-sections  -mprocessor=32MX795F512L  -o  /tmp/build4711903160180692876.tmp/sketch_jun04a.cpp.elf  /tmp/build4711903160180692876.tmp/sketch_jun04a.cpp.o    /tmp/build4711903160180692876.tmp/core.a  -L/tmp/build4711903160180692876.tmp  -lm  -T  /home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/cores/pic32/chipKIT-MAX32-application-32MX795F512L.ld
336699 [Thread-274] DEBUG processing.app.Base  - 5. compileEep
336699 [Thread-274] DEBUG processing.app.Base  - compileEep: start
336699 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-objcopy  -O  ihex  -j  .eeprom  --set-section-flags=.eeprom=alloc,load  --no-change-warnings  --change-section-lma  .eeprom=0  /tmp/build4711903160180692876.tmp/sketch_jun04a.cpp.elf  /tmp/build4711903160180692876.tmp/sketch_jun04a.cpp.eep
336702 [Thread-274] DEBUG processing.app.Base  - 6. compileHex
336702 [Thread-274] DEBUG processing.app.Base  - compileHex: start
336702 [Thread-274] DEBUG processing.app.Base  - execAsynchronously: start
/home/jacob/bin/mpide-0022-chipkit-linux32-20110529/hardware/pic32/compiler/pic32-tools/bin/pic32-bin2hex  -a  /tmp/build4711903160180692876.tmp/sketch_jun04a.cpp.elf
336706 [Thread-274] DEBUG processing.app.Base  - 7. compile done
336706 [Thread-274] DEBUG processing.app.Base  - Get boards for: pic32
Couldn't determine program size: java.io.IOException: Cannot run program "avr-size": java.io.IOException: error=2, No such file or directory0

Trev

Sun, 05 Jun 2011 03:01:35 +0000

[336706 [Thread-274] DEBUG processing.app.Base  - 7. compile done
336706 [Thread-274] DEBUG processing.app.Base  - Get boards for: pic32
Couldn't determine program size: java.io.IOException: Cannot run program "avr-size": java.io.IOException: error=2, No such file or directory0

Is avr-size installed? Doesn't look like it.

FWIW, on my Mac Mini it is in .../java/hardware/tools/avr/bin/


Jacob Christ

Sun, 05 Jun 2011 03:41:22 +0000

FWIW, on my Mac Mini it is in .../java/hardware/tools/avr/bin/

Off of the mpide install, I have no java directory...

There is a hardware/tools directory with some avr-ish files in it:

:~/bin/mpide-0022-chipkit-linux32-20110529/hardware/tools$ ls avrdude avrdude64 avrdude.conf avrdude.conf.0

I found that there is a program called avr-size.exe in the following directory in the windows installation, but is missing in Linux install:

..\mpide-0022-chipkit-win-20110530\mpide-0022-chipkit-win-20110530\hardware\tools\avr\bin

Also, when I tried to change the target to an Arduino UNO I get the message:

Cannot run program avr-g++ which is in that same missing directory.

Is this a separate install?

Thanks,

Jacob


ricklon

Sun, 05 Jun 2011 18:52:17 +0000

Thanks for the detailed feedback. This is definitely good info. This gives me a starting point to figure out where the issue is. I'll let you know what I find ASAP. -Rick


ricklon

Sun, 05 Jun 2011 18:54:16 +0000

And to your question in the last post.

Linux doensn't come with the gcc-avr bundled with it. You have to install it as a seperate package. Check out the trouble shooting linux topic for exact details. http://www.chipkit.org/forum/viewtopic.php?f=6&t=18

However, Windows does come with the full avr toolchain.

--Rick


Jacob Christ

Tue, 07 Jun 2011 06:21:04 +0000

Rick,

I got the program to compile thanks for your help. One minor issue for anyone following along, your link was incorrect, I think you wanted to refer to this thread:

http://www.chipkit.org/forum/viewtopic.php?f=17&t=41

Jacob


jmlynesjr

Sun, 27 May 2012 17:15:26 +0000

Running Mpide 0023-linux32-20111221 on Ubuntu 10.10 here in May 2012 and still getting the "Cannot run program avr-size" error when compiling the blink example. The sketch compiles, downloads, and runs, but above error is displayed in the status box.

Based on information listed above in this topic, I installed gcc-avr using the Ubuntu Software Center(could also try sudo apt-get install gcc-avr). Problem fixed. Status box now displays the downloaded program size.

Thanks, guys!

Note: Previously had to install the java rxtx library(sudo apt-get install librxtx-java) as described under another post before the Mpide would run.

James


devel

Sat, 31 Aug 2013 20:15:01 +0000

I am using mpide-0023-linux32-20130715 on a Fedora18 x86_64. This is the error that I am getting. 10468 [Thread-1] DEBUG processing.app.Base - Target: getBoards(): pic32 Couldn't determine program size: java.io.IOException: Cannot run program "avr-size": error=2, No such file or directory0

I have built several programs Blink ASCIITable these build and get uploaded Okay.
I have arduino-1.5.2 installed it does have avr-size ls arduino-1.5.2/hardware/tools/avr/bin avr-addr2line avr-c++ avr-g++ avr-gccbug avr-objcopy avr-size avr-ar avr-c++filt avr-gcc avr-ld avr-objdump avr-strings avr-as avr-cpp avr-gcc-4.3.2 avr-nm avr-ranlib avr-strip Thanks