Bug 8858 - broken readline configure in gdb cross build
Summary: broken readline configure in gdb cross build
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: build (show other bugs)
Version: unknown
: P2 critical
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-20 09:08 UTC by ddaney
Modified: 2009-01-17 23:36 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ddaney 2004-08-20 09:08:00 UTC
[Converted from Gnats 1753]

http://sources.redhat.com/ml/gdb/2004-08/msg00238.html

I just did:

../gdbcvs/src/configure --build=i686-pc-linux --host=mipsel-linux
--target=mipsel-linux

from gdb_6_2-branch of today.

I get this when doing make :
.
.
.
checking for mbsrtowcs... yes
checking for wcwidth... yes
checking for mbstate_t... configure: error: cannot run test program
while cross compiling
See `config.log' for more details.
make: *** [configure-readline] Error 1

I know that placing this line:

bash_cv_have_mbstate_t=${bash_cv_have_mbstate_t=yes}

in readline's config.cache will work around, but isn't it about time
that someone fixed readline's configure?

David Daney

Release:
gdb gdb_6_2-branch 2004-08-19

Environment:
build=i686-pc-linux-gnu
host=mipsel-linux
target=mipsel-linux
Comment 1 ddaney 2004-08-20 09:08:00 UTC
Fix:
http://sources.redhat.com/ml/gdb/2004-08/msg00240.html

readline's configure no longer calls AC_TRY_RUN in readline 5.0.
So when gdb imports that, the problem should be fixed.

Michael Chastain
Comment 2 Pedro Alves 2009-01-17 23:36:16 UTC
We're on readline 5.1 for a couple of years now.