Summary: | dev-lang/python-2.5.2 fails to crosscompile - checking for %zd printf() format support... configure: error: cannot run test program while cross compiling | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | xeb <xeb> |
Component: | [OLD] Development | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dang, john, ron, tibor.vago, web.alexander |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 184308 | ||
Bug Blocks: | |||
Attachments: |
build.log
Replace AC_TRY_RUN with AC_RUN_IFELSE with a crosscompile section |
Description
xeb
2008-09-30 05:20:43 UTC
Created attachment 166796 [details]
build.log
same with python-2.5.2-r8 same error here just thought I'd add a me too... I stucked too with this hmmm A workaround /usr/portage/dev-lang/python/files/cross252.patch: ------------------------------------------------------------------------------ --- Python-2.5.2/configure.orig 2008-12-28 23:54:01.000000000 +0100 +++ Python-2.5.2/configure 2008-12-28 23:50:11.000000000 +0100 @@ -22495,7 +22495,7 @@ { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; } -if test "$cross_compiling" = yes; then +if test "$cross_compiling" = no; then { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling See \`config.log' for more details." >&5 echo "$as_me: error: cannot run test program while cross compiling ------------------------------------------------------------------------------ /usr/portage/dev-lang/python/python-2.5.2-r8.ebuild: ------------------------------------------------------------------------------ . . . # set LDFLAGS so we link modules with -lpython2.5 correctly. # Needed on FreeBSD unless python2.5 is already installed. # Please query BSD team before removing this! append-ldflags "-L." + epatch "${FILESDIR}"/cross252.patch # add this line to the ebuild econf \ --with-fpectl \ --enable-shared \ `use_enable ipv6` \ . . . ------------------------------------------------------------------------------ Created attachment 180317 [details, diff]
Replace AC_TRY_RUN with AC_RUN_IFELSE with a crosscompile section
This patch replaces the (failing) AC_TRY_RUN with AC_RUN_IFELSE, with a crosscompile section defaulting to the (presuambly) safer "no" answer. This makes it compile for me.
It works for me too with version 2.5.2-r8 considering every platform we care about supports %zd, it'd be detrimental to assume no fixed in cvs with a different patch, thanks for the report http://sources.gentoo.org/dev-lang/python/files/python-2.5-cross-printf.patch?rev=1.1 http://sources.gentoo.org/dev-lang/python/python-2.5.2-r7.ebuild?r1=1.13&r2=1.14 http://sources.gentoo.org/dev-lang/python/python-2.5.2-r8.ebuild?r1=1.8&r2=1.9 http://sources.gentoo.org/dev-lang/python/python-2.5.4-r2.ebuild?r1=1.3&r2=1.4 |