public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "Andrija Radicevic" <andrija.radicevic@zg.t-com.hr>
To: <binutils@sources.redhat.com>
Subject: problems with ld/configure
Date: Sun, 14 May 2006 21:46:00 -0000	[thread overview]
Message-ID: <001301c6760a$9800fd30$0a01a8c0@harlequin> (raw)

Hi,

when building binutils-2.16  (for a new target) it fails on building ld, 
saying that the target is not listed in config.sub file. Which is not the 
case.
Examining the ld/configure script I have found that the section :

    # 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

fails to produce the correct target alias.

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

I have a duplicated /bin/sh part, so the produced commandline would be:

/bin/sh /bin/sh ../../binutils-2.16/ld/../config.sub

I have found that the configure.in file contains exactly the same part of 
the code, so I guess that the configure was generated correctly. So, either 
${CONFIG_SHELL-/bin/sh} should evaluate to empty string or $ac_config_sub 
should evaluate to ../../binutils-2.16/ld/../config.sub

What went wrong? Could someone help me please.

best regards


Andrija Radicevic 

             reply	other threads:[~2006-05-12 21:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-14 21:46 Andrija Radicevic [this message]
2006-05-15  0:45 ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='001301c6760a$9800fd30$0a01a8c0@harlequin' \
    --to=andrija.radicevic@zg.t-com.hr \
    --cc=binutils@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).