View previous topic :: View next topic |
Author |
Message |
BrummieJim l33t
Joined: 22 Jul 2005 Posts: 683
|
Posted: Mon Apr 01, 2013 11:18 am Post subject: Arduino crossdev issues [solved] |
|
|
Hi,
I'm getting this error when I try to emerge Crossdev;
Quote: | --------------------------------------------------------------------------------
* crossdev version: 20120721
* 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:
* Portage flags:
_ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ -
* 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
|
How would I go about converting this to a directory, I can't find any information about it,
James
Last edited by BrummieJim on Tue Apr 09, 2013 9:17 pm; edited 1 time in total |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Mon Apr 01, 2013 11:43 am Post subject: |
|
|
ISTR I just added these lines to package.use - they were from an older version of
crossdev which didn't mess with directories. OTOH I see that I'm running crossdev-20111118,
so perhaps I just reverted to the older version itself. Either way, that crossdev compiles
avr-gcc-4.5.3-r2 without problems.
Code: |
#
# Automatically added by crossdev.
#
cross-avr/gdb sys-devel gdb
cross-avr/insight dev-util insight
cross-avr/binutils -openmp -selinux -multilib
cross-avr/avr-libc -openmp -selinux -multilib
cross-avr/gcc -fortran -openmp -selinux -boundschecking -d -gtk -gcj -libffi -mudflap -objc -objc++ -objc-gc -multilib
|
Will |
|
Back to top |
|
|
syn0ptik Apprentice
Joined: 09 Jan 2013 Posts: 267
|
Posted: Tue Apr 02, 2013 4:49 am Post subject: |
|
|
that should be avr32? I want to use buildroot for that, will it work? |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Tue Apr 02, 2013 8:58 am Post subject: |
|
|
I don't know - I 'm cross-compiling on an x86 for an AVR Atmega328, and I haven't
tried anything else.
Will |
|
Back to top |
|
|
BrummieJim l33t
Joined: 22 Jul 2005 Posts: 683
|
Posted: Tue Apr 02, 2013 5:44 pm Post subject: |
|
|
Ok, so my only option is to downgrade or convert. I'd really rather do the conversion, as I imagine I'll have to do it before too long anyway. |
|
Back to top |
|
|
BrummieJim l33t
Joined: 22 Jul 2005 Posts: 683
|
Posted: Sun Apr 07, 2013 2:38 pm Post subject: |
|
|
Really does anyone have any other ideas on how to solve this? |
|
Back to top |
|
|
platojones Veteran
Joined: 23 Oct 2002 Posts: 1602 Location: Just over the horizon
|
Posted: Sun Apr 07, 2013 4:32 pm Post subject: |
|
|
I think all you need to do is remove and save off your /etc/portage/package.env file (if it exists). Then 'mkdir /etc/portage/package.env' (as root), then (if necessary) 'chmod 755 /etc/portage/package.env'. Once you are done, rename and put your old package.env file back into that directory (if it contains anything you need).
BTW, this is true of most (if not all) of the things in /etc/portage. Makes it easy for ebuilds to add stuff automatically if it's a directory...they just copy the file into the directory instead of trying to stream edit a file with something like 'sed'.
I've got 2 crossdev environments installed and they both put files in that directory. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54098 Location: 56N 3W
|
Posted: Sun Apr 07, 2013 6:06 pm Post subject: |
|
|
BrummieJim,
If /etc/portage/package.env (ir most other /etc/portage/*) files exist, they can be used.
However, you may also make directories of the same name, in which case, the contents of all the files inside will be concatenated together, and treated as a 'file'.
crossdev insists on the latter approach.
So rename your files,
make directories of the same names as the original files.
move the renamed files into the directories
profit! _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
BrummieJim l33t
Joined: 22 Jul 2005 Posts: 683
|
Posted: Tue Apr 09, 2013 9:16 pm Post subject: |
|
|
Thanks, that's absolutely brilliant! Onto another problem, but slowly working through them. |
|
Back to top |
|
|
|