Misha Koshelev wrote: > Dear All: > > I am trying to compile gcc 4.2.4 on a CentOS 5.3 > [misha@mackey ~]$ cat /etc/redhat-release > CentOS release 5.3 (Final) > > [misha@mackey gcc-4.2.4]$ uname -a > Linux mackey.cluster 2.6.18-128.7.1.el5 #1 SMP Mon Aug 24 08:21:56 EDT > 2009 x86_64 x86_64 x86_64 GNU/Linux > > system so I can use the ATLAS program > http://math-atlas.sourceforge.net/atlas_install/ > > I am getting a rather strange error after doing > ./configure > --prefix=/home/misha/gcc > > and > make > > Making all in src > make[4]: Entering directory > `/home/misha/gcc/gcc-4.2.4/x86_64-unknown-linux-gnu/libstdc++-v3/src' > /bin/sh ../libtool --tag CXX --mode=compile > /home/misha/gcc/gcc-4.2.4/host-x86_64-unknown-linux-gnu/gcc/xgcc > -shared-libgcc > -B/home/misha/gcc/gcc-4.2.4/host-x86_64-unknown-linux-gnu/gcc > -nostdinc++ > -L/home/misha/gcc/gcc-4.2.4/x86_64-unknown-linux-gnu/libstdc++-v3/src > -L/home/misha/gcc/gcc-4.2.4/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs > -B/home/misha/gcc/x86_64-unknown-linux-gnu/bin/ > -B/home/misha/gcc/x86_64-unknown-linux-gnu/lib/ -isystem > /home/misha/gcc/x86_64-unknown-linux-gnu/include -isystem > /home/misha/gcc/x86_64-unknown-linux-gnu/sys-include > -I/home/misha/gcc/gcc-4.2.4/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu > -I/home/misha/gcc/gcc-4.2.4/x86_64-unknown-linux-gnu/libstdc++-v3/include > -I/home/misha/gcc/gcc-4.2.4/libstdc++-v3/libsupc++ > -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual > -fdiagnostics-show-location=once -ffunction-sections -fdata-sections > -g -O2 -D_GNU_SOURCE -c -o codecvt.lo > ../../.././libstdc++-v3/src/codecvt.cc > /home/misha/gcc/gcc-4.2.4/host-x86_64-unknown-linux-gnu/gcc/xgcc > -shared-libgcc > -B/home/misha/gcc/gcc-4.2.4/host-x86_64-unknown-linux-gnu/gcc > -nostdinc++ > -L/home/misha/gcc/gcc-4.2.4/x86_64-unknown-linux-gnu/libstdc++-v3/src > -L/home/misha/gcc/gcc-4.2.4/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs > -B/home/misha/gcc/x86_64-unknown-linux-gnu/bin/ > -B/home/misha/gcc/x86_64-unknown-linux-gnu/lib/ -isystem > /home/misha/gcc/x86_64-unknown-linux-gnu/include -isystem > /home/misha/gcc/x86_64-unknown-linux-gnu/sys-include > -I/home/misha/gcc/gcc-4.2.4/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu > -I/home/misha/gcc/gcc-4.2.4/x86_64-unknown-linux-gnu/libstdc++-v3/include > -I/home/misha/gcc/gcc-4.2.4/libstdc++-v3/libsupc++ > -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual > -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g > -O2 -D_GNU_SOURCE -c ../../.././libstdc++-v3/src/codecvt.cc -fPIC -DPIC > -o .libs/codecvt.o > /home/misha/gcc/gcc-4.2.4/host-x86_64-unknown-linux-gnu/gcc/xgcc > -shared-libgcc > -B/home/misha/gcc/gcc-4.2.4/host-x86_64-unknown-linux-gnu/gcc > -nostdinc++ > -L/home/misha/gcc/gcc-4.2.4/x86_64-unknown-linux-gnu/libstdc++-v3/src > -L/home/misha/gcc/gcc-4.2.4/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs > -B/home/misha/gcc/x86_64-unknown-linux-gnu/bin/ > -B/home/misha/gcc/x86_64-unknown-linux-gnu/lib/ -isystem > /home/misha/gcc/x86_64-unknown-linux-gnu/include -isystem > /home/misha/gcc/x86_64-unknown-linux-gnu/sys-include > -I/home/misha/gcc/gcc-4.2.4/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu > -I/home/misha/gcc/gcc-4.2.4/x86_64-unknown-linux-gnu/libstdc++-v3/include > -I/home/misha/gcc/gcc-4.2.4/libstdc++-v3/libsupc++ > -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual > -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g > -O2 -D_GNU_SOURCE -c ../../.././libstdc++-v3/src/codecvt.cc -o codecvt.o > >> /dev/null 2>&1 >> > make[4]: *** [codecvt.lo] Error 1 > make[4]: Leaving directory > `/home/misha/gcc/gcc-4.2.4/x86_64-unknown-linux-gnu/libstdc++-v3/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory > `/home/misha/gcc/gcc-4.2.4/x86_64-unknown-linux-gnu/libstdc++-v3' > make[2]: *** [all] Error 2 > make[2]: Leaving directory > `/home/misha/gcc/gcc-4.2.4/x86_64-unknown-linux-gnu/libstdc++-v3' > make[1]: *** [all-target-libstdc++-v3] Error 2 > make[1]: Leaving directory `/home/misha/gcc/gcc-4.2.4' > make: *** [all] Error 2 > [misha@mackey gcc-4.2.4]$ > > I don't actually see any error which is why I can't seem to figure this > out further. Google doesn't help. Any help much appreciated. > > Thank you > Misha > > Hey Misha, I can't see any obvious error, but you're trying to configure/build gcc in its source directory which is not recommended! Instead try the following: 1. <extract gcc sources> -> will create a directory like gcc-x.y.z 2. mkdir build 3. cd build 4. ../gcc-x.y.z/configure --prefix=/home/misha/gcc 5. make 6. make install Hope that helps, Andi