Bug 14506 - gcc-3.3.3 won't compile for target avr: "insn does not satisfy its constraints"
Summary: gcc-3.3.3 won't compile for target avr: "insn does not satisfy its constraints"
Status: RESOLVED DUPLICATE of bug 14149
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 3.3.3
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-09 18:58 UTC by Ken Jackson
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: i686-pc-linux-gnu
Target: avr-atmel-none
Build: i686-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Jackson 2004-03-09 18:58:26 UTC
----------------------------------------------------------------------
This is the command and error output (backslashes added for clarity):
----------------------------------------------------------------------
/usr/local/src/gcc-3.3.3/build-avr/gcc/xgcc \
    -B/usr/local/src/gcc-3.3.3/build-avr/gcc/ \
    -B/usr/local/avr-atmel-none/bin/ \
    -B/usr/local/avr-atmel-none/lib/ \
    -isystem /usr/local/avr-atmel-none/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/usr/local/src/gcc-3.3.3/gcc -I/usr/local/src/gcc-3.3.3/gcc/. \
    -I/usr/local/src/gcc-3.3.3/gcc/config \
    -I/usr/local/src/gcc-3.3.3/gcc/../include \
    -DL_udivmoddi4 -c \
    /usr/local/src/gcc-3.3.3/gcc/libgcc2.c -fexceptions \
    -fnon-call-exceptions -o libgcc/./_udivmoddi4.o
/usr/local/src/gcc-3.3.3/gcc/libgcc2.c: In function `__udivmoddi4':
/usr/local/src/gcc-3.3.3/gcc/libgcc2.c:731: error: insn does not satisfy its
constraints:
(insn 1006 1005 1007 0x40156604 (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)))
/usr/local/src/gcc-3.3.3/gcc/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 `/usr/local/src/gcc-3.3.3/build-avr/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/usr/local/src/gcc-3.3.3/build-avr/gcc'
make: *** [all-gcc] Error 2

----------------------------------------------------------------------
These were the steps I took:
----------------------------------------------------------------------

  ## Downloaded and installed binutils-2.14.tar.bz2
  mkdir build-avr  &&  cd build-avr
  ../configure --target=avr-atmel-none --without-x --disable-shared \
               --disable-nls
  make
  make install

  ## Downloaded and installed gcc-3.3.3.tar.bz2,
  ##    gcc-core-3.3.3.tar.bz2, and gcc-g++-3.3.3.tar.bz2
  mkdir build-avr  &&  cd build-avr
  ../configure --target=avr-atmel-none --without-x --without-newlib \
               --disable-shared --disable-win32-registry --disable-nls
  make

Then the error above stopped me.
Also, I get similar errors in other files when I start commenting 
things out to see if it will compile.

----------------------------------------------------------------------
My host system
----------------------------------------------------------------------
$ gcc --version
gcc (GCC) 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)

$ uname -rom
2.4.22-10mdk i686 GNU/Linux
Comment 1 Andrew Pinski 2004-03-09 19:33:12 UTC
This is a dup of bug 14149.

*** This bug has been marked as a duplicate of 14149 ***