forum.gl-inet.cn

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
    查看: 3392|回复: 4

    [编译问题] [已解决]编译官方开源库的编译报错,各位大佬来看看,怎...

    [复制链接]

    8

    主题

    48

    帖子

    502

    积分

    高级会员

    Rank: 4

    积分
    502
    发表于 2022-8-9 20:35:29 | 显示全部楼层 |阅读模式
    本帖最后由 shejiewu 于 2022-8-26 19:53 编辑

    make[4]: Leaving directory '/workdir/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/Python-3.9.12'

    touch /workdir/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/Python-3.9.12/.builtr

    mkdir -p /workdir/gl-infra-builder/wlan-ap/openwrt/tmp/stage-python3/host /workdir/gl-infra-builder/wlan-ap/openwrt/staging_dir/target-arm_cortex-a7_musl_eabi/packages

    install -d -m0755 /workdir/gl-infra-builder/wlan-ap/openwrt/tmp/stage-python3/usr/include /workdir/gl-infra-builder/wlan-ap/openwrt/tmp/stage-python3/usr/lib /workdir/gl-infra-builder/wlan-ap/openwrt/tmp/stage-python3/usr/lib/pkgconfig

    install -d -m0755 /workdir/gl-infra-builder/wlan-ap/openwrt/tmp/stage-python3/host/bin

    cp -fpR /workdir/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/Python-3.9.12/ipkg-install/usr/include/python3.9 /workdir/gl-infra-builder/wlan-ap/openwrt/tmp/stage-python3/usr/include/

    cp -fpR /workdir/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/Python-3.9.12/ipkg-install/usr/lib/python3.9 /workdir/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/Python-3.9.12/ipkg-install/usr/lib/libpython3.9.so* /workdir/gl-infra-builder/wlan-ap/openwrt/tmp/stage-python3/usr/lib/

    grep '^_PYTHON_HOST_PLATFORM=' /workdir/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/Python-3.9.12/ipkg-install/usr/lib/python3.9/config-3.9/Makefile > /workdir/gl-infra-builder/wlan-ap/openwrt/tmp/stage-python3/usr/lib/python3.9/config-3.9/Makefile-vars

    cp -fpR /workdir/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/Python-3.9.12/ipkg-install/usr/lib/pkgconfig/python*.pc /workdir/gl-infra-builder/wlan-ap/openwrt/tmp/stage-python3/usr/lib/pkgconfig
    install -m0755 /workdir/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/Python-3.9.12/ipkg-install/usr/bin/python3.9-config /workdir/gl-infra-builder/wlan-ap/openwrt/tmp/stage-python3/host/bin/
    /workdir/gl-infra-builder/wlan-ap/openwrt/staging_dir/host/bin/sed -i -e 's|^prefix_real=.*$|prefix_real="/workdir/gl-infra-builder/wlan-ap/openwrt/staging_dir/target-arm_cortex-a7_musl_eabi/usr"|' /workdir/gl-infra-builder/wlan-ap/openwrt/tmp/stage-python3/host/bin/python3.9-config

    find /workdir/gl-infra-builder/wlan-ap/openwrt/tmp/stage-python3 -name '*.la' | xargs -r rm -f;           find /workdir/gl-infra-builder/wlan-ap/openwrt/tmp/stage-python3 -name '*.la' | xargs -r rm -f;
    if [ -f /workdir/gl-infra-builder/wlan-ap/openwrt/staging_dir/target-arm_cortex-a7_musl_eabi/packages/python3.list ]; then /workdir/gl-infra-builder/wlan-ap/openwrt/scripts/clean-package.sh "/workdir/gl-infra-builder/wlan-ap/openwrt/staging_dir/target-arm_cortex-a7_musl_eabi/packages/python3.list" "/workdir/gl-infra-builder/wlan-ap/openwrt/staging_dir/target-arm_cortex-a7_musl_eabi"; fi

    if [ -d /workdir/gl-infra-builder/wlan-ap/openwrt/tmp/stage-python3 ]; then (cd /workdir/gl-infra-builder/wlan-ap/openwrt/tmp/stage-python3; find ./ > /workdir/gl-infra-builder/wlan-ap/openwrt/tmp/stage-python3.files);         SHELL= flock /workdir/gl-infra-builder/wlan-ap/openwrt/tmp/.staging-dir.flock -c ' mv /workdir/gl-infra-builder/wlan-ap/openwrt/tmp/stage-python3.files /workdir/gl-infra-builder/wlan-ap/openwrt/staging_dir/target-arm_cortex-a7_musl_eabi/packages/python3.list && cp -fpR /workdir/gl-infra-builder/wlan-ap/openwrt/tmp/stage-python3/* /workdir/gl-infra-builder/wlan-ap/openwrt/staging_dir/target-arm_cortex-a7_musl_eabi/; '; fi

    rm -rf /workdir/gl-infra-builder/wlan-ap/openwrt/tmp/stage-python3

    touch /workdir/gl-infra-builder/wlan-ap/openwrt/staging_dir/target-arm_cortex-a7_musl_eabi/stamp/.python3_installed

    make[3]: Leaving directory '/workdir/gl-infra-builder/wlan-ap/openwrt/feeds/packages/lang/python/python3'

    time: package/feeds/packages/python3/compile#563.73#29.57#494.02

    make[2]: Leaving directory '/workdir/gl-infra-builder/wlan-ap/openwrt'

    make[1]: *** [package/Makefile:112: /workdir/gl-infra-builder/wlan-ap/openwrt/staging_dir/target-arm_cortex-a7_musl_eabi/stamp/.package_compile] Error 2

    make[1]: Leaving directory '/workdir/gl-infra-builder/wlan-ap/openwrt'

    make: *** [/workdir/gl-infra-builder/wlan-ap/openwrt/include/toplevel.mk:230: world] Error 2

    ##[error]Process completed with exit code 2.


    不知道什么原因导致错误,看到最多是“python3”在里面....





    回复

    使用道具 举报

    76

    主题

    2144

    帖子

    9848

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    9848

    官方人员

    发表于 2022-8-10 11:50:25 | 显示全部楼层
    你这是多线程编译的吧,没看到具体错误,换成单线程编译再看下日志

    点评

    是的,不过问题已经找到解决方案了,谢谢萝卜大佬,是个Makefile导致的。  发表于 2022-8-10 11:57
    回复

    使用道具 举报

    8

    主题

    48

    帖子

    502

    积分

    高级会员

    Rank: 4

    积分
    502
     楼主| 发表于 2022-8-11 00:19:05 | 显示全部楼层
    本帖最后由 shejiewu 于 2022-8-11 00:23 编辑
    萝卜大侠 发表于 2022-8-10 11:50
    你这是多线程编译的吧,没看到具体错误,换成单线程编译再看下日志

    感谢,非常感谢
    回复

    使用道具 举报

    0

    主题

    834

    帖子

    1684

    积分

    禁止发言

    积分
    1684
    发表于 2023-1-14 04:30:49 | 显示全部楼层
    提示: 作者被禁止或删除 内容自动屏蔽
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|gl-inet.cn ( 粤ICP备18130956号 )

    GMT+8, 2024-11-24 13:34 , Processed in 0.018963 second(s), 27 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2021, Tencent Cloud.

    快速回复 返回顶部 返回列表