You are not logged in.

#1 2016-07-29 19:59:21

daviddavo
Member
Registered: 2015-12-30
Posts: 64

avr-g++ Executable file not found in $PATH

I'm using arduino to program an Attiny 2313, I installed all that I needed, the Arduino package, the tiny library for arduino and avr-gcc, but, when I'm going to check the code it says

exec: "{compiler.path}avr-g++": executable file not found in $PATH

What is the path of the "executable file" that I have to add to de $PATH

Note: I'm using Arduino as a root user.

Last edited by daviddavo (2016-07-29 20:32:33)

Offline

#2 2016-07-29 20:27:54

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: avr-g++ Executable file not found in $PATH

It says what?  That is a link to a 8 year old forum discussion for an issue that doesn't look remotely similar to what's in your title or the rest of your post.

Mod note: Not an Apps & DE's issue.  Moved to N.C.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2016-07-30 09:29:55

daviddavo
Member
Registered: 2015-12-30
Posts: 64

Re: avr-g++ Executable file not found in $PATH

Trilby wrote:

It says what?  That is a link to a 8 year old forum discussion for an issue that doesn't look remotely similar to what's in your title or the rest of your post.

Mod note: Not an Apps & DE's issue.  Moved to N.C.

Sorry, bad copypaste

Offline

#4 2016-07-30 11:56:09

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: avr-g++ Executable file not found in $PATH

That's a little better.  But it still is completely out of context.  You say "it" says that when you "check the code".  I have no idea what this means.  What is the "it"?  What do you mean by "check the code"?  Are you trying to compile something, or run something?  Post the command and full output.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2016-07-30 13:19:07

daviddavo
Member
Registered: 2015-12-30
Posts: 64

Re: avr-g++ Executable file not found in $PATH

Like I said, is from Arduino. It has an option that is "verify code". You use it before compiling and uploading it to the board. The error is with any script. But, if you are interested, that's the code:

void setup() {
  // initialize digital pin 13 as an output.
  pinMode(13, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second
}

And the full error:

Arduino:1.6.10 (Linux), Tarjeta:"ATtiny2313 @ 1 MHz"

/usr/share/arduino/arduino-builder -dump-prefs -logger=machine -hardware "/usr/share/arduino/hardware" -hardware "/home/davo/Arduino/hardware" -tools "/usr/share/arduino/tools-builder" -tools "/usr/share/arduino/hardware/tools/avr" -built-in-libraries "/usr/share/arduino/libraries" -libraries "/home/davo/Arduino/libraries" -fqbn=tiny:avr:attiny2313at1 -vid-pid=0X2A03_0X0043 -ide-version=10610 -build-path "/tmp/build6df9c0daf5e169e6aa9ea10542b997a3.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/tmp/arduino_modified_sketch_16814/Blink.ino"
/usr/share/arduino/arduino-builder -compile -logger=machine -hardware "/usr/share/arduino/hardware" -hardware "/home/davo/Arduino/hardware" -tools "/usr/share/arduino/tools-builder" -tools "/usr/share/arduino/hardware/tools/avr" -built-in-libraries "/usr/share/arduino/libraries" -libraries "/home/davo/Arduino/libraries" -fqbn=tiny:avr:attiny2313at1 -vid-pid=0X2A03_0X0043 -ide-version=10610 -build-path "/tmp/build6df9c0daf5e169e6aa9ea10542b997a3.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/tmp/arduino_modified_sketch_16814/Blink.ino"
Using board 'attiny2313at1' from platform in folder: /home/davo/Arduino/hardware/tiny/avr
Using core 'tiny' from platform in folder: /home/davo/Arduino/hardware/tiny/avr
Warning: Board tiny:avr:attiny2313at8 doesn't define a 'build.board' preference. Auto-set to: AVR_ATTINY2313AT8
Warning: Board tiny:avr:attiny2313at1 doesn't define a 'build.board' preference. Auto-set to: AVR_ATTINY2313AT1

Detecting libraries used...
"avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections  -w -x c++ -E -CC -mmcu=attiny2313 -DF_CPU=1000000L -DARDUINO=10610 -DARDUINO_AVR_ATTINY2313AT1 -DARDUINO_ARCH_AVR  "-I/home/davo/Arduino/hardware/tiny/avr/cores/tiny" "/tmp/build6df9c0daf5e169e6aa9ea10542b997a3.tmp/sketch/Blink.ino.cpp" -o "/dev/null"
"avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections  -w -x c++ -E -CC -mmcu=attiny2313 -DF_CPU=1000000L -DARDUINO=10610 -DARDUINO_AVR_ATTINY2313AT1 -DARDUINO_ARCH_AVR  "-I/home/davo/Arduino/hardware/tiny/avr/cores/tiny" "/tmp/build6df9c0daf5e169e6aa9ea10542b997a3.tmp/sketch/Blink.ino.cpp" -o "/dev/null"
Generating function prototypes...
"avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections  -w -x c++ -E -CC -mmcu=attiny2313 -DF_CPU=1000000L -DARDUINO=10610 -DARDUINO_AVR_ATTINY2313AT1 -DARDUINO_ARCH_AVR  "-I/home/davo/Arduino/hardware/tiny/avr/cores/tiny" "/tmp/build6df9c0daf5e169e6aa9ea10542b997a3.tmp/sketch/Blink.ino.cpp" -o "/tmp/build6df9c0daf5e169e6aa9ea10542b997a3.tmp/preproc/ctags_target_for_gcc_minus_e.cpp"
"/usr/share/arduino/tools-builder/ctags/5.8-arduino10/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/tmp/build6df9c0daf5e169e6aa9ea10542b997a3.tmp/preproc/ctags_target_for_gcc_minus_e.cpp"
Compilando programa...
"{compiler.path}avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=attiny2313 -DF_CPU=1000000L -DARDUINO=10610 -DARDUINO_AVR_ATTINY2313AT1 -DARDUINO_ARCH_AVR  "-I/home/davo/Arduino/hardware/tiny/avr/cores/tiny" "/tmp/build6df9c0daf5e169e6aa9ea10542b997a3.tmp/sketch/Blink.ino.cpp" -o "/tmp/build6df9c0daf5e169e6aa9ea10542b997a3.tmp/sketch/Blink.ino.cpp.o"
exec: "{compiler.path}avr-g++": executable file not found in $PATH
Error compilación en tarjeta ATtiny2313 @ 1 MHz.

Last edited by daviddavo (2016-07-30 13:19:58)

Offline

#6 2016-08-02 14:25:44

daviddavo
Member
Registered: 2015-12-30
Posts: 64

Re: avr-g++ Executable file not found in $PATH

Ah, the $PATH variable

[davo@Davo-Arch10 ~]$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

Offline

#7 2016-08-02 14:36:08

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: avr-g++ Executable file not found in $PATH

It's looking for "{compiler.path}avr-g++", not "avr-g++". Faulty build file.

Offline

#8 2016-08-02 16:01:36

daviddavo
Member
Registered: 2015-12-30
Posts: 64

Re: avr-g++ Executable file not found in $PATH

Scimmia wrote:

It's looking for "{compiler.path}avr-g++", not "avr-g++". Faulty build file.

And what can I do to make it work?

Offline

#9 2016-08-02 16:44:21

damjan
Member
Registered: 2006-05-30
Posts: 462

Re: avr-g++ Executable file not found in $PATH

I don't think the arduino package comes with  Attiny 2313 support by default, did you install something else to get that support?

It has an option that is "verify code". You use it before compiling and uploading it to the board.

actually, "verify code" is compiling the code.

Offline

#10 2016-08-02 18:24:02

daviddavo
Member
Registered: 2015-12-30
Posts: 64

Re: avr-g++ Executable file not found in $PATH

damjan wrote:

I don't think the arduino package comes with  Attiny 2313 support by default, did you install something else to get that support?

It has an option that is "verify code". You use it before compiling and uploading it to the board.

actually, "verify code" is compiling the code.

Yep, I installed that from Google Code http://code.google.com/p/arduino-tiny/
Is just downloading a .zip, uncompress it in the Arduino projects folder, uncomment a few lines and install the gcc compiler from pacman. But i guess i'm missing something

Offline

Board footer

Powered by FluxBB