openwrt-packages
openwrt-packages copied to clipboard
lua-maxminddb云编译报错
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 93da9f4 Fixed implicit declaration of gai_strerror() compiler warning, that lead to occational segfualts, i.e. if the address we attempt to look up is invalid Packing checkout... touch /workdir/openwrt/build_dir/target-x86_64_musl/lua-maxminddb-0.2/.prepared_ce0c972e45f42506dd9eb8cf9cab3f68_6664517399ebbbc92a37c5bb081b5c53_check . /workdir/openwrt/include/shell.sh; gzip -dc /workdir/openwrt/dl/lua-maxminddb-0.2.tar.gz | tar -C /workdir/openwrt/build_dir/target-x86_64_musl/lua-maxminddb-0.2/.. -xf - [ ! -d ./src/ ] || cp -fpR ./src/. /workdir/openwrt/build_dir/target-x86_64_musl/lua-maxminddb-0.2 touch /workdir/openwrt/build_dir/target-x86_64_musl/lua-maxminddb-0.2/.prepared_ce0c972e45f42506dd9eb8cf9cab3f68_6664517399ebbbc92a37c5bb081b5c53 rm -f /workdir/openwrt/build_dir/target-x86_64_musl/lua-maxminddb-0.2/.configured_* rm -f /workdir/openwrt/staging_dir/target-x86_64_musl/stamp/.lua-maxminddb_installed touch /workdir/openwrt/build_dir/target-x86_64_musl/lua-maxminddb-0.2/.configured_68b329da9893e34099c7d8ad5cb9c940 rm -f /workdir/openwrt/build_dir/target-x86_64_musl/lua-maxminddb-0.2/.built touch /workdir/openwrt/build_dir/target-x86_64_musl/lua-maxminddb-0.2/.built_check MAKEFLAGS="" /workdir/openwrt/staging_dir/host/bin/ninja -j1 -C /workdir/openwrt/build_dir/target-x86_64_musl/lua-maxminddb-0.2 ninja: Entering directory `/workdir/openwrt/build_dir/target-x86_64_musl/lua-maxminddb-0.2' ninja: error: loading 'build.ninja': No such file or directory make[3]: *** [/workdir/openwrt/build_dir/target-x86_64_musl/lua-maxminddb-0.2/.built] Error 1 Makefile:54: recipe for target '/workdir/openwrt/build_dir/target-x86_64_musl/lua-maxminddb-0.2/.built' failed make[3]: Leaving directory '/workdir/openwrt/feeds/kenzok8/lua-maxminddb' time: package/feeds/kenzok8/lua-maxminddb/compile#0.30#0.08#1.68 ERROR: package/feeds/kenzok8/lua-maxminddb failed to build. make[2]: *** [package/feeds/kenzok8/lua-maxminddb/compile] Error 1 package/Makefile:114: recipe for target 'package/feeds/kenzok8/lua-maxminddb/compile' failed make[2]: Leaving directory '/workdir/openwrt' make[1]: *** [/workdir/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 package/Makefile:110: recipe for target '/workdir/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile' failed make: *** [world] Error 2 make[1]: Leaving directory '/workdir/openwrt' /workdir/openwrt/include/toplevel.mk:228: recipe for target 'world' failed Error: Process completed with exit code 2.
同样的问题
make[3]: Entering directory '/home/lixiang/lede/feeds/kenzo/lua-maxminddb'
mkdir -p /home/lixiang/lede/dl
SHELL= flock /home/lixiang/lede/tmp/.lua-maxminddb-0.2.tar.gz.flock -c ' /home/lixiang/lede/scripts/download.pl "/home/lixiang/lede/dl" "lua-maxminddb-0.2.tar.gz" "f9b870968f75c8020a311cca2482139ac8b2b55d4f1b5b0ce00f7844b083c866" "" || ( /home/lixiang/lede/scripts/dl_github_archive.py --dl-dir="/home/lixiang/lede/dl" --url="https://github.com/fabled/lua-maxminddb.git" --version="93da9f4e6c814c3a23044dd2cdd22d4a6b4f665b" --subdir="lua-maxminddb-0.2" --source="lua-maxminddb-0.2.tar.gz" --hash="f9b870968f75c8020a311cca2482139ac8b2b55d4f1b5b0ce00f7844b083c866" || ( echo "Checking out files from the git repository..."; mkdir -p /home/lixiang/lede/tmp/dl && cd /home/lixiang/lede/tmp/dl && rm -rf lua-maxminddb-0.2 && [ \! -d lua-maxminddb-0.2 ] && git clone https://github.com/fabled/lua-maxminddb.git lua-maxminddb-0.2 && (cd lua-maxminddb-0.2 && git checkout 93da9f4e6c814c3a23044dd2cdd22d4a6b4f665b && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=`cd lua-maxminddb-0.2 && git log -1 --format='\''@%ct'\''` && rm -rf lua-maxminddb-0.2/.git && tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c lua-maxminddb-0.2 | gzip -nc > /home/lixiang/lede/tmp/dl/lua-maxminddb-0.2.tar.gz && mv /home/lixiang/lede/tmp/dl/lua-maxminddb-0.2.tar.gz /home/lixiang/lede/dl/ && rm -rf lua-maxminddb-0.2; ); ) '
Hash of the local file lua-maxminddb-0.2.tar.gz does not match (file: 8aff0958546e4082d48854fdeb32f4fd1ef6a9f78ef066a1886f4d9569898d0e, requested: f9b870968f75c8020a311cca2482139ac8b2b55d4f1b5b0ce00f7844b083c866) - deleting download.
lua-maxminddb-0.2.tar.gz: Download from https://github.com/fabled/lua-maxminddb.git failed
lua-maxminddb-0.2.tar.gz: Wrong hash (probably caused by .gitattributes), expecting f9b870968f75c8020a311cca2482139ac8b2b55d4f1b5b0ce00f7844b083c866, got 8aff0958546e4082d48854fdeb32f4fd1ef6a9f78ef066a1886f4d9569898d0e
Checking out files from the git repository...
Cloning into 'lua-maxminddb-0.2'...
Note: checking out '93da9f4e6c814c3a23044dd2cdd22d4a6b4f665b'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 93da9f4 Fixed implicit declaration of gai_strerror() compiler warning, that lead to occational segfualts, i.e. if the address we attempt to look up is invalid
Packing checkout...
touch /home/lixiang/lede/build_dir/target-x86_64_musl/lua-maxminddb-0.2/.prepared_3cc5aba5fa3b98332b3e46d83ec64cd1_6664517399ebbbc92a37c5bb081b5c53_check
. /home/lixiang/lede/include/shell.sh; gzip -dc /home/lixiang/lede/dl/lua-maxminddb-0.2.tar.gz | tar -C /home/lixiang/lede/build_dir/target-x86_64_musl/lua-maxminddb-0.2/.. -xf -
[ ! -d ./src/ ] || cp -fpR ./src/. /home/lixiang/lede/build_dir/target-x86_64_musl/lua-maxminddb-0.2
touch /home/lixiang/lede/build_dir/target-x86_64_musl/lua-maxminddb-0.2/.prepared_3cc5aba5fa3b98332b3e46d83ec64cd1_6664517399ebbbc92a37c5bb081b5c53
rm -f /home/lixiang/lede/build_dir/target-x86_64_musl/lua-maxminddb-0.2/.configured_*
rm -f /home/lixiang/lede/staging_dir/target-x86_64_musl/stamp/.lua-maxminddb_installed
touch /home/lixiang/lede/build_dir/target-x86_64_musl/lua-maxminddb-0.2/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /home/lixiang/lede/build_dir/target-x86_64_musl/lua-maxminddb-0.2/.built
touch /home/lixiang/lede/build_dir/target-x86_64_musl/lua-maxminddb-0.2/.built_check
MAKEFLAGS="" /home/lixiang/lede/staging_dir/host/bin/ninja -j1 -C /home/lixiang/lede/build_dir/target-x86_64_musl/lua-maxminddb-0.2
ninja: Entering directory `/home/lixiang/lede/build_dir/target-x86_64_musl/lua-maxminddb-0.2'
ninja: error: loading 'build.ninja': No such file or directory
Makefile:54: recipe for target '/home/lixiang/lede/build_dir/target-x86_64_musl/lua-maxminddb-0.2/.built' failed
make[3]: *** [/home/lixiang/lede/build_dir/target-x86_64_musl/lua-maxminddb-0.2/.built] Error 1
make[3]: Leaving directory '/home/lixiang/lede/feeds/kenzo/lua-maxminddb'
time: package/feeds/kenzo/lua-maxminddb/compile#0.31#0.13#7.94
ERROR: package/feeds/kenzo/lua-maxminddb failed to build.
package/Makefile:114: recipe for target 'package/feeds/kenzo/lua-maxminddb/compile' failed
make[2]: *** [package/feeds/kenzo/lua-maxminddb/compile] Error 1
make[2]: Leaving directory '/home/lixiang/lede'
package/Makefile:110: recipe for target '/home/lixiang/lede/staging_dir/target-x86_64_musl/stamp/.package_compile' failed
make[1]: *** [/home/lixiang/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/lixiang/lede'
/home/lixiang/lede/include/toplevel.mk:228: recipe for target 'world' failed
make: *** [world] Error 2
我的也是这样
替換lua-maxminddb便可 https://github.com/jerrykuku/lua-maxminddb
替換lua-maxminddb便可 https://github.com/jerrykuku/lua-maxminddb
正解! 我的自动编译现在就是用的这个 https://github.com/Lionzj/openwrt/blob/main/diy-part1.sh