On a C
project at work, make
builds for various targets, one of them apparently being powerpc-405. The build for that specific target fails because I don't have the toolchain installed.
make[7]: /opt/crosstool/gcc-4.2.4-glibc-2.3.6/powerpc-405-linux-gnu/bin/powerpc-405-linux-gnu-gcc: Command not found
Q: I have a very shaky understanding of the "download source code, then build it yourself" paradigm that's common in Linux-land. Can someone please describe how I can do this specific to the noted toolchain in the error?
So far, I've determined/think that I need to go to ftp://gcc.gnu.org/pub/gcc/releases/gcc-4.2.4/ .
Q: What should I download from here? I assume I can safely ignore things like fortran, and java. But from among { gcc-4.2.4, gcc-core-4.2.4, gcc-g++-4.2.4, gcc-testsuite-4.2.4 }, which should I download? All?
Q: After downloading+extracting the correct set of tarballs, what exactly is next? I have a tentative understanding that eventually I will be doing the configure; make; make install
incantation, but I'm unclear what I need to do before and after.
Q: You'll note the error mentions glibc-2.3.6
. Where does this fit into the picture? As noted above, the ftp site I'm at only mentions gcc-4.2.4
. I'm unclear what "melds" gcc-4.2.4
and glibc-2.3.6
for purposes of resolving the build error.
Q: The noted ftp site looks like a "generic" gcc
. I.e. from the filenames, I don't perceive any relation to powerpc-405
. Am I on the right track, or should I be looking elsewhere? I did google for various combinations of "powerpc" and "gcc" and did not find anything that looked like it led to a powerpc-405
-specific gcc
.
>uname -a
Linux linuxbox 3.11.10-301.fc20.x86_64 #1 SMP Thu Dec 5 14:01:17 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
From working through this specific example, I'd like to develop an understanding of how Linux users/developers understand where to go to download cross-compiler toolchains and compile them.