other/3862: During the build process, gccbug is installed using $(INSTALL_PROGRAM) instead of $(INSTALL_SCRIPT)
Sat Jul 28 15:26:00 GMT 2001
>Synopsis: During the build process, gccbug is installed using $(INSTALL_PROGRAM) instead of $(INSTALL_SCRIPT)
>Arrival-Date: Sat Jul 28 15:26:00 PDT 2001
While building gcc, I tried passing INSTALL_PROGRAM_ARGS="-s" to make in order to strip executables when they are installed. The gccbug shell script is not an executable, but it adds the -s option anyway so strip fails with an "unknown format" error. It should not be trying to strip a shell script. It tries because the line to install gccbug uses the $(INSTALL_PROGRAM) variable instead of the $(INSTALL_SCRIPT) variable.
after configuring gcc and making all, use make install INSTALL_PROGRAM_ARGS="-s" and it should fail when trying to install gccbug
I have attached a patch which I believe fixes the problem.
More information about the Gcc-bugs