Just built Atmel 3.4.5 from source

Go To Last Post
9 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

Just built Atmel 3.4.5 from source , because .... (i use to...) blush

 

I had to modify a bit in the build-avr8-gnu-toolchain-git.sh , where 3.4.4 actually was close to working (according to their description)

Atmel did FSCK up in the extractions , and header replacement in the 3.4.5 script. And they packed gdb with a dirname of binutils-gdb ????

 

 

But here it is

 

Unpacking ncurses...                                OK
Preparing GDB...                                    OK
Building Binutils for avr...                        OK
Installing binutils for avr...                      OK
Building libgmp ...                                 OK
Installing gmp ...                                  OK
Building libmpfr ...                                OK
Installing mpfr ...                                 OK
Building libmpc ...                                 OK
Installing mpc ...                                  OK
Building bootstrap GCC for avr...                   OK
Installing bootstrap GCC for avr...                 OK
Building avr-libc ...                               OK
Installing avr-libc ...                             OK
Building libgmp ...                                 OK
Installing gmp ...                                  OK
Building libmpfr ...                                OK
Installing mpfr ...                                 OK
Building libmpc ...                                 OK
Installing mpc ...                                  OK
Building full GCC for avr...                        OK
Installing full GCC for avr...                      OK
Building ncurses ...                                OK
Installing ncurses ...                              OK
Building GDB for avr...                             OK
Installing GDB for avr...                           OK
Finished at Tue Nov 11 21:42:44 CET 2014
Task completed in 1 hours, 14 minutes and 57 seconds.

 

 

And result

 

$./avr-gcc -v
Using built-in specs.
COLLECT_GCC=./avr-gcc
COLLECT_LTO_WRAPPER=/home/bingo/1-Build-Avr-GCC/Atmel-3.4.5/builddir/inst/libexec/gcc/avr/4.8.1/lto-wrapper
Target: avr
Configured with: /home/bingo/1-Build-Avr-GCC/Atmel-3.4.5/builddir/src/gcc/configure LDFLAGS=-L/home/bingo/1-Build-Avr-GCC/Atmel-3.4.5/builddir/inst/lib CPPFLAGS= --target=avr --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/home/bingo/1-Build-Avr-GCC/Atmel-3.4.5/builddir/inst --libdir=/home/bingo/1-Build-Avr-GCC/Atmel-3.4.5/builddir/inst/lib --enable-languages=c,c++ --with-dwarf2 --enable-doc --disable-shared --disable-libada --disable-libssp --disable-nls --with-avrlibc=yes --with-mpfr=/home/bingo/1-Build-Avr-GCC/Atmel-3.4.5/builddir/inst --with-gmp=/home/bingo/1-Build-Avr-GCC/Atmel-3.4.5/builddir/inst --with-mpc=/home/bingo/1-Build-Avr-GCC/Atmel-3.4.5/builddir/inst --enable-fixed-point --with-pkgversion=AVR_8_bit_GNU_Toolchain_3.4.5-Bingo_201411112027 --with-bugurl=http://www.atmel.com
Thread model: single
gcc version 4.8.1 (AVR_8_bit_GNU_Toolchain_3.4.5-Bingo_201411112027)

 

 

Is there any interest in a new .deb for RasPI on wrightflyer ?

I don't want to spent the time for making the .deb , if no one wants it.

 

/Bingo

 

Last Edited: Tue. Nov 11, 2014 - 09:07 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Bingo600 wrote:
Atmel 3.4.5

What?

 

Do you mean Atmel Studio? Or ASF? Or what??

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think he means the AVR Toolchain:

http://www.atmel.com/tools/ATMELAVRTOOLCHAINFORWINDOWS.aspx

http://www.atmel.com/tools/ATMELAVRTOOLCHAINFORLINUX.aspx

 

BTW, nice to see the Linux 64-bit toolchain for 8-bit AVR has finally made it onto the page (3.4.5)

 

EDIT: For the life of me, I can't find the recent thread discussing the missing 3.4.5 Linux 64-bit toolchain for 8-bit AVR (raging against the new site's search facility!).

 

I'll just post my findings here.  Used wget to grab the 64-bit and 32-bit and preserve the server-side timestamps:

-rw-r--r--  1 joeymorin joeymorin 107632397 2014-11-03 04:40 avr8-gnu-toolchain-3.4.5.1522-linux.any.x86.tar.gz
-rw-r--r--  1 joeymorin joeymorin 110792466 2014-11-03 04:45 avr8-gnu-toolchain-3.4.5.1522-linux.any.x86_64.tar.gz

So evidently they were in fact built at the same time, but for some reason the 64-bit build didn't make it up onto the website right away.  It's there now though.

"Experience is what enables you to recognise a mistake the second time you make it."

"Good judgement comes from experience.  Experience comes from bad judgement."

"Wisdom is always wont to arrive late, and to be a little approximate on first possession."

"When you hear hoofbeats, think horses, not unicorns."

"Fast.  Cheap.  Good.  Pick two."

"Read a lot.  Write a lot."

"We see a lot of arses on handlebars around here." - [J Ekdahl]

 

Last Edited: Wed. Nov 12, 2014 - 05:58 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

raging against the new site's search facility!

 

Is that 'rage against the machine' Joey? 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

As Joey said , it's the AVR-8bit  toolchain

 

/Bingo

Last Edited: Wed. Nov 12, 2014 - 06:34 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Kartman wrote:
Is that 'rage against the machine' Joey?
The AVR Freaks search facility said / wrote:
F%#! YOU I WON'T DO WHAT YOU TELL ME!

"Experience is what enables you to recognise a mistake the second time you make it."

"Good judgement comes from experience.  Experience comes from bad judgement."

"Wisdom is always wont to arrive late, and to be a little approximate on first possession."

"When you hear hoofbeats, think horses, not unicorns."

"Fast.  Cheap.  Good.  Pick two."

"Read a lot.  Write a lot."

"We see a lot of arses on handlebars around here." - [J Ekdahl]

 

Last Edited: Wed. Nov 12, 2014 - 02:03 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Patience is needed for building on a RasPI

 

 

Installing gmp ...                                  OK
Building libmpfr ...                                OK
Installing mpfr ...                                 OK
Building libmpc ...                                 OK
Installing mpc ...                                  OK
Building bootstrap GCC for avr...                   OK
Installing bootstrap GCC for avr...                 OK
Building avr-libc ...                               OK
Installing avr-libc ...                             OK
Building libgmp ...                                 OK
Installing gmp ...                                  OK
Building libmpfr ...                                OK
Installing mpfr ...                                 OK
Building libmpc ...                                 OK
Installing mpc ...                                  OK
Building full GCC for avr...                        OK
Installing full GCC for avr...                      OK
Building ncurses ...                                OK
Installing ncurses ...                              OK
Building GDB for avr...                             OK
Installing GDB for avr...                           OK
Finished at Fri Nov 14 11:26:28 CET 2014
Task completed in 18 hours, 49 minutes and 55 seconds.

 

I'm always testing the builds on a pc before attempting it on a RasPI , else you'll throw away hours of compile time

 

This one was ok

 

root@raspi3:/usr/local/avr/bin# ./avr-gcc -v
Using built-in specs.
COLLECT_GCC=./avr-gcc
COLLECT_LTO_WRAPPER=/usr/local/avr/libexec/gcc/avr/4.8.1/lto-wrapper
Target: avr
Configured with: /home/cfo/build-avr-gcc/builddir/src/gcc/configure LDFLAGS=-L/usr/local/avr/lib CPPFLAGS= --target=avr --host=armv6l-pc-linux-gnu --build=armv6l-pc-linux-gnu --prefix=/usr/local/avr --libdir=/usr/local/avr/lib --enable-languages=c,c++ --with-dwarf2 --enable-doc --disable-shared --disable-libada --disable-libssp --disable-nls --with-avrlibc=yes --with-mpfr=/usr/local/avr --with-gmp=/usr/local/avr --with-mpc=/usr/local/avr --enable-fixed-point --with-pkgversion=AVR_8_bit_GNU_Toolchain_3.4.5-Bingo_201411131636 --with-bugurl=http://www.atmel.com
Thread model: single
gcc version 4.8.1 (AVR_8_bit_GNU_Toolchain_3.4.5-Bingo_201411131636)
root@raspi3:/usr/local/avr/bin#

Btw. how does one tag code in this new super forum editor ?

Until now i have only succeded in finding "quote"

 

/Bingo

 

Ohh. What does your avr-gcc -v say on a 3.4.5 toolchain ?

The buildscript Atmel has in the 3.4.5 dir , uses 3.4.4 , and is severely handicapped in other ways also.

I suspect that it's not the one they build the TC with.

 

 

Last Edited: Fri. Nov 14, 2014 - 02:43 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Btw. how does one tag code in this new super forum editor ?

Don't paste then tag (like the old site). Instead start by pressing the "<>" icon on the toolbar then paste your code into that. Finally [OK] and the code block is inserted into the original message. Sadly no, although that code editor does color syntax highlighting of the C this does not make it into what gets dropped into the message - that's just plain green text (at the moment anyway!).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanx cliff

 

/Bingo