Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 286267 - sys-devel/crossdev-0.9.19: crossdev -s4 avr does not create avr-g++
Summary: sys-devel/crossdev-0.9.19: crossdev -s4 avr does not create avr-g++
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-24 17:07 UTC by Stoian Ivanov
Modified: 2011-10-25 06:50 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Forcing the latest versions of {binutils,gcc}-config/gnuconfig (cross-avr-binutils.log,469 bytes, text/plain)
2011-04-22 02:08 UTC, Rob Jeffrey
Details
Emerging cross-binutils ... (cross-avr-gcc-stage1.log,469 bytes, text/plain)
2011-04-22 02:09 UTC, Rob Jeffrey
Details
Emerging cross-gcc-stage1 ... (cross-avr-avr-libc.log,469 bytes, text/plain)
2011-04-22 02:10 UTC, Rob Jeffrey
Details
Emerging cross-avr-libc (cross-avr-gcc-stage2.log,469 bytes, text/plain)
2011-04-22 02:12 UTC, Rob Jeffrey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stoian Ivanov 2009-09-24 17:07:45 UTC
I'm trying to run arduino and it's ebuild  says I need to crossdev -s4 avr witch goes fine but I still cant start arduino properly because there is no avr-g++ though avr-gcc exists 

Reproducible: Always

Steps to Reproduce:




vasko /home/sdr # emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.4, glibc-2.10.1-r0, 2.6.30-gentoo-r4 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-i686-Intel-R-_Celeron-R-_CPU_2.66GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 14 Sep 2009 07:00:01 +0000
app-shells/bash:     4.0_p33
dev-java/java-config: 1.3.7-r1, 2.1.9
dev-lang/python:     2.5.4-r2, 2.6.2-r1, 3.1.1
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=i686 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_GB bg"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/root/myoverlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dts dvd dvdr eds emboss encode esd evo fam firefox flac fortran gdbm gif gmp gpm gstreamer hal iconv isdnlog jpeg kde libnotify mad mikmod mmx mp3 mp4 mpeg mysql ncurses nls nptl nptlonly ogg opengl pam pcre pdf perl png ppds pppd python qt qt3 qt3support qt4 quicktime readline reflection sdl session slang spell spl sse sse2 ssl startup-notification svg sysfs tcpd thunar tiff truetype unicode usb vorbis x264 x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid  dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif so status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB bg" USERLAND="GNU" VIDEO_CARDS="vesa nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

vasko /home/sdr #
Comment 1 Martin Walch 2009-10-26 13:53:13 UTC
Same problem here. Crossdev automatically adds

cross-dev/avr-gcc nocxx

(and many other flags) to package.use. It also kills any other line for avr-gcc.
Comment 2 Jimmy C. Chau 2009-10-27 21:38:15 UTC
Same problem here.  Workaround is to use the following command instead:
USE="-hardened -nocxx" crossdev -s4 -t avr

This command also has crossdev to add "-nocxx" to its entries in "/etc/portage/package.use", which overrides the "nocxx" that remains there.  

(Note that I'm on the hardened profile on my computer, so I also have to remove the hardened use flag since cross-avr/gcc does not appear to build with the hardened flag; but that's a different bug.)

An alternate workaround that I found at <http://jeremah.co.uk/linux/arduino_on_gentoo.html> is to run this command afterwards:
USE='-nocxx' emerge cross-avr/gcc
Comment 3 SpanKY gentoo-dev 2009-12-10 00:11:12 UTC
crossdev in git has switched avr to stage2-gcc by default and only disables fortran by default now
Comment 5 Shawn Rutledge 2010-10-07 08:52:39 UTC
None of the workarounds I've found have worked for me; it does not produce an avr-g++.  This is quite a blocker for arduino.

USE="-openmp" crossdev  -s4 avr

is adequate to get a working avr-gcc, but not g++.  Why?!?
Comment 6 rafaeltcc 2010-11-11 13:07:14 UTC
Same problem here. Crossdev runs well without error or warnings, Nevertheless equo isntall arduino complains about missing avr-g++

(In reply to comment #5)
> None of the workarounds I've found have worked for me; it does not produce an
> avr-g++.  This is quite a blocker for arduino.
> 
> USE="-openmp" crossdev  -s4 avr
> 
> is adequate to get a working avr-gcc, but not g++.  Why?!?
> 

Comment 7 rafaeltcc 2010-11-15 20:57:27 UTC
Can we reopen it?
Comment 8 SpanKY gentoo-dev 2010-12-03 03:18:23 UTC
no one has provided any actual log files.  avr-g++ installs just fine for me.
Comment 9 Rob Jeffrey 2011-04-22 02:08:57 UTC
Created attachment 270825 [details]
Forcing the latest versions of {binutils,gcc}-config/gnuconfig

lappy rob # crossdev -s4 avr
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 * Host Portage ARCH:     amd64
 * Target Portage ARCH:   *
 * Target System:         avr
 * Stage:                 4 (C/C++ compiler)

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * libc:                  avr-libc-[latest]

 * PORTDIR_OVERLAY:       /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/avr
 * PORTAGE_TMPDIR:        /var/tmp/cross/avr
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  
 * Forcing the latest versions of {binutils,gcc}-config/gnuconfig ...                                                                                                           [ ok ]
 * 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 ...                                                                                                                                                [ ok ]
 * Log: /var/log/portage/cross-avr-avr-libc.log
 * Emerging cross-avr-libc ...                                                                                                                                                  [ ok ]
 * Log: /var/log/portage/cross-avr-gcc-stage2.log
 * Emerging cross-gcc-stage2 ...
Comment 10 Rob Jeffrey 2011-04-22 02:09:47 UTC
Created attachment 270827 [details]
Emerging cross-binutils ...
Comment 11 Rob Jeffrey 2011-04-22 02:10:13 UTC
Created attachment 270829 [details]
Emerging cross-gcc-stage1 ...
Comment 12 Rob Jeffrey 2011-04-22 02:12:04 UTC
Created attachment 270831 [details]
Emerging cross-avr-libc
Comment 13 Rob Jeffrey 2011-04-22 02:13:26 UTC
lappy rob # crossdev -s4 avr
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 * Host Portage ARCH:     amd64
 * Target Portage ARCH:   *
 * Target System:         avr
 * Stage:                 4 (C/C++ compiler)

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * libc:                  avr-libc-[latest]

 * PORTDIR_OVERLAY:       /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/avr
 * PORTAGE_TMPDIR:        /var/tmp/cross/avr
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  
 * Forcing the latest versions of {binutils,gcc}-config/gnuconfig ...                                                                                                           [ ok ]
 * 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 ...                                                                                                                                                [ ok ]
 * Log: /var/log/portage/cross-avr-avr-libc.log
 * Emerging cross-avr-libc ...                                                                                                                                                  [ ok ]
 * Log: /var/log/portage/cross-avr-gcc-stage2.log
 * Emerging cross-gcc-stage2 ...                                                                                                                                                [ ok ]
Comment 14 SpanKY gentoo-dev 2011-04-30 00:28:24 UTC
Comment on attachment 270831 [details]
Emerging cross-avr-libc

none of these logs are useful -- they're all exactly the same.  they simply show that you've already installed the packages in question.  please read things before posting them.
Comment 15 Alejandro Dubrovsky 2011-10-25 06:50:18 UTC
I had the same issue. After wracking my brain for a while, I discovered that this was due to me having the 'keepwork' feature turned on.

crossdev builds stage 1 with 'nocxx'.  When it goes to rebuild for stage 2, if the directory is still there, it will skip the compile and go straight to install.

I'm noting this here in case some other poor sucker ever runs into the same issue.