public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* Re: Internal compilier error 980711
  1999-07-31 23:33 Internal compilier error 980711 micah.russo
@ 1999-07-15 16:19 ` Alexandre Oliva
  0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Oliva @ 1999-07-15 16:19 UTC (permalink / raw)
  To: micah.russo; +Cc: egcs-bugs

On Jul 15, 1999, micah.russo@natinst.com wrote:

> cfbytearray.h:20: Please submit a full bug report.. (with email and faq address)

Err, didn't that very FAQ ask you to post the preprocessed source
code?  I can't find it anywhere in your bug report :-)

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{dcc.unicamp.br,guarana.{org,com}} aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Internal compilier error 980711
@ 1999-07-31 23:33 micah.russo
  1999-07-15 16:19 ` Alexandre Oliva
  0 siblings, 1 reply; 4+ messages in thread
From: micah.russo @ 1999-07-31 23:33 UTC (permalink / raw)
  To: egcs-bugs

I'm using:
gcc version egcs-2.91.66 19990314/Linux (ecgs-1.1.2 release)
(came with Redhat's Linux 6.0 Official Release)

Running on a Dell Optiplex G1 Pentium II 350MHz with 128 M of Ram and a 4Gig HD
dedicated to Redhat Linux ver 6.0

I recieve "internal compilier error 980711" when I try to compile the following
code:

//cfbytearray.h
#include </home/mrusso/stlport-3.2/stlport/vector>
class CFByteArray {
public:
     CFByteArray ();
     ~CFByteArray();
     int GetSize() const;
     void SetSize(int nNewSize);
     BYTE* GetData();
protected:
     stlport::vector<uInt8> m_vectData;
};
...

When I try to compile with the following command: (using a makefile)
make array
Where
array: cfbytearray.o
cfbytearray.o:
     g++ -c cfbytearray.cpp -o cfbytearray.o -I.
-I/home/mrusso/stlport-3.2/stlport

I receive the following response and error:

In file included from cfbytearray.cpp:6;
cfbytearray.h:20;Internal compilier error 980711.
cfbytearray.h:20: Please submit a full bug report.. (with email and faq address)
make: *** [cfbytearray.o] Error 1

cfbytearray.h is included from the .cpp file on the 6th line after the stdafx.h
which current contains only basic definitions for BYTE(char) and uInt8(int
temporarily)

The include refers to stlport version 3.2 format TAR/GZIP available from the
stlport website at:
www.stlport.org/download.shtml

The 20th line in .h refers to the following line:
     stlport::vector<uInt8> m_vectData
(N.B. the Microsoft Dev Studio, i.e. Visual C++ 6.0 compiles without error for
the equivalent code (the only modification being the include path to the stlport
directory and the use of stlport 3.2 zip)

The code compilies without error if the following is substituted:
     vector<uInt8> m_vectData;
(N.B.  I think this should be invalid as the vector class _should_ only exist in
the stlport namespace, and indeed VC issues a corresponding error with this
alteration)
This would seem to imply we are already in the namespace stlport (which
shouldn't be the case as I understand stlport).  Regardless, using stlport:: in
the stlport namespace shouldn't cause an internal compilier error.

The stlport namespace is defined ("using namespace stlport;" gives no error)

The compilier ignores any code after the offending line.

I'm fairly new to Linux/egcs (used some gcc for coursework two years ago under a
sun workstation), so I apologize for any inaccuracies in my guesswork.

Thanks for your time,
Micah Russo
National Instruments
Austin, TX 78704
512-683-8176



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Internal compilier error 980711
  1999-07-17  0:25 micah.russo
@ 1999-08-12 11:25 ` Alexandre Oliva
  0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Oliva @ 1999-08-12 11:25 UTC (permalink / raw)
  To: micah.russo; +Cc: egcs-bugs

On Jul 16, 1999, micah.russo@natinst.com wrote:

> Ack, sorry about the omission.  The precompiled source code
> (produced by the -E flag on g++) is attached to this email (I
> deleted A LOT of whitespace

Please don't.  This may screw up line counting.

I couldn't reproduce the error you report, using the very same release
of egcs.  Are you sure that's the one you're using?  With the
preprocessed code you posted, I get:

oliva@cacau.lsd.dcc.unicamp.br% /usr/bin/g++ ~/log.ii
In file included from /home/mrusso/stlport-3.2/stlport/vector:27,
                 from cfbytearray.h:1,
                 from /home/phd/oliva/log.ii:5:
/usr/include/g++-2/stl_vector.h:2: parse error before `>'
/usr/include/g++-2/stl_vector.h:6: syntax error before `*'
/usr/include/g++-2/stl_vector.h:7: syntax error before `*'
/usr/include/g++-2/stl_vector.h:8: syntax error before `*'
/usr/include/g++-2/stl_vector.h:9: syntax error before `*'
/usr/include/g++-2/stl_vector.h:10: syntax error before `&'
/usr/include/g++-2/stl_vector.h:11: syntax error before `&'
/usr/include/g++-2/stl_vector.h:12: confused by earlier errors, bailing out
oliva@cacau.lsd.dcc.unicamp.br% /usr/bin/g++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{dcc.unicamp.br,guarana.{org,com}} aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them
>From oliva@dcc.unicamp.br Thu Aug 12 12:08:00 1999
From: Alexandre Oliva <oliva@dcc.unicamp.br>
To: gcc-bugs@gcc.gnu.org
Subject: gcc 2.95 won't build ddd 3.1.6 on alpha targets
Date: Thu, 12 Aug 1999 12:08:00 -0000
Message-id: <oriu6kyg0e.fsf@cupuacu.lsd.dcc.unicamp.br>
X-SW-Source: 1999-08/msg00507.html
Content-length: 1396

oliva@bela% g++ -v HelpCB.ii -O2
Reading specs from /n/gnu/gcc-2.95-libg++-2.8.1.3-libgcj-2.95/lib/gcc-lib/alphaev56-dec-osf4.0d/2.95/specs
gcc version 2.95 19990728 (release)
 /n/gnu/gcc-2.95-libg++-2.8.1.3-libgcj-2.95/lib/gcc-lib/alphaev56-dec-osf4.0d/2.95/cc1plus bug.ii -quiet -O2 -version -o /tmp/ccxomcxR.s
GNU C++ version 2.95 19990728 (release) (alphaev56-dec-osf4.0d) compiled by GNU C version 2.95 19990728 (release).
HelpCB.C: In function `void PopupTip(void *, XtIntervalId *)':
HelpCB.C:2148: Internal compiler error in `scan_region', at except.c:2566
Please submit a full bug report.
See <URL: http://egcs.cygnus.com/faq.html#bugreport > for instructions.


I get exactly the same error on GNU/Linux/alpha (RH6.0), using the
last release, the latest snapshot and the current CVS branch :-(

oliva@aviao% g++ -v
Reading specs from /n/gnu/gcc-2.95-libg++-2.8.1.3-libgcj-2.95/lib/gcc-lib/alpha-unknown-linux-gnu/2.95/specs
gcc version 2.95 19990728 (release)


The error did not come up on Intel nor Sparc platforms I've tried.
I'm temporarily without access to 64bit Mips platforms to test :-(

On Alpha, the error goes away by disabling optimization (-O1 still
crashes, but with a slightly different error message) or, curiously,
by preprocessing it *without* -DNDEBUG.

Here's the preprocessed code *with* -DNDEBUG, generated on OSF/1 4.0d.
I may post other versions upon request.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Internal compilier error 980711
@ 1999-07-17  0:25 micah.russo
  1999-08-12 11:25 ` Alexandre Oliva
  0 siblings, 1 reply; 4+ messages in thread
From: micah.russo @ 1999-07-17  0:25 UTC (permalink / raw)
  To: Alexandre Oliva; +Cc: egcs-bugs

Ack, sorry about the omission.  The precompiled source code (produced by the -E
flag on g++) is attached to this email (I deleted A LOT of whitespace and zipped
it with pkzip - let me know if that's a problem).

Thanks, Micah

(See attached file: cfbytelog.zip)

Original email repeats:

I'm using:
gcc version egcs-2.91.66 19990314/Linux (ecgs-1.1.2 release)
(came with Redhat's Linux 6.0 Official Release)

Running on a Dell Optiplex G1 Pentium II 350MHz with 128 M of Ram and a 4Gig HD
dedicated to Redhat Linux ver 6.0

I recieve "internal compilier error 980711" when I try to compile the following
code:

//cfbytearray.h
#include </home/mrusso/stlport-3.2/stlport/vector>
class CFByteArray {
public:
     CFByteArray ();
     ~CFByteArray();
     int GetSize() const;
     void SetSize(int nNewSize);
     BYTE* GetData();
protected:
     stlport::vector<uInt8> m_vectData;
};
...

When I try to compile with the following command: (using a makefile)
make array
Where
array: cfbytearray.o
cfbytearray.o:
     g++ -c cfbytearray.cpp -o cfbytearray.o -I.
-I/home/mrusso/stlport-3.2/stlport

I receive the following response and error:

In file included from cfbytearray.cpp:6;
cfbytearray.h:20;Internal compilier error 980711.
cfbytearray.h:20: Please submit a full bug report.. (with email and faq address)
make: *** [cfbytearray.o] Error 1

cfbytearray.h is included from the .cpp file on the 6th line after the stdafx.h
which current contains only basic definitions for BYTE(char) and uInt8(int
temporarily)

The include refers to stlport version 3.2 format TAR/GZIP available from the
stlport website at:
www.stlport.org/download.shtml

The 20th line in .h refers to the following line:
     stlport::vector<uInt8> m_vectData
(N.B. the Microsoft Dev Studio, i.e. Visual C++ 6.0 compiles without error for
the equivalent code (the only modification being the include path to the stlport
directory and the use of stlport 3.2 zip)

The code compilies without error if the following is substituted:
     vector<uInt8> m_vectData;
(N.B.  I think this should be invalid as the vector class _should_ only exist in
the stlport namespace, and indeed VC issues a corresponding error with this
alteration)
This would seem to imply we are already in the namespace stlport (which
shouldn't be the case as I understand stlport).  Regardless, using stlport:: in
the stlport namespace shouldn't cause an internal compilier error.

The stlport namespace is defined ("using namespace stlport;" gives no error)

The compilier ignores any code after the offending line.

I'm fairly new to Linux/egcs (used some gcc for coursework two years ago under a
sun workstation), so I apologize for any inaccuracies in my guesswork.

Thanks for your time,
Micah Russo
National Instruments
Austin, TX 78704
512-683-8176


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-08-12 11:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-31 23:33 Internal compilier error 980711 micah.russo
1999-07-15 16:19 ` Alexandre Oliva
  -- strict thread matches above, loose matches on Subject: below --
1999-07-17  0:25 micah.russo
1999-08-12 11:25 ` Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).