#1049 internal compiler error: in rest_of_handle_final

gcc (462)

Subject: internal compiler error: in rest_of_handle_final, at toplev.c:2067

* OS version ( XP )

* gcc version ( `gcc -v` Reading specs from c:/MingW/bin/../lib/gcc/mingw32/3.4.5/specs
Configured with: ../gcc-3.4.5/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.5 (mingw special)
* ld version ( `ld -v` GNU ld version 2.17.50 20060824)

* mingw version ( MinGW-5.1.3.exe )

* build environment ( MSYS )

* if using MSYS version number ( `uname -a` MINGW32_NT-5.1 A155-0256 1.0.10(0.46/3/2) 2004-03-15 07:17 i686 unknown)

* small test case demonstrating the bugOR
* MSDN documentation references for missing w32api or mingw-runtime features
compiling Pcre-7.2
$ make
make all-am
make[1]: Entering directory `/src/pcre-7.2'
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -O2 -MT pcreposix.lo -MD -MP -MF .deps/pcreposix.Tpo -c -o pcreposix.lo pcreposix.c
gcc -DHAVE_CONFIG_H -I. -O2 -MT pcreposix.lo -MD -MP -MF .deps/pcreposix.Tpo -c pcreposix.c -DDLL_EXPORT -DPIC -o .libs/pcreposix.o
pcreposix.c: In function `regerror':
pcreposix.c:170: internal compiler error: in rest_of_handle_final, at toplev.c:2067
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.
make[1]: *** [pcreposix.lo] Error 1
make[1]: Leaving directory `/src/pcre-7.2'
make: *** [all] Error 2

* mingw-runtime version ( include/_mingw.h 3.12)

* w32api version ( include/w32api.h 3.9)

Additional Info:
I just found that the bug is caused by dllimport attribute defined in pcreposix.h. If I changed the defination from "dllimport" to "dllexport" then the compiling would be OK and dynamic linking is OK and works but static linking is OK and running exit -1 without any output.



  • Danny Smith

    Danny Smith - 2007-07-09
    • status: open --> pending
  • Danny Smith

    Danny Smith - 2007-07-09

    Logged In: YES
    Originator: NO

    Please provide a self-contained testcase (ie, preprocessed source). I suspect that the bug is fixed in upstream gcc, but I can't tell without a testcase.


  • SourceForge Robot

    Logged In: YES
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 30 days (the time period specified by
    the administrator of this Tracker).

  • SourceForge Robot

    • status: pending --> closed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks