This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/14966] New: gcc fails to cross compile for arm with internal compiler error


This is the output when I tried to compile glib-2.4.0 for arm9tdmi. I have the
.i file but it is too large to include in this comment. I can send it in email
though.

Reading specs from
/opt/crosstool/arm-9tdmi-linux-gnu/gcc-3.3.3-glibc-2.3.2/lib/gcc-lib/arm-9tdmi-linux-gnu/3.3.3/specs
Configured with:
/home/linkm/crosstool-0.27/build/arm-9tdmi-linux-gnu/gcc-3.3.3-glibc-2.3.2/gcc-3.3.3/configure
--target=arm-9tdmi-linux-gnu --host=i686-host_pc-linux-gnu
--prefix=/opt/crosstool/arm-9tdmi-linux-gnu/gcc-3.3.3-glibc-2.3.2
--with-cpu=arm9tdmi --enable-cxx-flags=-mcpu=arm9tdmi
--with-headers=/opt/crosstool/arm-9tdmi-linux-gnu/gcc-3.3.3-glibc-2.3.2/arm-9tdmi-linux-gnu/include
--with-local-prefix=/opt/crosstool/arm-9tdmi-linux-gnu/gcc-3.3.3-glibc-2.3.2/arm-9tdmi-linux-gnu
--disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit
--enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long
Thread model: posix
gcc version 3.3.3

if arm-9tdmi-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../glib
-I../gmodule -DG_DISABLE_CAST_CHECKS  -pthread  -Os -Wall -MT testglib.o -MD -MP
-MF ".deps/testglib.Tpo" \
  -c -o testglib.o `test -f 'testglib.c' || echo './'`testglib.c; \
then mv -f ".deps/testglib.Tpo" ".deps/testglib.Po"; \
else rm -f ".deps/testglib.Tpo"; exit 1; \
fi

 /opt/crosstool/arm-9tdmi-linux-gnu/gcc-3.3.3-glibc-2.3.2/lib/gcc-lib/arm-9tdmi-linux-gnu/3.3.3/cc1
-quiet -v -I. -I. -I.. -I.. -I../glib -I../gmodule -MD testglib.d -MF
.deps/testglib.Tpo -MP -MT testglib.o -MQ testglib.o -D__GNUC__=3
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=3 -D__ARM_ARCH_4T__ -DHAVE_CONFIG_H
-DG_DISABLE_CAST_CHECKS testglib.c -quiet -dumpbase testglib.c -auxbase-strip
testglib.o -Os -Wall -version -o /tmp/cc5Sx3Uv.s
GNU C version 3.3.3 (arm-9tdmi-linux-gnu)
        compiled by GNU C version 3.3.2 20031022 (Red Hat Linux 3.3.2-1).
GGC heuristics: --param ggc-min-expand=55 --param ggc-min-heapsize=48142
ignoring duplicate directory "."
ignoring duplicate directory ".."
#include "..." search starts here:
#include <...> search starts here:
 .
 ..
 ../glib
 ../gmodule
 /opt/crosstool/arm-9tdmi-linux-gnu/gcc-3.3.3-glibc-2.3.2/lib/gcc-lib/arm-9tdmi-linux-gnu/3.3.3/include
 /opt/crosstool/arm-9tdmi-linux-gnu/gcc-3.3.3-glibc-2.3.2/arm-9tdmi-linux-gnu/sys-include
 /opt/crosstool/arm-9tdmi-linux-gnu/gcc-3.3.3-glibc-2.3.2/arm-9tdmi-linux-gnu/include
End of search list.
testglib.c: In function `main':
testglib.c:1351: error: insn does not satisfy its constraints:
(insn:HI 11402 15181 14745 0xbf1c97bc (set (reg:DI 3 r3 [2754])
        (zero_extend:DI (mem:QI (const (plus (label_ref 15957)
                        (const_int 300 [0x12c]))) [0 S1 A8]))) 146
{zero_extendqidi2} (insn_list:REG_DEP_ANTI 15181 (insn_list:REG_DEP_OUTPUT 14746
(nil)))
    (expr_list:REG_UNUSED (reg:SI 4 r4)
        (nil)))
testglib.c:1351: internal compiler error: in final_scan_insn, at final.c:2722
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [testglib.o] Error 1
make[3]: Leaving directory `/home/linkm/downloads/glib-2.4.0/tests'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/linkm/downloads/glib-2.4.0/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/linkm/downloads/glib-2.4.0'
make: *** [all] Error 2

-- 
           Summary: gcc fails to cross compile for arm with internal
                    compiler error
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Michael dot Link at adc dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-host_pc-linux-gnu
  GCC host triplet: i686-host_pc-linux-gnu
GCC target triplet: arm-9tdmi-linux-gnu


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]