找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 5784|回复: 9

【小白求救】云编译一直失败,麻烦各位大神帮忙看看那里出错了,谢谢

[复制链接]
本帖最后由 chris330 于 2021-4-14 18:12 编辑

make[2] package/install
make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
/workdir/openwrt/include/toplevel.mk:222: recipe for target 'world' failed
make: *** [world] Error 1
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'xray-core', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'xray-geodata', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'trojan-plus', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'trojan-go', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'brook', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'china-dns-ng', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-违禁软件-plus/Makefile' has a dependency on '违禁软件-rust-sslocal', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-违禁软件-plus/Makefile' has a dependency on 'xray-core', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-v违禁软件/Makefile' has a dependency on 'xray-core', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-v违禁软件/Makefile' has a dependency on 'xray-plugin', which does not exist
make[1] world
make[2] target/compile
make[3] -C target/linux compile


========================================


make[3] -C package/utils/e2fsprogs compile
make[3] -C package/utils/f2fs-tools compile
make[2] package/install
make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
make: *** [world] Error 1
/workdir/openwrt/include/toplevel.mk:222: recipe for target 'world' failed
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'xray-core', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'xray-geodata', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'trojan-plus', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'trojan-go', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'brook', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'china-dns-ng', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-违禁软件-plus/Makefile' has a dependency on '违禁软件-rust-sslocal', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-违禁软件-plus/Makefile' has a dependency on 'xray-core', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-v违禁软件/Makefile' has a dependency on 'xray-core', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-v违禁软件/Makefile' has a dependency on 'xray-plugin', which does not exist
make[1]: Entering directory '/workdir/openwrt'
make[2]: Entering directory '/workdir/openwrt'
make[3]: Entering directory '/workdir/openwrt/target/linux'
make[4]: Entering directory '/workdir/openwrt/target/linux/x86'
rm -f /workdir/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-5.4.110/localversion


==========================================


Configuring strongswan-mod-gmp.
Configuring strongswan-mod-kernel-netlink.
Collected errors:
Configuring strongswan-mod-nonce.
* satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-app-违禁软件-plus:
*     xray-core
* opkg_install_cmd: Cannot install package luci-app-违禁软件-plus.
Configuring strongswan-mod-pubkey.
Configuring strongswan-mod-socket-default.


===========================================


Configuring ppp-mod-pppoe.
Configuring luci-i18n-nlbwmon-zh-cn.
make[2]: *** [package/install] Error 255
package/Makefile:65: recipe for target 'package/install' failed
make[2]: Leaving directory '/workdir/openwrt'
package/Makefile:108: recipe for target '/workdir/openwrt/staging_dir/target-x86_64_musl/stamp/.package_install' failed
make[1]: *** [/workdir/openwrt/staging_dir/target-x86_64_musl/stamp/.package_install] Error 2
make[1]: Leaving directory '/workdir/openwrt'
/workdir/openwrt/include/toplevel.mk:222: recipe for target 'world' failed
make: *** [world] Error 2
Error: Process completed with exit code 2.

============================================


尝试了9次都失败了日志里面总共这几处错误,用的是  kanshudeshanzhu    /      OpenWrt-ziyong


麻烦各位大神给诊断一下,谢谢啦!

我的恩山、我的无线 The best wifi forum is right here.
把你的配置贴出来
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
本帖最后由 chris330 于 2021-4-14 16:53 编辑

#
# Copyright (c) 2019-2020 P3TERX <https://p3terx.com>
#
# This is free software, licensed under the MIT License.
# See /LICENSE for more information.
#
# https://github.com/P3TERX/Actions-OpenWrt
# Description: Build OpenWrt using GitHub Actions
#

name: Build OpenWrt

on:
  repository_dispatch:
  workflow_dispatch:
    inputs:
      ssh:
        description: 'SSH connection to Actions'
        required: false
        default: 'false'
#  schedule:
#    - cron: 0 8 * * 5

env:
  REPO_URL: https://github.com/coolsnowwolf/lede.git
  REPO_BRANCH: master
  FEEDS_CONF: feeds.conf.default
  CONFIG_FILE: .config
  DIY_P1_SH: diy-part1.sh
  DIY_P2_SH: diy-part2.sh
  UPLOAD_BIN_DIR: false
  UPLOAD_FIRMWARE: true
  UPLOAD_COWTRANSFER: false
  UPLOAD_WETRANSFER: false
  UPLOAD_RELEASE: true
  TZ: Asia/Shanghai

jobs:
  build:
    runs-on: ubuntu-18.04

    steps:
    - name: 检验
      uses: actions/checkout@main

    - name: 初始化环境
      env:
        DEBIAN_FRONTEND: noninteractive
      run: |
        sudo rm -rf /etc/apt/sources.list.d/* /usr/share/dotnet /usr/local/lib/android /opt/ghc
        sudo -E apt-get -qq update
        sudo -E apt-get -qq install $(curl -fsSL git.io/depends-ubuntu-1804)
        sudo -E apt-get -qq autoremove --purge
        sudo -E apt-get -qq clean
        sudo timedatectl set-timezone "$TZ"
        sudo mkdir -p /workdir
        sudo chown $USERGROUPS /workdir
    - name: 克隆源代码
      working-directory: /workdir
      run: |
        df -hT $PWD
        git clone $REPO_URL -b $REPO_BRANCH openwrt
        ln -sf /workdir/openwrt $GITHUB_WORKSPACE/openwrt
    - name: 加载自定义源
      run: |
        [ -e $FEEDS_CONF ] && mv $FEEDS_CONF openwrt/feeds.conf.default
        chmod +x $DIY_P1_SH
        cd openwrt
        $GITHUB_WORKSPACE/$DIY_P1_SH
    - name: 更新源
      run: cd openwrt && ./scripts/feeds update -a

    - name: 安装源
      run: cd openwrt && ./scripts/feeds install -a

    - name: 加载自定义配置
      run: |
        [ -e files ] && mv files openwrt/files
        [ -e $CONFIG_FILE ] && mv $CONFIG_FILE openwrt/.config
        chmod +x $DIY_P2_SH
        cd openwrt
        $GITHUB_WORKSPACE/$DIY_P2_SH
    - name: SSH connection to Actions
      uses: P3TERX/ssh2actions@v1.0.0
      if: (github.event.inputs.ssh == 'true' && github.event.inputs.ssh  != 'false') || contains(github.event.action, 'ssh')
      env:
        TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
        TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}

    - name: 下载包
      id: package
      run: |
        cd openwrt
        make defconfig
        make download -j8
        find dl -size -1024c -exec ls -l {} \;
        find dl -size -1024c -exec rm -f {} \;
    - name: 编译固件
      id: compile
      run: |
        cd openwrt
        echo -e "$(nproc) thread compile"
        make -j$(nproc) || make -j1 || make -j1 V=s
        echo "::set-output name=status::success"
        grep '^CONFIG_TARGET.*DEVICE.*=y' .config | sed -r 's/.*DEVICE_(.*)=y/\1/' > DEVICE_NAME
        [ -s DEVICE_NAME ] && echo "DEVICE_NAME=_$(cat DEVICE_NAME)" >> $GITHUB_ENV
        echo "FILE_DATE=_$(date +"%Y%m%d%H%M")" >> $GITHUB_ENV
    - name: 检查空间使用情况
      if: (!cancelled())
      run: df -hT

    - name: 上传bin目录
      uses: actions/upload-artifact@main
      if: steps.compile.outputs.status == 'success' && env.UPLOAD_BIN_DIR == 'true'
      with:
        name: OpenWrt_bin${{ env.DEVICE_NAME }}${{ env.FILE_DATE }}
        path: openwrt/bin

    - name: 整理文件
      id: organize
      if: env.UPLOAD_FIRMWARE == 'true' && !cancelled()
      run: |
        cd openwrt/bin/targets/*/*
        rm -rf packages
        echo "FIRMWARE=$PWD" >> $GITHUB_ENV
        echo "::set-output name=status::success"
    - name: 上传固件目录
      uses: actions/upload-artifact@main
      if: steps.organize.outputs.status == 'success' && !cancelled()
      with:
        name: OpenWrt_firmware${{ env.DEVICE_NAME }}${{ env.FILE_DATE }}
        path: ${{ env.FIRMWARE }}

    - name: 上传固件到 cowtransfer
      id: cowtransfer
      if: steps.organize.outputs.status == 'success' && env.UPLOAD_COWTRANSFER == 'true' && !cancelled()
      run: |
        curl -fsSL git.io/file-transfer | sh
        ./transfer cow --block 2621440 -s -p 64 --no-progress ${FIRMWARE} 2>&1 | tee cowtransfer.log
        echo "::warning file=cowtransfer.com:(cat cowtransfer.log | grep https)"
        echo "::set-output name=url:(cat cowtransfer.log | grep https | cut -f3 -d" ")"
    - name: 上传固件到 WeTransfer
      id: wetransfer
      if: steps.organize.outputs.status == 'success' && env.UPLOAD_WETRANSFER == 'true' && !cancelled()
      run: |
        curl -fsSL git.io/file-transfer | sh
        ./transfer wet -s -p 16 --no-progress ${FIRMWARE} 2>&1 | tee wetransfer.log
        echo "::warning file=wetransfer.com:(cat wetransfer.log | grep https)"
        echo "::set-output name=url:(cat wetransfer.log | grep https | cut -f3 -d" ")"
    - name: 生成版本标签
      id: tag
      if: env.UPLOAD_RELEASE == 'true' && !cancelled()
      run: |
        echo "::set-output name=release_tag:(date +"%Y.%m.%d-%H%M")"
        touch release.txt
        [ $UPLOAD_COWTRANSFER = true ] && echo "&#128279; [Cowtransfer](${{ steps.cowtransfer.outputs.url }})" >> release.txt
        [ $UPLOAD_WETRANSFER = true ] && echo "&#128279; [WeTransfer](${{ steps.wetransfer.outputs.url }})" >> release.txt
        echo "::set-output name=status::success"
    - name: 上传固件到发布
      uses: softprops/action-gh-release@v1
      if: steps.tag.outputs.status == 'success' && !cancelled()
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        tag_name: ${{ steps.tag.outputs.release_tag }}
        body_path: release.txt
        files: ${{ env.FIRMWARE }}/*

    - name: 删除旧的工件
      uses: c-hive/gha-remove-artifacts@v1.2.0
      with:
        age: '1 day'
        skip-recent: 3

    - name: 删除旧的发布版本
      uses: dev-drprasad/delete-older-releases@v0.1.0
      if: env.UPLOAD_RELEASE == 'true' && !cancelled()
      with:
        keep_latest: 3
        delete_tags: true
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

===========================================

这是build-openwrt.yml的配置,然后等到SSH时,make menuconfig只添加了IPv6支持,其他没动

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
Run cd openwrt
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'xray-core', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'xray-geodata', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'trojan-plus', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'trojan-go', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'brook', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'china-dns-ng', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-违禁软件-plus/Makefile' has a dependency on '违禁软件-rust-sslocal', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-违禁软件-plus/Makefile' has a dependency on 'xray-core', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-v违禁软件/Makefile' has a dependency on 'xray-core', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-v违禁软件/Makefile' has a dependency on 'xray-plugin', which does not exist
#
# No change to .config
#
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'xray-core', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'xray-geodata', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'trojan-plus', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'trojan-go', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'brook', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'china-dns-ng', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-违禁软件-plus/Makefile' has a dependency on '违禁软件-rust-sslocal', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-违禁软件-plus/Makefile' has a dependency on 'xray-core', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-v违禁软件/Makefile' has a dependency on 'xray-core', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-v违禁软件/Makefile' has a dependency on 'xray-plugin', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'xray-core', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'xray-geodata', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'trojan-plus', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'trojan-go', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'brook', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-打倒美帝/Makefile' has a dependency on 'china-dns-ng', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-违禁软件-plus/Makefile' has a dependency on '违禁软件-rust-sslocal', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-违禁软件-plus/Makefile' has a dependency on 'xray-core', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-v违禁软件/Makefile' has a dependency on 'xray-core', which does not exist
WARNING: Makefile 'package/feeds/kenzo/luci-app-v违禁软件/Makefile' has a dependency on 'xray-plugin', which does not exist
time: target/linux/prereq#0.12#0.04#0.16
make[1] tools/flock/compile

=================================

另外下载包的日志里发现了这段警告
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
src-git packages https://github.com/coolsnowwolf/packages
src-git luci https://github.com/coolsnowwolf/luci
src-git routing https://git.openwrt.org/feed/routing.git
src-git telephony https://git.openwrt.org/feed/telephony.git
src-git freifunk https://github.com/freifunk/openwrt-packages.git
#src-git video https://github.com/openwrt/video.git
#src-git targets https://github.com/openwrt/targets.git
#src-git management https://github.com/openwrt-management/packages.git
#src-git oldpackages http://git.openwrt.org/packages.git
#src-link custom /usr/src/openwrt/custom-feed
src-git kenzo https://github.com/kenzok8/openwrt-packages

===================================

有自定义这些源
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

难道是没有下载完全》?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
https://github.com/kenzok8/openwrt-packages

可能是pass wall 依赖这个问题,我添加源后再编译一下试试看
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

没仔细看,但是扫了一下好多都显示依赖不存在
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

package/feeds/packages/违禁软件a/Makefile' 依赖于不存在的'xray-core'
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

一样的问题,如下。
time: package/feeds/“师夷长技以制夷”/xray-core/compile#42.73#25.79#11.40
    ERROR: package/feeds/“师夷长技以制夷”/xray-core failed to build.
排除网络环境问题,应该是这个模块编译不正确。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-27 00:46

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

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