This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
building gcc 4.0.2 with gcc 4.6.3: version `GCC_4.2.0' not found
- From: Ilya Basin <basinilya at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 28 Aug 2012 21:30:11 +0400
- Subject: building gcc 4.0.2 with gcc 4.6.3: version `GCC_4.2.0' not found
- Reply-to: Ilya Basin <basinilya at gmail dot com>
Hi list! I can't build older gcc on archlinux 64.
I want to build gcc with bounds checking patches. Bu first I want to
test the build without the patches.
$ ~/gcc-4.0.2/configure --disable-multilib
$ make BOOT_CFLAGS="-O2" STAGE1_CFLAGS="-O2" CFLAGS="-O2" bootstrap
...
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
make[1]: *** [configure-fixincludes] Error 1
$ less fixincludes/config.log
configure:1782: gcc -O2 conftest.c >&5
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/cc1: /home/il/build_4.0.2_dir/gcc/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)