Skip to content

community/py3-cx_freeze: fix build for ppc64le arch

Francesco Colista requested to merge fcolista/aports:py3-fix into master

This patch fixes the following error at build time:

gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -Os -fomit-frame-pointer -Os -fomit-frame-pointer -fPIC -I/usr/include/python3.9 -c source/bases/Console.c -o build/temp.linux-ppc64le-3.9/source/bases/Console.o creating build/lib.linux-ppc64le-3.9/cx_Freeze/bases gcc build/temp.linux-ppc64le-3.9/source/bases/Console.o -L/usr/lib/python3.9/config-3.9-powerpc64le-linux-musl -L/usr/lib -lpython3.9 -o build/lib.linux-ppc64le-3.9/cx_Freeze/bases/Console -Xlinker -export-dynamic -ldl -lm -lm -flto -Wl,-export_dynamic -Wl,-rpath,$ORIGIN/lib -Wl,-rpath,$ORIGIN/../lib lto1: fatal error: bytecode stream in file '/usr/lib/python3.9/config-3.9-powerpc64le-linux-musl/libpython3.9.a' generated with LTO version 9.3 instead of the expected 9.4 compilation terminated. lto-wrapper: fatal error: /usr/bin/gcc returned 1 exit status compilation terminated. /usr/lib/gcc/powerpc64le-alpine-linux-musl/10.3.1/../../../../powerpc64le-alpine-linux-musl/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status error: command '/usr/bin/gcc' failed with exit code 1

Merge request reports