Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 455210 - dev-lang/python-3.2.3 fails to build native Parser/pgen while crosscompiling
Summary: dev-lang/python-3.2.3 fails to build native Parser/pgen while crosscompiling
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-02-02 23:51 UTC by Andrei Slavoiu
Modified: 2016-10-10 20:08 UTC (History)
0 users

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


Attachments
Patch for the ebuild (python-3.2.3.ebuild.patch,504 bytes, patch)
2013-02-02 23:59 UTC, Andrei Slavoiu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Slavoiu 2013-02-02 23:51:50 UTC
Crosscompile fails with:

make -j5 --load-average=8 python Parser/pgen 
x86_64-pc-linux-gnu-gcc -pthread -c  -DNDEBUG -O1  -march=armv4t -mtune=arm920t -Os -pipe -fwrapv  -I. -IInclude -I./Include    -DPy_BUILD_CORE -o Modules/python.o ./Modules/python.c
x86_64-pc-linux-gnu-gcc -pthread -c  -DNDEBUG -O1  -march=armv4t -mtune=arm920t -Os -pipe -fwrapv  -I. -IInclude -I./Include    -DPy_BUILD_CORE -o Parser/acceler.o Parser/acceler.c
x86_64-pc-linux-gnu-gcc -pthread -c  -DNDEBUG -O1  -march=armv4t -mtune=arm920t -Os -pipe -fwrapv  -I. -IInclude -I./Include    -DPy_BUILD_CORE -o Parser/grammar1.o Parser/grammar1.c
x86_64-pc-linux-gnu-gcc -pthread -c  -DNDEBUG -O1  -march=armv4t -mtune=arm920t -Os -pipe -fwrapv  -I. -IInclude -I./Include    -DPy_BUILD_CORE -o Parser/listnode.o Parser/listnode.c
./Modules/python.c:1:0: error: bad value (armv4t) for -march= switchx86_64-pc-linux-gnu-gcc -pthread -c  -DNDEBUG -O1  -march=armv4t -mtune=arm920t -Os -pipe -fwrapv  -I. -IInclude -I./Include    -DPy_BUILD_CORE -o Parser/node.o Parser/node.c

./Modules/python.c:1:0: error: bad value (arm920t) for -mtune= switch
Parser/grammar1.c:1:0: error: bad value (armv4t) for -march= switchParser/acceler.c:1:0: error: bad value (armv4t) for -march= switch
Parser/acceler.c:1:0: error: bad value (arm920t) for -mtune= switch

Parser/grammar1.c:1:0: error: bad value (arm920t) for -mtune= switch
make: *** [Modules/python.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Parser/acceler.o] Error 1
Parser/listnode.c:1:0: error: bad value (armv4t) for -march= switch
Parser/listnode.c:1:0: error: bad value (arm920t) for -mtune= switch
Parser/node.c:1:0: error: bad value (armv4t) for -march= switch
Parser/node.c:1:0: error: bad value (arm920t) for -mtune= switch
make: *** [Parser/grammar1.o] Error 1
make: *** [Parser/node.o] Error 1
make: *** [Parser/listnode.o] Error 1
emake failed
 * ERROR: dev-lang/python-3.2.3 failed (configure phase):
 *   cross-make failed
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_configure
 *   environment, line 5950:  Called die
 * The specific snippet of code:
 *           emake python Parser/pgen || die "cross-make failed";
 * 
 * If you need support, post the output of `emerge --info '=dev-lang/python-3.2.3'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/python-3.2.3'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/python-3.2.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/python-3.2.3/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/python-3.2.3/work/Python-3.2.3'
 * S: '/var/tmp/portage/dev-lang/python-3.2.3/work/Python-3.2.3'

>>> Failed to emerge dev-lang/python-3.2.3 for /usr/armv4tl-softfloat-linux-gnueabi/, Log file:


Reproducible: Always
Comment 1 Andrei Slavoiu 2013-02-02 23:59:09 UTC
Created attachment 337722 [details, diff]
Patch for the ebuild

Disable the use of target CFLAGS for make as well, not just configure.
Comment 2 eroen 2013-02-04 15:30:59 UTC
I suspect your patch is backwards. :-)
Comment 3 Andrei Slavoiu 2013-02-04 16:43:19 UTC
Indeed, I got the arguments to diff reversed. Use patch -R to apply it.
Comment 4 SpanKY gentoo-dev 2013-03-20 06:09:10 UTC
(In reply to comment #1)

why is this necessary ?  does the Makefile pull $(CFLAGS) from the env in addition to the value it was configured with ?  this is not typically how makefiles produced by autoconf should operate.
Comment 5 Mike Gilbert gentoo-dev 2016-10-10 20:08:46 UTC
This has likely been resolved by not building/running pgen when cross-compiling in newer python versions.