public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* RE: correction: update Redhat 2.96 to gcc2.95.3 and related problem
@ 2001-03-27 16:45 Kazu Hirata
  0 siblings, 0 replies; 2+ messages in thread
From: Kazu Hirata @ 2001-03-27 16:45 UTC (permalink / raw)
  To: 'Zhanjun Ying', gcc-help

Hi Zhanjun,

> Any suggestions about the error? Should I prefer gcc-2.95.3 
> over the 2.96
> version?

I don't know about your error with gcc-2.96, but I would try updates on gcc
available from RedHat or a development version included in Rawhide.

Also, I would strip of your program a little by little to see if it still
segfaults.  If you get down to a level where your stripped down version
seems absolutely correct, then that's a bug in g++.

Kazu Hirata

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

* correction: update Redhat 2.96 to gcc2.95.3 and related problem
@ 2001-03-27  9:27 Zhanjun Ying
  0 siblings, 0 replies; 2+ messages in thread
From: Zhanjun Ying @ 2001-03-27  9:27 UTC (permalink / raw)
  To: gcc-help

I am sorry. In my previous message I forgot to include the error message I
mentioned. Here they are:

====================error message from gcc.2.95.3 ===================

In file included from /usr/include/bits/types.h:26,
                 from /usr/include/_G_config.h:9,
                 from
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/../../../../include/g++-3/stl_config.h:151,
                 from
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/../../../../include/g++-3/iterator:30,
                 from point.h:15,
                 from testAutoMesh.cc:1:
/usr/include/features.h:311: gnu/stubs.h: Permission denied


---------- Forwarded message ----------
Date: Tue, 27 Mar 2001 09:08:04 -0800 (PST)
From: Zhanjun Ying <zhanjun@pangea.stanford.edu>
To: gcc-help@gcc.gnu.org
Subject: update Redhat 2.96 to gcc2.95.3 and related problem


I have a Redhat 7.0. The g++ version that comes with this OS is gcc
version 2.96 20000731 (Red Hat Linux 7.0). When I use it to compile one of
my program, it compiled but when I run, it seg-faults. However, under
Digital Unix 4.0d, I can compile it with g++2.95.3 and it runs. That makes
me suspect that there was something wrong with the 2.96 version. So I
decide to install the newly released gcc2.95.3. Installation sees OK.
However, when I use it to compile the code, it shows that permission for
several directories are incorrect resulting some header files couldn't be
found. After I manully corrected that, I still got the following error.
I tried to "chmod go+rwx /usr/include/gnu /usr/include/gnu/stubs.h", but
that didn't help. However I can compile that code as root.

Any suggestions about the error? Should I prefer gcc-2.95.3 over the 2.96
version?

thanks a lot

Zhanjun





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

end of thread, other threads:[~2001-03-27 16:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-27 16:45 correction: update Redhat 2.96 to gcc2.95.3 and related problem Kazu Hirata
  -- strict thread matches above, loose matches on Subject: below --
2001-03-27  9:27 Zhanjun Ying

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).