This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/13828] Incorrect instructions in gdbserver README


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.


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