Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc for avr with crossdev
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
tigrezno
Apprentice
Apprentice


Joined: 28 Jun 2002
Posts: 251
Location: Spain

PostPosted: Mon Apr 04, 2005 12:01 pm    Post subject: gcc for avr with crossdev Reply with quote

I've created a cross compiler for avr with crossdev. This is the output:

Code:
crossdev -t avr-unknown-linux-gnu
----------------------------------------------------------------------------------------------------------------
 * Host Portage ARCH:     x86
 * Target Portage ARCH:   x86
 * Target System:         avr
 * Stage:                 2 (C compiler & libc)

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * headers:               [none]-[latest]
 * libc:                  avr-libc-[latest]

 * PORTDIR_OVERLAY:       /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/avr
 * PORTAGE_TMPDIR:        /var/tmp/cross/avr
  _  -  ·  -  _  -  ·  -  _  -  ·  -  _  -  ·  -  _  -  ·  -  _  -  ·  -  _  -  ·  -  _  -  ·  -  _  -  ·  -  _
 * Emerging cross-binutils...                                                                             [ ok ]
 * Emerging cross-gcc-stage1...                                                                           [ ok ]
 * Emerging cross-avr-libc... 


Now i have a working avr-gcc, but my question is, what are the include files with avr-chip specific functions?
I see an avr-libc in portage, do i need to install them and use with crossdev or something?
Back to top
View user's profile Send private message
tigrezno
Apprentice
Apprentice


Joined: 28 Jun 2002
Posts: 251
Location: Spain

PostPosted: Mon Apr 04, 2005 12:24 pm    Post subject: Reply with quote

mmm finally i found them in /usr/avr

I thought that atmega88 was supported by the C compiler but it wasn't :?
Back to top
View user's profile Send private message
tigrezno
Apprentice
Apprentice


Joined: 28 Jun 2002
Posts: 251
Location: Spain

PostPosted: Mon Apr 04, 2005 7:14 pm    Post subject: Reply with quote

The winavr project have C support for atmega88, do you know how to get it on linux?

I've used crossdev with latest unstable binutils and avr-libc, but get no support.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum