View previous topic :: View next topic |
Author |
Message |
trumee Guru
Joined: 02 Mar 2003 Posts: 551 Location: London,UK
|
Posted: Wed Aug 01, 2018 2:45 am Post subject: Arduino, gcc-config: error: could not run/locate 'avr-g++' |
|
|
Hello,
When i try to compile any arduino code i get an error,
Code: |
gcc-config: error: could not run/locate 'avr-g++'
exit status 1
Error compiling for board Arduino/Genuino Uno.
|
In addition gcc-config doesnt seem to work for me,
Code: |
# whoami
root
# gcc-config -l
[1] avr-7.3.0 *
[2] x86_64-pc-linux-gnu-6.4.0 *
# gcc-config avr-7.3.0
* Switching cross-compiler to avr-7.3.0 ... [ ok ]
# gcc-config -c
x86_64-pc-linux-gnu-6.4.0
# avr-g++
gcc-config: error: could not run/locate 'avr-g++'
# equery list gcc
* Searching for gcc ...
[I-O] [ -] cross-avr/gcc-7.3.0-r3:7.3.0
[IP-] [ ] sys-devel/gcc-6.4.0-r1:6.4.0
# equery check gcc
!!! /etc/env.d/gcc/avr-7.3.0 has incorrect MD5sum
* Checking cross-avr/gcc-7.3.0-r3 ...
789 out of 790 files passed
!!! /etc/env.d/gcc/x86_64-pc-linux-gnu-6.4.0 has incorrect MD5sum
* Checking sys-devel/gcc-6.4.0-r1 ...
1560 out of 1561 files passed
|
Any idea what could be wrong? |
|
Back to top |
|
|
trumee Guru
Joined: 02 Mar 2003 Posts: 551 Location: London,UK
|
Posted: Wed Aug 01, 2018 12:28 pm Post subject: |
|
|
I removed cross-avr/gcc-7.3.0-r3 and reinstalled it. Following that i set the following PATH (as mentioned in /etc/env.d/05gcc-avr)
Code: |
#export PATH=/usr/x86_64-pc-linux-gnu/avr/gcc-bin/7.3.0:$PATH
|
avr-gcc-ar and avr-gcc work now. |
|
Back to top |
|
|
Petross404 n00b
Joined: 27 Sep 2016 Posts: 55
|
Posted: Sat Dec 15, 2018 7:02 am Post subject: |
|
|
trumee wrote: | I removed cross-avr/gcc-7.3.0-r3 and reinstalled it. Following that i set the following PATH (as mentioned in /etc/env.d/05gcc-avr)
Code: |
#export PATH=/usr/x86_64-pc-linux-gnu/avr/gcc-bin/7.3.0:$PATH
|
avr-gcc-ar and avr-gcc work now. |
So you commented the PATH and the compilation succeeded? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54239 Location: 56N 3W
|
Posted: Sat Dec 15, 2018 10:18 am Post subject: |
|
|
Petross404,
# is the root prompt. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Petross404 n00b
Joined: 27 Sep 2016 Posts: 55
|
Posted: Sat Dec 15, 2018 5:13 pm Post subject: |
|
|
NeddySeagoon wrote: | Petross404,
# is the root prompt. |
Thanks, makes sense. So 05gcc-avr's content is irrelevant? |
|
Back to top |
|
|
Petross404 n00b
Joined: 27 Sep 2016 Posts: 55
|
Posted: Sun Dec 16, 2018 7:41 pm Post subject: |
|
|
It turned out that I had set AR, NM etc variables in make.conf. Removing these variables and exporting the path was enough. |
|
Back to top |
|
|
|