git clone aports to harddisk, modified i586-linux-musl triplet in function.sh to i486 and run ./bootstrap.sh x86, stopped at building apk-tools.
log as follows:
>>> bootstrap-x86: Building cross-compiler>>> binutils-x86: Package is up to date>>> libucontext: Package is up to date>>> gcc-x86: Package is up to date>>> build-base-x86: Package is up to date>>> bootstrap-x86: Cross building base system>>> fortify-headers: Package is up to date>>> linux-headers: Package is up to date>>> musl: Package is up to date>>> zlib: Package is up to date>>> pkgconf: Package is up to date>>> gmp: Package is up to date>>> mpfr4: Package is up to date>>> mpc1: Package is up to date>>> isl26: Package is up to date>>> libucontext: Package is up to date>>> zstd: Package is up to date>>> binutils: Package is up to date>>> gcc: Package is up to date>>> make: Package is up to date>>> file: Package is up to date>>> patch: Package is up to date>>> openssl: Package is up to date>>> busybox: Package is up to date>>> build-base: Package is up to date>>> ca-certificates: Package is up to date>>> libmd: Package is up to date>>> bsd-compat-headers: Package is up to date>>> libbsd: Package is up to date>>> apk-tools: Building main/apk-tools 3.0.3-r1 (using abuild 3.16.0-r0) started Fri, 26 Dec 2025 17:42:18 +0800>>> apk-tools: Validating /home/allan/aports/main/apk-tools/APKBUILD...>>> apk-tools: Analyzing dependencies...
ERROR: unable to select packages:
.makedepends-apk-tools-20251226.094219:
masked in: cache
satisfies: world[.makedepends-apk-tools=20251226.094219]
lua5.5 (no such package):
required by: .makedepends-apk-tools-20251226.094219[lua5.5]
lua5.5-lzlib (no such package):
required by: .makedepends-apk-tools-20251226.094219[lua5.5-lzlib]
>>> ERROR: apk-tools: builddeps failed>>> apk-tools: Uninstalling dependencies...
ERROR: No such package: .makedepends-apk-tools
ERROR: No such package: .hostdepends-apk-tools
On Fri Dec 26, 2025 at 11:37 AM CET, 尤晓杰 wrote:
> git clone aports to harddisk, modified i586-linux-musl triplet in function.sh to i486 and run ./bootstrap.sh x86, stopped at building apk-tools.> log as follows:>>>> bootstrap-x86: Building cross-compiler>>>> binutils-x86: Package is up to date>>>> libucontext: Package is up to date>>>> gcc-x86: Package is up to date>>>> build-base-x86: Package is up to date>>>> bootstrap-x86: Cross building base system>>>> fortify-headers: Package is up to date>>>> linux-headers: Package is up to date>>>> musl: Package is up to date>>>> zlib: Package is up to date>>>> pkgconf: Package is up to date>>>> gmp: Package is up to date>>>> mpfr4: Package is up to date>>>> mpc1: Package is up to date>>>> isl26: Package is up to date>>>> libucontext: Package is up to date>>>> zstd: Package is up to date>>>> binutils: Package is up to date>>>> gcc: Package is up to date>>>> make: Package is up to date>>>> file: Package is up to date>>>> patch: Package is up to date>>>> openssl: Package is up to date>>>> busybox: Package is up to date>>>> build-base: Package is up to date>>>> ca-certificates: Package is up to date>>>> libmd: Package is up to date>>>> bsd-compat-headers: Package is up to date>>>> libbsd: Package is up to date>>>> apk-tools: Building main/apk-tools 3.0.3-r1 (using abuild 3.16.0-r0) started Fri, 26 Dec 2025 17:42:18 +0800>>>> apk-tools: Validating /home/allan/aports/main/apk-tools/APKBUILD...>>>> apk-tools: Analyzing dependencies...> ERROR: unable to select packages:> .makedepends-apk-tools-20251226.094219:> masked in: cache> satisfies: world[.makedepends-apk-tools=20251226.094219]> lua5.5 (no such package):> required by: .makedepends-apk-tools-20251226.094219[lua5.5]> lua5.5-lzlib (no such package):> required by: .makedepends-apk-tools-20251226.094219[lua5.5-lzlib]>>>> ERROR: apk-tools: builddeps failed>>>> apk-tools: Uninstalling dependencies...> ERROR: No such package: .makedepends-apk-tools> ERROR: No such package: .hostdepends-apk-tools
Please make sure your index is up-to-date (apk update) and try again.
Re:Re: under x86_64, bootstrap i486 build. stopped at lua5.5 dependency
thanks.I did it, let me try again. btw, do you know how i can see the commit of kernel? the diff file seems no comments. if there is git, it is ok or patch management website.
在 2025-12-26 18:42:14,"Achill Gilgenast" <achill@achill.org> 写道:
On Fri Dec 26, 2025 at 11:37 AM CET, 尤晓杰 wrote:
> git clone aports to harddisk, modified i586-linux-musl triplet in function.sh to i486 and run ./bootstrap.sh x86, stopped at building apk-tools.> log as follows:>>>> bootstrap-x86: Building cross-compiler>>>> binutils-x86: Package is up to date>>>> libucontext: Package is up to date>>>> gcc-x86: Package is up to date>>>> build-base-x86: Package is up to date>>>> bootstrap-x86: Cross building base system>>>> fortify-headers: Package is up to date>>>> linux-headers: Package is up to date>>>> musl: Package is up to date>>>> zlib: Package is up to date>>>> pkgconf: Package is up to date>>>> gmp: Package is up to date>>>> mpfr4: Package is up to date>>>> mpc1: Package is up to date>>>> isl26: Package is up to date>>>> libucontext: Package is up to date>>>> zstd: Package is up to date>>>> binutils: Package is up to date>>>> gcc: Package is up to date>>>> make: Package is up to date>>>> file: Package is up to date>>>> patch: Package is up to date>>>> openssl: Package is up to date>>>> busybox: Package is up to date>>>> build-base: Package is up to date>>>> ca-certificates: Package is up to date>>>> libmd: Package is up to date>>>> bsd-compat-headers: Package is up to date>>>> libbsd: Package is up to date>>>> apk-tools: Building main/apk-tools 3.0.3-r1 (using abuild 3.16.0-r0) started Fri, 26 Dec 2025 17:42:18 +0800>>>> apk-tools: Validating /home/allan/aports/main/apk-tools/APKBUILD...>>>> apk-tools: Analyzing dependencies...> ERROR: unable to select packages:> .makedepends-apk-tools-20251226.094219:> masked in: cache> satisfies: world[.makedepends-apk-tools=20251226.094219]> lua5.5 (no such package):> required by: .makedepends-apk-tools-20251226.094219[lua5.5]> lua5.5-lzlib (no such package):> required by: .makedepends-apk-tools-20251226.094219[lua5.5-lzlib]>>>> ERROR: apk-tools: builddeps failed>>>> apk-tools: Uninstalling dependencies...> ERROR: No such package: .makedepends-apk-tools> ERROR: No such package: .hostdepends-apk-tools
Please make sure your index is up-to-date (apk update) and try again.
Re:Re: under x86_64, bootstrap i486 build. stopped at lua5.5 dependency
is it because I am using 3.23.2-stable? should I changed to edge branch? modify repository?
在 2025-12-26 18:42:14,"Achill Gilgenast" <achill@achill.org> 写道:
On Fri Dec 26, 2025 at 11:37 AM CET, 尤晓杰 wrote:
> git clone aports to harddisk, modified i586-linux-musl triplet in function.sh to i486 and run ./bootstrap.sh x86, stopped at building apk-tools.> log as follows:>>>> bootstrap-x86: Building cross-compiler>>>> binutils-x86: Package is up to date>>>> libucontext: Package is up to date>>>> gcc-x86: Package is up to date>>>> build-base-x86: Package is up to date>>>> bootstrap-x86: Cross building base system>>>> fortify-headers: Package is up to date>>>> linux-headers: Package is up to date>>>> musl: Package is up to date>>>> zlib: Package is up to date>>>> pkgconf: Package is up to date>>>> gmp: Package is up to date>>>> mpfr4: Package is up to date>>>> mpc1: Package is up to date>>>> isl26: Package is up to date>>>> libucontext: Package is up to date>>>> zstd: Package is up to date>>>> binutils: Package is up to date>>>> gcc: Package is up to date>>>> make: Package is up to date>>>> file: Package is up to date>>>> patch: Package is up to date>>>> openssl: Package is up to date>>>> busybox: Package is up to date>>>> build-base: Package is up to date>>>> ca-certificates: Package is up to date>>>> libmd: Package is up to date>>>> bsd-compat-headers: Package is up to date>>>> libbsd: Package is up to date>>>> apk-tools: Building main/apk-tools 3.0.3-r1 (using abuild 3.16.0-r0) started Fri, 26 Dec 2025 17:42:18 +0800>>>> apk-tools: Validating /home/allan/aports/main/apk-tools/APKBUILD...>>>> apk-tools: Analyzing dependencies...> ERROR: unable to select packages:> .makedepends-apk-tools-20251226.094219:> masked in: cache> satisfies: world[.makedepends-apk-tools=20251226.094219]> lua5.5 (no such package):> required by: .makedepends-apk-tools-20251226.094219[lua5.5]> lua5.5-lzlib (no such package):> required by: .makedepends-apk-tools-20251226.094219[lua5.5-lzlib]>>>> ERROR: apk-tools: builddeps failed>>>> apk-tools: Uninstalling dependencies...> ERROR: No such package: .makedepends-apk-tools> ERROR: No such package: .hostdepends-apk-tools
Please make sure your index is up-to-date (apk update) and try again.
>>>> apk-tools: Analyzing dependencies...
> ERROR: unable to select packages:
> .makedepends-apk-tools-20251226.094219:
> masked in: cache
> satisfies: world[.makedepends-apk-tools=20251226.094219]
> lua5.5 (no such package):
> required by: .makedepends-apk-tools-20251226.094219[lua5.5]
> lua5.5-lzlib (no such package):
> required by: .makedepends-apk-tools-20251226.094219[lua5.5-lzlib]
The apk-tools package has recently been switched to lua5.5. A very new
lua version which has only been available on alpine edge for a few days.
Since the lua version while bootstrapping is not important you can apply
a patch like this to fix compilation when lua5.5 is not available without
changing the resulting package.
diff --git a/main/apk-tools/APKBUILD b/main/apk-tools/APKBUILD
index b8b87a589a2..3e0373b04ee 100644
--- a/main/apk-tools/APKBUILD+++ b/main/apk-tools/APKBUILD
@@ -22,6 +22,7 @@ depends="
libapk=$pkgver-r$pkgrel
"
_lua="5.5"
+[ -n "$BOOTSTRAP" ] && _lua="5.3"makedepends_build="meson openssl-dev>=3.5 lua$_lua lua$_lua-lzlib scdoc"
makedepends_host="
linux-headers
Re:Re: under x86_64, bootstrap i486 build. stopped at lua5.5 dependency
1thanks for your patience. just switch debian to arch and alpine.After your explanation I see using 3.23.2 stable to build git master, this is the reason of this error. if I upgrade to edge, should it be ok? 2the unpatched authentic kernel could be compiled with musl lib successfully? the other expression is whether kernel and the lib we take has conecxion. we need modify kernel to adopt to musl? I suspect most of the patches of kernel is for such purpose.
在 2025-12-26 22:38:10,Sertonix <sertonix@posteo.net> 写道:
>>>> apk-tools: Analyzing dependencies...
> ERROR: unable to select packages:
> .makedepends-apk-tools-20251226.094219:
> masked in: cache
> satisfies: world[.makedepends-apk-tools=20251226.094219]
> lua5.5 (no such package):
> required by: .makedepends-apk-tools-20251226.094219[lua5.5]
> lua5.5-lzlib (no such package):
> required by: .makedepends-apk-tools-20251226.094219[lua5.5-lzlib]
The apk-tools package has recently been switched to lua5.5. A very new
lua version which has only been available on alpine edge for a few days.
Since the lua version while bootstrapping is not important you can apply
a patch like this to fix compilation when lua5.5 is not available without
changing the resulting package.
diff --git a/main/apk-tools/APKBUILD b/main/apk-tools/APKBUILD
index b8b87a589a2..3e0373b04ee 100644
--- a/main/apk-tools/APKBUILD+++ b/main/apk-tools/APKBUILD
@@ -22,6 +22,7 @@ depends="
libapk=$pkgver-r$pkgrel
"
_lua="5.5"
+[ -n "$BOOTSTRAP" ] && _lua="5.3"makedepends_build="meson openssl-dev>=3.5 lua$_lua lua$_lua-lzlib scdoc"
makedepends_host="
linux-headers
On Fri Dec 26, 2025 at 5:10 PM CET, 尤晓杰 wrote:
> thanks for your patience. just switch debian to arch and alpine. After> your explanation I see using 3.23.2 stable to build git master, this> is the reason of this error. if I upgrade to edge, should it be ok?
There could be some soname issues when upgrading CBUILD while bootstrapping
but otherwise it should be ok.
> the unpatched authentic kernel could be compiled with musl lib> successfully? the other expression is whether kernel and the lib we> take has conecxion. we need modify kernel to adopt to musl? I suspect> most of the patches of kernel is for such purpose.
The kernel does not need patches for musl libc. Both glibc and musl libc
use the same kernel interfaces without modifications.
Re:Re: under x86_64, bootstrap i486 build. stopped at lua5.5 dependency
dear friend,is there document for crossbuilding and making rootfs? or bootstrap.sh genapkovl-dhcp.sh genrootfs.sh and mkimage.sh?
I am ashamed to troubled you again and again. this time I uncomment all opticial software in bootstrap.sh. so I see kernel and other stuffs. and how to produce rootfs file?
在 2025-12-27 00:40:51,Sertonix <sertonix@posteo.net> 写道:
On Fri Dec 26, 2025 at 5:10 PM CET, 尤晓杰 wrote:
> thanks for your patience. just switch debian to arch and alpine. After> your explanation I see using 3.23.2 stable to build git master, this> is the reason of this error. if I upgrade to edge, should it be ok?
There could be some soname issues when upgrading CBUILD while bootstrapping
but otherwise it should be ok.
> the unpatched authentic kernel could be compiled with musl lib> successfully? the other expression is whether kernel and the lib we> take has conecxion. we need modify kernel to adopt to musl? I suspect> most of the patches of kernel is for such purpose.
The kernel does not need patches for musl libc. Both glibc and musl libc
use the same kernel interfaces without modifications.
Re:Re: under x86_64, bootstrap i486 build. stopped at lua5.5 dependency
when bootstrap,should curl need nghttp3-dev?
log:
libev: Package is up to date
>>>c-ares: Package is up to date>>>cunit: Package is up to date>>> nghttp2: Package is up to date>>> 1ibidnz: Package is up to date>>> libunistring: Package is up to date>>> libpsl: Package is up to date>>> curl: Building main/curl8.17.0-r1(using abuild3.16 .0-r0) started Sun,28
Dec 202502:29:27 +0800
>>> curl: Ualidating/home/allan/aports/main/cur /APKBUILD>>> curl: Analyzing dependencies
ERROR: umable to select packages:
hostdepends-curI-20251227.182928:
masked in: cache
satisfies: worldl hostdepends-curl=20251227.182928]
nghttp3-dev (no such package):
required by: .host depends-cur1-20251227.182928[nghttp3-dev]
>>> ERROR:curl: builddeps failed>>curl: Uninstalling dependenc ies.
ERROR: Mo such package:.makedepends-curl
ERROR: No such package:hostdepends-curl
I am in edge now.
在 2025-12-27 00:40:51,Sertonix <sertonix@posteo.net> 写道:
On Fri Dec 26, 2025 at 5:10 PM CET, 尤晓杰 wrote:
> thanks for your patience. just switch debian to arch and alpine. After> your explanation I see using 3.23.2 stable to build git master, this> is the reason of this error. if I upgrade to edge, should it be ok?
There could be some soname issues when upgrading CBUILD while bootstrapping
but otherwise it should be ok.
> the unpatched authentic kernel could be compiled with musl lib> successfully? the other expression is whether kernel and the lib we> take has conecxion. we need modify kernel to adopt to musl? I suspect> most of the patches of kernel is for such purpose.
The kernel does not need patches for musl libc. Both glibc and musl libc
use the same kernel interfaces without modifications.