forum.gl-inet.cn

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
    楼主: 萝卜大侠

    [固件资源] AX1800开源固件

      [复制链接]

    21

    主题

    329

    帖子

    1734

    积分

    金牌会员

    Rank: 6Rank: 6

    积分
    1734
    发表于 2022-7-1 21:44:12 | 显示全部楼层
    axt1800 加了自己的软件包执行编译提示错误
      CC      src/ev_poll.o
    arm-openwrt-linux-muslgnueabi-gcc: error: unrecognized command line option '-Wshift-negative-value'
    arm-openwrt-linux-muslgnueabi-gcc: error: unrecognized command line option '-Wshift-overflow=2'
    arm-openwrt-linux-muslgnueabi-gcc: error: unrecognized command line option '-Wduplicated-cond'
    arm-openwrt-linux-muslgnueabi-gcc: error: unrecognized command line option '-Wnull-dereference'
    Makefile:872: recipe for target 'src/ev_poll.o' failed
    make[4]: *** [src/ev_poll.o] Error 1
    make[4]: Leaving directory '/home/m0eak/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/haproxy-ssl/haproxy-2.2.24'
    Makefile:152: recipe for target '/home/m0eak/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/haproxy-ssl/haproxy-2.2.24/.built' failed
    make[3]: *** [/home/m0eak/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/haproxy-ssl/haproxy-2.2.24/.built] Error 2
    make[3]: Leaving directory '/home/m0eak/gl-infra-builder/wlan-ap/openwrt/feeds/packages/net/haproxy'
    time: package/feeds/packages/haproxy/ssl/compile#0.13#0.06#0.18
        ERROR: package/feeds/packages/haproxy failed to build (build variant: ssl).
    package/Makefile:112: recipe for target 'package/feeds/packages/haproxy/compile' failed
    make[2]: *** [package/feeds/packages/haproxy/compile] Error 1
    make[2]: Leaving directory '/home/m0eak/gl-infra-builder/wlan-ap/openwrt'
    package/Makefile:108: recipe for target '/home/m0eak/gl-infra-builder/wlan-ap/openwrt/staging_dir/target-arm_cortex-a7_musl_eabi/stamp/.package_compile' failed
    make[1]: *** [/home/m0eak/gl-infra-builder/wlan-ap/openwrt/staging_dir/target-arm_cortex-a7_musl_eabi/stamp/.package_compile] Error 2
    make[1]: Leaving directory '/home/m0eak/gl-infra-builder/wlan-ap/openwrt'
    /home/m0eak/gl-infra-builder/wlan-ap/openwrt/include/toplevel.mk:228: recipe for target 'world' failed
    make: *** [world] Error 2
    回复

    使用道具 举报

    21

    主题

    329

    帖子

    1734

    积分

    金牌会员

    Rank: 6Rank: 6

    积分
    1734
    发表于 2022-7-1 22:05:33 | 显示全部楼层
    萝卜大侠 发表于 2022-3-4 19:03
    正常情况你应该是从源文件的编译源码中移除下面报错的几个编译选项,不要去修改GCC版本

    不知道你的配置 ...

    移除之后还是报一样的错误
    回复

    使用道具 举报

    0

    主题

    26

    帖子

    359

    积分

    中级会员

    Rank: 3Rank: 3

    积分
    359
    发表于 2022-7-2 01:09:05 | 显示全部楼层
    本帖最后由 moclaf 于 2022-7-2 01:18 编辑

    在编译openappfilter时出错https://github.com/destan19/OpenAppFilter
    1. make[4]: Entering directory '/home/user/openwrt/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/linux-5.4.164-qsdk-d5fcb18e5420670c8734c6a659873e73adab6dac'
    2.   CC [M]  /home/user/openwrt/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/oaf/app_filter.o
    3. /home/user/openwrt/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/oaf/app_filter.c: In function 'af_send_msg_to_user':
    4. /home/user/openwrt/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/oaf/app_filter.c:964:1: error: the frame size of 1032 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
    5. }
    6. ^
    7. cc1: all warnings being treated as errors
    8. make[5]: *** [scripts/Makefile.build:297: /home/user/openwrt/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/oaf/app_filter.o] Error 1
    9. make[4]: *** [Makefile:1734: /home/user/openwrt/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/oaf] Error 2
    10. make[4]: Leaving directory '/home/user/openwrt/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/linux-5.4.164-qsdk-d5fcb18e5420670c8734c6a659873e73adab6dac'
    11. make[3]: *** [Makefile:41: /home/user/openwrt/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/oaf/.built] Error 2
    12. make[3]: Leaving directory '/home/user/openwrt/gl-infra-builder/feeds/custom/oaf'
    13. time: package/feeds/custom/oaf/compile#1.45#0.36#2.13
    14.     ERROR: package/feeds/custom/oaf failed to build.
    15. make[2]: *** [package/Makefile:116: package/feeds/custom/oaf/compile] Error 1
    16. make[2]: Leaving directory '/home/user/openwrt/gl-infra-builder/wlan-ap/openwrt'
    17. make[1]: *** [package/Makefile:110: /home/user/openwrt/gl-infra-builder/wlan-ap/openwrt/staging_dir/target-arm_cortex-a7_musl_eabi/stamp/.package_compile] Error 2
    18. make[1]: Leaving directory '/home/user/openwrt/gl-infra-builder/wlan-ap/openwrt'
    19. make: *** [/home/user/openwrt/gl-infra-builder/wlan-ap/openwrt/include/toplevel.mk:230: world] Error 2
    复制代码


    回复

    使用道具 举报

    0

    主题

    26

    帖子

    359

    积分

    中级会员

    Rank: 3Rank: 3

    积分
    359
    发表于 2022-7-2 01:19:18 | 显示全部楼层
    我这用的是5.4的内核
    回复

    使用道具 举报

    76

    主题

    2144

    帖子

    1万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    10011

    官方人员

     楼主| 发表于 2022-7-2 21:01:38 | 显示全部楼层
    moclaf 发表于 2022-7-2 01:09
    在编译openappfilter时出错https://github.com/destan19/OpenAppFilter

    看样子应该是警告,只不过在严格编译模式下报错了,错误提示你可能存在数组越界的风险,改下数组大小就可以
    回复

    使用道具 举报

    5

    主题

    46

    帖子

    343

    积分

    中级会员

    Rank: 3Rank: 3

    积分
    343
    发表于 2022-7-3 14:41:31 | 显示全部楼层
    可以修改feeds.conf.default添加插件源进行编译码
    回复

    使用道具 举报

    11

    主题

    196

    帖子

    1567

    积分

    金牌会员

    Rank: 6Rank: 6

    积分
    1567
    发表于 2022-7-9 11:30:38 | 显示全部楼层
    本帖最后由 7918 于 2022-7-9 11:40 编辑
    不望月的狼人 发表于 2022-6-14 15:04
    你可以自己写一个profile,把自己需要的插件都加进来,这样编译的话就简单多了,页可以直接用git action编 ...

    大佬,这步替换后,会和萝卜大侠写的官方私有插件冲突吗,,更换后,变成/.scrips/gen_config.py  glinet-axt1800  ,下一步编译make -j17 GL_PKGDIR=/home/glinet/work/glinet4.x/ipq60xx/会和这个私有软件冲突吗
    回复

    使用道具 举报

    0

    主题

    2

    帖子

    22

    积分

    新手上路

    Rank: 1

    积分
    22
    发表于 2022-8-11 08:26:37 | 显示全部楼层
    本帖最后由 barhom 于 2022-8-11 08:46 编辑

    问题解决了
    回复

    使用道具 举报

    0

    主题

    18

    帖子

    58

    积分

    注册会员

    Rank: 2

    积分
    58
    发表于 2022-10-19 17:51:04 | 显示全部楼层
    感谢分享
    回复

    使用道具 举报

    0

    主题

    19

    帖子

    80

    积分

    注册会员

    Rank: 2

    积分
    80
    发表于 2022-10-20 18:10:01 | 显示全部楼层
    感谢分享。
    回复

    使用道具 举报

    0

    主题

    8

    帖子

    44

    积分

    新手上路

    Rank: 1

    积分
    44
    发表于 2022-10-24 09:11:26 | 显示全部楼层
    感谢楼主分享~
    回复

    使用道具 举报

    0

    主题

    8

    帖子

    44

    积分

    新手上路

    Rank: 1

    积分
    44
    发表于 2022-10-24 09:11:47 | 显示全部楼层
    谢谢楼主~
    回复

    使用道具 举报

    13

    主题

    122

    帖子

    1890

    积分

    金牌会员

    Rank: 6Rank: 6

    积分
    1890
    发表于 2022-11-13 20:11:16 | 显示全部楼层
    不望月的狼人 发表于 2022-6-14 15:04
    你可以自己写一个profile,把自己需要的插件都加进来,这样编译的话就简单多了,页可以直接用git action编 ...

    学习一下,感谢大佬
    zzz
    回复

    使用道具 举报

    13

    主题

    122

    帖子

    1890

    积分

    金牌会员

    Rank: 6Rank: 6

    积分
    1890
    发表于 2022-11-18 17:33:51 | 显示全部楼层
    不望月的狼人 发表于 2022-6-14 15:04
    你可以自己写一个profile,把自己需要的插件都加进来,这样编译的话就简单多了,页可以直接用git action编 ...

    - name: luci
        uri: https://github.com/openwrt/luci.git
        revision: 7387ec8e18c95b8a250b22715a3b9909dd2646ad

    请问revision后面的码是哪里查到的,不填revision对云编译有影响吗
    zzz
    回复

    使用道具 举报

    17

    主题

    374

    帖子

    2463

    积分

    金牌会员

    Rank: 6Rank: 6

    积分
    2463
    发表于 2022-11-18 17:56:02 | 显示全部楼层
    ksd886 发表于 2022-11-18 17:33
    - name: luci
        uri: https://github.com/openwrt/luci.git
        revision: 7387ec8e18c95b8a250b22715a ...

    这个就是commitId呀,不填的话好像会报错
    回复

    使用道具 举报

    13

    主题

    122

    帖子

    1890

    积分

    金牌会员

    Rank: 6Rank: 6

    积分
    1890
    发表于 2022-11-18 18:08:40 | 显示全部楼层
    不望月的狼人 发表于 2022-11-18 17:56
    这个就是commitId呀,不填的话好像会报错

    好的,请问这个分支要如何查呢?
    zzz
    回复

    使用道具 举报

    3

    主题

    19

    帖子

    135

    积分

    注册会员

    Rank: 2

    积分
    135
    发表于 2022-11-19 20:27:22 | 显示全部楼层
    不望月的狼人 发表于 2022-6-14 15:04
    你可以自己写一个profile,把自己需要的插件都加进来,这样编译的话就简单多了,页可以直接用git action编 ...

    大佬,这参数都是啥意思。
    回复

    使用道具 举报

    1

    主题

    6

    帖子

    61

    积分

    注册会员

    Rank: 2

    积分
    61
    发表于 2022-11-26 12:48:56 | 显示全部楼层
    感谢分享。
    回复

    使用道具 举报

    0

    主题

    834

    帖子

    1684

    积分

    禁止发言

    积分
    1684
    发表于 2023-1-14 02:36:58 | 显示全部楼层
    好好好好好好好好好好好好好好好好好顶
    回复

    使用道具 举报

    2

    主题

    41

    帖子

    507

    积分

    高级会员

    Rank: 4

    积分
    507
    发表于 2023-2-19 20:15:31 | 显示全部楼层
    萝卜大侠~
    我往custom.yml 加
    1.   - name: pushbot
    2.     uri: https://github.com/zzsj0928/luci-app-pushbot.git
    3.     branch: master
    复制代码
    1. packages:
    2.   - luci-app-pushbot
    3.   
    4. diffconfig: |
    5.   CONFIG_PACKAGE_luci-app-pushbot=y
    复制代码
    然后,
    1. ./scripts/gen_config.py target_mt7981_gl-mt2500 glinet_depends glinet_nas custom
    复制代码

    编译出来,固件里没有luci-app-pushbot包
    这个一般是啥原因哎
    回复

    使用道具 举报

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

    本版积分规则

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

    GMT+8, 2025-4-19 02:05 , Processed in 0.034245 second(s), 23 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2021, Tencent Cloud.

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