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: *** Error 1
make: 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: *** Error 2
make: 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: *** Error 1
make: 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: *** Error 2
make: 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: *** Error 2
萝卜大侠 发表于 2022-3-4 19:03
正常情况你应该是从源文件的编译源码中移除下面报错的几个编译选项,不要去修改GCC版本
不知道你的配置 ...
移除之后还是报一样的错误
本帖最后由 moclaf 于 2022-7-2 01:18 编辑
在编译openappfilter时出错https://github.com/destan19/OpenAppFilter
make: 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'
CC /home/user/openwrt/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/oaf/app_filter.o
/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':
/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=]
}
^
cc1: all warnings being treated as errors
make: *** Error 1
make: *** Error 2
make: 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'
make: *** Error 2
make: Leaving directory '/home/user/openwrt/gl-infra-builder/feeds/custom/oaf'
time: package/feeds/custom/oaf/compile#1.45#0.36#2.13
ERROR: package/feeds/custom/oaf failed to build.
make: *** Error 1
make: Leaving directory '/home/user/openwrt/gl-infra-builder/wlan-ap/openwrt'
make: *** Error 2
make: Leaving directory '/home/user/openwrt/gl-infra-builder/wlan-ap/openwrt'
make: *** Error 2
我这用的是5.4的内核
moclaf 发表于 2022-7-2 01:09
在编译openappfilter时出错https://github.com/destan19/OpenAppFilter
看样子应该是警告,只不过在严格编译模式下报错了,错误提示你可能存在数组越界的风险,改下数组大小就可以
可以修改feeds.conf.default添加插件源进行编译码
本帖最后由 7918 于 2022-7-9 11:40 编辑
不望月的狼人 发表于 2022-6-14 15:04
你可以自己写一个profile,把自己需要的插件都加进来,这样编译的话就简单多了,页可以直接用git action编 ...
大佬,这步替换后,会和萝卜大侠写的官方私有插件冲突吗,,更换后,变成/.scrips/gen_config.pyglinet-axt1800,下一步编译make -j17 GL_PKGDIR=/home/glinet/work/glinet4.x/ipq60xx/会和这个私有软件冲突吗
本帖最后由 barhom 于 2022-8-11 08:46 编辑
问题解决了
感谢分享
感谢分享。
感谢楼主分享~
谢谢楼主~
不望月的狼人 发表于 2022-6-14 15:04
你可以自己写一个profile,把自己需要的插件都加进来,这样编译的话就简单多了,页可以直接用git action编 ...
学习一下,感谢大佬{:6_208:}
不望月的狼人 发表于 2022-6-14 15:04
你可以自己写一个profile,把自己需要的插件都加进来,这样编译的话就简单多了,页可以直接用git action编 ...
- name: luci
uri: https://github.com/openwrt/luci.git
revision: 7387ec8e18c95b8a250b22715a3b9909dd2646ad
请问revision后面的码是哪里查到的,不填revision对云编译有影响吗
ksd886 发表于 2022-11-18 17:33
- name: luci
uri: https://github.com/openwrt/luci.git
revision: 7387ec8e18c95b8a250b22715a ...
这个就是commitId呀,不填的话好像会报错{:6_184:}
不望月的狼人 发表于 2022-11-18 17:56
这个就是commitId呀,不填的话好像会报错
好的,请问这个分支要如何查呢?
不望月的狼人 发表于 2022-6-14 15:04
你可以自己写一个profile,把自己需要的插件都加进来,这样编译的话就简单多了,页可以直接用git action编 ...
大佬,这参数都是啥意思。
感谢分享。
好好好好好好好好好好好好好好好好好顶
萝卜大侠~
我往custom.yml 加- name: pushbot
uri: https://github.com/zzsj0928/luci-app-pushbot.git
branch: master和packages:
- luci-app-pushbot
diffconfig: |
CONFIG_PACKAGE_luci-app-pushbot=y然后,./scripts/gen_config.py target_mt7981_gl-mt2500 glinet_depends glinet_nas custom
编译出来,固件里没有luci-app-pushbot包
这个一般是啥原因哎