AVR crosscompiler gcc instalation problem [Solved]

Discussions Regarding Software

Moderator: Moderators

Post Reply
Fallen_Angel
Baby Hen
Posts: 2
Joined: Fri Nov 18, 2011 19:30

AVR crosscompiler gcc instalation problem [Solved]

Post by Fallen_Angel » Fri Nov 18, 2011 19:41

Hi, I have a problem with installation AVR-crosscompilator on my Sabayon x86_64.
Installer rapports an problem with "USE='cxx nocxx' and USE='-cxx -nocxx'" while compiling gcc.
I'm tryed on gcc 4.5.3 and 4.6.2 - same resoluts

Step by step instructions
1. "emerge --unmerge cross-avr/gcc"
2. "emerge --unmerge cross-avr/avr-libc"
3. I'd wrote in "/etc/portage/package.keywords" these additional lines:

Code: Select all

# AVR Toolchain
=sys-devel/crossdev-20111011 ~amd64
cross-avr/binutils * -amd64 -~amd64
cross-avr/gcc * -amd64 -~amd64
cross-avr/avr-libc * -amd64 -~amd64
cross-avr/gdb * ~* -amd64 -~amd64
cross-avr/insight * ~* -amd64 -~amd64
4. emerge crossdev
5. addeded to "/etc/make.conf":

Code: Select all

PORTDIR_OVERLAY="/usr/local/portage $PORTDIR_OVERLAY"
6. "crossdev -t avr -s4"

Crossdev's Raport:

Code: Select all

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 * crossdev version:      20111018
 * Host Portage ARCH:     amd64
 * Target Portage ARCH:   *
 * Target System:         avr
 * Stage:                 4 (C/C++ compiler)
 * ABIs:                  default

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

 * CROSSDEV_OVERLAY:      /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PORTAGE_CONFIGROOT:    
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _ 
 * leaving sys-devel/binutils in /usr/local/portage
 * leaving sys-devel/gcc in /usr/local/portage
 * leaving dev-embedded/avr-libc in /usr/local/portage
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _ 
!!! WARNING - Cannot auto-configure CHOST avr
!!! You should edit /usr/avr/etc/portage/make.conf
!!! by hand to complete your configuration
 * Log: /var/log/portage/cross-avr-binutils.log
 * Emerging cross-binutils ...                                            [ ok ]
 * Log: /var/log/portage/cross-avr-gcc-stage1.log
 * Emerging cross-gcc-stage1 ...

 * gcc failed :(
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-avr-info.log
 * /var/log/portage/cross-avr-gcc-stage1.log
Logs:
/var/log/portage/cross-avr-info.log
/var/log/portage/cross-avr-gcc-stage1.log

Any ideas?

Fallen_Angel
Baby Hen
Posts: 2
Joined: Fri Nov 18, 2011 19:30

Re: AVR crosscompiler gcc instalation problem[Solved]

Post by Fallen_Angel » Fri Nov 18, 2011 19:58

In last step I had to put "USE="-nocxx" crossdev -t avr" instead of "crossdev -t avr" and everything woks fine.

Post Reply