This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
help with compiling gcc-4.1.2 on CentOS 6.3 x64
- From: Han Jiang <oglops at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 21 Nov 2012 14:29:35 +0800
- Subject: help with compiling gcc-4.1.2 on CentOS 6.3 x64
- References: <CAPiRsUXtWAHWDsLx0c8uNkDQV0drhShQRFziFy-isges6fy8gg@mail.gmail.com>
Hi all,
i'm compiling gcc 4.1.2 for autodesk maya ( a 3d animation software) ,
and came across these error messages.
i'm following this tutorial
http://docs.autodesk.com/MAYAUL/2013/ENU/Maya-API-Documentation/index.html
Download the gcc 4.1.2 source tar file from http://gcc.gnu.org/install/
Setup directories:
% mkdir gcc412
% cd gcc412
% mkdir gcc-build
Extract the source files:
% tar zxvf gcc-4.1.2.tar.gz
% cd gcc-build
Configure the compiler. Run the following all on 1 line:
../gcc-4.1.2/configure --prefix=/opt/gcc412 --program-suffix=412
--enable-shared --enable-threads=posix --enable-checking=release
--with-system-zlib --disable-libunwind-exceptions
--enable-__cxa_atexit
Build the compiler:
% make -j 2 bootstrap
Everything goes well until this step. i searched the mailing list and
found in 2011 ,Olumide faced with a similar error message,
http://gcc.gnu.org/ml/gcc-help/2011-01/msg00279.html
but he managed to get it compiled successfully after installing two packages,
"(I had to compiled and install textinfo version 4.9 and install the
latest version ncurses in order to compile texinfo.)"
I have these two packages installed, but still can't compile it.
other preparations i did
yum groupinstall "Development tools"
yum groupinstall "Additional Development"
yum install glibc-devel.i686
yum install libXext-devel
the compiling stops with the following error messages:
...
...
if /home/oglop/Downloads/gcc412/gcc-4.1.2/missing makeinfo
--split-size=5000000 --split-size=5000000 --split-size=5000000 -I
../../gcc-4.1.2/fastjar/../gcc/doc/include -I ../../gcc-4.1.2/fastjar
\
-o fastjar.info `test -f 'fastjar.texi' || echo
'../../gcc-4.1.2/fastjar/'`fastjar.texi; \
then \
rc=0; \
else \
rc=$?; \
$restore $backupdir/* `echo "./fastjar.info" | sed 's|[^/]*$||'`; \
fi; \
rm -rf $backupdir; exit $rc
WARNING: `makeinfo' is missing on your system. You should only need it if
you modified a `.texi' or `.texinfo' file, or any other file
indirectly affecting the aspect of the manual. The spurious
call might also be the consequence of using a buggy `make' (AIX,
DU, IRIX). You might want to install the `Texinfo' package or
the `GNU make' package. Grab either from any GNU archive site.
make[4]: *** [fastjar.info] Error 1
make[4]: Leaving directory `/home/oglop/Downloads/gcc412/gcc-build/fastjar'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/oglop/Downloads/gcc412/gcc-build/fastjar'
make[2]: *** [all-fastjar] Error 2
make[2]: *** Waiting for unfinished jobs....
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute
-pedantic -Wno-long-long -DHAVE_CONFIG_H -I.
-I../../gcc-4.1.2/fixincludes -I../include
-I../../gcc-4.1.2/fixincludes/../include
../../gcc-4.1.2/fixincludes/fixtests.c
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute
-pedantic -Wno-long-long -DHAVE_CONFIG_H -I.
-I../../gcc-4.1.2/fixincludes -I../include
-I../../gcc-4.1.2/fixincludes/../include
../../gcc-4.1.2/fixincludes/fixfixes.c
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute
-pedantic -Wno-long-long -DHAVE_CONFIG_H -I.
-I../../gcc-4.1.2/fixincludes -I../include
-I../../gcc-4.1.2/fixincludes/../include
../../gcc-4.1.2/fixincludes/server.c
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute
-pedantic -Wno-long-long -DHAVE_CONFIG_H -I.
-I../../gcc-4.1.2/fixincludes -I../include
-I../../gcc-4.1.2/fixincludes/../include
../../gcc-4.1.2/fixincludes/procopen.c
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute
-pedantic -Wno-long-long -DHAVE_CONFIG_H -I.
-I../../gcc-4.1.2/fixincludes -I../include
-I../../gcc-4.1.2/fixincludes/../include
../../gcc-4.1.2/fixincludes/fixlib.c
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute
-pedantic -Wno-long-long -DHAVE_CONFIG_H -I.
-I../../gcc-4.1.2/fixincludes -I../include
-I../../gcc-4.1.2/fixincludes/../include
../../gcc-4.1.2/fixincludes/fixopts.c
srcdir="../../gcc-4.1.2/fixincludes" /bin/sh
../../gcc-4.1.2/fixincludes/mkfixinc.sh x86_64-unknown-linux-gnu
sed -e 's/@gcc_version@/4.1.2/' < mkheaders.almost > mkheadersT
gcc -g -O2 -o fixincl fixincl.o fixtests.o fixfixes.o server.o
procopen.o fixlib.o fixopts.o ../libiberty/libiberty.a
mv -f mkheadersT mkheaders
echo timestamp > full-stamp
make[3]: Leaving directory `/home/oglop/Downloads/gcc412/gcc-build/fixincludes'
make[2]: Leaving directory `/home/oglop/Downloads/gcc412/gcc-build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/oglop/Downloads/gcc412/gcc-build'
make: *** [bootstrap] Error 2
i'm not a programmer and i'm out of clue right now, anyone please help me ?