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]

internal compilier error:



The compile:

c++ -O2 -Wall -g -fPIC -I../../include  -DvportVISIX  -D_REENTRANT=1  -c `pwd`/oldresource.cxx -DvportGALAXY_LIB_MEMBER -DvportGALAXY_LIB_MEMBER
In file included from ../../include/vsysparam.h:53,
                 from ../../include/vlimits.h:40,
                 from ../../include/vfixed.h:45,
                 from /builds/doug/gal3_0cxx/src/vres/oldresource.cxx:55:
/usr/include/sys/param.h:29: warning: `NBBY' redefined 
../../include/vsystypes.h:80: warning: this is the location of the previous definition
/builds/doug/gal3_0cxx/src/vres/oldresource.cxx: In function `unsigned int _vresource1CountComponents(long unsigned int)':
/builds/doug/gal3_0cxx/src/vres/oldresource.cxx:2301: Internal compiler error.
/builds/doug/gal3_0cxx/src/vres/oldresource.cxx:2301: Please submit a full bug report to `egcs-bugs@cygnus.com'.
make: *** [oldresource.o] Error 1


The function at 2301:

size_t  vportLINK _vresource1CountComponents(vresource res)
{
    union
    {
      _vresElementRec   e;
      _vresAnyDictRsrc  d;
      _vresAnyArrayRsrc a;
    }
    *data, localData;
    size_t datalen;

    _vresource1FetchContents(res, (void **) &data, &datalen);
    if (data) {
        localData = *data;               // <<==- line 2301
        _vresource1ImportElementRec(&localData.e);

        /* Handle arrays */
        if (vresGetTypeType(&localData.e)==vresourceARRAY) {
            _vresource1ExportElementRec(&localData.e);
            _vresource1ImportAnyArrayRsrc(&localData.a);
            return vresGetArrayElementCount(&localData.a);
        }
        /* Handle dictionaries */
        if (vresGetTypeType(&localData.e)==vresourceDICT) {
            _vresource1ExportElementRec(&localData.e);
            _vresource1ImportAnyDictRsrc(&localData.d);
            return vresGetDictElementCount(&localData.d);
        }
    }

    vexGenerate(vexGetArgClass(), vresMSG_NOTAORD, vexNULL);
    return 0;                   /* Shut up, Richard */
}


I have no idea how long it would take to create a repro case, or if I
would be allowed to send it in...

What information do you need and I'll see what I can provide?


?which c++
/usr/bin/c++
?ldd `which c++`
        libc.so.6 => /builds/doug/gal3_0cxx/lib/libc.so.6 (0x40000000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00000000)
?ls -l /usr/lib/libst
libstdc++.a           libstdc++.so.2.7.2@   libstdc++.so.2.8@
libstdc++.so.2.7.2.8* libstdc++.so.2.8.0*   libstdc++.so@
?ls -l /usr/lib/libstdc++.so
lrwxrwxrwx   1 root     root           18 Dec 12 13:45
/usr/lib/libstdc++.so -> libstdc++.so.2.8.0
?ls -lL /usr/lib/libstdc++.so
-r-xr-xr-x   1 root     root       404797 Dec 12 13:41
/usr/lib/libstdc++.so
?c++ -v
Reading specs from /usr/lib/gcc-lib/i386-linux/egcs-2.90.21/specs
gcc version egcs-2.90.21 971202 (egcs-1.00 release)



Doug
-- doug@visix.com



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