ld fails to build for target
Andrija Radicevic
andrija.radicevic@zg.t-com.hr
Mon May 1 15:34:00 GMT 2006
>
>>
>> Since the error message that you get from configure.tgt show that it does
>> not recognise "e1-coff" it follows that this translation from "e1-coff"
>> into "e1-unknown-coff" is not being performed. You need to check what is
>> happening in the ld/configure script around these lines:
>>
>> # Canonicalize the secondary target names.
>> result=`$ac_config_sub $targ_alias 2>/dev/null`
>> if test -n "$result"; then
>> targ=$result
>> else
>> targ=$targ_alias
>> fi
>>
>> . ${srcdir}/configure.tgt
>>
>
> I have found the part in my configure file, dough it looks a little bit
> different
>
> # Canonicalize the secondary target names.
> result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ_alias 2>/dev/null`
> if test -n "$result"; then
> targ=$result
> else
> targ=$targ_alias
> fi
>
> . ${srcdir}/configure.tgt
>
> obviously it must end up in the else branch (targ=$targ_alias) as you
> already said. Now I have to figure out why this happens.
> Thanks for your help.
>
Hi,
It turnd out that
${CONFIG_SHELL-/bin/sh} evaluates to /bin/sh
and
$ac_config_sub to /bin/sh ../../binutils-2.16/ld/../config.sub
which together obiously results with an awkward construct
After I have removed ${CONFIG_SHELL-/bin/sh} from that particular line in
the ld/configure script, ld was built. Now, I wonder what went wrong? I
suspect that the autoconf (2.59) and automake (1.9.2) versions I was using
messed the thing up. I haven't built those myself, they came with the Fedora
Core 3 distribution I have installed on my machine.
regards
Andrija
More information about the Binutils
mailing list