I want to install GCC 4.2.4 and found the source code of it from this mirror and tried to install using this documentation. However, it gave me the following error when I run
I need this old version because there is a huge code written with this version and new version (I tried 4.4-5-6) because problem that I couldn't solve. The problem with the code is probably because of GCC because the program was working on FreeBSD 9.0. (I'm 99% sure problem is GCC)
How can I solve the problem?
Thanks in advance,
make command.
Code:
srcdir="/home/samet/gcc/objdir/../gcc-4.2.4/fixincludes" /bin/sh /home/samet/gcc/objdir/../gcc-4.2.4/fixincludes/mkfixinc.sh i386-unknown-freebsd10.2
sed -e 's/@gcc_version@//' < > mkheadersT
Syntax error: redirection unexpected (expecting word)
*** Error code 2
Stop.
make[3]: stopped in /usr/home/samet/gcc/objdir/build-i386-unknown-freebsd10.2/fixincludes
*** Error code 1
I need this old version because there is a huge code written with this version and new version (I tried 4.4-5-6) because problem that I couldn't solve. The problem with the code is probably because of GCC because the program was working on FreeBSD 9.0. (I'm 99% sure problem is GCC)
How can I solve the problem?
Thanks in advance,