[Bug c/43047] New: internal compiler error: in extract_insn, at recog.c:2048
gcc 4.4.0 based cross-compiler (http://cegcc.sourceforge.net) can be used to show the bug, I think it's not specific to that project though. pavilion: {108} arm-mingw32ce-gcc -c -DCRASH k.c k.c: In function 'ff_fill_linesize': k.c:12: error: unrecognizable insn: (insn 6 5 7 3 k.c:9 (set (reg/f:SI 136 [ av_pix_fmt_descriptors.0 ]) (symbol_ref:SI ("av_pix_fmt_descriptors") [flags 0x440] )) -1 (nil)) k.c:12: internal compiler error: in extract_insn, at recog.c:2048 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. pavilion: {109} cat k.c #ifdef CRASH __attribute__((dllimport)) int av_pix_fmt_descriptors[]; #else int av_pix_fmt_descriptors[]; #endif __attribute__((dllexport)) int ff_fill_linesize(int pix_fmt) { const int *desc = &av_pix_fmt_descriptors[pix_fmt]; return 0; } pavilion: {110} -- Summary: internal compiler error: in extract_insn, at recog.c:2048 Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: danny dot backx at scarlet dot be GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: arm-unknown-mingw32ce http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43047
[Bug target/43047] internal compiler error: in extract_insn, at recog.c:2048
--- Comment #3 from danny dot backx at scarlet dot be 2010-02-11 21:43 --- I'm one of the arm-mingw32ce maintainers. I'll try to reproduce in arm-wince-pe if that makes you feel better. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43047
[Bug target/43047] internal compiler error: in extract_insn, at recog.c:2048
--- Comment #4 from danny dot backx at scarlet dot be 2010-02-12 19:07 --- pavilion: {16} arm-wince-pe-gcc -v Using built-in specs. Target: arm-wince-pe Configured with: /home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/gcc-4.4.0/configure --with-gcc --with-gnu-ld --with-gnu-as --target=arm-wince-pe --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --prefix=/tmp/mingw32ce --disable-threads --disable-nls --enable-languages=c --disable-win32-registry --disable-multilib --disable-shared --disable-interwork --without-newlib --enable-checking : (reconfigured) /home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/gcc-4.4.0/configure --with-gcc --with-gnu-ld --with-gnu-as --target=arm-wince-pe --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --prefix=/tmp/mingw32ce --disable-threads --disable-nls --enable-languages=c --disable-win32-registry --disable-multilib --disable-shared --disable-interwork --without-newlib --enable-checking Thread model: single gcc version 4.4.0 (GCC) pavilion: {17} pwd /home/danny pavilion: {18} arm-wince-pe-gcc -c -DCRASH k.c k.c: In function 'ff_fill_linesize': k.c:12: error: unrecognizable insn: (insn 6 5 7 3 k.c:9 (set (reg/f:SI 136 [ av_pix_fmt_descriptors.0 ]) (symbol_ref:SI ("av_pix_fmt_descriptors") [flags 0x440] )) -1 (nil)) k.c:12: internal compiler error: in extract_insn, at recog.c:2048 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. pavilion: {19} -- danny dot backx at scarlet dot be changed: What|Removed |Added Status|WAITING |UNCONFIRMED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43047
[Bug target/43047] internal compiler error: in extract_insn, at recog.c:2048
--- Comment #5 from danny dot backx at scarlet dot be 2010-02-12 19:44 --- Err, I used the wrong build tree with my last message. This is the result with vanilla gcc-4.4.0 configured for arm-wince-pe : different but still wrong. Apologies for the fuckup. pavilion: {37} arm-wince-pe-gcc -c -DCRASH k.c k.c:2: warning: array 'av_pix_fmt_descriptors' assumed to have one element k.c:12: internal compiler error: in assemble_variable, at varasm.c:2144 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. pavilion: {38} -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43047
[Bug target/43047] internal compiler error: in extract_insn, at recog.c:2048
--- Comment #12 from danny dot backx at scarlet dot be 2010-02-20 09:55 --- Re: comments #9, 11 I don't understand this comment. Is it a simple observation, or should I be able to draw conclusions about the origin of the problem from this? Re: comment #10 I don't know whether this occurs on older versions of gcc. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43047
[Bug c++/29780] New: temporary file breaks cross-build
Hi, When performing a cross-build (see the triplets I entered above), a file named "as" gets created which gets used instead of the right assembler, thus breaking the build. Pls. note that I've entered the target triplets we're building (see http://cegcc.sourceforge.net), this gcc build bug is probably unrelated to them. I've had to work around this by using a script such as the one pasted below. I've reported this to the mailing list months ago (see http://gcc.gnu.org/ml/gcc/2006-07/msg00533.html ) but someone asked me a couple of days ago whether I created a bugzilla report, and I don't think I did. So I'm making up for that now. Here's the script I use as workaround : mkdir -p $BUILD_DIR/gpp || exit 1 cd $BUILD_DIR/gpp || exit 1 # export CFLAGS="" # $TOP_SRCDIR/src/gcc/configure \ --prefix=$PREFIX \ --enable-languages=c,c++ \ --disable-interwork \ --disable-nls \ --enable-checking \ --disable-multilib \ --build=$MY_HOST_ARCH --target=$TGT_ARCH || exit 1 # # Deliberately no error handling here. # make # # Because we need to delete this file # rm $BUILD_DIR/gpp/gcc/as || exit 1 # # Now the build should continue smoothly # make || exit 1 exit 0 -- Summary: temporary file breaks cross-build Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: danny dot backx at scarlet dot be GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: arm-wince-pe, arm-wince-mingw32ce, arm-wince-cegcc http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29780
[Bug bootstrap/29780] temporary file breaks cross-build
--- Comment #3 from danny dot backx at scarlet dot be 2006-11-09 16:02 --- dannypc: {9} arm-wince-cegcc-gcc -v Using built-in specs. Target: arm-wince-cegcc Configured with: /home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/gcc/configure --prefix=/usr/ppc --enable-languages=c,c++ --disable-interwork --disable-nls --enable-checking --disable-multilib --build=i686-pc-linux-gnu --target=arm-wince-cegcc Thread model: win32 gcc version 4.1.0 -- danny dot backx at scarlet dot be changed: What|Removed |Added CC||danny dot backx at scarlet ||dot be http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29780