This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/14506] New: gcc-3.3.3 won't compile for target avr: "insn does not satisfy its constraints"
- From: "j980 at comcast dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Mar 2004 18:58:33 -0000
- Subject: [Bug c/14506] New: gcc-3.3.3 won't compile for target avr: "insn does not satisfy its constraints"
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
----------------------------------------------------------------------
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
--
Summary: gcc-3.3.3 won't compile for target avr: "insn does not
satisfy its constraints"
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: j980 at comcast dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: avr-atmel-none
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14506