Undefined symbol "alloca" problem in compiling gcc 2.9.5 on unixware 7.1.1

Rupert Wood me@rupey.net
Tue Feb 26 01:36:00 GMT 2002


TaoFengmei wrote:

> # make install
>         /bin/sh ../mkinstalldirs /usr/local  /usr/local
> (cd intl && make all)
>         cc -c  -DIN_GCC     -g   -DHAVE_CONFIG_H    -I. 
> -I../../gcc -I../../gcc/
> config -I../../gcc/../include ../../gcc/genattr.c

That last line certainly shouldn't have happened during make install.
May I check:

    1. that you're using GNU make? Some system makes, e.g. HPUX's,
       have dependency checking errors that cause files to be rebuilt
       unnecessarily. (This isn't exactly what's going on here, but it
       might be a symptom.)

    2. that you build GCC using 'make bootstrap' and not just 'make'?
       If it attempted to rebuild genattr in a completed installation
       then it should be using ./xgcc and not cc.

    3. that you ran the configure in the top-level extracted source
       directory (i.e. the one with the file MAINTAINERS) and not the
       configure in the gcc subdirectory of that? Alloca.o should have
       been created by libiberty and linked into the gcc build
       directory. You could try

           ln ../libiberty/alloca.o alloca.o

       in the gcc subdirectory of your GCC build directory, and repeat
       the install.

Hope that helps,
Rup. 



More information about the Gcc-help mailing list