View previous topic :: View next topic |
Author |
Message |
Oniryczny Guru
Joined: 01 Dec 2011 Posts: 419 Location: Poland
|
Posted: Sat Apr 12, 2014 12:24 pm Post subject: crossdev -t avr Help please |
|
|
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 |
|
|
b0nafide Apprentice
Joined: 17 Feb 2008 Posts: 171 Location: ~/
|
Posted: Sat Apr 12, 2014 10:00 pm Post subject: |
|
|
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 |
|
|
Oniryczny Guru
Joined: 01 Dec 2011 Posts: 419 Location: Poland
|
Posted: Sun Apr 13, 2014 9:28 am Post subject: |
|
|
so...
/etc/portage/package.mask file i rename to x86_64.keywords in a package.mask directory? _________________ cogito ergo sum |
|
Back to top |
|
|
Oniryczny Guru
Joined: 01 Dec 2011 Posts: 419 Location: Poland
|
Posted: Sat Jun 07, 2014 11:57 am Post subject: |
|
|
any help please what proper file names should I give? _________________ cogito ergo sum |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Sat Jun 07, 2014 3:49 pm Post subject: |
|
|
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 |
|
|
Oniryczny Guru
Joined: 01 Dec 2011 Posts: 419 Location: Poland
|
Posted: Sun Jun 08, 2014 11:00 am Post subject: |
|
|
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 |
|
|
|