LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-06-2014, 11:21 PM   #1
TheChronicScribbler
Member
 
Registered: Nov 2013
Posts: 31

Rep: Reputation: Disabled
AVR-GCC package not executing correctly


I am currently studying about programming Atmega32 controller using C.
So I tried to get the avr-gcc toolchain with avrdude working on my Fedora 20.

I created a folder named "avr" in my home directory, a subdirectory called "toolchain", and unzipped both avr8-gnu-linux_x86 and avrdude packages into it. Then from the avrdude folder i did the following :-

./configure --prefix=~/avr/toolchain/avr8-gnu-linux_x86
make
make install

and avrdude executable was created in the prefix i specified.
I also set the appended the $PATH variable with the bin folder inside avr8-gnu-linux_x86 folder.

Two sets of executables are made. One in the avr8-gnu-linux_x86/bin folder (with the avr prefix ,e.g avr-gcc) and other in the avr8-gnu-linux-x86/avr/bin folder (without avr prefix eg. gcc,ld)

The problem is that whenever i try to use the gcc (without the prefix) compiler give along with the package, it shows me an error, "error trying to exec cc1".

I searched on the net for an answer but this error seems to be very general. So is there any way to get rid of this w.r.t my specific situation?

Thanks
 
Old 11-20-2014, 01:44 AM   #2
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317

Rep: Reputation: 73
Hi,

Please tell us what distro you are using and where you got those files.

Normally you use the avr-gcc executable to compile your program.

For more information on the avr-libc, avr-gcc, avr-binutils and avrdude look here.

Also a good place to look is avrfreaks.net

Cheers

Last edited by gdejonge; 11-20-2014 at 01:48 AM. Reason: Added avrfreaks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming in arduino IDE AVR and avr-gcc PeterUK Programming 2 05-26-2013 03:19 PM
Problems installing mpc-0.8.1 as a part of AVR-GCC installation prasanmouli Linux - Software 2 06-07-2012 10:43 AM
procmail is not executing scripts correctly ChrisInAlpharetta Linux - Server 6 04-22-2011 02:44 PM
Undefined reference to main error in winavr gcc plugin in avr studio zack670303 Programming 1 02-26-2009 01:52 PM
gcc for avr jani_fedora Programming 2 03-31-2008 04:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration