Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Arduino, gcc-config: error: could not run/locate 'avr-g++'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
trumee
Guru
Guru


Joined: 02 Mar 2003
Posts: 551
Location: London,UK

PostPosted: Wed Aug 01, 2018 2:45 am    Post subject: Arduino, gcc-config: error: could not run/locate 'avr-g++' Reply with quote

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
View user's profile Send private message
trumee
Guru
Guru


Joined: 02 Mar 2003
Posts: 551
Location: London,UK

PostPosted: Wed Aug 01, 2018 12:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
Petross404
n00b
n00b


Joined: 27 Sep 2016
Posts: 55

PostPosted: Sat Dec 15, 2018 7:02 am    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sat Dec 15, 2018 10:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Petross404
n00b
n00b


Joined: 27 Sep 2016
Posts: 55

PostPosted: Sat Dec 15, 2018 5:13 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Petross404,

# is the root prompt.


Thanks, makes sense. So 05gcc-avr's content is irrelevant?
Back to top
View user's profile Send private message
Petross404
n00b
n00b


Joined: 27 Sep 2016
Posts: 55

PostPosted: Sun Dec 16, 2018 7:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum