|
|
Building GCC 2.8.0 on OpenServer results in alloca link failure early during the build. |
| GCC 2.8.0 is a distraction. Use EGCS (http://egcs.cygnus.com) or GCC 2.8.1.
robertlipe@usa.net | |
GCC 2.8.0 finally shipped. Yippie! So you grabbed it, saw that OpenServer
is finally a supported target, did the configure, typed 'make bootstrap' and
watched it die within seconds on the following error:
cc -DIN_GCC -DHAVE_CONFIG_H -o cccp cccp.o cexp.o prefix.o \ version.o obstack.o ` case "cc " in "cc") echo "alloca.o" ;; esac ` undefined first referenced symbol in file alloca cccp.o ld fatal: Symbol referencing errors. No output written to cccp gmake: *** [cccp] Error 13 Bummer. There is one solution and one workaround. The problem is in config/i386/x-sco5. Edit the line that looks like it reads "CC = cc" and remove the trailing space after the last lowercase c. After you've done this, you'll need to rerun configure so that it can rebuild all the Makefiles. If you look at the above compilation line more carefully you will see that there is an extra space and that is resulting in alloca.o not being linked into the resulting executable.
Alternately, you can just type "CC=/bin/cc make bootstrap" and not have
to edit anything. | |
| [Append to This Answer] |
| Previous: |
|
| Next: |
|
| ||||||||