public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "richaw at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/13828] Incorrect instructions in gdbserver README
Date: Mon, 12 Mar 2012 18:18:00 -0000	[thread overview]
Message-ID: <bug-13828-4717-ED1pLydwqh@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-13828-4717@http.sourceware.org/bugzilla/>

http://sourceware.org/bugzilla/show_bug.cgi?id=13828

--- Comment #2 from Rich Wilson <richaw at gmail dot com> 2012-03-12 18:18:21 UTC ---
On Mon, Mar 12, 2012 at 9:56 AM, palves at redhat dot com <
sourceware-bugzilla@sourceware.org> wrote:

> http://sourceware.org/bugzilla/show_bug.cgi?id=13828
>
> Pedro Alves <palves at redhat dot com> changed:
>
>           What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                 CC|                            |palves at redhat dot com
>
> --- Comment #1 from Pedro Alves <palves at redhat dot com> 2012-03-12
> 16:56:22 UTC ---
> That actually seems to still work.
>
> $ ../src/gdb/gdbserver/configure foo-foo-foo
> configure: WARNING: you should use --build, --host, --target
> checking for foo-foo-foo-gcc... no
>
> configure expands to:
>
>  *)
>    # FIXME: should be removed in autoconf 3.0.
>    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
>    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
>      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
>    : ${build_alias=$ac_option} ${host_alias=$ac_option}
> ${target_alias=$ac_option}
>    ;;
>
> --
> Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
>

 Leaving out --host does not work for cross-compiling:

rw@seven /cygdrive/c/Downloads/gnu/gdb_git/gdb/gdb/gdbserver
$ ./configure arm-unknown-linux
configure: WARNING: you should use --build, --host, --target
checking for arm-unknown-linux-gcc...
/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: in
`/cygdrive/c/Downloads/gnu/gdb_git/gdb/gdb/gdbserver':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

rw@seven /cygdrive/c/Downloads/gnu/gdb_git/gdb/gdb/gdbserver
$

Rich

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


  parent reply	other threads:[~2012-03-12 18:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-11  1:01 [Bug gdb/13828] New: " richaw at gmail dot com
2012-03-12 16:57 ` [Bug gdb/13828] " palves at redhat dot com
2012-03-12 18:18 ` richaw at gmail dot com [this message]
2012-03-12 18:31 ` palves at redhat dot com

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=bug-13828-4717-ED1pLydwqh@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /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).