Re: Am I using the right gcc build?
Posted: Sat Mar 15, 2014 9:50 am
Hi boemba,
You really need to learn to follow instructions carefully. You are making a sea of silly beginner mistakes because you didn't follow them exactly as well as understanding what it is going on.
You need to download the source code for binutils and gcc (as well as other dependencies that you usually don't need to build, but we do it here to be certain it works if your environment is unusual, and it is since you use Cygwin rather than a real Unix operating system). Put the optional dependencies for gcc inside the gcc source code directory (renamed so they don't have the version numbers). You want to build binutils and gcc outside of the build directory (this is recommended by the projects), which is why we have build-binutils and build-gcc directories for that purpose. You need to attach these build directories to the source directory, which is why we use the ./configure script from the source code directory. Since we are not in the source code directory, we need to invoke the configure script using an relative or absolute path to it. Since the version number is part of the source code directory's name and new versions occasionally come along, we just say x.y.z and you are meant to replace that by whatever version you are using, that is, the relative path to the binutils source directory. In your screenshot, you clearly see the shell couldn't find the configure script you were trying to invoke. Instead, you ignored that error, tried running Make and complained about a missing makefile rather than the fact that a previous command failed. You cannot assume you can continue to run future commands if the current one failed.
At least, I'll have to commend you for including screenshots (though pastebin pastes are preferred in most cases) so we know exactly what is on your screen, rather than what you think you see.
Edit: Oh, additionally, binutils is not part of the GMP project. You'll want to get it from the GNU ftp site. Indeed, binutils doesn't even use libgmp.
You really need to learn to follow instructions carefully. You are making a sea of silly beginner mistakes because you didn't follow them exactly as well as understanding what it is going on.
You need to download the source code for binutils and gcc (as well as other dependencies that you usually don't need to build, but we do it here to be certain it works if your environment is unusual, and it is since you use Cygwin rather than a real Unix operating system). Put the optional dependencies for gcc inside the gcc source code directory (renamed so they don't have the version numbers). You want to build binutils and gcc outside of the build directory (this is recommended by the projects), which is why we have build-binutils and build-gcc directories for that purpose. You need to attach these build directories to the source directory, which is why we use the ./configure script from the source code directory. Since we are not in the source code directory, we need to invoke the configure script using an relative or absolute path to it. Since the version number is part of the source code directory's name and new versions occasionally come along, we just say x.y.z and you are meant to replace that by whatever version you are using, that is, the relative path to the binutils source directory. In your screenshot, you clearly see the shell couldn't find the configure script you were trying to invoke. Instead, you ignored that error, tried running Make and complained about a missing makefile rather than the fact that a previous command failed. You cannot assume you can continue to run future commands if the current one failed.
At least, I'll have to commend you for including screenshots (though pastebin pastes are preferred in most cases) so we know exactly what is on your screen, rather than what you think you see.
Edit: Oh, additionally, binutils is not part of the GMP project. You'll want to get it from the GNU ftp site. Indeed, binutils doesn't even use libgmp.