Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
cjoe12
PostPosted: Mar 11, 2012 - 09:20 AM
Newbie


Joined: Mar 08, 2012
Posts: 9


Hi, for CentOS look at this build script:
http://www.avrfreaks.net/index.php?name ... 898#933898
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Mar 12, 2012 - 09:32 AM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62296
Location: (using avr-gcc in) Finchingfield, Essex, England

Thread diversion about GCC/Linux/256K moved to here:

GCC versions for use on 256K (Linux)

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
prze_kie
PostPosted: Mar 12, 2012 - 01:29 PM
Rookie


Joined: Jan 25, 2012
Posts: 47
Location: wroclaw, poland

Hi All,

There is a problem still exist when you try to use avr-gcc with devices which has more than 64k of the flash memory.

Whole problem is described in the thread:
http://www.avrfreaks.net/index.php?name ... highlight=

Is it possible to apply patches from above thread ?
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Mar 12, 2012 - 01:33 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62296
Location: (using avr-gcc in) Finchingfield, Essex, England

But did you follow the link to the GCC bug report?

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45263

Georg-Johann Lay (SprinterSB on this board) fixed it in April 2011. So GCC versions issued after that should have the problem fixed. Maybe try one of his 4.7 builds?

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
prze_kie
PostPosted: Mar 13, 2012 - 07:21 AM
Rookie


Joined: Jan 25, 2012
Posts: 47
Location: wroclaw, poland

Can someone apply above patch (for 256k devices) to 4.5.1 ???
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Mar 14, 2012 - 01:42 PM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3809
Location: Denmark

I can't ...
I'm tracking the FreeBSD repos , and won't change that decision.


/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
legacyII
PostPosted: Mar 21, 2012 - 01:04 PM
Newbie


Joined: Mar 17, 2012
Posts: 7


what about this bug
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38549

?
 
 View user's profile Send private message  
Reply with quote Back to top
JohanEkdahl
PostPosted: Mar 21, 2012 - 01:29 PM
10k+ Postman


Joined: Mar 27, 2002
Posts: 18555
Location: Lund, Sweden

What about it? It has its status set to "RESOLVED INVALID", i.e. it is not a bug. Did you read the complete bug report including the lengthy explanation at the end by Georg-Johann?

EDIT: And PLEASE do not cross post! (http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=937032&highlight=#937032)
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
kscharf
PostPosted: Apr 14, 2012 - 04:39 PM
Posting Freak


Joined: Aug 04, 2004
Posts: 1822
Location: Davie, FL

I built the avr-gcc tools using the script on this thread to build the 4.5.1 version. It built several compiler executables including avr-gcc, avr_g++, avr_c++. Arduino is giving me the following error:
error: Cannot run program "avr-g++":, the manual states a missing avr-gcc-c++ program. Maybe it expects a simlink to avr-c++ or avr-g++? Any ideas?
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Apr 14, 2012 - 08:21 PM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3809
Location: Denmark

@kscharf

I have an avr-g++ in my dir ,built from the same script

Code:
$ ls -l /usr/local/avr/bin
total 19940
-rwxr-xr-x 1 root root  126332 2012-03-08 17:33 avarice
-rwxr-xr-x 1 root root  598352 2012-03-08 17:33 avr-addr2line
-rwxr-xr-x 2 root root  626868 2012-03-08 17:33 avr-ar
-rwxr-xr-x 2 root root  813460 2012-03-08 17:33 avr-as
-rwxr-xr-x 2 root root  236996 2012-03-08 17:33 avr-c++
-rwxr-xr-x 1 root root  598160 2012-03-08 17:33 avr-c++filt
-rwxr-xr-x 1 root root  232900 2012-03-08 17:33 avr-cpp
-rwxr-xr-x 1 root root  297380 2012-03-08 17:33 avrdude
-rwxr-xr-x 2 root root  236996 2012-03-08 17:33 avr-g++
-rwxr-xr-x 2 root root  232900 2012-03-08 17:33 avr-gcc
-rwxr-xr-x 2 root root  232900 2012-03-08 17:33 avr-gcc-4.5.1
-rwxr-xr-x 1 root root   15975 2012-03-08 17:29 avr-gccbug
-rwxr-xr-x 1 root root   30244 2012-03-08 17:33 avr-gcov
-rwxr-xr-x 1 root root 4169544 2012-03-08 17:36 avr-gdb
-rwxr-xr-x 1 root root 4169549 2012-03-08 17:36 avr-gdbtui
-rwxr-xr-x 1 root root  668752 2012-03-08 17:33 avr-gprof
-rwxr-xr-x 2 root root 1063540 2012-03-08 17:33 avr-ld
-rwxr-xr-x 1 root root    1737 2012-03-08 17:33 avr-man
-rwxr-xr-x 2 root root  611024 2012-03-08 17:33 avr-nm
-rwxr-xr-x 2 root root  813232 2012-03-08 17:33 avr-objcopy
-rwxr-xr-x 2 root root  878352 2012-03-08 17:33 avr-objdump
-rwxr-xr-x 2 root root  626900 2012-03-08 17:33 avr-ranlib
-rwxr-xr-x 1 root root  295296 2012-03-08 17:33 avr-readelf
-rwxr-xr-x 1 root root  650224 2012-03-08 17:36 avr-run
-rwxr-xr-x 1 root root  609616 2012-03-08 17:33 avr-size
-rwxr-xr-x 1 root root  602416 2012-03-08 17:33 avr-strings
-rwxr-xr-x 2 root root  813232 2012-03-08 17:33 avr-strip
-rwxr-xr-x 1 root root    1071 2012-03-08 17:12 ice-gdb
-rwxr-xr-x 1 root root      51 2012-03-08 17:12 ice-insight
-rwxr-xr-x 1 root root     264 2012-03-08 17:12 kill-avarice
-rwxr-xr-x 1 root root     225 2012-03-08 17:12 start-avarice


/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
kscharf
PostPosted: Apr 14, 2012 - 08:39 PM
Posting Freak


Joined: Aug 04, 2004
Posts: 1822
Location: Davie, FL

I seem to have avr-c++, avr-g++, and avr-gcc in /usr/local/avr/bin as you do but the arduino ide gives me the error:
"Cannot run program "avr-g++" java:io Exception:error=2, No such file or directory. My path is set so I can find these files from a user terminal shell why can't the Arduino IDE find it? Maybe it's looking on a specific path but I don't know what that is?

The arduino site says to install avr-gcc-c++ whatever THAT is.
Maybe a simlink to something else?
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Jul 08, 2012 - 07:53 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62296
Location: (using avr-gcc in) Finchingfield, Essex, England

NB Atmel have a 4.6.2 for Linux (and Windows) available at:

http://www.atmel.com/tools/ATMELAVRTOOL ... LINUX.aspx

this is the same toolchain that is found in the first release of AVR Studio and is not bad (like some of their previous attempts) and has the advantage of supporting a lot of new AVR models like the USB enabled Xmegas and the small tiny4/5/9/10/20/40 devices.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
damien_d
PostPosted: Jul 08, 2012 - 11:31 PM
Resident


Joined: Dec 15, 2008
Posts: 923
Location: Brisbane, Australia

clawson wrote:
NB Atmel have a 4.6.2 for Linux (and Windows) available at:


Cliff,

We're current users of 30-Apr-2010 toolchain (gcc version 4.3.4), though we really only use the compiler, not the debugger or loader (we just use avr studio for a bootloader once).

Is there much of an advantage to Atmel's new toolchain to warrant changing for new projects (targets are generally xmega A4 series).

I did see a code space saving:

Old:
Code:

Size after:
AVR Memory Usage
----------------
Device: atxmega128a1

Program:   29822 bytes (21.4% Full)
(.text + .data + .bootloader)

Data:       2478 bytes (30.2% Full)
(.data + .bss + .noinit)



New:
Code:

Size after:
AVR Memory Usage
----------------
Device: atxmega128a1

Program:   28844 bytes (20.7% Full)
(.text + .data + .bootloader)

Data:       2478 bytes (30.2% Full)
(.data + .bss + .noinit)


-- Damien

p.s. The script and the ubuntu package is excellent. It saves us a huge number of hours in sorting out our own toolchain on Linux. The effort is deeply appreciated.
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Jul 09, 2012 - 09:35 AM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62296
Location: (using avr-gcc in) Finchingfield, Essex, England

I wouldn't change for changes sake but if you pick one of the new AVRs then I think this is the only toolchain that has support for the additional models.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Jul 09, 2012 - 09:07 PM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3809
Location: Denmark

Ugly hack to build the Atmel 3.4.0 toolchain

http://www.avrfreaks.net/index.php?name ... 243#973243

Read the whole thread

/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
zieous
PostPosted: Jul 24, 2012 - 03:58 PM
Newbie


Joined: Jan 06, 2003
Posts: 3


why can't read the script?
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Jul 27, 2012 - 07:59 PM
Raving lunatic


Joined: Apr 25, 2004
Posts: 3809
Location: Denmark

For building on Fedora 17 see here
http://www.avrfreaks.net/index.php?name ... highlight=

/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
zainka
PostPosted: Aug 05, 2012 - 08:34 PM
Hangaround


Joined: Nov 16, 2001
Posts: 411
Location: Grimstad, NO(r)WAY!

ftp://ftp.dkuug.dk (for binutils and gcc) Seems to be down. Permanent or just wait?

Its the getfiles.sh that fails.

I may resolve it for binutils by using this link instead (or?)
ftp://ftp.gnu.org/gnu/binutils/binutils-2.20.1.tar.bz2

And for gcc link
ftp://ftp.gnu.org/gnu/gcc/gcc-4.5.1/gcc-4.5.1.tar.bz2

Or has it been done changes to the archives that would bring me troubles if using the mentioned ones... I downloaded today, 5.aug...

By the way, if no changes, why not use the above as default in the script?

_________________
Regards
Vidar (Z)

"There is nothing new to be discovered in physics now, All that remains is more and more precise measurement." Lord Kelvin
 
 View user's profile Send private message  
Reply with quote Back to top
keepcool
PostPosted: Aug 06, 2012 - 12:25 AM
Hangaround


Joined: Oct 07, 2009
Posts: 248


Goodnight, today I have tried to intall the latest .deb package under ubuntu 12.04 LTS and got this error:
Code:
dpkg: error processing avr-gcc-4.5.1-avrfreaks-2011-dec-29-u10.04.i386.deb (--install):
 parsing file '/var/lib/dpkg/tmp.ci/control' near line 10 package 'avr-gcc-4.5.1-avrfreaks-2011-dec-29-u10.04.i386':
 blank line in value of field 'Description'
Errors were encountered while processing:
 avr-gcc-4.5.1-avrfreaks-2011-dec-29-u10.04.i386.deb
 
 View user's profile Send private message  
Reply with quote Back to top
damien_d
PostPosted: Aug 06, 2012 - 05:15 AM
Resident


Joined: Dec 15, 2008
Posts: 923
Location: Brisbane, Australia

keepcool wrote:
Goodnight, today I have tried to intall the latest .deb package under ubuntu 12.04 LTS and got this error:
Code:
dpkg: error processing avr-gcc-4.5.1-avrfreaks-2011-dec-29-u10.04.i386.deb (--install):
 parsing file '/var/lib/dpkg/tmp.ci/control' near line 10 package 'avr-gcc-4.5.1-avrfreaks-2011-dec-29-u10.04.i386':
 blank line in value of field 'Description'
Errors were encountered while processing:
 avr-gcc-4.5.1-avrfreaks-2011-dec-29-u10.04.i386.deb


Actually, I got something similar too, though it was on an upgrade from 11.10 to 12.04. The fix is to remove the blank lines in the offending control files (mine were the dpkg cache files over an upgrade where it broke), but it should be fixed more permanently.

-- Damien
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits