Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Arduino crossdev issues [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
BrummieJim
l33t
l33t


Joined: 22 Jul 2005
Posts: 683

PostPosted: Mon Apr 01, 2013 11:18 am    Post subject: Arduino crossdev issues [solved] Reply with quote

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
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Mon Apr 01, 2013 11:43 am    Post subject: Reply with quote

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
View user's profile Send private message
syn0ptik
Apprentice
Apprentice


Joined: 09 Jan 2013
Posts: 267

PostPosted: Tue Apr 02, 2013 4:49 am    Post subject: Reply with quote

that should be avr32? I want to use buildroot for that, will it work?
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Tue Apr 02, 2013 8:58 am    Post subject: Reply with quote

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
View user's profile Send private message
BrummieJim
l33t
l33t


Joined: 22 Jul 2005
Posts: 683

PostPosted: Tue Apr 02, 2013 5:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
BrummieJim
l33t
l33t


Joined: 22 Jul 2005
Posts: 683

PostPosted: Sun Apr 07, 2013 2:38 pm    Post subject: Reply with quote

Really does anyone have any other ideas on how to solve this?
Back to top
View user's profile Send private message
platojones
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1602
Location: Just over the horizon

PostPosted: Sun Apr 07, 2013 4:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54098
Location: 56N 3W

PostPosted: Sun Apr 07, 2013 6:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
BrummieJim
l33t
l33t


Joined: 22 Jul 2005
Posts: 683

PostPosted: Tue Apr 09, 2013 9:16 pm    Post subject: Reply with quote

Thanks, that's absolutely brilliant! Onto another problem, but slowly working through them.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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