Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!SUN.MCS.CLARKSON.EDU!slk From: slk@SUN.MCS.CLARKSON.EDU (Steve Knodle) Newsgroups: gnu.g++.bug Subject: (none) Message-ID: <8903162047.AA01112@sun.mcs.clarkson.edu> Date: 16 Mar 89 20:47:46 GMT Sender: bob@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 60 I just picked up g++-1.34.0 from prep.ai.mit.edu, and was confused reading the installation instructions. I seem to be gravely misunderstanding something. Target machine is a sun3 running OS 4.0.1 I previously brought gcc-1.32 up on a VAX 750 running XINU 4.3 My observations are interspersed below: |The code for GNU C++ is in the directory dist-g++/, and the code for |making GDB+ is in the directory dist-gdb+/. Here is how to install |GNU C++: After untarring, my src was in src-g++, not dist-g++. I renamed src-g++ to conform to your instructions. |(1) Make a directory g++/ and cd into it | | install% mkdir g++ | install% cd g++ | |(2) Run make on the "maketest" target. If your directory structure is | as described here, you need not give any additional arguments. | Otherwise, you must set DIR to the directory which contains GNU CC | sources, and TDIR to the directory which contains GNU CC object | files. At this point, g++ has no makefile, and my "make" searches nowhere else. I ran "make maketest" in dist-g++ instead. |(3) Configure the compiler for the machine target you want. This is | accomplished by running the program "config.g++". For example, on | a Sun4 running SunOS 4.0, you would type: | | install% config.g++ sun4-os4 I have no "config.g++", but did have a "config.gcc". I ran it. |Now, You should be in the directory g++/: | | install% pwd | install% ./g++ I have nothing executable named "g++" in this directory. |*Very Important*: Because GNU C++ now uses its own crt0.c, borrowed |and modified from GNU Emacs, you should verify that the crt0.c |provided is fed suitable definitions for correct compilation. If you |have GNU Emacs, and you are not compiling to a SUN, consult your local |GNU Emacs guru, to see what sort of #defines are required for proper |operation. Then, just type `make'. If you are not using a SUN, you |will need to use the appropriate machine dependent files, as per GNU |CC. If you do not provide a proper crt0.c, any executable produced |by GNU C++ may fail to run at all. Conversely, if you have a program |which does not make it as far as the first line in main (), you have |probably failed to provide the correct flags to crt0.c. I ran "make" in dist-g++, and got an error message regarding not finding "../test-g++" files. Please tell me what I did wrong!