Open liangyongxiang opened 8 months ago
有点奇怪……,_ctypes应该是Python3提供的
在最新的修改上重新编译,依然是类似的问题。
diff --git a/loongarch64/scripts/step/cross-tools/Python3 b/loongarch64/scripts/step/cross-tools/Python3
index 5b38737..f3a123e 100644
--- a/loongarch64/scripts/step/cross-tools/Python3
+++ b/loongarch64/scripts/step/cross-tools/Python3
@@ -6,6 +6,8 @@ export STEP_BUILDNAME=cross-tools
export STEP_PACKAGENAME=Python3
export PACKAGE_VERSION=3.12.1
export RESOURCEDIR=${NEW_TARGET_SYSDIR}/files/cross-tools/Python3/3.12.1/
+export CFLAGS="-Wno-error=implicit-function-declaration"
+export CFLAGS_NODIST=${CFLAGS}
rm -rf ${BUILD_DIRECTORY}/Python-3.12.1
tar xvf ${DOWNLOADDIR}/Python-3.12.1.tar.xz -C ${BUILD_DIRECTORY}
pushd ${BUILD_DIRECTORY}/Python-3.12.1
我再看看啥原因。
https://gist.github.com/liangyongxiang/0faeca1182a898c8dcdce2b54890a4bc