#1122 internal compiler error

Known_bugs
closed-fixed
nobody
gcc (462)
2014-01-10
2008-02-07
No

I was trying to compile the TerraLib library (www.terralib.org) which is a C++ library for GIS development.

But I found the following error:

"Internal compiler error: in rest_of_handle_final, at toplev.c:2067"

My development environment is:

* Windows XP pro
* gcc 3.4.5
* ld version 2.17.50 20060824
* mingw version 5.1.3
* build environment : DOS cmd
* no MSYS

The full error msg:

make -f makeTerralib
mingw32-make[1]: Entering directory `F:/ElicpseWKspcs/Terralib320rc3/TerraLib/terralibx/terralib'
g++ -c -g -frtti -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -I"..\..\src\terralib\kernel" -I"..\..\src\terralib\functions" -I"..\..\src\terralib\utils" -I"..\..\src\tiff" -I"..\..\src\zlib" -I"..\..\src\terralib\drivers\libjpeg" -I"c:\Qt\4.3.2\mkspecs\win32-g++" -o .obj\TeAffineGTFactory.o ..\..\src\terralib\kernel\TeAffineGTFactory.cpp
In file included from ../../src/terralib/kernel/TeMatrix.h:30,
from ../../src/terralib/kernel/TeGeometricTransformation.h:32,
from ../../src/terralib/kernel/TeGTFactory.h:44,
from ../../src/terralib/kernel/TeProjectiveGTFactory.h:28,
from ../../src/terralib/kernel/TeGTFactory.h:38,
from ..\..\src\terralib\kernel\TeAffineGTFactory.h:31,
from ..\..\src\terralib\kernel\TeAffineGTFactory.cpp:24:
../../src/terralib/kernel/TeException.h:30: warning: ignoring #pragma warning
..\..\src\terralib\kernel\TeAffineGTFactory.cpp: In constructor `TeAffineGTFactory::TeAffineGTFactory()':
..\..\src\terralib\kernel\TeAffineGTFactory.cpp:31: 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.
mingw32-make[1]: *** [.obj\TeAffineGTFactory.o] Error 1
mingw32-make[1]: Leaving directory `F:/ElicpseWKspcs/Terralib320rc3/TerraLib/terralibx/terralib'
mingw32-make: *** [TerraLib] Error 2

Discussion

  • Tiago Carneiro

    Tiago Carneiro - 2008-02-07

    MakeFile

     
  • Márton Németh

    Márton Németh - 2008-03-07

    Logged In: YES
    user_id=599017
    Originator: NO

    I get the same error message with gcc 3.4.5:

    C:\test>gcc -c a.c
    a.c: In function `test2':
    a.c:15: 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.

    C:\test>type a.c

    __declspec(dllexport) int __stdcall test1();

    __declspec(dllexport) int __stdcall test1() {
    return 0;
    }

    #if 1
    /* the followings are not correct: */

    __declspec(dllimport) int __stdcall test2();

    __declspec(dllimport) int __stdcall test2() {
    return 0;
    }
    #endif

    C:\test>gcc --version
    gcc (GCC) 3.4.5 (mingw special)
    Copyright (C) 2004 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

     
  • Márton Németh

    Márton Németh - 2008-03-07

    Logged In: YES
    user_id=599017
    Originator: NO

    The same happens without "__stdcall":

    C:\test>gcc -c a.c
    a.c: In function `test2':
    a.c:15: 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.

    C:\test>type a.c

    __declspec(dllexport) int test1();

    __declspec(dllexport) int test1() {
    return 0;
    }

    #if 1
    /* the followings are not correct: */

    __declspec(dllimport) int test2();

    __declspec(dllimport) int test2() {
    return 0;
    }
    #endif

     
  • Márton Németh

    Márton Németh - 2008-03-07

    Logged In: YES
    user_id=599017
    Originator: NO

    My system is:
    - Windows XP SP2
    - gcc (GCC) 3.4.5 (mingw special)
    - GNU ld version 2.17.50 20060824 (but no linking is done)
    - MinGW-5.1.3.exe
    - from include/_mingw.h: #define __MINGW32_VERSION 3.14
    - from include/win32api.h: #define __W32API_VERSION 3.11

     
  • Danny Smith

    Danny Smith - 2008-03-07

    Logged In: YES
    user_id=11494
    Originator: NO

    The testcase reported by nmarci on 2008-03-07 compiles without error in gcc 4.3.0.
    Thank you, nmarci, for your insight into the problem and your clear testcase.

    If tiagogsc does what the bug report requests
    "Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:http://www.mingw.org/bugs.shtml> for instructions."

    it would be just as easy to diagnose the bug and test if is fixed in current sources.

     
  • Márton Németh

    Márton Németh - 2008-03-07

    Logged In: YES
    user_id=599017
    Originator: NO

    gcc 4.2.1 seems to work also under Debian with cross compiler:

    $ i586-mingw32msvc-gcc -c a.c
    a.c: In function 'test2':
    a.c:13: error: 'test2': definition is marked as dllimport
    $ i586-mingw32msvc-gcc --version
    i586-mingw32msvc-gcc (GCC) 4.2.1-sjlj (mingw32-2)
    Copyright (C) 2007 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

     
  • Danny Smith

    Danny Smith - 2008-06-08

    Logged In: YES
    user_id=11494
    Originator: NO

    Fixed in 4.2.1 and later
    Danny

     
  • Danny Smith

    Danny Smith - 2008-06-08
    • status: open --> closed-fixed
     

Log in to post a comment.