Cross Compiler - Can't build gcc
Posted: Tue Apr 15, 2014 9:47 am
Hello,
I'm about to build the cross compiler. I followed the tutorial on this site.
I've already built the binutils.
But if I want to build gcc, an error occurs.
After the command 'make all-gcc' it says:
...
configure: former value: 'i686-elf'
configure: current value: 'x86_64-unknown-linux-gnu'
configure: error: in '/home/samuel/src/build-gcc/fixincludes':
configure: error: changes in the environment can compromise the build
configure: error: run 'make distclean' and/or 'rm ./config.cache and start over
make: *** [configure-fixincludes] Error 1
I've already done the 'make-distclean' command. But if i try it again, the same errors occur.
Im trying to solve this problem for 5 hours, but I can't find the problem.
But I wondered about a few things during the preperation:
1. I don't have a src folder in my homedirectory... So I created it manualy. Is that OK?
2. I don't have a gmp directory in the gcc diretory. Is that normal? I created it manualy, too.
PS: sorry for my bad english
I'm about to build the cross compiler. I followed the tutorial on this site.
I've already built the binutils.
But if I want to build gcc, an error occurs.
After the command 'make all-gcc' it says:
...
configure: former value: 'i686-elf'
configure: current value: 'x86_64-unknown-linux-gnu'
configure: error: in '/home/samuel/src/build-gcc/fixincludes':
configure: error: changes in the environment can compromise the build
configure: error: run 'make distclean' and/or 'rm ./config.cache and start over
make: *** [configure-fixincludes] Error 1
I've already done the 'make-distclean' command. But if i try it again, the same errors occur.
Im trying to solve this problem for 5 hours, but I can't find the problem.
But I wondered about a few things during the preperation:
1. I don't have a src folder in my homedirectory... So I created it manualy. Is that OK?
2. I don't have a gmp directory in the gcc diretory. Is that normal? I created it manualy, too.
PS: sorry for my bad english