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

fix bionic-host build

Open Grimler91 opened this issue 1 year ago • 1 comments

Replaces https://github.com/termux/termux-packages/pull/20958

Grimler91 avatar Aug 11 '24 17:08 Grimler91

#### make completed successfully (14:31 (mm:ss)) ####

INFO: READELF=llvm-readelf ... /home/runner/.termux-build/_cache/android-r27-api-24-v0/bin/llvm-readelf
INFO: Generating undefined symbols regex to /tmp/tmp.5AzZrY8TDF
INFO: Done ... 0s
INFO: Total symbols 2365
INFO: Generating OpenMP symbols regex to /tmp/tmp.PSMRtng4UL
INFO: Done ... 0s
INFO: Total OpenMP symbols 2505
INFO: Identifying files with nproc=4
INFO: Done ... 0s
INFO: Found 31 / 34 files
INFO: Running symbol checks on 31 files with nproc=4
INFO: Done ... 11s
INFO: Found files with undefined symbols
INFO: Showing result
ERROR: ./opt/bionic-host/lib/ld-android.so contains undefined symbols:
     1: 00000000     0 NOTYPE  GLOBAL DEFAULT   UND __cxa_finalize
     2: 00000000     0 NOTYPE  GLOBAL DEFAULT   UND __cxa_atexit
     3: 00000000     0 NOTYPE  GLOBAL DEFAULT   UND __register_atfork
ERROR: ./opt/bionic-host/lib/libdl.so contains undefined symbols:
     1: 00000000     0 NOTYPE  GLOBAL DEFAULT   UND __cxa_finalize
     2: 00000000     0 NOTYPE  GLOBAL DEFAULT   UND __cxa_atexit
     3: 00000000     0 NOTYPE  GLOBAL DEFAULT   UND __register_atfork
    24: 00000000     0 NOTYPE  GLOBAL DEFAULT   UND abort
    25: 00000000     0 NOTYPE  GLOBAL DEFAULT   UND memcpy
ERROR: ./opt/bionic-host/lib64/ld-android.so contains undefined symbols:
     1: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND __cxa_finalize
     2: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND __register_atfork
     3: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND __cxa_atexit
ERROR: ./opt/bionic-host/lib64/libdl.so contains undefined symbols:
     1: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND __cxa_finalize
     2: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND __register_atfork
     3: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND __cxa_atexit
INFO: Done ... 7s
INFO: Found 4 files with undefined symbols after exclusion
ERROR: Refer above
Error: Process completed with exit code 1.

Looks like some library isn't getting linked.

TomJo2000 avatar Aug 11 '24 18:08 TomJo2000

Maybe we should just omit the undefined symbols checking? Building is controlled by AOSP building system, I do not think we should make sure everything is fine. Also there is another way to obtain ubuntu packages directly from repos, without guessing package names and their urls. https://github.com/termux/termux-packages/blob/091d05f0039e4d602e97eb591184ccc5791e8f67/x11-packages/audacity/build.sh#L44-L95

twaik avatar Oct 15 '24 21:10 twaik