Guyzz i have made an interrim version to fix the patch problem.
I apply 2 new patches to binutils , but i'm not 100% sure that they are production ready , and i cant seem to get hold of jörg.
I tried to build avr-gcc on my Ubuntu 8.04 (x86_64) box. The
buildavr-no-insight.sh script works fine but the buildinsight.sh script stops with the following output:
/usr/local/avr/source/insight-6.7.1/itcl/itcl/generic \
-I/usr/local/avr/source/insight-6.7.1/tcl/generic -I/usr/local/avr/source/insight-6.7.1/tk/generic \
../../../source/insight-6.7.1/gdb/gdbtk/generic/gdbtk-register.c \
-DGDBTK_LIBRARY=\"/usr/local/avr/share/insight1.0\"
cc1: warnings being treated as errors
../../../source/insight-6.7.1/gdb/gdbtk/generic/gdbtk-register.c: In function ‘get_register_name’:
../../../source/insight-6.7.1/gdb/gdbtk/generic/gdbtk-register.c:348: warning: cast from pointer to integer of different size
make[2]: *** [gdbtk-register.o] Error 1
make[2]: Leaving directory `/usr/local/avr/build/insight-6.7.1/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/usr/local/avr/build/insight-6.7.1'
make: *** [all] Error 2
(./buildinsight.sh) insight build failed (0)
Has anyone an idea why it fails?
Is it possible to only build gdb without insight?
I've retried it without success, attached the build log.
I tried to build avr-gcc on my Ubuntu 8.04 (x86_64) box. The
buildavr-no-insight.sh script works fine but the buildinsight.sh script stops with the following output:
/usr/local/avr/source/insight-6.7.1/itcl/itcl/generic \
-I/usr/local/avr/source/insight-6.7.1/tcl/generic -I/usr/local/avr/source/insight-6.7.1/tk/generic \
../../../source/insight-6.7.1/gdb/gdbtk/generic/gdbtk-register.c \
-DGDBTK_LIBRARY=\"/usr/local/avr/share/insight1.0\"
cc1: warnings being treated as errors
../../../source/insight-6.7.1/gdb/gdbtk/generic/gdbtk-register.c: In function ‘get_register_name’:
../../../source/insight-6.7.1/gdb/gdbtk/generic/gdbtk-register.c:348: warning: cast from pointer to integer of different size
make[2]: *** [gdbtk-register.o] Error 1
make[2]: Leaving directory `/usr/local/avr/build/insight-6.7.1/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/usr/local/avr/build/insight-6.7.1'
make: *** [all] Error 2
(./buildinsight.sh) insight build failed (0)
Has anyone an idea why it fails?
Is it possible to only build gdb without insight?
I've retried it without success, attached the build log.
Regards, Gilles
It seems that they have made the new insight 6.8 , more 64-bit friendly
The script in the first post is now working again , and we have got Xmega support in avr-gcc.
I also updated avr-insight to ver 6.8 , and am also building avarice and avrdude.
Hmm I think I used the script before a year+ ago, but now it "evolved" into something else.
Is there still a script that does the build without any frills ? I don't want Tk, I don't want tex, I don't want a graphical debugger (!) heck I don't want a debugger even ! And I certainly don't want that before I have a binutils/gcc toolchain working.
Has anyone documented the build process for "manual" build from the generic source file + patches ?
You don't need TK , if you skip the "insight" part,it's a separate build script.
You need texinfo , unless you can convince binutils not to build docs.
Avrdude and AVArice , is being build unless you hack the script , as per request of Jörg.
Posted by Hr_Pengesekk: Sun. Jan 11, 2009 - 01:04 PM
1
2
3
4
5
Total votes: 0
I have avr-gcc and avr-libc installed on my opensuse system. ive tested that im able to compile a very basic program (making a led light up when a button is pressed). is there any reason i should ditch my current setup and install things this way?
and btw, totally new to this =)
Note to any other newbies like me out there... if it fails after running the getfiles and patches scripts asking for a lib from binutils be sure to read the pre-reqs file and install the necessary packages.
I am having a failure building from Debian Lenny (amd64).
The script fails while building avr-dude, the error has to do with yyin and yylex not defined.
I am having a failure building from Debian Lenny (amd64).
The script fails while building avr-dude, the error has to do with yyin and yylex not defined.
You are quite right , you prob need flex & bison.
Have a look in the Readme :wink:
Doesn't it say you need to install the deb packages mentioned in the prereq.txt file. :D
Another avrfreak have made a script that builds avr-gcc 4.3.2 , w. WIN-Avr patches i think
It is untested by me , but the topic is here https://www.avrfreaks.net/index.p...
If the last update to the patch is from 2008 then perhaps you should unstick this link until someone takes over current concurrency in the linux domain.
Posted by johnny_sako: Fri. Jun 26, 2009 - 07:14 PM
1
2
3
4
5
Total votes: 0
I would like to thank everyone who has contributed to this effort. The results are wonderful. I had spent 3 days by hand attempting to do what your scripts did in several hours. It looks like everything has compiled and installed properly. I am able to compile and burn images to a 3290p device without issue.
The last remaining piece I have is an issue with avr-insight. It seems to have an issue with tk.tcl not being installed properly. I checked the directories it was searching and found the files there, but no such luck. Anyone else have an issue with tk.tcl?
The last remaining piece I have is an issue with avr-insight. It seems to have an issue with tk.tcl not being installed properly. I checked the directories it was searching and found the files there, but no such luck. Anyone else have an issue with tk.tcl?
I had exactly the same problem. As ddd rather than insight is my poison of choice anyway I just did an apt-get on that and used it as the front end to avr-gdb
I have just been building the toolchain (4.3.3) on my WIND , and don't get this error.
I started by building avr-insight , and then the gcc-tooolchain.
The only thing i get an error with is: when i try to start avr-insight , being su'ed to root or another user.
avr:~$ avr-insight
Tk_Init failed: no display name and no $DISPLAY environment variable
avr:~$ export DISPLAY=localhost:0.0
avr:~$ avr-insight
Tk_Init failed: this isn't a Tk applicationcouldn't connect to display "localhost:0.0"
But if i start it as my "login" user it starts up wo. any errors .... But i dont specify anything on the cmd line besides avr-insight.
Ah, that may explain it. I hate all this protection nonsense in Linux (now creeping into Windows too) so just as I always run as Administrator in Windows I always run as root in Linux. Having said that I actually installed and built the toolchain as root so I should be the "login user" for it anyway.
Bingo, perhaps you should note that to download (and even see!) the scripts, you have to be registered and logged in. I always come to get the scripts when I am logged out and look aimlessly for the scripts for about a minute before realising I have to log in!
Hi,
Thanks for this useful thread.
I got an error when compiling with ./buildavr-no-insight.sh on my system: the error is due to my version of gcc installed on my PC, version 4.4.1. I got an error with "const char *" instead of "char *" which stopped the compilation.
To solve it, I added a 'sed' instruction to /buildavr-no-insight.sh before the avarice compilation:
sed -i '98s/jtagDeviceName/(char *)jtagDeviceName/g' ../../source/${avaricebase}/src/jtag2usb.cc
echo "($0) configuring avarice source"
This package contains the buildscripts and the patchfiles , for binutils-2.1.7 (w. the avr-size patch), avr-gcc-4.1.2 and avr-libc-1.46. Skip the get-patches.sh step , as the patches are included.
Hi,
Thanks for this useful thread.
I got an error when compiling with ./buildavr-no-insight.sh on my system: the error is due to my version of gcc installed on my PC, version 4.4.1. I got an error with "const char *" instead of "char *" which stopped the compilation.
To solve it, I added a 'sed' instruction to /buildavr-no-insight.sh before the avarice compilation:
sed -i '98s/jtagDeviceName/(char *)jtagDeviceName/g' ../../source/${avaricebase}/src/jtag2usb.cc
echo "($0) configuring avarice source"
Guyzz i have made an interrim version to fix the patch problem.
I apply 2 new patches to binutils , but i'm not 100% sure that they are production ready , and i cant seem to get hold of jörg.
But here it comes :-)
From the included Readme file
Ohh ... extract the file with : tar xvzf
/Bingo
Attachment(s):
- Log in or register to post comments
TopHello,
I tried to build avr-gcc on my Ubuntu 8.04 (x86_64) box. The
buildavr-no-insight.sh script works fine but the buildinsight.sh script stops with the following output:
Has anyone an idea why it fails?
Is it possible to only build gdb without insight?
I've retried it without success, attached the build log.
Regards, Gilles
Attachment(s):
- Log in or register to post comments
TopIt seems that they have made the new insight 6.8 , more 64-bit friendly
Get it from here
ftp://sourceware.org/pub/insight...
And correct the version number in the top of the buildinsight.sh script
Then rerun ./buildinsight.sh
If it works for you i'll corerct the scriptfiles to use the new insight 6.8 , but i don't have a 64-bit to test on.
So please report error/success
/Bingo
- Log in or register to post comments
TopHello,
good news, insight 6.8 build without any problem on my computer.
Thanks for the support.
Gilles
- Log in or register to post comments
TopThe script in the first post is now working again , and we have got Xmega support in avr-gcc.
I also updated avr-insight to ver 6.8 , and am also building avarice and avrdude.
Be sure to read the readme.txt , and the pre-reqs.txt
/Bingo
- Log in or register to post comments
TopThe download seems to be broken. :cry: Only 9.9 kB :shock:
... the only thing you cannot unscramble is eggs...
- Log in or register to post comments
TopWell the file is just 9.9 KB , as it is just the scripts.
I can confirm that the archive seems broken.
I will upload a new version.
But i think the contents is ok.
Strange ....
I have tried to extract the "local" .tar.gz file on 3 different Linux machines (2 Ubuntu , and a Centos) and they are ok.
But if i download and extract the tar.gz file from avrfreaks it fails , the extraction (on all 3).
The strange part is that neither WinZip nor WinRar complains about extraction , of the above file.
I wonder if Avr Freaks have a problem with tar.gz files ???
Could anyone else test by uploading/attaching a tar.gz file ?
/Bingo
- Log in or register to post comments
TopThank U :D
... the only thing you cannot unscramble is eggs...
- Log in or register to post comments
TopHere is a link to build a portable avr-libc , on a linux machine
https://www.avrfreaks.net/index.p...
And a thread where the avr-gcc build process might be better described for a linux newbie
https://www.avrfreaks.net/index.p...
/Bingo
- Log in or register to post comments
TopHmm I think I used the script before a year+ ago, but now it "evolved" into something else.
Is there still a script that does the build without any frills ? I don't want Tk, I don't want tex, I don't want a graphical debugger (!) heck I don't want a debugger even ! And I certainly don't want that before I have a binutils/gcc toolchain working.
Has anyone documented the build process for "manual" build from the generic source file + patches ?
Author of simavr - Follow me on twitter : @buserror
- Log in or register to post comments
Top@buserror
You don't need TK , if you skip the "insight" part,it's a separate build script.
You need texinfo , unless you can convince binutils not to build docs.
Avrdude and AVArice , is being build unless you hack the script , as per request of Jörg.
/Bingo
- Log in or register to post comments
TopUpdated the 4.2.2 zipfile to build under Ubuntu 8.10
/Bingo
- Log in or register to post comments
Tophi.. i am trying to configure gcc to /home/local/avr but getting configure error while binutils has been configured and installed. plz help
- Log in or register to post comments
Tophi.. i am trying to configure gcc to /home/local/avr but getting configure error while binutils has been configured and installed. plz help
- Log in or register to post comments
Top/home/local/avr is a strange path but ....
If you are using the scripts from this post , edit the scripts , and change the "Prefix" variable. To the path you would like.
Remember to be root or make sure the prefix path is writeable by your user
/Bingo
- Log in or register to post comments
TopI am running Ubuntu 8.10 and have avr-gcc 4.3.0 from the Ubuntu repositories. Does this script force a downgrade to 4.2.2?
http://jumptuck.com/
- Log in or register to post comments
TopYes this will install avr-gcc 4.2.2.
Don't run 2 avr gcc's at the same time.
If you use the script , then uninstall the ones you got from ubuntu , before using the script.
/Bingo
- Log in or register to post comments
TopIf you need avr-gcc 4.3.2 for linux (Ubuntu) , have a look here
https://www.avrfreaks.net/index.p...
/Bingo
- Log in or register to post comments
TopI have avr-gcc and avr-libc installed on my opensuse system. ive tested that im able to compile a very basic program (making a led light up when a button is pressed). is there any reason i should ditch my current setup and install things this way?
and btw, totally new to this =)
- Log in or register to post comments
TopDo you know the phrase "if it ain't broke don't fix it?" :lol:
- Log in or register to post comments
Topso what you are saying is that this script wont give me anything i havent got already?
- Log in or register to post comments
Top...but don not ask the forum why your compiler can't build code for your new AVR controller :idea:
... the only thing you cannot unscramble is eggs...
- Log in or register to post comments
TopMy recollection is that it is syntax that I use.
Iluvatar is the better part of Valar.
- Log in or register to post comments
TopNote to any other newbies like me out there... if it fails after running the getfiles and patches scripts asking for a lib from binutils be sure to read the pre-reqs file and install the necessary packages.
- Log in or register to post comments
TopFor building AVR-GCC 4.3.3 have a look here (or directly at the FemtoOS site http://www.femtoos.org/ )
https://www.avrfreaks.net/index.p...
/Bingo
- Log in or register to post comments
Topavr-gcc-4.2.2 toolchain - Minor update
/Bingo
Attachment(s):
- Log in or register to post comments
TopI am having a failure building from Debian Lenny (amd64).
The script fails while building avr-dude, the error has to do with yyin and yylex not defined.
- Log in or register to post comments
TopThanks So much!
I need to compile for the atmega32u4
- Log in or register to post comments
TopYou are quite right , you prob need flex & bison.
Have a look in the Readme :wink:
Doesn't it say you need to install the deb packages mentioned in the prereq.txt file. :D
/Bingo
- Log in or register to post comments
TopYes, I've installed flex and bison along with all the other prereq packages. I still get the error.
- Log in or register to post comments
TopThat is strange ....
Could you post the full err mesgs ?
Or maybe this hint will work.
https://www.avrfreaks.net/index.p...
/Bingo
- Log in or register to post comments
TopBrad S.
Another avrfreak have made a script that builds avr-gcc 4.3.2 , w. WIN-Avr patches i think
It is untested by me , but the topic is here
https://www.avrfreaks.net/index.p...
/Bingo
- Log in or register to post comments
TopIf the last update to the patch is from 2008 then perhaps you should unstick this link until someone takes over current concurrency in the linux domain.
- Log in or register to post comments
TopJust updated the "old" 4.2.2 script to build 4.2.4 w. full xmega support (per 20-jul-2006)
Well Jörg did all the patches i just adapted the script.
This will prob. be the last 4.2.x version , but 4.2.x sometimes creates more compact code than 4.3.x.
- Log in or register to post comments
TopI would like to thank everyone who has contributed to this effort. The results are wonderful. I had spent 3 days by hand attempting to do what your scripts did in several hours. It looks like everything has compiled and installed properly. I am able to compile and burn images to a 3290p device without issue.
The last remaining piece I have is an issue with avr-insight. It seems to have an issue with tk.tcl not being installed properly. I checked the directories it was searching and found the files there, but no such luck. Anyone else have an issue with tk.tcl?
Thanks,
John.
- Log in or register to post comments
TopI had exactly the same problem. As ddd rather than insight is my poison of choice anyway I just did an apt-get on that and used it as the front end to avr-gdb
- Log in or register to post comments
Top@johnny_sako & Clawson
I have just been building the toolchain (4.3.3) on my WIND , and don't get this error.
I started by building avr-insight , and then the gcc-tooolchain.
The only thing i get an error with is: when i try to start avr-insight , being su'ed to root or another user.
But if i start it as my "login" user it starts up wo. any errors .... But i dont specify anything on the cmd line besides avr-insight.
/Bingo
- Log in or register to post comments
TopAh, that may explain it. I hate all this protection nonsense in Linux (now creeping into Windows too) so just as I always run as Administrator in Windows I always run as root in Linux. Having said that I actually installed and built the toolchain as root so I should be the "login user" for it anyway.
- Log in or register to post comments
Top@Cliff
By loginuser i mean the user logging in on/via the graphical login page (if ubuntu)
I think he is the one owning the "DISPLAY"
This is an X (graphics) problem (who owns the display i guess ??) not the toolchain or root issue.
/Bingo
- Log in or register to post comments
Top@14-Jul-2009
Updated script to build avr-libc-1.6.7 and avrdude-5.8 , no change to avr-gcc.
/Bingo
- Log in or register to post comments
TopUpdated the buildscripts to fix an avr architecture 25 relocation error
https://www.avrfreaks.net/index.p...
/Bingo
- Log in or register to post comments
TopBingo, perhaps you should note that to download (and even see!) the scripts, you have to be registered and logged in. I always come to get the scripts when I am logged out and look aimlessly for the scripts for about a minute before realising I have to log in!
Math is cool.
jevinskie.com
- Log in or register to post comments
TopHi,
Thanks for this useful thread.
I got an error when compiling with ./buildavr-no-insight.sh on my system: the error is due to my version of gcc installed on my PC, version 4.4.1. I got an error with "const char *" instead of "char *" which stopped the compilation.
To solve it, I added a 'sed' instruction to /buildavr-no-insight.sh before the avarice compilation:
Olivier
- Log in or register to post comments
TopHello again,
Is there any chance that the Xmega 192A3 is also a recognized device by avr-gcc ?
- Log in or register to post comments
TopOnce you have built your avr-gcc use "avr-gcc --target-help" to get a list of the supported devices.
- Log in or register to post comments
TopHere is the list, there is no atxmega192A3:
Should I use this one ?
- Log in or register to post comments
TopI'd just use atxmega256a3 (almost identical but for the code flash size) and just watch for the code size bursting 192K
- Log in or register to post comments
TopHello everybody,
I just wanted to say a big Thank you to Bingo600 for his script, it worked flawless... :D
- Log in or register to post comments
TopUpdated the
to include a makeinfo patch.
It now compiles correctly on my Ubuntu 8.04
/Bingo
Attachment(s):
- Log in or register to post comments
TopIn response to this , and this thread https://www.avrfreaks.net/index.p...
I have made a new buildscript , witch incorporates a patch from Jörg.
Edit: 20-nov-2009 , removed the attached file
See the first post in this thread , for the newest version
- Log in or register to post comments
TopPages