-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some packages cannot be built 2: Electric boogaloo #21130
Comments
Fixes the current rust 1.80 build failure (#21130).
Switch from freedesktop.org to www.freedesktop.org as the former has an invalid certificate, fixing the build error noted in #21130.
Fixes the build failure in (#21130) by backporting kakoune-lsp/kakoune-lsp@bb9734c As kak-lsp does seem to have rather regular releases, another alternative could be awaiting the next release which will include this.
Fixes the current rust 1.80 build failure (#21130).
Fixes the build failure in (#21130) by backporting kakoune-lsp/kakoune-lsp@bb9734c As kak-lsp does seem to have rather regular releases, another alternative could be awaiting the next release which will include this.
Switch from freedesktop.org to www.freedesktop.org as the former has an invalid certificate, fixing the build error noted in #21130.
Started the second batch, looks like mostly simple linker problems so far. |
I know the reason for this error |
Figured it'd be quicker to just leave that one for you to figure out. |
Just finished the second batch, that officially puts us at 51 problems. |
See https://github.com/s-yata/marisa-trie/blob/master/COPYING.md Fixes build failure noted in #21130
See https://github.com/s-yata/marisa-trie/blob/master/COPYING.md Fixes build failure noted in #21130
We're up to 80 now. |
148 now. I've decided to clean up my build container, I think we get that everything that depends on |
@Maxython I can't get |
Fix for `error: call to undeclared library function 'memmove/calloc/malloc/memcpy/free/sprintf/etc.'` during running `build-all.sh` Probably it would be easier to add `-Wimplicit-function-declaration` to `CFLAGS`, but this solution feels more correct. Related to #21130. I will merge this in 36 hours if nobody minds or after it gets 2+ approves.
Fixes error ``` checking C++ compiler aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include -fstack-protector-strong -Oz -L/data/data/com.termux/files/usr/lib... no, program does not run configure: error: C++ compiler not available, see config.log for details ... configure:10520: checking C++ compiler aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include -fstack-protector-strong -Oz -L/data/data/com.termux/files/usr/lib Test compile: configure:10534: aarch64-linux-android-clang++ -I/data/data/com.termux/files/usr/include -fstack-protector-strong -Oz -L/data/data/com.termux/files/usr/lib conftest.cc >&5 configure:10537: $? = 0 configure:10541: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest CANNOT LINK EXECUTABLE "./a.out": library "libc++_shared.so" not found libc: CANNOT LINK EXECUTABLE "./a.out": library "libc++_shared.so" not found libc: Fatal signal 6 (SIGABRT), code -6 in tid 952305 (a.out) libc: failed to spawn debuggerd dispatch thread: Invalid argument /home/builder/.termux-build/libgmp/src/configure: line 10542: ./b.out: No such file or directory /home/builder/.termux-build/libgmp/src/configure: line 10542: ./a.exe: No such file or directory /home/builder/.termux-build/libgmp/src/configure: line 10542: ./a_out.exe: No such file or directory /home/builder/.termux-build/libgmp/src/configure: line 10542: ./conftest: No such file or directory configure:10544: $? = 127 failed program was: int main (void) { return 0; } configure:10649: result: no, program does not run configure:10665: error: C++ compiler not available, see config.log for details ``` Related to #21130.
Fixes the following error which appears during running `./build-all.sh`. ``` /home/builder/.termux-build/libnfc/src/examples/pn53x-tamashell.c:48:12: fatal error: 'readline/readline.h' file not found 48 | # include <readline/readline.h> | ^~~~~~~~~~~~~~~~~~~~~ 1 error generated. ``` Since `libnfc.so` has only `libc.so` in `NEEDED` section I put `readline` to build dependency section. Related to #21130.
Fix for `error: call to undeclared library function 'memmove/calloc/malloc/memcpy/free/sprintf/etc.'` during running `build-all.sh` Probably it would be easier to add `-Wimplicit-function-declaration` to `CFLAGS`, but this solution feels more correct. Related to #21130. I will merge this in 36 hours if nobody minds or after it gets 2+ approves.
Fixes the following error which appears during running `./build-all.sh`. ``` /home/builder/.termux-build/libnfc/src/examples/pn53x-tamashell.c:48:12: fatal error: 'readline/readline.h' file not found 48 | # include <readline/readline.h> | ^~~~~~~~~~~~~~~~~~~~~ 1 error generated. ``` Since `libnfc.so` has only `libc.so` in `NEEDED` section I put `readline` to build dependency section. Related to #21130.
Progress on termux#21130 Fixes this error during build: ``` ld.lld: error: undefined symbol: posix_spawn_file_actions_init >>> referenced by fdevent.c:495 (../src/src/fdevent.c:495) >>> src/test_mod.p/fdevent.c.o:(fdevent_fork_execve) ``` I successfully tested this by using the docker container to cross-compile this package, then copying the .deb file to my aarch64 Android 10 device. I was able to successfully test the resulting program as a functioning web server at runtime after installing the .deb file by typing these commands: ```bash mkdir -p $PREFIX/var/log/lighttpd mkdir -p $PREFIX/var/www/htdocs echo 'hello lighttpd' > $PREFIX/var/www/htdocs/index.html lighttpd -f $PREFIX/etc/lighttpd/lighttpd.conf ``` My Android 10 device's WiFi LAN local IP address is 192.168.120.74, so then I used a separate computer's web browser to go to this address: http://192.168.120.74:8080/index.html, where I am able to see the text I wrote into the `index.html` file, "hello lighttpd"
Progress on #21130 Fixes this error during build: ``` ld.lld: error: undefined symbol: posix_spawn_file_actions_init >>> referenced by fdevent.c:495 (../src/src/fdevent.c:495) >>> src/test_mod.p/fdevent.c.o:(fdevent_fork_execve) ``` I successfully tested this by using the docker container to cross-compile this package, then copying the .deb file to my aarch64 Android 10 device. I was able to successfully test the resulting program as a functioning web server at runtime after installing the .deb file by typing these commands: ```bash mkdir -p $PREFIX/var/log/lighttpd mkdir -p $PREFIX/var/www/htdocs echo 'hello lighttpd' > $PREFIX/var/www/htdocs/index.html lighttpd -f $PREFIX/etc/lighttpd/lighttpd.conf ``` My Android 10 device's WiFi LAN local IP address is 192.168.120.74, so then I used a separate computer's web browser to go to this address: http://192.168.120.74:8080/index.html, where I am able to see the text I wrote into the `index.html` file, "hello lighttpd"
Progress on termux/termux-packages#21130 Fixes this error during build: ``` ld.lld: error: undefined symbol: posix_spawn_file_actions_init >>> referenced by fdevent.c:495 (../src/src/fdevent.c:495) >>> src/test_mod.p/fdevent.c.o:(fdevent_fork_execve) ``` I successfully tested this by using the docker container to cross-compile this package, then copying the .deb file to my aarch64 Android 10 device. I was able to successfully test the resulting program as a functioning web server at runtime after installing the .deb file by typing these commands: ```bash mkdir -p $PREFIX/var/log/lighttpd mkdir -p $PREFIX/var/www/htdocs echo 'hello lighttpd' > $PREFIX/var/www/htdocs/index.html lighttpd -f $PREFIX/etc/lighttpd/lighttpd.conf ``` My Android 10 device's WiFi LAN local IP address is 192.168.120.74, so then I used a separate computer's web browser to go to this address: http://192.168.120.74:8080/index.html, where I am able to see the text I wrote into the `index.html` file, "hello lighttpd"
Fixes error `#error "Cannot find a 32-bit data type"` from `gettext.h` while invoking `build-all.sh` in docker. Related to #21130.
Fixes error `#error "Cannot find a 32-bit data type"` from `gettext.h` while invoking `build-all.sh` in docker. Related to #21130.
…K internal version file Progress on termux#21130 This seems to be a completely independent issue from other issues because it is reproducible in a clean repo using this command: ``` scripts/run-docker.sh ./build-package.sh -I fish ``` I also tried temporarily unapplying the line `grep -lrw $_TERMUX_TOOLCHAIN_TMPDIR/sysroot/usr/include/c++/v1 -e '<version>' | xargs -n 1 sed -i 's/<version>/\"version\"/g'` from the end of `termux_setup_toolchain_27b.sh` and deleting the `~/.termux-build/_cache` in case it made any difference, but at least in my test, it does not seem to make a difference on the fish package (whether or not `#include "version"` or `include <version>` is forced in the toolchain) so, it seems like the `fish` package itself has to be patched.
…K internal version file Progress on termux#21130 This seems to be a completely independent issue from other issues because it is reproducible in a clean repo using this command: ``` scripts/run-docker.sh ./build-package.sh -I fish ``` I also tried temporarily unapplying the line `grep -lrw $_TERMUX_TOOLCHAIN_TMPDIR/sysroot/usr/include/c++/v1 -e '<version>' | xargs -n 1 sed -i 's/<version>/\"version\"/g'` from the end of `termux_setup_toolchain_27b.sh` and deleting the `~/.termux-build/_cache` in case it made any difference, but at least in my test, it does not seem to make a difference on the fish package (whether or not `#include "version"` or `include <version>` is forced in the toolchain) so, it seems like the `fish` package itself has to be patched.
I have identified all packages that currently cannot be built that have no solution yet, meaning that using a clean docker container does not work around the problem. All packages that cannot be built in a clean docker container
I have also found many packages that only fail to build if one or more other specific packages are already installed in the same prefix before building. I have listed them below the ones above in this WIP branch that I used to find all the errors, where I will continue looking for solutions to these errors. I have not solved any of the listed errors yet, but the packages listed above are the ones that have errors that can be reproduced by building them from the unmodified repository with a clean docker container. |
…K internal version file Progress on termux#21130 This seems to be a completely independent issue from other issues because it is reproducible in a clean repo using this command: ``` scripts/run-docker.sh ./build-package.sh -I fish ``` I also tried temporarily unapplying the line `grep -lrw $_TERMUX_TOOLCHAIN_TMPDIR/sysroot/usr/include/c++/v1 -e '<version>' | xargs -n 1 sed -i 's/<version>/\"version\"/g'` from the end of `termux_setup_toolchain_27b.sh` and deleting the `~/.termux-build/_cache` in case it made any difference, but at least in my test, it does not seem to make a difference on the fish package (whether or not `#include "version"` or `include <version>` is forced in the toolchain) so, it seems like the `fish` package itself has to be patched.
…K internal version file (#22056) Progress on #21130 This seems to be a completely independent issue from other issues because it is reproducible in a clean repo using this command: ``` scripts/run-docker.sh ./build-package.sh -I fish ``` I also tried temporarily unapplying the line `grep -lrw $_TERMUX_TOOLCHAIN_TMPDIR/sysroot/usr/include/c++/v1 -e '<version>' | xargs -n 1 sed -i 's/<version>/\"version\"/g'` from the end of `termux_setup_toolchain_27b.sh` and deleting the `~/.termux-build/_cache` in case it made any difference, but at least in my test, it does not seem to make a difference on the fish package (whether or not `#include "version"` or `include <version>` is forced in the toolchain) so, it seems like the `fish` package itself has to be patched.
Is there any further information about |
Was probably fixed by one of the |
Fixes "`error: incomplete definition of type 'struct _win_st'`" during build. Progress on termux#21130 Copied and pasted from https://gitlab.archlinux.org/archlinux/packaging/packages/aalib/-/commit/05e22fdc66114a51ac0a6ff07f3c156356439c63 `0005-aalib-m4.patch`: Fix --with-aalib-prefix argument `0006-aalib-c99.patch`: Fix builtin-declaration-mismatch compiler warnings `0007-aalib-free-offset-pointer.patch`: Fix free-nonheap-object compiler warning `0008-aalib-key-down-OOB.patch`: Fix aggressive-loop-optimizations compiler warning `0009-aalib-aalinuxkbd-return.patch`: Fix 'return' with no value compiler warning `0010-aalib-opaque-ncurses-fix.patch`: Fix build for ncurses built with opaque-curses option `0011-aalib-fix-aarender.patch`: Fix rendering with custom aspect ratio `0012-aalib-mouse.patch`: Fix typo for KEY_MOUSE condition
Fixes "`error: incomplete definition of type 'struct _win_st'`" during build. Progress on #21130 Copied and pasted from https://gitlab.archlinux.org/archlinux/packaging/packages/aalib/-/commit/05e22fdc66114a51ac0a6ff07f3c156356439c63 `0005-aalib-m4.patch`: Fix --with-aalib-prefix argument `0006-aalib-c99.patch`: Fix builtin-declaration-mismatch compiler warnings `0007-aalib-free-offset-pointer.patch`: Fix free-nonheap-object compiler warning `0008-aalib-key-down-OOB.patch`: Fix aggressive-loop-optimizations compiler warning `0009-aalib-aalinuxkbd-return.patch`: Fix 'return' with no value compiler warning `0010-aalib-opaque-ncurses-fix.patch`: Fix build for ncurses built with opaque-curses option `0011-aalib-fix-aarender.patch`: Fix rendering with custom aspect ratio `0012-aalib-mouse.patch`: Fix typo for KEY_MOUSE condition
Fixes "`error: incomplete definition of type 'struct _win_st'`" during build. Progress on termux/termux-packages#21130 Copied and pasted from https://gitlab.archlinux.org/archlinux/packaging/packages/aalib/-/commit/05e22fdc66114a51ac0a6ff07f3c156356439c63 `0005-aalib-m4.patch`: Fix --with-aalib-prefix argument `0006-aalib-c99.patch`: Fix builtin-declaration-mismatch compiler warnings `0007-aalib-free-offset-pointer.patch`: Fix free-nonheap-object compiler warning `0008-aalib-key-down-OOB.patch`: Fix aggressive-loop-optimizations compiler warning `0009-aalib-aalinuxkbd-return.patch`: Fix 'return' with no value compiler warning `0010-aalib-opaque-ncurses-fix.patch`: Fix build for ncurses built with opaque-curses option `0011-aalib-fix-aarender.patch`: Fix rendering with custom aspect ratio `0012-aalib-mouse.patch`: Fix typo for KEY_MOUSE condition
Important
Build validation should be done without use of the "fast build"
-i
/-I
flags!termux-packages/build-package.sh
Lines 417 to 418 in ed5c640
e.g.
We want to verify that every package can be "bootstrapped" without the need for pre-compiled dependencies.
./scripts/run-docker.sh ./build-all.sh
Fixes and improvements to scripts for working with cyclic dependencies #20513
toolchain: add API guard for
timezone_t
#21120 (Batch 4 onwards)List of packages that ran into build issues
Batch 1
repo
SHA256 verification #21825)termux-packages/build-all.sh
Line 91 in b2291c8
kak-lspkakoune-lsp (rust: time crate, known issue, fix(main/kak-lsp): Backport patch to fix building with rust 1.80 #21134)timezone_t
#21120)Batch 2
timezone_t
#21120)timezone_t
#21120)error: ld.lld: /data/data/com.termux/files/usr/lib/libncursesw.so is incompatible with elf64-x86-64
) (dont usebuild-all.sh
)tag rereleased, change sha256fixed by autoupdate)Batch 3 - now at commit de39934
timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)Please add -D_FILE_OFFSET_BITS=64 to your compile flags!
)Please add -D_FILE_OFFSET_BITS=64 to your compile flags!
)timezone_t
#21120)timezone_t
#21120)/bin/sh: 1: /data/data/com.termux/files/usr/bin/ccache: Exec format error
)Aborted (core dumped)
)timezone_t
#21120)libandroid-shmem
explicitly #21172)timezone_t
#21120)timezone_t
#21120)clang++: error: unsupported option '-mfpu=' for target 'aarch64-linux-android24'
)clang++: error: unsupported option '-mfpu=' for target 'aarch64-linux-android24'
)curl/curl.h
)Aborted (core dumped)
)./configure: 437: /data/data/com.termux/files/usr/bin/lua5.4: Exec format error
)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)libz
problems)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)timezone_t
#21120)Batch 4 - now at commit 51516dd + #21120 applied
-Wunused-but-set-variable
)Did not find CMake 'cmake'
)bionic-host
, pypy: bump to 7.3.16 #21197)wasn't this supposed to be fixed in pypy: fix build #21026?
ERROR: Could not find a version that satisfies the requirement numpy==1.26.5
)Download of gobject-introspection from https://packages-cf.termux.dev/apt/termux-main failed
)Batch 5 - now at commit 9016ef0 + #21120 applied
ERROR: Could not find a version that satisfies the requirement numpy==1.26.5
)hunspell
dependency is really slow to download)ERROR: Failed running '/data/data/com.termux/files/usr/bin/llvm-config', binary or interpreter not executable.
)bionic-host
)failed to execute command: "/data/data/com.termux/files/usr/bin/llvm-config" "--version"; ERROR: Exec format error (os error 8)
)cp: cannot create regular file '/etc/dbus-1/system.d/#inst.2175092#': Permission denied
)cp: cannot create regular file '/etc/dbus-1/system.d/#inst.2175092#': Permission denied
)apt
's source change,Failed to download https://mirrors.kernel.org/debian/pool/main/d/dpkg/dpkg_1.22.6.tar.xz
)configure: error: Unable to link with libxml
)ERROR: Could not find a version that satisfies the requirement numpy==1.26.5
)configure: error: invalid ltdl library directory: '/data/data/com.termux/files/usr/lib'
)hunspell
dependency is really slow to download)configure: error: Unable to locate required GL library
)hunspell
dependency is really slow to download)hunspell
dependency is really slow to download)hunspell
dependency is really slow to download)hunspell
dependency is really slow to download)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)ERROR: Could not find a version that satisfies the requirement numpy==1.26.5
)EGL/eglplatform.h
, revbump(x11/deadbeef): remove -msse3 to fix build with NDK r27 #21501)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
, bump(x11/thunderbird): 128.2.0 #21486, [Bug]: thunderbird with Segmentation fault on armv7l devices. #21511)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
, probably also valac)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)EGL/eglplatform.h
)I'll update this as I go.
The text was updated successfully, but these errors were encountered: