GCC hanging at CPP on Solaris 5.7 machine.

Mario Nigrovic jagmarz@home.net
Thu Mar 9 22:17:00 GMT 2000


Hello -

   I'm experiencing a problem with the 2.95.2 gcc that I
compiled and built myself on a Sun Solaris 7 machine.  The
problem is that gcc never finishes.  I've used truss, and
it seems that gcc just spends all of its time calling and
re-calling cpp with an increasingly long duplicated set of
arguments.

   Figuring the problem was in my compile, I downloaded a
gcc package from Sun at their download web site, nce.sun.ca:

ftp://nce.sun.ca/pub/freeware/sparc/7/gcc-2.95.2-sol7-sparc-local.gz

This compiler evidences the same problem, and it's from runs
of this compiler that I have results attached.  Therefore, I
figure it's either a problem with my local setup, or with
gcc itself.  I've perused through the faqs but found nothing
about cpp looping; I did verify that the patch which blows up
gcc was not installed.

   Here is critical information about my machine:

%% uname -a
SunOS admiral 5.7 Generic_106541-06 sun4u sparc SUNW,Ultra-4

(It's an Enterprise 450.)

See the attached file patches.gz for the output of showrev -p.

%% echo $path
/tmp/gcc/usr/local/bin /usr/openwin/bin /home/mario/bin \
/usr/bin /usr/ucb /usr/sbin /sbin .

%% echo $LD_LIBRARY_PATH
/tmp/gcc/usr/local/lib:/usr/lib:/usr/openwin/lib

%% cat hw.c
main() { printf("Hello, world!\n"); }

%% truss -o /tmp/to7 -f -a gcc -o hw hw.c

I've gzipped and attached the file /tmp/to7.

   About the only unusual thing is that I've not installed
gcc in /usr/local (which is an NFS mounted directory shared
with mostly Solaris 2.6 clients, so I can't put it there).
I don't have any way to test a real install in /usr/local,
so I thought it best to forward on what I've found so far.

   Where do I go from here?  Is there anything further I
should do to help figure out what's going on?  (Have I done
something unforgivably stupid?)  Enquiring minds want to know.

				Thanks for your time!

-- 
                                                        Mario

Mario.Nigrovic@Motorola.Com                    (480) 413-3578
*  -  -  -  -  -  -  -  -  -  *  -  -  -  -  -  -  -  -  -  *
Bore, n.:
        A person who talks when you wish him to listen.
                -- Ambrose Bierce, "The Devil's Dictionary"
*  -  -  -  -  -  -  -  -  -  *  -  -  -  -  -  -  -  -  -  *
to7.gz
patches.gz

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patches.gz
Type: application/x-gzip
Size: 1331 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20000309/436abe7e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: to7.gz
Type: application/x-gzip
Size: 2161 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20000309/436abe7e/attachment-0001.bin>


More information about the Gcc-bugs mailing list