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
Created attachment 337722 [details, diff] Patch for the ebuild Disable the use of target CFLAGS for make as well, not just configure.
I suspect your patch is backwards. :-)
Indeed, I got the arguments to diff reversed. Use patch -R to apply it.
(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.
This has likely been resolved by not building/running pgen when cross-compiling in newer python versions.