Go to the previous, next section.
Installing GNU CC on the 3b1 is difficult if you do not already have
GNU CC running, due to bugs in the installed C compiler. However,
the following procedure might work. We are unable to test it.
-
Comment out the `#include "config.h"' line on line 37 of
`cccp.c' and do `make cpp'. This makes a preliminary version
of GNU cpp.
-
Save the old `/lib/cpp' and copy the preliminary GNU cpp to that
file name.
-
Undo your change in `cccp.c', or reinstall the original version,
and do `make cpp' again.
-
Copy this final version of GNU cpp into `/lib/cpp'.
-
Replace every occurrence of
obstack_free in the file
`tree.c' with _obstack_free.
-
Run
make to get the first-stage GNU CC.
-
Reinstall the original version of `/lib/cpp'.
-
Now you can compile GNU CC with itself and install it in the normal
fashion.
Go to the previous, next section.