Thread View: gnu.g++.bug
1 messages
1 total messages
Started by Steve Knodle
Thu, 16 Mar 1989 20:47
(none)
Author: Steve Knodle
Date: Thu, 16 Mar 1989 20:47
Date: Thu, 16 Mar 1989 20:47
60 lines
2793 bytes
2793 bytes
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!
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads