This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Config.sub?
- From: Kai Ruottu <kai dot ruottu at wippies dot com>
- To: KATHRYN dot HALL at email dot ucdenver dot edu
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 29 May 2009 22:57:00 +0300
- Subject: Re: Config.sub?
- References: <20090529122424.5dj0sv03k44ck080@maroon.cudenver.edu>
KATHRYN.HALL@email.ucdenver.edu wrote:
Hi,
I need to install gcc vers. 4.2.4 on a linux box, and my experience
doing anything with linux is pretty much nil.
When I try to run the configure script, I get the following error:
configure: error: cannot run /bin/sh ./../../config.sub
I've tried searching for config.sub, but it does not appear to exist in
the gcc files I downloaded, nor does it appear to be anywhere else on
the machine (which has a newer version of gcc installed). Where do I
get config.sub?
[root@Dell gcc-4.2.4]# pwd
/data1/home/src/gcc-4.2.4
[root@Dell gcc-4.2.4]# ls -l config.sub
-rwxrwxr-x 1 515 515 32560 2006-10-16 06:27 config.sub
Is it supposed to be generated by the configure script?
No, the gcc-4.2.4 sources SHOULD have it ! This script will tell which
"calculated target name" would be given to the configures in the source
subdirs :
[root@Dell gcc-4.2.4]# ./config.sub i686-linux
i686-pc-linux-gnu
Please read my earlier message about configuring with './configure' in
the main source directory! That is strictly FORBIDDEN !