Problem compiling InterViews with g++ 1.37.2 beta.

lamarche at ireq.hydro.qc.ca lamarche at ireq.hydro.qc.ca
Wed Dec 19 03:03:58 AEST 1990


In article <1990Dec14.052617.1581 at julius.cs.uiuc.edu>, coolidge at cs.uiuc.edu (John Coolidge) writes:
|> lamarche at 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 at IREQ.Hydro.Qc.CA
| CP 1000, Varennes    |                 or
| QC, Canada, J3X 1S1  |  514-652-8077 (office)  514-324-2919 (home)



More information about the Comp.unix.aux mailing list