LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing gcc 3.2 make errors (https://www.linuxquestions.org/questions/linux-newbie-8/installing-gcc-3-2-make-errors-884121/)

mukund91 06-02-2011 06:29 AM

Installing gcc 3.2 make errors
 
Hi,

I am trying to install gcc 3.2 on linux mint 10 julia . I have gcc 4.4.5 installed already. I am getting errors during the 'make 'stage.
I did the following after downloading gcc-3.2.tar.gz

Code:

tar xvf gcc-3.2.tar.gz
mkdir build-gcc
cd build-gcc

Code:

../gcc-3.2/configure --prefix=/usr/gcc32 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++
Code:

make

This is what i got when i issued 'make '. Please help.


Code:

linuxmint build-gcc # make
make[1]: Entering directory `/opt/build-gcc/libiberty'
if [ x"-fpic" != x ] && [ ! -d pic ]; then \
          mkdir pic; \
        else true; fi
touch stamp-picdir
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/regex.c -o pic/regex.o; \
        else true; fi
In file included from ../../gcc-3.2/libiberty/../include/xregex.h:26,
                from ../../gcc-3.2/libiberty/regex.c:195:
../../gcc-3.2/libiberty/../include/xregex2.h:548: warning: ISO C90 does not support ‘static’ or type qualifiers in parameter array declarators
In file included from ../../gcc-3.2/libiberty/regex.c:649:
../../gcc-3.2/libiberty/regex.c: In function ‘byte_compile_range’:
../../gcc-3.2/libiberty/regex.c:4602: warning: signed and unsigned type in conditional expression
../../gcc-3.2/libiberty/regex.c:4612: warning: signed and unsigned type in conditional expression
../../gcc-3.2/libiberty/regex.c:4612: warning: signed and unsigned type in conditional expression
../../gcc-3.2/libiberty/regex.c: At top level:
../../gcc-3.2/libiberty/regex.c:1428: warning: traditional C rejects string constant concatenation
../../gcc-3.2/libiberty/regex.c: In function ‘xregcomp’:
../../gcc-3.2/libiberty/regex.c:8099: warning: signed and unsigned type in conditional expression
../../gcc-3.2/libiberty/regex.c: In function ‘xregerror’:
../../gcc-3.2/libiberty/regex.c:8234: warning: unused parameter ‘preg’
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/regex.c
In file included from ../../gcc-3.2/libiberty/../include/xregex.h:26,
                from ../../gcc-3.2/libiberty/regex.c:195:
../../gcc-3.2/libiberty/../include/xregex2.h:548: warning: ISO C90 does not support ‘static’ or type qualifiers in parameter array declarators
In file included from ../../gcc-3.2/libiberty/regex.c:649:
../../gcc-3.2/libiberty/regex.c: In function ‘byte_compile_range’:
../../gcc-3.2/libiberty/regex.c:4602: warning: signed and unsigned type in conditional expression
../../gcc-3.2/libiberty/regex.c:4612: warning: signed and unsigned type in conditional expression
../../gcc-3.2/libiberty/regex.c:4612: warning: signed and unsigned type in conditional expression
../../gcc-3.2/libiberty/regex.c: At top level:
../../gcc-3.2/libiberty/regex.c:1428: warning: traditional C rejects string constant concatenation
../../gcc-3.2/libiberty/regex.c: In function ‘xregcomp’:
../../gcc-3.2/libiberty/regex.c:8099: warning: signed and unsigned type in conditional expression
../../gcc-3.2/libiberty/regex.c: In function ‘xregerror’:
../../gcc-3.2/libiberty/regex.c:8234: warning: unused parameter ‘preg’
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/cplus-dem.c -o pic/cplus-dem.o; \
        else true; fi
../../gcc-3.2/libiberty/cplus-dem.c: In function ‘cplus_demangle’:
../../gcc-3.2/libiberty/cplus-dem.c:951: warning: dereferencing pointer ‘demangling_buffer.37’ does break strict-aliasing rules
../../gcc-3.2/libiberty/cplus-dem.c:1003: note: initialized from here
../../gcc-3.2/libiberty/cplus-dem.c:951: warning: dereferencing pointer ‘demangling_buffer.37’ does break strict-aliasing rules
../../gcc-3.2/libiberty/cplus-dem.c:1056: note: initialized from here
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/cplus-dem.c
../../gcc-3.2/libiberty/cplus-dem.c: In function ‘cplus_demangle’:
../../gcc-3.2/libiberty/cplus-dem.c:951: warning: dereferencing pointer ‘demangling_buffer.37’ does break strict-aliasing rules
../../gcc-3.2/libiberty/cplus-dem.c:1003: note: initialized from here
../../gcc-3.2/libiberty/cplus-dem.c:951: warning: dereferencing pointer ‘demangling_buffer.37’ does break strict-aliasing rules
../../gcc-3.2/libiberty/cplus-dem.c:1056: note: initialized from here
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/cp-demangle.c -o pic/cp-demangle.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/cp-demangle.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/md5.c -o pic/md5.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/md5.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/alloca.c -o pic/alloca.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/alloca.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/argv.c -o pic/argv.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/argv.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/choose-temp.c -o pic/choose-temp.o; \
        else true; fi
../../gcc-3.2/libiberty/choose-temp.c: In function ‘choose_temp_base’:
../../gcc-3.2/libiberty/choose-temp.c:68: warning: ignoring return value of ‘mktemp’, declared with attribute warn_unused_result
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/choose-temp.c
../../gcc-3.2/libiberty/choose-temp.c: In function ‘choose_temp_base’:
../../gcc-3.2/libiberty/choose-temp.c:68: warning: ignoring return value of ‘mktemp’, declared with attribute warn_unused_result
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/concat.c -o pic/concat.o; \
        else true; fi
../../gcc-3.2/libiberty/concat.c: In function ‘concat_length’:
../../gcc-3.2/libiberty/concat.c:111: warning: traditional C rejects ISO C style function definitions
../../gcc-3.2/libiberty/concat.c: In function ‘concat_copy’:
../../gcc-3.2/libiberty/concat.c:126: warning: traditional C rejects ISO C style function definitions
../../gcc-3.2/libiberty/concat.c: In function ‘concat_copy2’:
../../gcc-3.2/libiberty/concat.c:145: warning: traditional C rejects ISO C style function definitions
../../gcc-3.2/libiberty/concat.c: In function ‘concat’:
../../gcc-3.2/libiberty/concat.c:156: warning: traditional C rejects ISO C style function definitions
../../gcc-3.2/libiberty/concat.c: In function ‘reconcat’:
../../gcc-3.2/libiberty/concat.c:193: warning: traditional C rejects ISO C style function definitions
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/concat.c
../../gcc-3.2/libiberty/concat.c: In function ‘concat_length’:
../../gcc-3.2/libiberty/concat.c:111: warning: traditional C rejects ISO C style function definitions
../../gcc-3.2/libiberty/concat.c: In function ‘concat_copy’:
../../gcc-3.2/libiberty/concat.c:126: warning: traditional C rejects ISO C style function definitions
../../gcc-3.2/libiberty/concat.c: In function ‘concat_copy2’:
../../gcc-3.2/libiberty/concat.c:145: warning: traditional C rejects ISO C style function definitions
../../gcc-3.2/libiberty/concat.c: In function ‘concat’:
../../gcc-3.2/libiberty/concat.c:156: warning: traditional C rejects ISO C style function definitions
../../gcc-3.2/libiberty/concat.c: In function ‘reconcat’:
../../gcc-3.2/libiberty/concat.c:193: warning: traditional C rejects ISO C style function definitions
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/dyn-string.c -o pic/dyn-string.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/dyn-string.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/fdmatch.c -o pic/fdmatch.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/fdmatch.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/fibheap.c -o pic/fibheap.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/fibheap.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/floatformat.c -o pic/floatformat.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/floatformat.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/fnmatch.c -o pic/fnmatch.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/fnmatch.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/getopt.c -o pic/getopt.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/getopt.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/getopt1.c -o pic/getopt1.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/getopt1.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/getpwd.c -o pic/getpwd.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/getpwd.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/getruntime.c -o pic/getruntime.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/getruntime.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/hashtab.c -o pic/hashtab.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/hashtab.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/hex.c -o pic/hex.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/hex.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/lbasename.c -o pic/lbasename.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/lbasename.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/make-temp-file.c -o pic/make-temp-file.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/make-temp-file.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/objalloc.c -o pic/objalloc.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/objalloc.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/obstack.c -o pic/obstack.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/obstack.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/partition.c -o pic/partition.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/partition.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/pexecute.c -o pic/pexecute.o; \
        else true; fi
../../gcc-3.2/libiberty/pexecute.c: In function ‘pexecute’:
../../gcc-3.2/libiberty/pexecute.c:739: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result
../../gcc-3.2/libiberty/pexecute.c:745: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/pexecute.c
../../gcc-3.2/libiberty/pexecute.c: In function ‘pexecute’:
../../gcc-3.2/libiberty/pexecute.c:739: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result
../../gcc-3.2/libiberty/pexecute.c:745: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/safe-ctype.c -o pic/safe-ctype.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/safe-ctype.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/sort.c -o pic/sort.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/sort.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/spaces.c -o pic/spaces.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/spaces.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/splay-tree.c -o pic/splay-tree.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/splay-tree.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/strerror.c -o pic/strerror.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/strerror.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/strsignal.c -o pic/strsignal.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/strsignal.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/ternary.c -o pic/ternary.o; \
        else true; fi
../../gcc-3.2/libiberty/ternary.c:150: warning: ‘ternary_recursivesearch’ defined but not used
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/ternary.c
../../gcc-3.2/libiberty/ternary.c:150: warning: ‘ternary_recursivesearch’ defined but not used
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/xatexit.c -o pic/xatexit.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/xatexit.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/xexit.c -o pic/xexit.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/xexit.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/xmalloc.c -o pic/xmalloc.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/xmalloc.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/xmemdup.c -o pic/xmemdup.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/xmemdup.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/xstrdup.c -o pic/xstrdup.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/xstrdup.c
if [ x"-fpic" != x ]; then \
          gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.2/libiberty/xstrerror.c -o pic/xstrerror.o; \
        else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/xstrerror.c
rm -f libiberty.a pic/libiberty.a
ar rc libiberty.a \
          regex.o cplus-dem.o cp-demangle.o md5.o alloca.o argv.o choose-temp.o concat.o dyn-string.o fdmatch.o fibheap.o floatformat.o fnmatch.o getopt.o getopt1.o getpwd.o getruntime.o hashtab.o hex.o lbasename.o make-temp-file.o objalloc.o obstack.o partition.o pexecute.o safe-ctype.o sort.o spaces.o splay-tree.o strerror.o strsignal.o ternary.o xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o 
ranlib libiberty.a
if [ x"-fpic" != x ]; then \
          cd pic; \
          ar rc libiberty.a \
            regex.o cplus-dem.o cp-demangle.o md5.o alloca.o argv.o choose-temp.o concat.o dyn-string.o fdmatch.o fibheap.o floatformat.o fnmatch.o getopt.o getopt1.o getpwd.o getruntime.o hashtab.o hex.o lbasename.o make-temp-file.o objalloc.o obstack.o partition.o pexecute.o safe-ctype.o sort.o spaces.o splay-tree.o strerror.o strsignal.o ternary.o xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o  ; \
          ranlib libiberty.a; \
          cd ..; \
        else true; fi
rm -f needed-list; touch needed-list; \
        for f in atexit calloc memchr memcmp memcpy memmove memset rename strchr strerror strncmp strrchr strstr strtol strtoul tmpnam vfprintf vprintf vfork waitpid bcmp bcopy bzero; do \
          for g in  ; do \
            case "$g" in \
              *$f*) echo $g >> needed-list ;; \
            esac; \
          done; \
        done
echo regex.o cplus-dem.o cp-demangle.o md5.o alloca.o argv.o choose-temp.o concat.o dyn-string.o fdmatch.o fibheap.o floatformat.o fnmatch.o getopt.o getopt1.o getpwd.o getruntime.o hashtab.o hex.o lbasename.o make-temp-file.o objalloc.o obstack.o partition.o pexecute.o safe-ctype.o sort.o spaces.o splay-tree.o strerror.o strsignal.o ternary.o xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o > required-list
make[2]: Entering directory `/opt/build-gcc/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/opt/build-gcc/libiberty/testsuite'
make[1]: Leaving directory `/opt/build-gcc/libiberty'
make[1]: Entering directory `/opt/build-gcc/gcc'
HEADERS="auto-host.h ansidecl.h  i386/i386.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h defaults.h" DEFINES="POSIX" \
        TARGET_CPU_DEFAULT="TARGET_CPU_DEFAULT_pentiumpro" \
        /bin/sh ../../gcc-3.2/gcc/mkconfig.sh config.h
HEADERS="auto-host.h ansidecl.h  i386/i386.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h defaults.h" DEFINES="POSIX" \
        TARGET_CPU_DEFAULT="TARGET_CPU_DEFAULT_pentiumpro" \
        /bin/sh ../../gcc-3.2/gcc/mkconfig.sh hconfig.h
gcc -c -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I../../gcc-3.2/gcc -I../../gcc-3.2/gcc/. -I../../gcc-3.2/gcc/config -I../../gcc-3.2/gcc/../include ../../gcc-3.2/gcc/gengenrtl.c -o gengenrtl.o
In file included from ../../gcc-3.2/gcc/gengenrtl.c:26:
../../gcc-3.2/gcc/rtl.h:125: warning: type of bit-field ‘code’ is a GCC extension
../../gcc-3.2/gcc/rtl.h:128: warning: type of bit-field ‘mode’ is a GCC extension
gcc -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H -DGENERATOR_FILE  -o gengenrtl \
        gengenrtl.o ../libiberty/libiberty.a
./gengenrtl -h > tmp-genrtl.h
/bin/sh ../../gcc-3.2/gcc/move-if-change tmp-genrtl.h genrtl.h
./gengenrtl > tmp-genrtl.c
/bin/sh ../../gcc-3.2/gcc/move-if-change tmp-genrtl.c genrtl.c
echo timestamp > s-genrtl
gcc -c -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I../../gcc-3.2/gcc -I../../gcc-3.2/gcc/. -I../../gcc-3.2/gcc/config -I../../gcc-3.2/gcc/../include ../../gcc-3.2/gcc/genflags.c -o genflags.o
In file included from ../../gcc-3.2/gcc/genflags.c:27:
../../gcc-3.2/gcc/rtl.h:125: warning: type of bit-field ‘code’ is a GCC extension
../../gcc-3.2/gcc/rtl.h:128: warning: type of bit-field ‘mode’ is a GCC extension
gcc -c -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I../../gcc-3.2/gcc -I../../gcc-3.2/gcc/. -I../../gcc-3.2/gcc/config -I../../gcc-3.2/gcc/../include ../../gcc-3.2/gcc/rtl.c -o rtl.o
In file included from ../../gcc-3.2/gcc/rtl.c:24:
../../gcc-3.2/gcc/rtl.h:125: warning: type of bit-field ‘code’ is a GCC extension
../../gcc-3.2/gcc/rtl.h:128: warning: type of bit-field ‘mode’ is a GCC extension
gcc -c -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I../../gcc-3.2/gcc -I../../gcc-3.2/gcc/. -I../../gcc-3.2/gcc/config -I../../gcc-3.2/gcc/../include ../../gcc-3.2/gcc/read-rtl.c -o read-rtl.o
In file included from ../../gcc-3.2/gcc/read-rtl.c:24:
../../gcc-3.2/gcc/rtl.h:125: warning: type of bit-field ‘code’ is a GCC extension
../../gcc-3.2/gcc/rtl.h:128: warning: type of bit-field ‘mode’ is a GCC extension
../../gcc-3.2/gcc/read-rtl.c: In function ‘fatal_with_file_and_line’:
../../gcc-3.2/gcc/read-rtl.c:61: warning: traditional C rejects ISO C style function definitions
../../gcc-3.2/gcc/read-rtl.c: In function ‘read_rtx’:
../../gcc-3.2/gcc/read-rtl.c:662: error: lvalue required as increment operand
make[1]: *** [read-rtl.o] Error 1
make[1]: Leaving directory `/opt/build-gcc/gcc'
make: *** [all-gcc] Error 2



Thanks and regards,
Mukund

knudfl 06-02-2011 06:55 AM

Please edit post # 1 to use code tags. It's the # button in the 'Advanced Editor'.
I.e. [/code] at text end, and [code] at "error text start"
http://www.linuxquestions.org/questi....php?do=bbcode

Like :
Code:

make[1]: Leaving directory `/opt/gcc-3.2/gcc'
make: *** [bootstrap] Error 2


* GCC-3.2.x is too old for a contemporary Linux. ( See EDIT.)
* The oldest, that can be build, is gcc-3.3.3. * EDIT :
* EDIT : gcc-3.2.3 can be build, using gcc-3.4.6.

... And why do you want gcc-3.2 ? ?
Most old applications can be compiled with 3.3.3 or later.
( gcc-2.95 is available as a package.deb : /usr/bin/gcc-2.95.
The c++ (g++) from gcc-2.95 / gcc-3.2.x will not work.)

..

mukund91 06-02-2011 09:43 AM

Quote:

Originally Posted by knudfl (Post 4374026)
Please edit post # 1 to use code tags. It's the # button in the 'Advanced Editor'.
I.e. [/code] at text end, and [code] at "error text start"
http://www.linuxquestions.org/questi....php?do=bbcode

Like :
Code:

make[1]: Leaving directory `/opt/gcc-3.2/gcc'
make: *** [bootstrap] Error 2


GCC-3.2.x is too old for a contemporary Linux.
The oldest, that can be build, is gcc-3.3.3.

... And why do you want gcc-3.2 ? ?
Most old applications can be compiled with 3.3.3 or later.
( gcc-2.95 is available as a package.deb : /usr/bin/gcc-2.95.
The c++ (g++) from gcc-2.95 / gcc-3.2.x will not work.)

..

I've included the code tags now. Thanks. I need GCC 3.2 because I'm having trouble compiling a program( not written by me) which was tested out with GCC 3.2. I tried compiling it with the GCC 4.4.5 installed in my PC but I keep getting errors. The documentation for the program recommends use of GCC 3.2 for the compilation and so I think installing it may help solve my problem. Is there anything that can be done? Should i go for an old linux version ? If yes, what version would you suggest? Thanks again for your help.

knudfl 06-02-2011 10:04 AM

Actually there are no supported Linux with gcc-3.2.3.
The latest was CentOS 3.9. And for gcc-2.95 : Debian Etch.

Suggestions : Install gcc-3.3.6 from e.g. Ubuntu Hardy. May work.
( Package name = gcc-3.3 )

And if the application contains no c++ code, gcc-2.95 is the choice.
( Very close to the 3.2.x functions.) EDIT : See #2 and #5.

sudo dpkg -i gcc-2.95_2.95.4-27_i386.deb
http://archive.debian.org/debian-arc....4-27_i386.deb

http://archive.debian.org/debian-arc...in/g/gcc-2.95/

..

mukund91 06-03-2011 12:35 PM

Quote:

Originally Posted by knudfl (Post 4374168)
Actually there are no supported Linux with gcc-3.2.3.
The latest was CentOS 3.9. And for gcc-2.95 : Debian Etch.

Suggestions : Install gcc-3.3.6 from e.g. Ubuntu Hardy. May work.
( Package name = gcc-3.3 )

And if the application contains no c++ code, gcc-2.95 is the choice.
( Very close to the 3.2.x functions.)

sudo dpkg -i gcc-2.95_2.95.4-27_i386.deb
http://archive.debian.org/debian-arc....4-27_i386.deb

http://archive.debian.org/debian-arc...in/g/gcc-2.95/

..

I build gcc 3.4 using the gcc 4.4.5 already installed and used this newly installed gcc 3.4 to install gcc 3.2.3 and now it works fine. Thanks for you replies.


All times are GMT -5. The time now is 04:22 PM.