Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210745 - [cross-avr/gcc-4.2.3] fails compile, bad opcode: movw for avr3
Summary: [cross-avr/gcc-4.2.3] fails compile, bad opcode: movw for avr3
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/bugzilla/show_bug....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-19 19:42 UTC by Giacomo Ferrari
Modified: 2008-06-17 21:41 UTC (History)
1 user (show)

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


Attachments
Failed build log generated by crossdev. (cross-avr-gcc-stage1.log,867.25 KB, text/plain)
2008-02-19 19:43 UTC, Giacomo Ferrari
Details
patch to resolve this problem (binutils.patch,3.22 KB, patch)
2008-03-06 20:15 UTC, Thomas Feller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Giacomo Ferrari 2008-02-19 19:42:45 UTC
The latest cross-avr/gcc fails to compile on my machine, claiming a bad opcode movw for mcu avr3. Attached are the logs generated by crossdev -t avr -s4. I know this is masked software, I apologize if this is an unnecessary bug report. The URL is for the upstream bug I found.

Reproducible: Always

Steps to Reproduce:
1. emerge =cross-avr/gcc-4.2.3
Actual Results:  
Compile breaks, see logs.


Installed crossdev-related packages:
cross-avr/avr-libc-1.4.6  cross-avr/binutils-2.18-r1  cross-avr/gcc-4.2.2
sys-devel/crossdev-0.9.18-r7

emerge --info:
Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r2 x86_64 Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz
Timestamp of tree: Tue, 19 Feb 2008 17:00:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -msse3 -mfpmath=sse -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -msse3 -mfpmath=sse -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo"
LANG="en_US.UTF-8"
LINGUAS="en it fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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="/usr/portage/local/layman/xeffects"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aim akamaru alsa amd64 ansi apache2 bash-completion berkdb bitmap-fonts bonobo bzip2 cddb cdparanoia cdr cli cpudetection cracklib crypt cups dbus divx dri dts dv dvb dvd dvdnav dvdr dvdread encode escreen exif fat fbsplash ffmpeg firefox flac flash foomaticdb fortran ftp gcj gdbm gif glitz gpm gtk gtk2 hal hfs iconv id3tag ieee1394 ipod ipv6 isdnlog java joystick jpeg lm_sensors logrotate lzo mad matrox midi mime mmx mmxext mp3 mp4 mpeg mplayer mudflap musepack ncurses nls nognome nptl nptlonly nsplugin ntfs nvidia ogg opengl openmp pam pcre pdf perl php plotutils png pppd python readline reflection reiserfs samba session smp speex spl sse sse2 ssl ssse3 subtitles svg tcpd tiff truetype truetype-fonts type1-fonts udev unicode v4l v4l2 vcd videos visualization vorbis wifi wmf wmp x264 xcomposite xine xinerama xml xorg xscreensaver xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en it fr" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Giacomo Ferrari 2008-02-19 19:43:59 UTC
Created attachment 144007 [details]
Failed build log generated by crossdev.
Comment 2 SpanKY gentoo-dev 2008-02-20 04:21:33 UTC
either you need to update your binutils to something newer or upstream gcc is broken

i'm pretty sure the avr guys are still in process of getting integrated properly into mainline

either way, we dont have a dev currently who tracks avr closely, so if upgrading to binutils-2.18.50.x.x doesnt fix things for you, you should open a bug at gcc.gnu.org (then again, the avr guys may just tell you to use their binary releases ...)
Comment 3 Thomas Feller 2008-03-06 20:15:29 UTC
Created attachment 145432 [details, diff]
patch to resolve this problem

copy file to /etc/portage/patches/cross-avr/binutils/ and start "crossdev avr" again.
Comment 4 Stephen Bridges 2008-06-14 11:44:00 UTC
> copy file to /etc/portage/patches/cross-avr/binutils/ and start "crossdev avr"
> again.

This patch works for me as well.  Can it not be added as a patch to binutils in gentoo, as without it we don't have >=gcc-4.2?

Comment 5 SpanKY gentoo-dev 2008-06-16 21:53:24 UTC
i'm not going to add random patches without knowing their source and upstream status

you find that info for me and i'll see about merging it
Comment 6 Stephen Bridges 2008-06-17 21:41:47 UTC
(In reply to comment #5)
> i'm not going to add random patches without knowing their source and upstream
> status

That's fair enough.  Is it possible to mask >=gcc-4.2 for the avr toolchain? I couldn't work out how to do it manually, I don't quite understand whether avr has its own keyword or not.  I've hit this problem on two separate machines (x86 and ~amd64) and with the ldscripts bug it makes avr very fiddly to get working in Gentoo atm.

Thanks.