Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46401 - compilation of gcc-3.3.3 fails when i compile it with --target=avr
Summary: compilation of gcc-3.3.3 fails when i compile it with --target=avr
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Alexander Gabert (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-31 13:52 UTC by Mariusz Kozlowski
Modified: 2004-09-23 07:23 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mariusz Kozlowski 2004-03-31 13:52:41 UTC
I don't know if it is the rihgt place to report this bug because i just took gcc-3.3.3 from portage directory and compiled it with needed flags so it is not a standard emerge compilation. anyway when i try to compile gcc-3.3.3 witch flags --target=avr --prefix=/usr/local/avr --disable-nls --enable-language=c it fails. gcc-3.3.1 compiles fine.

Reproducible: Always
Steps to Reproduce:
follow the installation procedure shown in this article: http://main.linuxfocus.org/English/March2002/article231.shtml (i mean with newer versions of these packages)
Actual Results:  
/home/downloads/avr/gcc-3.3.3/gcc/xgcc -B/home/downloads/avr/gcc-3.3.3/gcc/ 
-B/usr/local/avr/avr/bin/ -B/usr/local/avr/avr/lib/ 
-isystem /usr/local/avr/avr/include -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  
-DDF=SF -Dinhibit_libc -mcall-prologues -g  -DIN_LIBGCC2 
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I. -I./. -I./config 
-I./../include  -DL_udivmoddi4 -c ./libgcc2.c -fexceptions 
-fnon-call-exceptions -o libgcc/./_udivmoddi4.o 
libgcc2.c: In function `__udivmoddi4': 
libgcc2.c:731: error: insn does not satisfy its constraints: 
(insn 1006 1005 1007 0x40150604 (set (mem:QI (plus:HI (reg:HI 26 r26 [30]) 
                (const_int 1 [0x1])) [2 S1 A8]) 
        (reg:QI 24 r24 [268])) 9 {*movqi} (insn_list 1005 (insn_list 1434 
(nil))) 
    (expr_list:REG_DEAD (reg:QI 24 r24 [268]) 
        (nil))) 
libgcc2.c:731: internal compiler error: in extract_constrain_insn_cached, at 
recog.c:2090 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
make[2]: *** [libgcc/./_udivmoddi4.o] Error 1 
make[2]: Leaving directory `/home/downloads/avr/gcc-3.3.3/gcc' 
make[1]: *** [stmp-multilib] Error 2 
make[1]: Leaving directory `/home/downloads/avr/gcc-3.3.3/gcc' 
make: *** [all-gcc] Error 2 
 

Expected Results:  
it should compile cleanly like gcc-3.3.1 did. 

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 
2.6.4-gentoo-r1) 
================================================================= 
System uname: 2.6.4-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz 
Gentoo Base System version 1.4.3.13p1 
Autoconf: sys-devel/autoconf-2.59-r3 
Automake: sys-devel/automake-1.8.3 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=pentium4 -pipe -O2" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=pentium4 -pipe -O2" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X alsa arts avi berkdb cdr crypt cups dvd encode foomaticdb gdbm gif gtk2 
imlib java jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis 
opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell 
sse ssl svga tcpd truetype x86 xml2 xmms xv zlib"
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2004-04-01 00:47:54 UTC
how about using dev-embedded/avr-gcc ?
Comment 2 Scott Price 2004-06-12 18:51:01 UTC
This is a gcc bug, not a gentoo bug.  Here is the gcc bug report:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14149

Scott  =)
Comment 3 Daniel Black (RETIRED) gentoo-dev 2004-09-23 07:23:21 UTC
Was fixed upstream