Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to get crossdev to work for Arduino.
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
BrummieJim
l33t
l33t


Joined: 22 Jul 2005
Posts: 683

PostPosted: Tue Apr 09, 2013 9:44 pm    Post subject: Unable to get crossdev to work for Arduino. Reply with quote

Hi,
Trying to get crossdev to work on my gentoo system, but unfortunately can't get it to compile; I'm using the command;
Quote:

crossdev -t avr

--------------------------------------------------------------------------------
* crossdev version: 20120305
* 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
* leaving sys-devel/gdb in /usr/local/portage
* leaving dev-util/insight in /usr/local/portage
_ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ -
* 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


Quote:


The error is:

for file in $parts; do \
rm -f ../.././gcc/$file; \
/usr/bin/install -c -m 644 $file ../.././gcc/; \
case $file in \
*.a) \
/usr/libexec/gcc/avr/ranlib ../.././gcc/$file ;; \
esac; \
done
make[3]: Leaving directory `/var/tmp/portage/cross-avr/gcc-4.7.2-r1/work/build/avr/libgcc'
make[2]: Leaving directory `/var/tmp/portage/cross-avr/gcc-4.7.2-r1/work/build/avr/libgcc'
make[1]: Leaving directory `/var/tmp/portage/cross-avr/gcc-4.7.2-r1/work/build'
/var/tmp/portage/cross-avr/gcc-4.7.2-r1/work/build /var/tmp/portage/cross-avr/gcc-4.7.2-r1/work/gcc-4.7.2
>>> Source compiled.
>>> Test phase [not enabled]: cross-avr/gcc-4.7.2-r1

>>> Install gcc-4.7.2-r1 into /var/tmp/portage/cross-avr/gcc-4.7.2-r1/image/ category cross-avr
cp: cannot stat '/var/tmp/portage/cross-avr/gcc-4.7.2-r1/work/build/gcc/doc/*.info': No such file or directory
* ERROR: cross-avr/gcc-4.7.2-r1 failed (install phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 93: Called src_install
* environment, line 4206: Called toolchain_src_install
* environment, line 4873: Called die
* The specific snippet of code:
* cp "${S}"/gcc/doc/*.info gcc/doc/ || die;
*
* If you need support, post the output of `emerge --info '=cross-avr/gcc-4.7.2-r1'`,
* the complete build log and the output of `emerge -pqv '=cross-avr/gcc-4.7.2-r1'`.
* This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
*
* Please include /var/tmp/portage/cross-avr/gcc-4.7.2-r1/work/build/gcc-build-logs.tar.bz2 in your bug report
*
* The complete build log is located at '/var/tmp/portage/cross-avr/gcc-4.7.2-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/cross-avr/gcc-4.7.2-r1/temp/environment'.
* Working directory: '/var/tmp/portage/cross-avr/gcc-4.7.2-r1/work/build'
* S: '/var/tmp/portage/cross-avr/gcc-4.7.2-r1/work/build'

>>> Failed to emerge cross-avr/gcc-4.7.2-r1, Log file:

>>> '/var/tmp/portage/cross-avr/gcc-4.7.2-r1/temp/build.log'
* Messages for package cross-avr/gcc-4.7.2-r1:
*
* LTO support is still experimental and unstable.
* Any bugs resulting from the use of LTO will not be fixed.
*
* ERROR: cross-avr/gcc-4.7.2-r1 failed (install phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 93: Called src_install
* environment, line 4206: Called toolchain_src_install
* environment, line 4873: Called die
* The specific snippet of code:
* cp "${S}"/gcc/doc/*.info gcc/doc/ || die;
*
* If you need support, post the output of `emerge --info '=cross-avr/gcc-4.7.2-r1'`,
* the complete build log and the output of `emerge -pqv '=cross-avr/gcc-4.7.2-r1'`.
* This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
*
* Please include /var/tmp/portage/cross-avr/gcc-4.7.2-r1/work/build/gcc-build-logs.tar.bz2 in your bug report


If anyone knows how to solve this, I would be very grateful,
James
Back to top
View user's profile Send private message
slis
Retired Dev
Retired Dev


Joined: 11 Oct 2010
Posts: 67
Location: Limanowa

PostPosted: Wed Apr 10, 2013 5:24 am    Post subject: Reply with quote

I just checked and successfully emerged avr compiler.
But my crossdev version is 20120913. Please try to update crossdev and try again
Back to top
View user's profile Send private message
BrummieJim
l33t
l33t


Joined: 22 Jul 2005
Posts: 683

PostPosted: Wed Apr 10, 2013 6:56 am    Post subject: Reply with quote

Got it working finally with;
Quote:

USE="-openmp" crossdev -t avr --l 1.7.0 --g 4.5.2 -s4 --without-headersUSE="-openmp" crossdev -t avr --l 1.7.0 --g 4.5.2 -s4 --without-headers


Thanks Slis, I'd only just seen your solution,
James
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