termux-packages icon indicating copy to clipboard operation
termux-packages copied to clipboard

[Bug]: Packages Failed To Build

Open johndebia2022 opened this issue 6 months ago • 11 comments

Problem description

# Status Package Log Comment
01 hut https://github.com/johndebia2022/termux-packages/actions/runs/15374367694/job/43257468073 534f204ded00a64c73f934487a137f084d8e8953
02 lenmus https://github.com/johndebia2022/termux-packages/actions/runs/15378821523/job/43266927072 c1d0c1eb03c2df8d1a7582fe9ff022aca056e102
03 lfortran https://github.com/johndebia2022/termux-packages/actions/runs/15378910473/job/43267141580 0cd4b3b1cc0d48b78ca8fab51644ef462fb2f9e1
04 lhasa https://github.com/johndebia2022/termux-packages/actions/runs/15374897241/job/43258533224 b65064fa96b3e61efa8f2611a5c0b21b28c22597
05 liba52 https://github.com/johndebia2022/termux-packages/actions/runs/15378817504/job/43266919411 GitHub Action got banned by https://distfiles.adelielinux.org, 717c4a9bb274593fbc31ca0e62a82d1052568d20
06 libatomic-ops https://github.com/johndebia2022/termux-packages/actions/runs/15377825816/job/43264737526 0391c94a749d40a06c7a75892272b7de19d11390
07 libportal https://github.com/johndebia2022/termux-packages/actions/runs/15378813491/job/43266910935 d679e2ff0992703a53cdf61135acbca46c620312
08 librttopo https://github.com/johndebia2022/termux-packages/actions/runs/15379998701/job/43269485372 Source not avaiable, c6c568644b72217988c7e5369b5e56582da10f0e
09 libccid https://github.com/johndebia2022/termux-packages/actions/runs/15385423979/job/43283034756 faf3fb52a9f90787fd745e957b01ab1e06b092a8
10 shellcheck https://github.com/johndebia2022/termux-packages/actions/runs/15385442314/job/43283086463 cd850a490ad24439a4a76fb1c0dfcaebe3877b31
11 mdbook-plantuml https://github.com/johndebia2022/termux-packages/actions/runs/15391124209/job/43300583705 642de03a457c8e4186d396eed71607727ab6bd92
12 openethereum https://github.com/johndebia2022/termux-packages/actions/runs/15393005939/job/43306623212 ddddd8d64c692534187e41cdbbf3c888649d93ec
13 plantuml https://github.com/johndebia2022/termux-packages/actions/runs/15398050429/job/43323661047 https://github.com/termux/termux-packages/commit/07c9b9d9fbb253b354aacc313fc8d0825e8996af
14 musescore https://github.com/johndebia2022/termux-packages/actions/runs/15401459277/job/43334796496 https://github.com/termux/termux-packages/commit/6ecd74a56496bf100f11d76b448fa6a6488efeab
15 sdcv https://github.com/johndebia2022/termux-packages/actions/runs/15407559167/job/43353048444 https://github.com/termux/termux-packages/commit/c8bcdc0dd8afb58b1cd590ff04e4b8ec1f2c1e3d
16 qt-creator https://github.com/johndebia2022/termux-packages/actions/runs/15408211762/job/43354892339 -
17 apr https://github.com/johndebia2022/termux-packages/actions/runs/15415015284/job/43375657494 -
18 dotnet9.0 https://github.com/johndebia2022/termux-packages/actions/runs/15415199588/job/43376252470 557905c32ad29d1e79473c3664faaeef484486c5
19 txikijs https://github.com/johndebia2022/termux-packages/actions/runs/15420236595/job/43393088324 -
20 tinygo https://github.com/johndebia2022/termux-packages/actions/runs/15421093739/job/43396117083 2629fd20322a017e066138d482edb5f1c8e2e65d
21 valgrind https://github.com/johndebia2022/termux-packages/actions/runs/15421536722/job/43397647930 -
22 websocat https://github.com/johndebia2022/termux-packages/actions/runs/15421558351/job/43397726651 e0c7ad86848103f8ed54966d4bfeb5508e295434
23 tvheadend https://github.com/johndebia2022/termux-packages/actions/runs/15428088862/job/43419863020 -
24 vulkan-validation-layers https://github.com/johndebia2022/termux-packages/actions/runs/15428206040/job/43420240957 -
25 vala-panel-appmenu https://github.com/johndebia2022/termux-packages/actions/runs/15429844050/job/43425323806 -
26 deadbeef https://github.com/johndebia2022/termux-packages/actions/runs/15436785692/job/43444907270 -
27 frida https://github.com/johndebia2022/termux-packages/actions/runs/15440572938/job/43457183406 -
28 gimp-lqr-plugin https://github.com/johndebia2022/termux-packages/actions/runs/15451818965/job/43495527864 -

What steps will reproduce the bug?

Build

What is the expected behavior?

No response

System information

NA

johndebia2022 avatar Jun 02 '25 06:06 johndebia2022

GitHub actions log does not persist indefinitely. Please add a text log file of the build error for future reference. Only the 'Build packages' section would be sufficient.

Biswa96 avatar Jun 02 '25 06:06 Biswa96

librttopo

Could this URL be used as TERMUX_PKG_SRCURL? It is an official mirror, but hosted by gitlab.com which might be more suitable for CI reliability for the case of this package.

https://gitlab.com/rttopo/rttopo/-/archive/librttopo-1.1.0/rttopo-librttopo-1.1.0.tar.gz

robertkirkman avatar Jun 03 '25 03:06 robertkirkman

Could this URL be used as TERMUX_PKG_SRCURL? It is an official mirror, but hosted by gitlab.com which might be more suitable for CI reliability for the case of this package.

I switched it from the archive file to git. It may be better than using a mirror.

licy183 avatar Jun 03 '25 03:06 licy183

musescore

Fixed here. I packaged a development commit in the master branch of the upstream repository, but I was waiting a little while to see how long it would take before upstream would make a release.

I can bump it again and merge it soon if it's wanted immediately.

  • https://github.com/termux/termux-packages/pull/24302

the current musescore stable release, 4.5.2, is too old and cannot work because it is not compatible with Qt 6.9. I believe only the development branch or the next, future release can build it for current Termux.

robertkirkman avatar Jun 03 '25 03:06 robertkirkman

plantuml

I was able to reproduce the problem in the PR, and I believe that adding -Dorg.gradle.jvmargs=-Xmx4096M might help to prevent that error.

  • https://github.com/termux/termux-packages/pull/24941

robertkirkman avatar Jun 03 '25 04:06 robertkirkman

sdcv

Fixed in

  • https://github.com/termux/termux-packages/pull/24942

robertkirkman avatar Jun 03 '25 05:06 robertkirkman

qt-creator

Tracked here:

  • https://github.com/termux/termux-packages/issues/23492

this one can technically have its first error fixed by cherry-picking https://github.com/qt-creator/qt-creator/commit/cc9ffdb685119a7c11248f08cf88308927252b85, but the package is very outdated and there are a lot of other errors.

it is probably better to try to bump the package all the way to the newest stable upstream release, but this could be very hard, because the package builds a large amount of upstream code, and has a large amount of patches.

robertkirkman avatar Jun 03 '25 05:06 robertkirkman

shellcheck

This error is one of those of a very weird kind, a kind that appears once in a while.

I am having a hard time with Haskell (ghc/cabal) and I don't know yet how to properly get it to stop having this problem for this package.

The kind of problem this is, is the kind where:

  • a build script of something tries to detect whether cross-compilation is happening
  • but it only checks for a difference between:
    • the builder's "kernel" and the target's "kernel"
    • and a difference between the builder's "architecture" and the target's "architecture"
  • and this build script code (somewhere) is "assuming" that it doesn't need to check/doesn't have support implemented for:
    • checking a difference between the builder's "C library" and the target's "C library".

This results in a situation where, when targeting 64-bit Android-x86, because the builder's and target's architectures are both 64-bit x86, and the builder's and target's kernels are both Linux, some part of the build script code is unable to correctly detect that cross-compilation is happening (because the builder is GNU/Linux which has GNU libc and the target is Android which has bionic libc), so it attempts to build and run a test binary during a configure step, which fails with a cannot execute: required file not found error, and prevents successful build of this package.

config.log I got from running a manual attempt to cross-compile the Haskell unix crate
builder@bf61edea0a01:~/unix$ cat ./dist-newstyle/build/x86_64-linux/ghc-9.12.2/unix-2.8.7.0/build/config.log                               dpage.o .obj/release-shared/codemodelhelpers.o .obj/release-sha
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-shared/moc_sizehandlerect.o .obj/release-shared/moc_formresizer.o .obj/release-shared/moc_formclassw
It was created by Haskell unix package configure 2.0, which was
generated by GNU Autoconf 2.71.  Invocation command line was
red/moc_formwindoweditor.o .obj/release-shared/moc_formwindowfile.o .obj/release-shared/moc_qtcreator
  $ //home/builder/unix/configure --with-compiler=ghc --prefix=/data/data/com.termux/files/usr --bindir=/data/data/com.termux/files/usr/bin --libdir=/data/data/com.termux/files/usr/lib/x86_64-linux-ghc-9.12.2-inplace/unix-2.8.7.0-inplace --libexecdir=/data/data/com.termux/files/usr/libexec/x86_64-linux-ghc-9.12.2-inplace/unix-2.8.7.0 --datadir=/data/data/com.termux/files/usr/share/x86_64-linux-ghc-9.12.2-inplace/unix-2.8.7.0 --sysconfdir=/data/data/com.termux/files/usr/etc --target=x86_64-linux-android CC=/home/builder/.termux-build/_cache/android-r27c-api-24-v1/bin/x86_64-linux-android-clang
b/libQt5PrintSupport.so /data/data/com.termux/files/usr/lib/libQt5DesignerComponents.so /data/data/co
## --------- ##
## Platform. ##
## --------- ##
ata/data/com.termux/files/usr/lib/libQt5Core.so    
hostname = bf61edea0a01
uname -m = x86_64
uname -r = 6.6.67-gentoo-dist
uname -s = Linux
uname -v = #1 SMP PREEMPT_DYNAMIC Thu Jan 16 12:08:58 CST 2025
creator"' -D'RELATIVE_DOC_PATH="../share/doc/qtcreator"' -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_CREATOR 
/usr/bin/uname -p = x86_64
/bin/uname -X     = unknown
/data/com.termux/files/usr/lib/clang/20.1.6/include\"" -D"CLANG_BINDIR=\"/data/data/com.termux/files/
/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown
.uic -I/data/data/com.termux/files/usr/include/glib-2.0 -I/data/data/com.termux/files/usr/lib/glib-2.
PATH: /home/builder/.termux-build/_cache/ghc-cross-9.12.2-x86_64-runtime/bin/
PATH: /bin/
PATH: /bin/
PATH: /home/builder/.termux-build/_cache/ghc-cross-9.12.2-x86_64-runtime/
PATH: /home/builder/.termux-build/_cache/cabal-3.14.1.1-runtime/
PATH: /home/builder/.termux-build/_cache/android-r27c-api-24-v1/bin/
PATH: /usr/local/sbin/
PATH: /usr/local/bin/
PATH: /usr/sbin/
PATH: /usr/bin/
PATH: /sbin/
PATH: /bin/
ator/src/tools -I../../plugins -I../../libs -I../../libs/3rdparty -I../../shared -I../../libs/3rdpart
y/syntax-highlighting/src/lib -I../../libs/3rdparty/syntax-highlighting/autogenerated/src/lib -I. -I/
## ----------- ##
## Core tests. ##
## ----------- ##
ux/files/usr/include/glib-2.0 -I/data/data/com.termux/files/usr/lib/glib-2.0/include -I/data/data/com
configure:2693: looking for aux files: config.guess config.sub
configure:2706:  trying //home/builder/unix/
configure:2735:   //home/builder/unix/config.guess found
configure:2735:   //home/builder/unix/config.sub found
configure:2912: checking for gcc
configure:2944: result: /home/builder/.termux-build/_cache/android-r27c-api-24-v1/bin/x86_64-linux-android-clang                           re/doc/qtcreator"' -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_CREATOR 
configure:3297: checking for C compiler version
configure:3306: /home/builder/.termux-build/_cache/android-r27c-api-24-v1/bin/x86_64-linux-android-clang --version >&5                     VE -DPROEVALUATOR_DUAL_VFS -DPROEVALUATOR_SETENV -DQT_NO_DEBUG 
Android (12470979, +pgo, +bolt, +lto, +mlgo, based on r522817c) clang version 18.0.3 (https://android.googlesource.com/toolchain/llvm-project d8003a456d14a3deb8054cdaa529ffbf02d9b262)
Target: x86_64-unknown-linux-android24
Thread model: posix
InstalledDir: /home/builder/.termux-build/_cache/android-r27c-api-24-v1/bin
configure:3317: $? = 0
configure:3306: /home/builder/.termux-build/_cache/android-r27c-api-24-v1/bin/x86_64-linux-android-clang -v >&5                            ib-2.0 -I/data/data/com.termux/files/usr/lib/glib-2.0/include -
Android (12470979, +pgo, +bolt, +lto, +mlgo, based on r522817c) clang version 18.0.3 (https://android.googlesource.com/toolchain/llvm-project d8003a456d14a3deb8054cdaa529ffbf02d9b262)
Target: x86_64-unknown-linux-android24
Thread model: posix
InstalledDir: /home/builder/.termux-build/_cache/android-r27c-api-24-v1/bin
configure:3317: $? = 0
configure:3306: /home/builder/.termux-build/_cache/android-r27c-api-https://github.com/haskell/unix24-v1/bin/x86_64-linux-android-clang -V >&5                            AST_TO_ASCII -DQT_RESTRICTED_CAST_FROM_ASCII -DQT_DISABLE_DEPRE
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:3317: $? = 1
configure:3306: /home/builder/.termux-build/_cache/android-r27c-api-24-v1/bin/x86_64-linux-android-clang -qversion >&5                      -I../../libs/3rdparty -I../../libs/clangsupport -I../../libs/3
clang: error: unknown argument '-qversion'; did you mean '--version'?
clang: error: no input files
configure:3317: $? = 1
configure:3306: /home/builder/.termux-build/_cache/android-r27c-api-24-v1/bin/x86_64-linux-android-clang -version >&5                      /include/glib-2.0 -I/data/data/com.termux/files/usr/lib/glib-2.
clang: error: unknown argument '-version'; did you mean '--version'?
clang: error: no input files
configure:3317: $? = 1
configure:3337: checking whether the C compiler works
configure:3359: /home/builder/.termux-build/_cache/android-r27c-api-24-v1/bin/x86_64-linux-android-clang  -fstack-protector-strong -Oz -fstack-protector-strong -Oz -isystem/data/data/com.termux/files/usr/include/c++/v1 -isystem/data/data/com.termux/files/usr/include -Qunused-arguments -L/data/data/com.termux/files/usr/lib -Wl,-rpath=/data/data/com.termux/files/usr/lib -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -Wl,--no-as-needed  -isystem/c++/v1 -isystem -isystem -L -Wl,-rpath= -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now conftest.c  >&5
configure:3363: $? = 0
configure:3413: result: yes
configure:3416: checking for C compiler default output file name
configure:3418: result: a.out
configure:3424: checking for suffix of executables
configure:3431: /home/builder/.termux-build/_cache/android-r27c-api-24-v1/bin/x86_64-linux-android-clang -o conftest  -fstack-protector-strong -Oz -fstack-protector-strong -Oz -isystem/data/data/com.termux/files/usr/include/c++/v1 -isystem/data/data/com.termux/files/usr/include -Qunused-arguments -L/data/data/com.termux/files/usr/lib -Wl,-rpath=/data/data/com.termux/files/usr/lib -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -Wl,--no-as-needed  -isystem/c++/v1 -isystem -isystem -L -Wl,-rpath= -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now conftest.c  >&5
configure:3435: $? = 0
configure:3458: result: 
configure:3480: checking whether we are cross compiling
configure:3488: /home/builder/.termux-build/_cache/android-r27c-api-24-v1/bin/x86_64-linux-android-clang -o conftest  -fstack-protector-strong -Oz -fstack-protector-strong -Oz -isystem/data/data/com.termux/files/usr/include/c++/v1 -isystem/data/data/com.termux/files/usr/include -Qunused-arguments -L/data/data/com.termux/files/usr/lib -Wl,-rpath=/data/data/com.termux/files/usr/lib -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -https://github.com/haskell/unixWl,--no-as-needed  -isystem/c++/v1 -isystem -isystem -L -Wl,-rpath= -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now conftest.c  >&5
configure:3492: $? = 0
configure:3499: ./conftest
//home/builder/unix/configure: line 3501: ./conftest: cannot execute: required file not found
configure:3503: $? = 127
configure:3510: error: in `/home/builder/unix/dist-newstyle/build/x86_64-linux/ghc-9.12.2/unix-2.8.7.0/build':                             dparty/syntax-highlighting/autogenerated/src/lib -I/home/builde
configure:3512: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
/include/QtCore -I/data/data/com.termux/files/usr/include -I/home/builder/.termux-build/_cache/androi
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ude qmakeproject.cpp -o .moc/release-shared/qmakeproject.moc
ac_cv_c_bigendian=no
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/home/builder/.termux-build/_cache/android-r27c-api-24-v1/bin/x86_64-linux-android-clang                                PATH="../libexec/qtcreator"' -D'RELATIVE_DATA_PATH="../share/qt
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=' -fstack-protector-strong -Oz -fstack-protector-strong -Oz -isystem/data/data/com.termux/files/usr/include/c++/v1 -isystem/data/data/com.termux/files/usr/include -Qunused-arguments -L/data/data/com.termux/files/usr/lib -Wl,-rpath=/data/data/com.termux/files/usr/lib -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -Wl,--no-as-needed'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=' -isystem/c++/v1 -isystem -isystem'
ac_cv_env_CPP_set=set
ac_cv_env_CPP_value=-cpp
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-L -Wl,-rpath= -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=x86_64-linux-android
ac_cv_func_calloc_0_nonnull=yes
ac_cv_func_chown_works=yes
ac_cv_func_endpwent=yes
ac_cv_func_getgroups_works=yes
ac_cv_func_getpwent=no
ac_cv_func_getpwnam=no
ac_cv_func_getpwuid=no
ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_nl_langinfo=yes
ac_cv_func_posix_spawn=no
ac_cv_func_posix_spawnp=no
ac_cv_func_realloc_0_nonnull=yes
ac_cv_func_sigsetmask=no
ac_cv_prog_ac_ct_CC=/home/builder/.termux-build/_cache/android-r27c-api-24-v1/bin/x86_64-linux-android-clang                                -isystem/data/data/com.termux/files/usr/include/c++/v1 -isyste
am_cv_func_working_getline=yes
gl_cv_C_locale_sans_EILSEQ=yes
gl_cv_func_dup2_works=yes
gl_cv_func_fcntl_f_dupfd_cloexec=yes
gl_cv_func_fcntl_f_dupfd_works=yes
gl_cv_func_fnmatch_posix=yes
gl_cv_func_getcwd_abort_bug=no
gl_cv_func_getcwd_null=yes
gl_cv_func_getcwd_path_max=yes
gl_cv_func_getcwd_posix_signature=yes
gl_cv_func_gettimeofday_clobber=no
gl_cv_func_gettimeofday_posix_signature=yes
gl_cv_func_link_works=yes
gl_cv_func_lstat_dereferences_slashed_symlink=yes
gl_cv_func_malloc_0_nonnull=yes
gl_cv_func_memchr_works=yes
gl_cv_func_mkdir_trailing_dot_works=yes
gl_cv_func_mkdir_trailing_slash_works=yes
gl_cv_func_mkfifo_works=yes
gl_cv_func_mknod_works=yes
gl_cv_func_realpath_works=yes
gl_cv_func_select_detects_ebadf=yes
gl_cv_func_snprintf_posix=yes
gl_cv_func_snprintf_retval_c99=yes
gl_cv_func_snprintf_truncation_c99=yes
gl_cv_func_stat_dir_slash=yes
gl_cv_func_stat_file_slash=yes
gl_cv_func_strerror_0_works=yes
gl_cv_func_strtold_works=yes
gl_cv_func_symlink_works=yes
gl_cv_func_tzset_clobber=no
gl_cv_func_unlink_honors_slashes=yes
gl_cv_func_vsnprintf_posix=yes
gl_cv_func_vsnprintf_zerosize_c99=yes
gl_cv_func_wcrtomb_works=yes
gl_cv_func_wcwidth_works=yes
gl_cv_func_working_getdelim=yes
gl_cv_func_working_mkstemp=yes
gl_cv_func_working_mktime=yes
gl_cv_func_working_strerror=yes
gl_cv_header_working_fcntl_h=yes
ols -lProjectExplorer -lTextEditor -lModeling -lCPlusPlus -lQtcSsh -lAggregation -lExtensionSystem -l
## ----------------- ##
## Output variables. ##
## ----------------- ##
aarch64-linux-android-clang++ -c -pipe -isystem/data/data/com.termux/files/usr/include/c++/v1 -isyste
CC='/home/builder/.termux-build/_cache/android-r27c-api-24-v1/bin/x86_64-linux-android-clang'
CFLAGS=' -fstack-protector-strong -Oz -fstack-protector-strong -Oz -isystem/data/data/com.termux/files/usr/include/c++/v1 -isystem/data/data/com.termux/files/usr/include -Qunused-arguments -L/data/data/com.termux/files/usr/lib -Wl,-rpath=/data/data/com.termux/files/usr/lib -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now -Wl,--no-as-needed'
CPP='-cpp'
CPPFLAGS=' -isystem/c++/v1 -isystem -isystem'
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXTRA_LIBS=''
GREP=''
LDFLAGS='-L -Wl,-rpath= -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now'
LIBOBJS=''
LIBS=''
LTLIBOBJS=''https://github.com/haskell/unix
OBJEXT=''
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_NAME='Haskell unix package'
PACKAGE_STRING='Haskell unix package 2.0'
PACKAGE_TARNAME='unix'
PACKAGE_URL=''
PACKAGE_VERSION='2.0'
PATH_SEPARATOR=':'
SHELL='/bin/bash'
ac_ct_CC='/home/builder/.termux-build/_cache/android-r27c-api-24-v1/bin/x86_64-linux-android-clang'https://github.com/haskell/unix
bindir='/data/data/com.termux/files/usr/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='/data/data/com.termux/files/usr/share/x86_64-linux-ghc-9.12.2-inplace/unix-2.8.7.0'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='/data/data/com.termux/files/usr/lib/x86_64-linux-ghc-9.12.2-inplace/unix-2.8.7.0-inplace'
libexecdir='/data/data/com.termux/files/usr/libexec/x86_64-linux-ghc-9.12.2-inplace/unix-2.8.7.0'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/data/data/com.termux/files/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/data/data/com.termux/files/usr/etc'
target='x86_64-linux-android'
target_alias='x86_64-linux-android'
target_cpu=''
target_os=''
target_vendor=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "Haskell unix package"
#define PACKAGE_TARNAME "unix"
#define PACKAGE_VERSION "2.0"
#define PACKAGE_STRING "Haskell unix package 2.0"
#define PACKAGE_BUGREPORT "[email protected]"
#define PACKAGE_URL ""

configure: exit 77

@MrAdityaAlok, do you happen to have an idea of any other way to work around this by possibly predownloading and prepatching the Haskell unix crate to fix it for cross-compiling targeting 64-bit Android-x86, then use the patched crate in the shellcheck package? I tried to figure out how, but I couldn't yet create a working solution based on that idea.

If you would like to know how I progressed far enough to obtain that config.log, let me know and I can explain in another message, I did a bunch of messy manual commands to obtain that verbose log.

If no other way is found, it is possible to work around by adding aosp-libs to TERMUX_PKG_BUILD_DEPENDS with no other changes, but I consider that to be kind of a messy workaround that skips fixing the root cause, and includes a build dependency that is not necessary for the builds of the other three target architectures.

@johndebia2022 if you need this very quickly, you can add aosp-libs to the build dependencies (with no other changes) and it will successfully cross-compile for 64-bit Android-x86. It is a very weird workaround but it works if you are in a hurry.

robertkirkman avatar Jun 03 '25 06:06 robertkirkman

@MrAdityaAlok, do you happen to have an idea of any other way to work around this by possibly predownloading and prepatching the Haskell unix crate to fix it for cross-compiling targeting 64-bit Android-x86, then use the patched crate in the shellcheck package? I tried to figure out how, but I couldn't yet create a working solution based on that idea.

I found a very simple solution. I'll update the package build scripts by tomorrow.

The problem was that cabal was not passing the --host flag to configure (that it should have), and the flag explicitly set intermux_configure_cabal is not transmitted to dependencies.

MrAdityaAlok avatar Jun 03 '25 14:06 MrAdityaAlok

Good new that full packages build for all termux-packages and termux-user-repository has been completed with only the mentioned issues on https://github.com/termux/termux-packages/issues/24930 and https://github.com/termux-user-repository/tur/issues/1787 which is great by the way, some packages have not been maintained or updated for a long time.

Still, bad news is that those failures should be fixed (some already are - thank you all).

johndebia2022 avatar Jun 04 '25 23:06 johndebia2022

Good new that full packages build for all termux-packages and termux-user-repository has been completed with only the mentioned issues on https://github.com/termux/termux-packages/issues/24930

@johndebia2022 i am sorry to bother you, but I was just wondering, did you really run a build of all packages? If so, thank you for doing so, it is very helpful.

However, I have also built/attempted building all packages at least once, and I noticed that this package does not show up on your lists anywhere, but for me it still has an error: pypy3

I was just wondering, were you able to successfully build pypy3 and that's why you don't show it here, or is that one that you just did not happen to try yet?

I have successfully built pypy3 in this:

  • https://github.com/termux/termux-packages/pull/24525

however that is more like an example and not a complete solution because, while it technically builds, it's way too slow at building so we need to make a more optimized one, and I'm still trying to do that but it's very hard.

But it made me think, if you attempted building all packages and pypy3 built successfully for you, did you do something to bypass OSError: ctypes.util.find_library() did not manage to locate a library called 'sqlite3'?

If you did not get OSError: ctypes.util.find_library() did not manage to locate a library called 'sqlite3' while building pypy3, please let me know.

There is an example of how to bypass that in my PR but it made me wonder whether you might have a better way.

robertkirkman avatar Jun 24 '25 16:06 robertkirkman

Actually @robertkirkman I do not build or test any packages that are tight to Termux application. only general packages are being tested. for example, the below list is on my ignore_pkgs_list.txt and are removed by default

Termux Internals

termux-am termux-api termux-apt-repo termux-create-package termux-exec termux-keyring termux-tools termux-am-socket termux-gui-package

Termux Dependant

termux-gui-bash termux-gui-pm termux-services termux-gui-c termux-core termux-x11-nightly termux-install pypy pypy3 sudo tudo tsu tergent carapace wlroots edex-ui

PreBuilt

electron electron21 electron22 electron23 electron24 electron25 electron26

johndebia2022 avatar Jun 24 '25 20:06 johndebia2022

Ok thank you very much for explaining and showing your ignore package list, that is a full clarification.

robertkirkman avatar Jun 24 '25 21:06 robertkirkman