Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
crossdev -t avr Help please
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Oniryczny
Apprentice
Apprentice


Joined: 01 Dec 2011
Posts: 279
Location: Poznań

PostPosted: Sat Apr 12, 2014 12:24 pm    Post subject: crossdev -t avr Help please Reply with quote

Hello.

I have installed arduino but I get errors from gcc so I found a HOW-TO
https://forums.gentoo.org/viewtopic-t-907860-start-0.html

but I get
Code:
# crossdev -t avr
...
 * please convert /etc/portage/package.env to a directory
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-avr-info.log

changing package.env into a directory makes it giving me an error to change package.mask into a directory

Is it safe to change them to directories?
What about masks and environments in files?
What names of files should I put int those directories containing masks and environments?
_________________
cogito ergo sum
Back to top
View user's profile Send private message
b0nafide
Apprentice
Apprentice


Joined: 17 Feb 2008
Posts: 166
Location: ~/

PostPosted: Sat Apr 12, 2014 10:00 pm    Post subject: Reply with quote

Hello, when you are cross-compiling portage needs to make a distinction between your usual environment and your crossdev environment(s). For each file like package.keywords, copy the file to the name of your current architecture for clarity (ie. i686.keywords or similar), delete the old file and create a directory with it's old name (ie. /etc/portage/package.keywords/). Finally place your old, renamed file inside that directory.

Later on, when crossdev is complete, there can now be two (or more) files inside each /etc/portage/foo.bar directory, each pertaining to specific environments that you compile for on that machine.

Examples here: https://forums.gentoo.org/viewtopic-t-940068-start-0.html
Back to top
View user's profile Send private message
Oniryczny
Apprentice
Apprentice


Joined: 01 Dec 2011
Posts: 279
Location: Poznań

PostPosted: Sun Apr 13, 2014 9:28 am    Post subject: Reply with quote

so...
/etc/portage/package.mask file i rename to x86_64.keywords in a package.mask directory?
_________________
cogito ergo sum
Back to top
View user's profile Send private message
Oniryczny
Apprentice
Apprentice


Joined: 01 Dec 2011
Posts: 279
Location: Poznań

PostPosted: Sat Jun 07, 2014 11:57 am    Post subject: Reply with quote

any help please what proper file names should I give?
_________________
cogito ergo sum
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1814

PostPosted: Sat Jun 07, 2014 3:49 pm    Post subject: Reply with quote

I used:
Code:

USE="-openmp" crossdev --target avr --gcc 4.5.3-r2 --binutils 2.21.1-r1 \
  --libc 1.6.8 --without-headers

on a 32-bit system; you'll need to adjust the versions for your current setup.

Will
Back to top
View user's profile Send private message
Oniryczny
Apprentice
Apprentice


Joined: 01 Dec 2011
Posts: 279
Location: Poznań

PostPosted: Sun Jun 08, 2014 11:00 am    Post subject: Reply with quote

I use x86-64

now, after changing every needed file to a directory I get:
Code:

# crossdev -t avr
WARNING: 'portageq envvar PORTDIR_OVERLAY' is deprecated. Use 'portageq repositories_configuration' instead.
WARNING: 'portageq envvar PORTDIR' is deprecated. Use 'portageq repositories_configuration' instead.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 * crossdev version:      20131107
 * 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:      /var/lib/layman/roslin
 * PORT_LOGDIR:           /var/log/portage
 * PORTAGE_CONFIGROOT:   
 * Portage flags:         
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~
 * getting sys-devel/gcc from /var/lib/layman/sabayon-distro
 * leaving metadata/layout.conf alone in /var/lib/layman/roslin
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~
WARNING: 'portageq envvar PORTDIR' is deprecated. Use 'portageq repositories_configuration' instead.
WARNING: 'portageq envvar PORTDIR_OVERLAY' is deprecated. Use 'portageq repositories_configuration' instead.
!!! 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.xz
 * /var/tmp/portage/cross-avr/gcc*/temp/gcc-config.logs.tar.xz

I have found that I* do not have avr-libc package, which one should I install?
_________________
cogito ergo sum
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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