aojie654 发表于 2022-5-21 22:27:41

萝卜大侠 发表于 2022-5-21 20:59
第4个问题应该是我们的同事给opkg打补丁导致的,我让他修正一下

请教一下大萝,问题3感觉是不是内核版本太老了所以没有?我看有些package 在 openwrt 新版的 kernel /linux 下面是有的。这方面刚入门不久瞎猜一拨哈哈哈哈

hyec 发表于 2022-5-22 01:27:41

python3.10 版本太新,识别不了会报错:
Build dependency: Please install Python >= 3.5

照着官方把include/prereq-build.mk改成这样就可以了;
$(eval $(call SetupHostCommand,python,Please install Python >= 3.5, \
      python3.10 -V 2>&1 | grep 'Python 3', \
      python3.9 -V 2>&1 | grep 'Python 3', \
      python3.8 -V 2>&1 | grep 'Python 3', \
      python3.7 -V 2>&1 | grep 'Python 3', \
      python3.6 -V 2>&1 | grep 'Python 3', \
      python3.5 -V 2>&1 | grep 'Python 3', \
      python3 -V 2>&1 | grep -E 'Python 3\.(|10)\.?'))

$(eval $(call SetupHostCommand,python3,Please install Python >= 3.5, \
      python3.10 -V 2>&1 | grep 'Python 3', \
      python3.9 -V 2>&1 | grep 'Python 3', \
      python3.8 -V 2>&1 | grep 'Python 3', \
      python3.7 -V 2>&1 | grep 'Python 3', \
      python3.6 -V 2>&1 | grep 'Python 3', \
      python3.5 -V 2>&1 | grep 'Python 3', \
      python3 -V 2>&1 | grep -E 'Python 3\.(|10)\.?'))

hyec 发表于 2022-5-22 14:00:07

除了上面提到的Python版本的问题,Ubuntu 22.04 LTS编译toolchains/gcc也会报错,大家还是在上一个LTS版本下编译吧

萝卜大侠 发表于 2022-5-23 09:24:31

hyec 发表于 2022-5-22 14:00
除了上面提到的Python版本的问题,Ubuntu 22.04 LTS编译toolchains/gcc也会报错,大家还是在上一个LTS版本 ...

我平常都是在20.4 LTS的版本上开发, 22.04还没用上呢

hyec 发表于 2022-5-24 10:15:58

大侠帮忙看下这个编译的错误呗,自己解决不了了,
make -C feeds/luci/collections/luci compile
    ERROR: package/feeds/wifi_ax/hostapd failed to build (build variant: wpad-full-internal).
详细日志是:
make: Entering directory '/home/hyec/gl-infra-builder/wlan-ap/feeds/wifi-ax/hostapd'
## ........
export MAKEFLAGS=""; arm-openwrt-linux-muslgnueabi-gcc -o /home/hyec/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/hostapd-wpad-full-internal/hostapd-2021-02-20-59e9794c/wpad -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -Wformat -Werror=format-security -DPIC -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections -flto ./files/multicall.c /home/hyec/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/hostapd-wpad-full-internal/hostapd-2021-02-20-59e9794c/hostapd/hostapd_multi.a /home/hyec/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/hostapd-wpad-full-internal/hostapd-2021-02-20-59e9794c/wpa_supplicant/wpa_supplicant_multi.a -L/home/hyec/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/usr/lib -L/home/hyec/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib -DPIC -fpic -specs=/home/hyec/gl-infra-builder/wlan-ap/openwrt/include/hardened-ld-pie.specs -znow -zrelro -Wl,--gc-sections -flto=jobserver -fuse-linker-plugin -lubox -lubus -lm -lnl-tiny
/home/hyec/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: /home/hyec/gl-infra-builder/wlan-ap/openwrt/tmp/cchdpHqK.ltrans1.ltrans.o: in function `eap_pwd_element_coord_ok':
<artificial>:(.text.eap_pwd_element_coord_ok+0x10): undefined reference to `crypto_bignum_init_set'
/home/hyec/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: <artificial>:(.text.eap_pwd_element_coord_ok+0x24): undefined reference to `crypto_bignum_is_zero'
/home/hyec/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: <artificial>:(.text.eap_pwd_element_coord_ok+0x38): undefined reference to `crypto_bignum_cmp'
/home/hyec/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: <artificial>:(.text.eap_pwd_element_coord_ok+0x48): undefined reference to `crypto_bignum_deinit'
/home/hyec/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: /home/hyec/gl-infra-builder/wlan-ap/openwrt/tmp/cchdpHqK.ltrans1.ltrans.o: in function `eap_pwd_reset':
<artificial>:(.text.eap_pwd_reset+0xa4): undefined reference to `crypto_ec_deinit'
/home/hyec/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: <artificial>:(.text.eap_pwd_reset+0xe4): undefined reference to `crypto_bignum_deinit'
/home/hyec/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: <artificial>:(.text.eap_pwd_reset+0xe8): undefined reference to `crypto_ec_point_deinit'
/home/hyec/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: /home/hyec/gl-infra-builder/wlan-ap/openwrt/tmp/cchdpHqK.ltrans1.ltrans.o: in function `eap_pwd_get_rand_mask':
<artificial>:(.text.eap_pwd_get_rand_mask+0x14): undefined reference to `crypto_ec_get_order'
## 中间都是 undefined reference to `crypto_xxxxx'
collect2: error: ld returned 1 exit status
make: *** Error 1
make: Leaving directory '/home/hyec/gl-infra-builder/wlan-ap/feeds/wifi-ax/hostapd'
time: package/feeds/wifi_ax/hostapd/wpad-full-internal/compile#14.88#0.42#15.50
    ERROR: package/feeds/wifi_ax/hostapd failed to build (build variant: wpad-full-internal).
make: *** Error 1
make: Leaving directory '/home/hyec/gl-infra-builder/wlan-ap/openwrt'
make: *** Error 2
make: Leaving directory '/home/hyec/gl-infra-builder/wlan-ap/openwrt'
make: *** Error 2

不望月的狼人 发表于 2022-5-24 10:25:49

hyec 发表于 2022-5-24 10:15
大侠帮忙看下这个编译的错误呗,自己解决不了了,

详细日志是:

增加一下这个依赖 wpad-openssl 试试

jxph1123 发表于 2022-5-24 10:56:05

不望月的狼人 发表于 2022-5-24 10:25
增加一下这个依赖 wpad-openssl 试试

问下 wpad-wolfssl 和 wpad-openssl 哪个好点,有啥区别
@萝卜大侠

aojie654 发表于 2022-5-24 17:40:35

今天看到有代码更新,在另一台电脑上拉下来,发现wlan-ap 下面 没有 openwrt 了,这咋整。。。

shengjyerao@sja-r9000p-ubuntu ~/git/gl-infra-builder$ tree -N wlan-ap -L 1                                                            main
wlan-ap
├── backports
├── build.sh
├── config.yml
├── docker
├── dock-run.sh
├── feeds
├── Makefile
├── patches
├── profiles
├── README.md
└── setup.py

5 directories, 6 files

萝卜大侠 发表于 2022-5-26 14:16:56

aojie654 发表于 2022-5-24 17:40
今天看到有代码更新,在另一台电脑上拉下来,发现wlan-ap 下面 没有 openwrt 了,这咋整。。。

...

有执行setup的步骤吗?

aojie654 发表于 2022-5-27 01:33:39

萝卜大侠 发表于 2022-5-26 14:16
有执行setup的步骤吗?

现在正常了,可能是代码合并还没完全做完推上去导致的,后来重新拉了一遍就没就有 openwrt 文件夹了,不过后来出现了一个新问题,中途会停掉,中间看起来都正常,最后几行是这样,实在看不懂:

rm -rf /home/shengjyerao/git/gl-infra-builder/wlan-ap/openwrt/tmp/stage-qca-ssdk
touch /home/shengjyerao/git/gl-infra-builder/wlan-ap/openwrt/staging_dir/target-arm_cortex-a7_musl_eabi/stamp/.qca-ssdk.nohnat_installed
make: Leaving directory '/home/shengjyerao/git/gl-infra-builder/wlan-ap/feeds/ipq807x/qca-ssdk'
time: package/feeds/ipq807x/qca-ssdk/nohnat/compile#110.32#20.03#143.75
make: Leaving directory '/home/shengjyerao/git/gl-infra-builder/wlan-ap/openwrt'
make: *** Error 2
make: Leaving directory '/home/shengjyerao/git/gl-infra-builder/wlan-ap/openwrt'
make: *** Error 2

感觉我是得先去看看openwrt 的文档了……

Shuwa 发表于 2022-5-31 03:12:35

aojie654 发表于 2022-5-27 01:33
现在正常了,可能是代码合并还没完全做完推上去导致的,后来重新拉了一遍就没就有 openwrt 文件夹了,不 ...

遭遇了相同问题

萝卜大侠 发表于 2022-5-31 15:31:55

Shuwa 发表于 2022-5-31 03:12
遭遇了相同问题

清掉当前项目,重新拉取试一下

aojie654 发表于 2022-5-31 16:09:51

萝卜大侠 发表于 2022-5-31 15:31
清掉当前项目,重新拉取试一下

重新拉了一下,这次是连 wlan-ap 目录都没了:'(

aojie654 发表于 2022-5-31 18:47:06

再重新拉了一遍,有 wlan-ap/openwrt 了,但是跑编译的时候还是有这个报错:
make: Leaving directory '/home/shengjyerao/git/gl-infra-builder/wlan-ap/feeds/ipq807x/qca-ssdk'
time: package/feeds/ipq807x/qca-ssdk/nohnat/compile#104.23#18.87#134.00
make: Leaving directory '/home/shengjyerao/git/gl-infra-builder/wlan-ap/openwrt'
make: *** Error 2
make: Leaving directory '/home/shengjyerao/git/gl-infra-builder/wlan-ap/openwrt'
make: *** Error 2

阿里速卖通 发表于 2022-6-1 13:57:13

aojie654 发表于 2022-5-31 18:47
再重新拉了一遍,有 wlan-ap/openwrt 了,但是跑编译的时候还是有这个报错:

不会是root用户编译的吧

萝卜大侠 发表于 2022-6-1 14:16:46

catndog 发表于 2022-6-1 12:42
luci.yml配置如下:



就这个帖子,137楼有这个错误的解决方案 https://forum.gl-inet.cn/forum.p ... &pid=1956&fromuid=1

catndog 发表于 2022-6-1 15:13:06

萝卜大侠 发表于 2022-6-1 14:16
就这个帖子,137楼有这个错误的解决方案 https://forum.gl-inet.cn/forum.p ... &pid=1956&fromuid=1
...

问题解决了。
出现了另外的错误:
make -C feeds/packages/net/haproxy compile
make -C feeds/packages/utils/bash compile
make -C feeds/packages/net/wget compile
make -C package/network/services/dnsmasq compile
make -C package/network/services/dnsmasq compile
make -C package/network/config/firewall compile
make -C package/libs/uclient compile
make -C package/network/services/uhttpd compile
make -C /home/zzz/router/gl-infra-builder/wlan-ap/feeds/wifi-ax/hostapd compile
make -C package/network/config/swconfig compile
make -C package/network/services/odhcpd compile
make -C package/utils/busybox compile
make -C package/network/config/netifd compile
make -C package/system/ubox compile
make -C package/utils/mtd-utils compile
make -C /home/zzz/router/gl-infra-builder/feeds/glinet/chinadns-ng compile
    ERROR: package/feeds/wifi_ax/hostapd failed to build (build variant: wpad-full-internal).

Shuwa 发表于 2022-6-1 20:54:21

本帖最后由 Shuwa 于 2022-6-1 20:57 编辑

最新源码编译仍然报错。编译环境是重装过的WSL2(path处理过了),未添加任何软件包或修改任何配置,完全按照该贴给出的命令执行。每次编译分别会出现诸如这些报错内容之一:
-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: <artificial>:(.text.dragonfly_get_rand_2_to_r_1.lto_priv.1559+0x20): undefined reference to `crypto_bignum_is_zero'
/home/shuwa/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: <artificial>:(.text.dragonfly_get_rand_2_to_r_1.lto_priv.1559+0x30): undefined reference to `crypto_bignum_is_one'
collect2: error: ld returned 1 exit status
make: *** Error 1
make: Leaving directory '/home/shuwa/gl-infra-builder/wlan-ap/feeds/wifi-ax/hostapd'
time: package/feeds/wifi_ax/hostapd/wpad-full-internal/compile#13.57#0.41#13.72
    ERROR: package/feeds/wifi_ax/hostapd failed to build (build variant: wpad-full-internal).
make: *** Error 1
make: Leaving directory '/home/shuwa/gl-infra-builder/wlan-ap/openwrt'
make: *** Error 2
make: Leaving directory '/home/shuwa/gl-infra-builder/wlan-ap/openwrt'
make: *** Error 2touch /home/shuwa/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/luci-base/.pkgdir/luci-i18n-base-zh-cn.installed
mkdir -p /home/shuwa/gl-infra-builder/wlan-ap/openwrt/staging_dir/target-arm_cortex-a7_musl_eabi/root-ipq807x/stamp
SHELL= flock /home/shuwa/gl-infra-builder/wlan-ap/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/shuwa/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/luci-base/.pkgdir/luci-i18n-base-zh-cn/. /home/shuwa/gl-infra-builder/wlan-ap/openwrt/staging_dir/target-arm_cortex-a7_musl_eabi/root-ipq807x/'
touch /home/shuwa/gl-infra-builder/wlan-ap/openwrt/staging_dir/target-arm_cortex-a7_musl_eabi/root-ipq807x/stamp/.luci-i18n-base-zh-cn_installed
echo "luci-i18n-base-zh-cn" >> /home/shuwa/gl-infra-builder/wlan-ap/openwrt/staging_dir/target-arm_cortex-a7_musl_eabi/pkginfo/luci-base.default.install
make: Leaving directory '/home/shuwa/gl-infra-builder/wlan-ap/openwrt/feeds/luci/modules/luci-base'
time: package/feeds/luci/luci-base/compile#1.43#0.13#1.49
make: Leaving directory '/home/shuwa/gl-infra-builder/wlan-ap/openwrt'
make: *** Error 2
make: Leaving directory '/home/shuwa/gl-infra-builder/wlan-ap/openwrt'
make: *** Error 2
touch /home/shuwa/gl-infra-builder/wlan-ap/openwrt/staging_dir/target-arm_cortex-a7_musl_eabi/stamp/.libpcap_installed
make: Leaving directory '/home/shuwa/gl-infra-builder/wlan-ap/openwrt/package/libs/libpcap'
time: package/libs/libpcap/compile#6.68#0.60#39.33
make: Leaving directory '/home/shuwa/gl-infra-builder/wlan-ap/openwrt'
make: *** Error 2
make: Leaving directory '/home/shuwa/gl-infra-builder/wlan-ap/openwrt'
make: *** Error 2
make: Leaving directory '/home/shuwa/gl-infra-builder/wlan-ap/openwrt/package/libs/libselinux'
time: package/libs/libselinux/compile#4.97#0.70#8.20
make: Leaving directory '/home/shuwa/gl-infra-builder/wlan-ap/openwrt'
make: *** Error 2
make: Leaving directory '/home/shuwa/gl-infra-builder/wlan-ap/openwrt'
make: *** Error 2

萝卜大侠 发表于 2022-6-1 22:28:48

Shuwa 发表于 2022-6-1 20:54
最新源码编译仍然报错。编译环境是重装过的WSL2(path处理过了),未添加任何软件包或修改任何配置,完全按 ...

我这加上luci中文语言包也遇到了,明天解决

aojie654 发表于 2022-6-2 08:00:44

阿里速卖通 发表于 2022-6-1 13:57
不会是root用户编译的吧

不是,自建的普通用户
页: 1 2 3 4 5 6 7 [8] 9 10 11 12
查看完整版本: AX1800开源固件