Summary: | dev-lang/python cross-compiling - Include/pyport.h:243:13: error: #error "This platform's pyconfig.h needs to define PY_FORMAT_LONG_LONG" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Patrick <gentoo> |
Component: | [OLD] Development | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ansla80, arm, bertrand, eldad, ford_prefect, lovewilliam, Theunis.Potgieter |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
build.log |
Description
Patrick
2011-04-10 20:29:57 UTC
Created attachment 269383 [details]
build.log
Created attachment 269385 [details]
build.log
Previous attachment was wrong build log.
You need to override default autoconf assumption : # cat /usr/i586-alix-linux-gnu/etc/portage/env/dev-lang/python export ac_cv_have_long_long_format=yes (In reply to comment #3) > You need to override default autoconf assumption : > > # cat /usr/i586-alix-linux-gnu/etc/portage/env/dev-lang/python > export ac_cv_have_long_long_format=yes Thanks, this worked for armv6j-unknown-linux-gnueabi cross-compile from i686. Also, I think this bug is a duplicate of #371009. It hit me when cross-compiling for i586-nptl-linux-gnu. The proposed workaround works well, though. Not specific to ARM or 2.7.1. Happens with i686-pc-linux-gnu with 3.2.3-r2 as well. Triggered this while xcompiling to i686-linux-gnu. Used the fix suggested here in comment #3. I then get an additional error down the road: i686-linux-gnu-gcc -c -DNDEBUG -Os -pipe -fomit-frame-pointer -fwrapv -I. -IInclude -I./Include -fPIC -DPy_BUILD_CORE -o Python/ceval.o Python/ceval.c Python/ceval.c: In function ‘PyEval_EvalFrameEx’: Python/ceval.c:875:6: error: #error "Computed gotos are not supported on this compiler." *** Bug 371009 has been marked as a duplicate of this bug. *** should be all set now in the tree; thanks for the report! Commit message: Export ac_cv_have_long_long_format=yes when cross-compiling http://sources.gentoo.org/dev-lang/python/python-2.7.3-r2.ebuild?r1=1.14&r2=1.15 http://sources.gentoo.org/dev-lang/python/python-2.7.3-r3.ebuild?r1=1.11&r2=1.12 http://sources.gentoo.org/dev-lang/python/python-3.2.3-r1.ebuild?r1=1.11&r2=1.12 http://sources.gentoo.org/dev-lang/python/python-3.2.3-r2.ebuild?r1=1.11&r2=1.12 http://sources.gentoo.org/dev-lang/python/python-3.2.3.ebuild?r1=1.19&r2=1.20 http://sources.gentoo.org/dev-lang/python/python-3.3.0-r1.ebuild?r1=1.7&r2=1.8 http://sources.gentoo.org/dev-lang/python/python-3.3.0.ebuild?r1=1.5&r2=1.6 |