Where is avr32-linux-gcc

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

Hi,

Avr32Studio can't find avr32-linux-gcc, in /usr/bin/
is only avr32-gcc.

Johann

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

Where're you getting your toolchain from? Generally the binaries are in /usr/[local/]avr32-linux/bin and /usr/[local/]avr32/bin. Either you can add those directories to your $PATH or place symlinks from those binaries in to /usr/bin.

-S.

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

Thank you for the answer,

What the difference among avr32-gcc and avr32-linux-gcc?
Both are Compilers for AP700x(avr32), or?

Quote:

Where're you getting your toolchain from?

http://www.atmel.com/dyn/product...
Johann

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

Quote:

Generally the binaries are in /usr/[local/]avr32-linux/bin and /usr/[local/]avr32/bin.

I find only /usr/avr32/bin but there is no avr32-linux-gcc.

Prompt "whereis avr32-linux-gcc" give no result.

There is no avr32-linux-gcc on my system.

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

To get the latest and greatest avr32-linux-gcc you should get Buildroot for AVR32 [1] and compile it yourself.

1: http://www.atmel.no/buildroot

Hans-Christian

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

Latest version (2.1.4) of AVR32 GNU Toolchain drops avr32-linux-gcc, avr32-linux-binutils and avr32-gdb. You should use the buildroot environment for avr32-linux development.

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

kubusse wrote:
What the difference among avr32-gcc and avr32-linux-gcc?
The Linux one is for Linux. The other is for standalone.

More technically, the linux one links against the uClibc C library which is designed to run on top of the Linux Kernel. The other links against newlib which is supposed to run without an operating system. Standalone programs run under Linux will segfault, Linux programs run standalone will, well, not run.

-S.

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

pab wrote:
Latest version (2.1.4) of AVR32 GNU Toolchain drops avr32-linux-gcc, avr32-linux-binutils and avr32-gdb. You should use the buildroot environment for avr32-linux development.

There is still no avr32-linux-gcc :( .

Johann

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

pab wrote:
Latest version (2.1.4) of AVR32 GNU Toolchain drops avr32-linux-gcc, avr32-linux-binutils and avr32-gdb. You should use the buildroot environment for avr32-linux development.

There is still no avr32-linux-gcc :( .

Johann

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

I found it :)

Thank you for help.

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

Okay, so where did your find it?
Thanks Skip

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

Quote:
I found it

Thank you for help.

You know, you could let us know where you found avr32-linux-gcc and what you did to fix it so others reading this can benefit.

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

http://www.atmel.com/dyn/product...

Down Buildroot for AVR32 and make one of the default configs for AVR32 boards, read the documentation to see how :)

Hans-Christian

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

Thanks hce.

I finally got buildroot to compile. How do I tell AVR32 Studio where to find the toolchain?

I try to compile a 'hello world' app in AVR32 Studio and it says cannot find avr32-linux-gcc.

I had a look and found it in $HOME/buildroot/build_avr32/staging_dir/bin, so I added that path to $PATH. Still no dice!

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

watterman,

Have you been able to solve this?

I'm having the SAME EXACT problem.

Any info would be appreciated.

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

i am interested too how watterman add the PATH

i am working with ubuntu and i added the PATH ../build_avr32/staging_dir/bin to /etc/environments.

But AVR32 Studio still not found avr32-linux-gcc

PROBLEM FIXED
I added the full Path /home/../build_avr32/staging_dir/bin
(Or in some buildroot versions: staging_dir/usr/bin)

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

I'm a complete AVR32 newbie and a complete embedded systems noob. Just trying to compile hello world for the an NGW100. I saw this post that said I have to use avr32-linux-gcc instead of avr32-gcc and I'm trying to compile this buildroot thing, which seems to be overkill just to get this binary. I'm running Ubuntu Hardy. I have no clue as to how to configure the setup in make menuconfig, so I took a few stabs and I'm still bombing out...really frustrated as I've been at it for several hours now. :?

The latest bomb is:

Quote:
checking for X... disabled
enable_sim = no
enableval = no
configure: error: "*** Gdb does not support native target avr32-unknown-linux-uclibc"
make[2]: *** [configure-gdb] Error 1
make[2]: Leaving directory `/home/brandon/Desktop/buildroot-avr32-v2.3.0/build_avr32/gdb-6.7.1-target'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/brandon/Desktop/buildroot-avr32-v2.3.0/build_avr32/gdb-6.7.1-target'
make: *** [/home/brandon/Desktop/buildroot-avr32-v2.3.0/build_avr32/gdb-6.7.1-target/gdb/gdb] Error 2

There HAS TO BE an easier way right? Or am I over-simplifying here? Am I missing some docs somewhere that may shed some light on this? And why was the compiler removed from the AVR ubuntu deb packages?

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

kubusse wrote:
Quote:

Generally the binaries are in /usr/[local/]avr32-linux/bin and /usr/[local/]avr32/bin.

I find only /usr/avr32/bin but there is no avr32-linux-gcc.

Prompt "whereis avr32-linux-gcc" give no result.

There is no avr32-linux-gcc on my system.

I also was unable to find avr32-linux-* utils.

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

I was unable to compile the buildroot because when I say
make source
the script tryes to download sources from _unavalable_ sites.

For example sites avr32linux.org and freedesktop.org seem to be always unavailable.

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

I think I found the avr32-linux-gcc compiler binary buried in the avr32 studio. I believe I found it in the linux version anyway.

http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3918

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

Well, turns out that the avr32studio does NOT have the avr32-linux-gcc in it either. I'm really stuck here. Anybody have the avr32-linux-gcc file compiled under Ubuntu? A Debian compile may even work. I've been searching high and low and cannot find it.

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

You must use Buildroot for AVR32 to generate an avr32-linux toolchain, go to www.atmel.no/buildroot

Hans-Christian

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

I was finally able to get avr32-linux-gcc binary for my ubuntu box. I compiled buildroot via make menuconfig. Then, used the following options:
Target architecture: avr32
Target architecture variant: AT32AP7000
Kernel: none
I left everything else as default.

After attempting a compile, it went for about 30-45 minutes and my compile terminated with the following:

Quote:
config.status: executing depfiles commands
config.status: executing default commands
touch /home/brandon/DEV/atmel/buildroot-avr32-v2.3.0/build_avr32/genext2fs-1.4.1/.configured
/usr/bin/make -j1 CFLAGS="-Wall -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE \
-D_FILE_OFFSET_BITS=64" -C /home/brandon/DEV/atmel/buildroot-avr32-v2.3.0/build_avr32/genext2fs-1.4.1
make[1]: Entering directory `/home/brandon/DEV/atmel/buildroot-avr32-v2.3.0/build_avr32/genext2fs-1.4.1'
/usr/bin/make all-am
make[2]: Entering directory `/home/brandon/DEV/atmel/buildroot-avr32-v2.3.0/build_avr32/genext2fs-1.4.1'
if /usr/bin/gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -MT genext2fs.o -MD -MP -MF ".deps/genext2fs.Tpo" -c -o genext2fs.o genext2fs.c; \
then mv -f ".deps/genext2fs.Tpo" ".deps/genext2fs.Po"; else rm -f ".deps/genext2fs.Tpo"; exit 1; fi
/usr/bin/gcc -Wall -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -o genext2fs genext2fs.o
make[2]: Leaving directory `/home/brandon/DEV/atmel/buildroot-avr32-v2.3.0/build_avr32/genext2fs-1.4.1'
make[1]: Leaving directory `/home/brandon/DEV/atmel/buildroot-avr32-v2.3.0/build_avr32/genext2fs-1.4.1'
touch -c /home/brandon/DEV/atmel/buildroot-avr32-v2.3.0/build_avr32/genext2fs-1.4.1/genext2fs
test -x /home/brandon/DEV/atmel/buildroot-avr32-v2.3.0/build_avr32/staging_dir/sbin/avr32-linux-uclibc-ldconfig && /home/brandon/DEV/atmel/buildroot-avr32-v2.3.0/build_avr32/staging_dir/sbin/avr32-linux-uclibc-ldconfig -r /home/brandon/DEV/atmel/buildroot-avr32-v2.3.0/project_build_avr32/uclibc/root 2>/dev/null
make: *** [/home/brandon/DEV/atmel/buildroot-avr32-v2.3.0/binaries/uclibc/rootfs.avr32.ext2] Error 1

However, I guess avr32-linux-gcc did get compiled (finally) and was located in /home/brandon/DEV/atmel/buildroot-avr32-v2.3.0/build_avr32/staging_dir/usr/bin I was then able to successfully run avr32-linux-gcc cross compiler, compile hello world and execute it on my NGW100 board. I'm not sure as to why my compiler had a problem with ext2 during the compile process, but I'm a noob with this embedded linux thing, so hopefully I can figure that out in the future. I've attached my copy of avr32-linux-gcc, but note that it's compiled for my ubuntu box and for the AT32AP7000 processor.

Attachment(s): 

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

Have you been able to solve this?

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

pankajnagarkoti80 I had to compile the buildroot package in order to get avr32-linux-gcc. I did not get the whole package compiled, but did get far enough so that my machine compiled avr32-linux-gcc. I have not been able to successfully compile buildroot yet.

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

Hi all,

Like the other AVR32 linux newbies, I couldn't get buildroot to make, until I noticed some weird strings in the errors.

The make doesn't handle a in a directory name!

That includes directories ABOVE the one you're working in!

Make sure the full path to your working directory contains no space characters!

Good luck.

SilverBlue

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

The following worked for me (followed by make again):

brad@Philo:~/buildroot-avr32-v2.3.0/build_avr32/staging_dir$ ln -s usr/sbin/ sbin

Mine was failing here:

test -x /home/brad/buildroot-avr32-v2.3.0/build_avr32/staging_dir/sbin/avr32-linux-uclibc-ldconfig && /home/brad/buildroot-avr32-v2.3.0/build_avr32/staging_dir/sbin/avr32-linux-uclibc-ldconfig -r /home/brad/buildroot-avr32-v2.3.0/project_build_avr32/uclibc/root 2>/dev/null
make: *** [/home/brad/buildroot-avr32-v2.3.0/binaries/uclibc/rootfs.avr32.ext2] Error 1 

Turns out, avr32-linux-uclibc-ldconfig does not exist in .../buildroot-avr32-v2.3.0/build_avr32/staging_dir/sbin/, but rather in .../buildroot-avr32-v2.3.0/build_avr32/staging_dir/usr/sbin/. Sounds like a bug in buildroot to me.

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

After this much time ... the correct answer two "where is avr32-linux-gcc" should be "it's in the mainline GCC tree".

But that hasn't happened yet. When will it finally happen? Or has Atmel given up?

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

usr/ in staging_dir is just a symbolic link to ./, so it should be present in both usr/sbin/ and sbin/ in staging_dir path.

Hans-Christian

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

usr/ in staging_dir is just a symbolic link to ./, so it should be present in both usr/sbin/ and sbin/ in staging_dir path.

Quote:
But that hasn't happened yet. When will it finally happen? Or has Atmel given up?
AFAIK not given up, it just seems to take a lot of time to get the papers ready.

Hans-Christian

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

I find this all very frustrating. Atmel's web page seems to indicate that you can use the Windows version of AVR32 Studio to create Linux apps....

AVR32 Studio is a free Integrated Development Environment (IDE) for AVR32 that enables you to write, build, deploy and debug your C/C++ and assembler code. AVR32 Studio integrates with the AVR32 GNU Toolchain including GCC for building applications for AVR32. AVR32 Studio is Built On Eclipse™ and supports Microsoft® Windows® 2000, XP and Vista, and Linux®.
.
.
- Support for writing and debugging Linux applications

Once you install it, you find out that Linux apps are not supported on the Windows platform and you must build a Linux development platform. Once having done that and installing the GNU toolchain which the website states ...

AVR32 GNU Toolchain is a set of standalone command line programs used to create applications for AVR32 microcontrollers. The applications run either as embedded applications or on top of an embedded operating system, e.g. Linux®.

You find out that's not exactly true either; you have to install a complete buildroot environment.

What's up at Atmel? Why don't they tell you exactly what's required to build a Linux app for their boards? If it weren't for these forums, my NGW100 would be landfill by this point.

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

Building linux apps was supported in the 1.n version and it was taken out.. Probably there was too many problems with it, and many of them was probably user related ( just guessing ).

Life's to short for waiting on slow CPU's

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

Quote:
AFAIK not given up, it just seems to take a lot of time to get the papers ready.

Over two years by now ... "time to get the papers ready" does not cover that many delays. Something else is going on. :(

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

no words

Last Edited: Thu. Nov 4, 2010 - 07:48 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Paper work with FSF is done :) AFAIK Atmel is working on tuning and testing the toolchain port against the latest GCC trunk. There is another thread here somewhere in the AVR32 forums from EW about the toolchain status.

Hans-Christian