V536H加入python3编译出错
-
系统TinaLinux4.9
CFLAGS="-Os -pipe -march=armv7-a -mtune=cortex-a7 -mfpu=neon -fno-caller-saves -Wno-unused-result -mfloat-abi=hard -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNDEBUG -fno-inline -I/home/jamo/workspace/lindenis-v536/out/v536-Inomec_SBC/staging_dir/target/usr/include -I/home/jamo/workspace/lindenis-v536/out/v536-Inomec_SBC/staging_dir/target/include -I/home/jamo/workspace/lindenis-v536/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/usr/include -I/home/jamo/workspace/lindenis-v536/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/include -I/home/jamo/workspace/lindenis-v536/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/include/fortify " CXXFLAGS="-Os -pipe -march=armv7-a -mtune=cortex-a7 -mfpu=neon -fno-caller-saves -Wno-unused-result -mfloat-abi=hard -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -Wno-virtual-dtor -DNDEBUG -fno-inline -I/home/jamo/workspace/lindenis-v536/out/v536-Inomec_SBC/staging_dir/target/usr/include -I/home/jamo/workspace/lindenis-v536/out/v536-Inomec_SBC/staging_dir/target/include -I/home/jamo/workspace/lindenis-v536/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/usr/include -I/home/jamo/workspace/lindenis-v536/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/include -I/home/jamo/workspace/lindenis-v536/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/include/fortify " LDFLAGS="-L/home/jamo/workspace/lindenis-v536/out/v536-Inomec_SBC/staging_dir/target/usr/lib -L/home/jamo/workspace/lindenis-v536/out/v536-Inomec_SBC/staging_dir/target/lib -L/home/jamo/workspace/lindenis-v536/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/usr/lib -L/home/jamo/workspace/lindenis-v536/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/lib -znow -zrelro -L/home/jamo/workspace/lindenis-v536/out/v536-Inomec_SBC/compile_dir/target/Python-3.5.6" LIBS="" make -C /home/jamo/workspace/lindenis-v536/out/v536-Inomec_SBC/compile_dir/target/Python-3.5.6/. AR="arm-openwrt-linux-muslgnueabi-ar" AS="arm-openwrt-linux-muslgnueabi-gcc -c -Os -pipe -march=armv7-a -mtune=cortex-a7 -mfpu=neon -fno-caller-saves -Wno-unused-result -mfloat-abi=hard -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=arm-openwrt-linux-muslgnueabi-ld NM="arm-openwrt-linux-muslgnueabi-nm" CC="arm-openwrt-linux-muslgnueabi-gcc" GCC="arm-openwrt-linux-muslgnueabi-gcc" CXX="arm-openwrt-linux-muslgnueabi-g++" RANLIB="arm-openwrt-linux-muslgnueabi-ranlib" STRIP=arm-openwrt-linux-muslgnueabi-strip OBJCOPY=arm-openwrt-linux-muslgnueabi-objcopy OBJDUMP=arm-openwrt-linux-muslgnueabi-objdump SIZE=arm-openwrt-linux-muslgnueabi-size CROSS="arm-openwrt-linux-muslgnueabi-" ARCH="arm" CROSS_COMPILE=yes LD="arm-openwrt-linux-muslgnueabi-gcc" FREEZE_IMPORTLIB=_freeze_importlib PGEN=pgen3 ; make[4]: Entering directory '/home/jamo/workspace/lindenis-v536/out/v536-Inomec_SBC/compile_dir/target/Python-3.5.6' _PYTHON_PROJECT_BASE=/home/jamo/workspace/lindenis-v536/out/v536-Inomec_SBC/compile_dir/target/Python-3.5.6 _PYTHON_HOST_PLATFORM=linux-arm PYTHONPATH=./Lib:./Lib/plat-linux python3 -S -m sysconfig --generate-posix-vars ;\ if test $? -ne 0 ; then \ echo "generate-posix-vars failed" ; \ rm -f ./pybuilddir.txt ; \ exit 1 ; \ fi Could not import runpy module Traceback (most recent call last): File "./Lib/runpy.py", line 14, in <module> import importlib.machinery # importlib first so we can test #15386 via -m File "./Lib/importlib/__init__.py", line 51, in <module> _w_long = _bootstrap_external._w_long AttributeError: module 'importlib._bootstrap_external' has no attribute '_w_long' generate-posix-vars failed Makefile:568: recipe for target 'pybuilddir.txt' failed make[4]: *** [pybuilddir.txt] Error 1 make[4]: Leaving directory '/home/jamo/workspace/lindenis-v536/out/v536-Inomec_SBC/compile_dir/target/Python-3.5.6' Makefile:242: recipe for target '/home/jamo/workspace/lindenis-v536/out/v536-Inomec_SBC/compile_dir/target/Python-3.5.6/.built' failed make[3]: *** [/home/jamo/workspace/lindenis-v536/out/v536-Inomec_SBC/compile_dir/target/Python-3.5.6/.built] Error 2 make[3]: Leaving directory '/home/jamo/workspace/lindenis-v536/package/lang/python3' package/Makefile:192: recipe for target 'package/lang/python3/compile' failed
-
一般用 buildroot 的飘过,从来没有这种烦恼
-
@yixiuge buildroot是个啥
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号