(Answer) (Category) SCO comp.unix.sco.programmer FAQ. : (Category) SCO Development Environments. :
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.
A patch to cure this was submitted to the GCC team on the day that GCC 2.8.0 was released.



robertlipe@usa.net

[Append to This Answer]
Previous: (Answer) Will UnixWare 2.1 or 7.0 run ibcs/OpenServer binaries?
Next: (Answer) I installed GDS or GCC binary kit and nothing works.
This document is: http://www.zenez.com/cgi-bin/scoprogfaq/faq?file=54
[Search] [Appearance]
This is a Faq-O-Matic 2.721.