Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503312 - sys-libs/readline-6.3 - configure: error: cannot run test program while cross compiling
Summary: sys-libs/readline-6.3 - configure: error: cannot run test program while cross...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 503816 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-03-03 13:46 UTC by Hristo Venev
Modified: 2014-03-10 00:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hristo Venev 2014-03-03 13:46:41 UTC
configure: error: cannot run test program while cross compiling

--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1762,33 +1762,6 @@
         AC_DEFINE(HAVE_WINT_T, 1, [systems should define this type here])
 fi
 
-dnl check for broken wcwidth
-AC_CACHE_CHECK([for wcwidth broken with unicode combining characters],
-bash_cv_wcwidth_broken,
-[AC_TRY_RUN([
-#include <unistd.h>
-#include <stdlib.h>
-#include <stdio.h>
-
-#include <locale.h>
-#include <wchar.h>
-
-main(c, v)
-int     c;
-char    **v;
-{
-        int     w;
-
-        setlocale(LC_ALL, "en_US.UTF-8");
-        w = wcwidth (0x0301);
-        exit (w == 0);  /* exit 0 if wcwidth broken */
-}
-],
-bash_cv_wcwidth_broken=yes, bash_cv_wcwdith_broken=no, bash_cv_wcwidth_broken=no)])
-if test "$bash_cv_wcwidth_broken" = yes; then
-        AC_DEFINE(WCWIDTH_BROKEN, 1, [wcwidth is usually not broken])
-fi
-
 if test "$am_cv_func_iconv" = yes; then
 	OLDLIBS="$LIBS"
 	LIBS="$LIBS $LIBICONV"

Oh and...
######## ########     ###    ########  ######  ##     ##         
##       ##     ##   ## ##      ##    ##    ## ##     ##         
##       ##     ##  ##   ##     ##    ##       ##     ##         
######   ########  ##     ##    ##    ##       #########         
##       ##        #########    ##    ##       ##     ##         
##       ##        ##     ##    ##    ##    ## ##     ##         
######## ##        ##     ##    ##     ######  ##     ## ####### 
##     ##  ######  ######## ########  
##     ## ##    ## ##       ##     ## 
##     ## ##       ##       ##     ## 
##     ##  ######  ######   ########  
##     ##       ## ##       ##   ##   
##     ## ##    ## ##       ##    ##  
 #######   ######  ######## ##     ## 


Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-04 00:28:19 UTC
(In reply to Hristo Venev from comment #0)
> Oh and...
> ######## ########     ###    ########  ######  ##     ##         

Wow, that's annoying. Don't do that.
Comment 2 SpanKY gentoo-dev 2014-03-09 06:39:41 UTC
*** Bug 503816 has been marked as a duplicate of this bug. ***
Comment 3 Anthony Basile gentoo-dev 2014-03-09 16:01:06 UTC
I'm reproducing this and hitting it during a catalyst run for mipsel3-uclibc.
Comment 4 SpanKY gentoo-dev 2014-03-10 00:51:07 UTC
(In reply to Jeroen Roovers from comment #1)

agreed, the ascii art is obnoxious as f**k and has no place in bugzilla

the patch is also completely busted -- both because they must always be attached and not posted as comments, and because it breaks the actual test which is needed
Comment 5 SpanKY gentoo-dev 2014-03-10 00:53:27 UTC
should be all set now in the tree; thanks for the report!

Commit message: Force some cross-compile tests to the right answer
(see the section under "tc-is-cross-compiler")
http://sources.gentoo.org/sys-libs/readline/readline-6.3-r1.ebuild?rev=1.1