Jeff Stevens wrote:
.../gcc-3.4.4/configure --build=`../gcc-3.4.4/config.guess` --target=powerpc-linux --host=powerpc-linux --prefix=${PREFIX} --enable-languages=cand then a make all. The make went fine, and completed without any errors. However, when I ran 'make install' I got the following error: powerpc-linux-gcc: installation problem, cannot exec `/opt/recorder/tools/libexec/gcc/powerpc-linux/3.4.4/collect2': Exec format error How do I install the native compiler?
You shouldn't ask how but where ! You cannot install alien binaries into the native places on your host ! This is not sane at all... Ok, one solution is to collect the components from the produced stuff, pack them into a '.tar.gz' or something and then ftp or something the stuff into the native system. If you really want to install the stuff into your host, you should know the answer to the "where" first, and should read from the "GCC Install" manual the chapter 7, "Final installation" and see what option to 'make' you should use in order to get the stuff into your chosen "where"...
