This is the mail archive of the bfd@sourceware.cygnus.com mailing list for the bfd project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [cygnus.gas2] binutils bug: config.guess


I wasn't entirely sure where I should send this, as it seems to be
specific to binutils.  It's a response to Carlo Wood's bug report about
config.guess in the binutils package:

> From: Carlo Wood <carlo@runaway.xs4all.nl>
> Message-Id: <199903091509.QAA03972@jolan.ppro>
> Subject: binutils bug: config.guess

> when trying to compile binutils-2.9.1.0.22b, I ran into a problem with
> config.guess.
> I have "." in my PATH, and it seems that makes config.guess fail to
> execute `ld'. It tries to execute the directory ld/ in binutils.
> I know I shouldn't have a "." in my path before /usr/bin, but I am sure
> I am not the only one that has it any way :).

This is quite a specific case that causes this to fail.  Since it only
occurs when there is a subdirectory named `ld' (as there is in binutils)
and then only when you have `.' in front of the path to your ld program, I
am inclined to suggest a binutils-only modification to config.guess that
just warns:

	if test -d `which ld`
	  echo "Error: cannot invoke ld"
	fi

.. or something to that effect.  I don't think I am prepared to hack up
config.guess to cater for this, unless someone has a more elegant
solution.

> While you're at it, I found another problem with config.guess a while
> ago: I can imagine that someone doesn't have a 'cc', but only a 'gcc'.
> If you don't set CC in that case, config.guess also fails, a bit weird
> (and confusing) for a GNU package.

I feel this is a valid complaint; I will put it onto the heap. Thanks,

Ben