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
Bingo600
PostPosted: Dec 02, 2009 - 01:52 PM
Raving lunatic


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

Guyzz

If anyone wants to try out this debian install package go ahead Smile

This binary install is based on the files made from the install script in the sticky.

Dated : 03-Nov-2009
Named : build-avr-gcc-4.3.3-libc-1.6.7-insight6.8-arch25-fix-avarice-fix.zip

Quote:
@06-Jan-2010
Updated the ".deb" install package , w. a new avrdude binary , containing a PDI patch , and a dragon ISP crash fix. (See .txt file in the download site)


Quote:
@17-Dec-2009
Updated the ".deb" install package , w. a new avrdude binary , containing a PDI patch. (See .txt file in the download site)


A big thank you to my .deb "beta tester" , and .deb bandwidth hoster clawson.

Get the package here.
http://www.wrightflyer.co.uk/avr-gcc/

Note: It installs all files into /usr/local/avr prob. with overwrite.

When uninstalling/removing it complains about /usr & /usr/local not being empty , and not removed.
But that is a known message , and has to do with the files in there not being in the install database.

clawson has confirmed that it only removes what it has installed.

Let me hear if anything is seriously wrong Smile

Btw: The package was build on Ubuntu 8.04 , but clawson tested on a 9.10.

I am not sure if it requires an I686 to run , i think it autodetected my build-pc as a I686. And i'm still searching for a way how to tell the different "./configure" to compile for an I386 Host , but an AVR target.

Edit: You will have to modify your path manually.
Quote:
I have an avr user on my Linux-box for doing avr development , i have added this to my .bash_profile in my /home/avr directory , it sets up the path to avr-gcc.


# User specific environment and startup programs
PREFIX=/usr/local/avr
export PREFIX

PATH=$PATH:$HOME/bin:$PREFIX/bin
export PATH


/Bingo


Last edited by Bingo600 on Jan 07, 2010 - 11:31 AM; edited 4 times in total
 
 View user's profile Send private message  
Reply with quote Back to top
damien_d
PostPosted: Dec 02, 2009 - 10:50 PM
Resident


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

You can override the architecture for x86_64.

This is the result on Ubuntu 9.10, x86_64.

Code:

damien@damien-desktop:~/Desktop$ sudo dpkg --force-architecture -i avr-gcc-4.3.3-AvrFreaks-01-Dec-2009.deb
dpkg: warning: overriding problem because --force enabled:
 package architecture (i386) does not match system (amd64)
Selecting previously deselected package avr-gcc-4.3.3-avrfreaks-01-dec-2009.
(Reading database ... 349803 files and directories currently installed.)
Unpacking avr-gcc-4.3.3-avrfreaks-01-dec-2009 (from avr-gcc-4.3.3-AvrFreaks-01-Dec-2009.deb) ...
Setting up avr-gcc-4.3.3-avrfreaks-01-dec-2009 (0.1) ...



With the result:
Code:

damien@damien-desktop:~/Desktop$ avr-gcc -v
Using built-in specs.
Target: avr
Configured with: ../../source/gcc-4.3.3/configure -v --target=avr --disable-nls --prefix=/usr/local/avr --with-gnu-ld --with-gnu-as --enable-languages=c,c++ --disable-libssp --with-dwarf2
Thread model: single
gcc version 4.3.3 (GCC)


Haven't yet done a hello world program to see if it works.

-- Damien
 
 View user's profile Send private message  
Reply with quote Back to top
buserror
PostPosted: Dec 03, 2009 - 12:07 AM
Hangaround


Joined: Apr 12, 2007
Posts: 286
Location: Windsor, UK

Hmm whats wrong with the avr-gcc in debian sid ?

]% avr-gcc -v
Using built-in specs.
Target: avr
Configured with: ../src/configure -v --enable-languages=c,c++ --prefix=/usr/lib --infodir=/usr/share/info --mandir=/usr/share/man --bindir=/usr/bin --libexecdir=/usr/lib --libdir=/usr/lib --enable-shared --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-checking --disable-libssp --build=i486-linux-gnu --host=i486-linux-gnu --target=avr
Thread model: single
gcc version 4.3.4 (GCC)

_________________
Author of simavr - Follow me on twitter : @buserror
 
 View user's profile Send private message  
Reply with quote Back to top
ArnoldB
PostPosted: Dec 03, 2009 - 07:16 AM
Raving lunatic


Joined: Nov 29, 2007
Posts: 2877


buserror wrote:
Hmm whats wrong with the avr-gcc in debian sid ?
Missing patches.
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Dec 03, 2009 - 07:34 AM
Raving lunatic


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

buserror wrote:
Hmm whats wrong with the avr-gcc in debian sid ?
)


Well if you are happy with it , then nothing.
But i would expect it to lack support for a lot of the new mcu's.

I would have thought you would be pleased
as it doesn't install Tk or tex. Wink

See: http://www.avrfreaks.net/index.php?name ... 548#506548

But the .deb still installs avr-insight witch is a graphical debugger.


/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Dec 03, 2009 - 07:25 PM
Raving lunatic


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

damien_d wrote:
You can override the architecture for x86_64.

-- Damien


@Damien

I meant to force the tools to build using only I386 instructions.

I'd guess that the whole PC "Cpu Range" would run those instructions , and if not you should get a new pc Smile

/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
damien_d
PostPosted: Dec 03, 2009 - 09:03 PM
Resident


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

Bingo600 wrote:
damien_d wrote:
You can override the architecture for x86_64.

-- Damien


@Damien

I meant to force the tools to build using only I386 instructions.

I'd guess that the whole PC "Cpu Range" would run those instructions , and if not you should get a new pc Smile

/Bingo


I meant for installing the deb, but nevermind Smile

Personally, I would have thought few people would be using a non-i686 computer these days given it corresponds to a Pentium II.

-- Damien
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Dec 20, 2009 - 04:17 PM
Raving lunatic


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

Has anyone tried the .deb install package ??

So far i have only heard from Clawson (he tests the packages for me)

/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Dec 20, 2009 - 04:31 PM
10k+ Postman


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

Bingo,

I was just looking at HTTP server statistics and the 01Dec was downloaded 77 times so far in December but the 17Dec one is not yet on the scale.

Cliff

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Dec 20, 2009 - 08:10 PM
Raving lunatic


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

@Cliff

Well then it seems that someone is using it Smile

And the 17-Dec just added the patched avrdude (PDI)

Thanx Smile

/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
damien_d
PostPosted: Dec 22, 2009 - 10:26 PM
Resident


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

Bingo600 wrote:
Has anyone tried the .deb install package ??

So far i have only heard from Clawson (he tests the packages for me)

/Bingo


Yes, it appears to work nicely Smile

We're going to be using it in an automated build server (TeamCity) for avr code (testing over christmas) - perhaps overkill to many, but it means automatic generation of version numbers, release notes and ticket references.

Our build server master would never have let us use the standard "script" install, but he was more than happy with a .deb package toolchain install.

-- Damien
 
 View user's profile Send private message  
Reply with quote Back to top
bperrybap
PostPosted: Dec 23, 2009 - 01:17 AM
Hangaround


Joined: May 03, 2009
Posts: 413
Location: Dallas, TX USA

Are the binaries built with the proper prefix so that setting PREFIX should not be necessary?
Incorrect prefix is a deal killer for me.

What about man pages, are those also installed/removed?

I guess I could try it, but I don't want to have to remove my existing working install first just to see.

--- bill
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Dec 23, 2009 - 12:56 PM
10k+ Postman


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

Quote:

What about man pages, are those also installed/removed?

Affirmative.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Dec 23, 2009 - 03:37 PM
Raving lunatic


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

bperrybap wrote:
Are the binaries built with the proper prefix so that setting PREFIX should not be necessary?
Incorrect prefix is a deal killer for me.

What about man pages, are those also installed/removed?

I guess I could try it, but I don't want to have to remove my existing working install first just to see.

--- bill


Everything is build with prefix=/usr/local/avr

Everything is intalled within this path (including manpages)

The "only thing i thnk is missing" might be TCL/TK for mfile.
I didn't set that as a requirement in the package. Embarassed

And you also have to add the path to /usr/local/avr/bin manually.

But then again , something must be left for the user to do.

To test it , just "mv" your original /usr/local/avr

I never have a "real /usr/local/avr" , i alvays rename it to /usr/local/"Date&version of compiler" , and then symlink my working compiler "ln -s "compiler dir" /usr/local/avr" to the compiler i want to use.

That way my "preferred compiler" is always just a "symlink away"

/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
damien_d
PostPosted: Dec 30, 2009 - 11:53 PM
Resident


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

Today we tried to get the the toolchain happening on our build server, but got the following error:

Code:

[09:28:27]: /usr/local/avr/libexec/gcc/avr/4.3.3/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
[09:28:27]: make: *** [objects/alarm_system.o] Error 1
[09:28:27]: Process exited with code 2


Which also happened with a very simple:

Code:

/usr/local/avr/bin/avr-gcc -o hello hello.c


It appeared as though it was missing a dependency that was easily fixed:
Code:

sudo apt-get install libmpfr-dev


Which is a multi-precision floating point library. The question is, why is avr-gcc dependant on it? If it needs it, can we include that as a listed dependency in the deb file?

-- Damien
 
 View user's profile Send private message  
Reply with quote Back to top
skeeve
PostPosted: Dec 31, 2009 - 04:46 PM
Posting Freak


Joined: Oct 29, 2006
Posts: 1505


damien_d wrote:
It appeared as though it was missing a dependency that was easily fixed:
Code:

sudo apt-get install libmpfr-dev


Which is a multi-precision floating point library. The question is, why is avr-gcc dependant on it? If it needs it, can we include that as a listed dependency in the deb file?
avr-gcc is a cross-compiler.
avr-gcc has to run on systems whose floating point stuff
is not the same as avr-gcc-generated floating point stuff.
Note that "system" includes the compiler that compiled avr-gcc.

_________________
Michael Hennebry
"Pax Romana was a Visigoth." -- Theo Vavrina
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Dec 31, 2009 - 07:42 PM
Raving lunatic


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

damien_d wrote:
Today we tried to get the the toolchain happening on our build server, but got the following error:

Code:

[09:28:27]: /usr/local/avr/libexec/gcc/avr/4.3.3/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
[09:28:27]: make: *** [objects/alarm_system.o] Error 1
[09:28:27]: Process exited with code 2


Which also happened with a very simple:

Code:

/usr/local/avr/bin/avr-gcc -o hello hello.c


It appeared as though it was missing a dependency that was easily fixed:
Code:

sudo apt-get install libmpfr-dev


Which is a multi-precision floating point library. The question is, why is avr-gcc dependant on it? If it needs it, can we include that as a listed dependency in the deb file?

-- Damien


Daummmm....
.
This shouldn't happen ... (I hoped)

I'm including gmp & mpfr in the GCC cource (or at at least i was ...) have i FSCK'ed up in the newer scripts ? )

I'll have to check , but yes .. gmp & mpfr are dependancies to GCC 4.3.3

/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Dec 31, 2009 - 07:52 PM
Raving lunatic


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

Hmmm....

My buildscript includes those , and copies them to the GCC dir.
Wonder if they are build & installed in another place ??

I'd have thought that this "trick" would have embedded them into the GCC dir.
Clawson did try them out on a "Clean" Virtualbox Ubuntu , and they worked ....


Spookey ....... Sad

I'll have to dig a bit , but prob. dont have the time until next week or so.

but gmp & mpfr is required for gcc 4-3-3 , and apparently you can just install the packages


And if I or anyone can confirm they belong as dependancies i'll do my best to include them as dependancies ....

So just chip in guyzz ...



/Bingo
 
 View user's profile Send private message  
Reply with quote Back to top
uhum2004
PostPosted: Jan 01, 2010 - 08:35 PM
Newbie


Joined: Jan 01, 2010
Posts: 2


Hi all,
using build-avr-gcc-4.3.3-libc-1.6.7-insight6.8-arch25-fix-avarice-fix.zip collection I got all the files and patches, but when I run the last ./buildavr-no-insight.sh script, I got the message:

configure: error: Your libbfd.a needs an accompanying bfd.h file.
(./buildavr-no-insight.sh) avarice configuration failed

That's right, no such file under the whole /usr/local/avr or below. I'm rather new at Linux, so it is not my level to hunt for the solution. Both buildinsight.sh and buildavr-no-insight.sh was run as root. The system is uhulinux, a debian-like distribution.
Any idea, please?
Istvan
 
 View user's profile Send private message  
Reply with quote Back to top
Bingo600
PostPosted: Jan 02, 2010 - 05:25 PM
Raving lunatic


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

uhum2004 wrote:
Hi all,
using build-avr-gcc-4.3.3-libc-1.6.7-insight6.8-arch25-fix-avarice-fix.zip collection I got all the files and patches, but when I run the last ./buildavr-no-insight.sh script, I got the message:

configure: error: Your libbfd.a needs an accompanying bfd.h file.
(./buildavr-no-insight.sh) avarice configuration failed


Any idea, please?
Istvan


Afaik libbfd is build along with binutils , and this line should take hand of it.

Code:

 echo "($0) configuring binutils source"
   ../../source/${binutilsbase}/configure -v --target=${target} \
      --prefix=$prefix --with-gnu-ld --with-gnu-as --quiet --enable-install-libbfd --with-dwarf2 --disable-werror CFLAGS="-Wno-format-security "


I currently have no idea why you have the problem.
But i think the bfd.h is made by automake , so you might want to check that automake is upto date.

/Bingo
 
 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