lede icon indicating copy to clipboard operation
lede copied to clipboard

hostpkg/expat-2.4.1编译失败,求大神指点

Open softtip opened this issue 5 years ago • 1 comments

反馈bug/问题模板,提建议请删除

1.关于你要提交的问题

Q:是否搜索了issue (使用 "x" 选择)

  • [ ] 没有类似的issue

2. 详细叙述

(1) 具体问题

环境ubuntu14.04 编译X86固件 /feeds/package/lib/expat/makefile修改为2.2.9可以编译通过,默认的2.4.1就不行

同样环境下编译WRT1900ACV2固件,/feeds/package/lib/expat/makefile 默认的2.4.1可以编译通过

完全没搞懂是什么情况,求大神解答

(2) 路由器型号和固件版本

A:

(3) 详细日志

SHELL= flock /mnt/x86/lede0616/tmp/.ninja-1.10.2.tar.gz.flock -c ' /mnt/x86/lede0616/scripts/download.pl "/mnt/x86/lede0616/dl" "ninja-1.10.2.tar.gz" "ce35865411f0490368a8fc383f29071de6690cbadc27704734978221f25e2bed" "" "https://codeload.github.com/ninja-build/ninja/tar.gz/v1.10.2?" ' make[3]: Leaving directory '/mnt/x86/lede0616/feeds/packages/devel/ninja' time: package/feeds/packages/ninja/host-compile#0.12#0.03#0.34 make[3]: Entering directory '/mnt/x86/lede0616/feeds/packages/libs/expat' mkdir -p /mnt/x86/lede0616/dl SHELL= flock /mnt/x86/lede0616/tmp/.expat-2.4.1.tar.xz.flock -c ' /mnt/x86/lede0616/scripts/download.pl "/mnt/x86/lede0616/dl" "expat-2.4.1.tar.xz" "cf032d0dba9b928636548e32b327a2d66b1aab63c4f4a13dd132c2d1d2f2fb6a" "" "@SF/expat" ' MAKEFLAGS="" /mnt/x86/lede0616/staging_dir/host/bin/ninja -j1 -C /mnt/x86/lede0616/build_dir/hostpkg/expat-2.4.1 ninja: Entering directory `/mnt/x86/lede0616/build_dir/hostpkg/expat-2.4.1' [1/5] Building C object CMakeFiles/expat.dir/lib/xmlparse.c.o FAILED: CMakeFiles/expat.dir/lib/xmlparse.c.o /mnt/x86/lede0616/staging_dir/host/bin/gcc -DXML_ENABLE_VISIBILITY=1 -Dexpat_EXPORTS -I. -Ilib -O2 -I/mnt/x86/lede0616/staging_dir/host/include -I/mnt/x86/lede0616/staging_dir/hostpkg/include -I/mnt/x86/lede0616/staging_dir/target-x86_64_musl/host/include -fno-strict-aliasing -fvisibility=hidden -DNDEBUG -fPIC -MD -MT CMakeFiles/expat.dir/lib/xmlparse.c.o -MF CMakeFiles/expat.dir/lib/xmlparse.c.o.d -o CMakeFiles/expat.dir/lib/xmlparse.c.o -c lib/xmlparse.c lib/xmlparse.c:124:4: error: #error You do not have support for any sources of high quality entropy enabled. For end user security, that is probably not what you want. Your options include: * Linux >=3.17 + glibc >=2.25 (getrandom): HAVE_GETRANDOM, * Linux >=3.17 + glibc (including <2.25) (syscall SYS_getrandom): HAVE_SYSCALL_GETRANDOM, * BSD / macOS >=10.7 (arc4random_buf): HAVE_ARC4RANDOM_BUF, * BSD / macOS (including <10.7) (arc4random): HAVE_ARC4RANDOM, * libbsd (arc4random_buf): HAVE_ARC4RANDOM_BUF + HAVE_LIBBSD, * libbsd (arc4random): HAVE_ARC4RANDOM + HAVE_LIBBSD, * Linux (including <3.17) / BSD / macOS (including <10.7) (/dev/urandom): XML_DEV_URANDOM, * Windows >=Vista (rand_s): _WIN32. If insist on not using any of these, bypass this error by defining XML_POOR_ENTROPY; you have been warned. If you have reasons to patch this detection code away or need changes to the build system, please open a bug. Thank you!

error You do not have support for any sources of high quality entropy \

^~~~~

ninja: build stopped: subcommand failed. make[3]: *** [Makefile:59: /mnt/x86/lede0616/build_dir/hostpkg/expat-2.4.1/.built] Error 1 make[3]: Leaving directory '/mnt/x86/lede0616/feeds/packages/libs/expat' time: package/feeds/packages/expat/host-compile#0.21#0.06#0.45 ERROR: package/feeds/packages/expat [host] failed to build. make[2]: *** [package/Makefile:114: package/feeds/packages/expat/host/compile] Error 1 make[2]: Leaving directory '/mnt/x86/lede0616' make[1]: *** [package/Makefile:110: /mnt/x86/lede0616/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/mnt/x86/lede0616' make: *** [/mnt/x86/lede0616/include/toplevel.mk:230: world] Error 2

环境ubuntu14.04 编译X86固件 /feeds/package/lib/expat/makefile修改为2.2.9可以编译通过,默认的2.4.1就不行

同样环境下编译WRT1900ACV2固件,/feeds/package/lib/expat/makefile 默认的2.4.1可以编译通过

完全没搞懂是什么情况,求大神指点解答

softtip avatar Jun 17 '21 10:06 softtip

测试没问题, x86

coolsnowwolf avatar Jun 17 '21 12:06 coolsnowwolf