[comp.unix.aux] Problem compiling InterViews with g++ 1.37.2 beta.

lamarche@ireq.hydro.qc.ca (12/12/90)

I finaly got g++ 1.37.2 beta from wuarchive.wustl.edu and I tried to compile
InterViews (X11R4 original distribution ). The make -k command hangs in
$(TOP)/InterViews/src/libInterViews/macII with the following message.


compiling ../filebrowser.c
        rm -f filebrowser.o
        g++ -D_BSD_SOURCE -c    -I.. -I../Generated -I../../.././src/InterViews/
Std -I../../.././src    ../filebrowser.c
Failed assertion `i != LAST_CPLUS_TREE_CODE' at line 575 of `cplus-lex.c'.
g++: Program cc1plus got fatal signal 6.
Make: Update of filebrowser.o terminated with exit code 1
Make: Target filebrowser.o is on line 345 in /usr/local/src/macII-X/contrib/tool
kits/InterViews/src/libInterViews/macII/Makefile
Make: Stopped in directory /usr/local/src/macII-X/contrib/toolkits/InterViews/sr
c/libInterViews/macII.

Does anybody has an idea of what is wrong with this?

PS: I am working on a macII with A/UX 2.0.

Thanks in advance!
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| Louis Lamarche, IREQ |       lamarche@IREQ.Hydro.Qc.CA
| CP 1000, Varennes    |                 or
| QC, Canada, J3X 1S1  |  514-652-8077 (office)  514-324-2919 (home)

coolidge@cs.uiuc.edu (John Coolidge) (12/14/90)

lamarche@ireq.hydro.qc.ca writes:
>I finaly got g++ 1.37.2 beta from wuarchive.wustl.edu and I tried to compile
>InterViews (X11R4 original distribution ). The make -k command hangs in
>$(TOP)/InterViews/src/libInterViews/macII with the following message.


>compiling ../filebrowser.c
>        rm -f filebrowser.o
>        g++ -D_BSD_SOURCE -c    -I.. -I../Generated -I../../.././src/InterViews/
>Std -I../../.././src    ../filebrowser.c
>Failed assertion `i != LAST_CPLUS_TREE_CODE' at line 575 of `cplus-lex.c'.
>g++: Program cc1plus got fatal signal 6.
>Make: Update of filebrowser.o terminated with exit code 1
>Make: Target filebrowser.o is on line 345 in /usr/local/src/macII-X/contrib/tool
>kits/InterViews/src/libInterViews/macII/Makefile
>Make: Stopped in directory /usr/local/src/macII-X/contrib/toolkits/InterViews/sr
>c/libInterViews/macII.

>Does anybody has an idea of what is wrong with this?

This is extremely odd, since I compiled InterViews with g++ and
everything worked fine. I've seen this problem before when using
Apple's as; the problem seemed to be that a symbol in the file
was conflicting with the starting symbol of one of g++'s internal
signals. Since, with gas, it's supposed to be starting everything
with '$' (I think), the InterViews compilation should work. I'll
try to find out what's going wrong.

I'm going to be off the net for at least a week and possibly three
(vacation; hopefully I'll have net access in a week).

Happy holidays!

--John

--------------------------------------------------------------------------
John L. Coolidge     Internet:coolidge@cs.uiuc.edu   UUCP:uiucdcs!coolidge
Of course I don't speak for the U of I (or anyone else except myself)
Copyright 1990 John L. Coolidge. Copying allowed if (and only if) attributed.
You may redistribute this article if and only if your recipients may as well.

lamarche@ireq.hydro.qc.ca (12/19/90)

In article <1990Dec14.052617.1581@julius.cs.uiuc.edu>, coolidge@cs.uiuc.edu (John Coolidge) writes:
|> lamarche@ireq.hydro.qc.ca writes:
|> >I finaly got g++ 1.37.2 beta from wuarchive.wustl.edu and I tried to compile
|> >InterViews (X11R4 original distribution ). The make -k command hangs in
|> >$(TOP)/InterViews/src/libInterViews/macII with the following message.
|> 
|> 
|> >compiling ../filebrowser.c
|> >        rm -f filebrowser.o
|> >        g++ -D_BSD_SOURCE -c    -I.. -I../Generated -I../../.././src/InterViews/
|> >Std -I../../.././src    ../filebrowser.c
|> >Failed assertion `i != LAST_CPLUS_TREE_CODE' at line 575 of `cplus-lex.c'.
|> >g++: Program cc1plus got fatal signal 6.
|> >Make: Update of filebrowser.o terminated with exit code 1
|> >Make: Target filebrowser.o is on line 345 in /usr/local/src/macII-X/contrib/tool
|> >kits/InterViews/src/libInterViews/macII/Makefile
|> >Make: Stopped in directory /usr/local/src/macII-X/contrib/toolkits/InterViews/sr
|> >c/libInterViews/macII.
|> >Does anybody has an idea of what is wrong with this?
|> 
|> This is extremely odd, since I compiled InterViews with g++ and
|> everything worked fine. I've seen this problem before when using
|> Apple's as;

I must apologize here for my error. The problem is that I was trying
to keep the old version of g++ (mars 1990) with the new one. I had an old
version of cc1plus in /usr/local/bin and the new version in /usr/local/bin/lib.
g++ found the old one :-(.

So my final solution is

  o  g++      in /usr/local/bin/g++
  o  cc1plus  in /usr/local/bin/lib/cc1plus
  o  collect  in /usr/local/bin/lib/collect
   
  o  gnulib   in /usr/local/bin/lib/gnulib
  o  libg++.a in /usr/local/bin/lib/libg++.a

  o  Remove all other version of these files from /usr/local/bin

   
I finally fixed up everything and, after applying the available patches from
interviews.stanford.edu to the X11R4 original distribution, I was able to compile
the library (libInterViewsX11.a). My only problem for the moment is that "gas"
must be in /bin/as so that g++ can find it.  Apple cc becomes difficult to use then. 
    
|> 
|> Happy holidays!
|> 
|> --John

I would like to congratulate John Coolidge for all this great work on gcc and
g++ for the Mac. Happy holidays for you too John !


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| Louis Lamarche, IREQ |       lamarche@IREQ.Hydro.Qc.CA
| CP 1000, Varennes    |                 or
| QC, Canada, J3X 1S1  |  514-652-8077 (office)  514-324-2919 (home)