Skip to content
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

[Bug]: Building apt fails with configure: exit code 77 #11713

Closed
shrihankp opened this issue Aug 24, 2022 · 3 comments
Closed

[Bug]: Building apt fails with configure: exit code 77 #11713

shrihankp opened this issue Aug 24, 2022 · 3 comments
Labels
bug report Something is not working properly packaging Issue related to building packages, not affecting end users directly

Comments

@shrihankp
Copy link

shrihankp commented Aug 24, 2022

Problem description

The logs: http://0x0.st/o9JZ.log

What steps will reproduce the bug?

  1. Change package ID in scripts/properties.sh
  2. Run scripts/setup-ubuntu.sh and scripts/setup-android-sdk.sh.
  3. Run scripts/run-docker.sh ./scripts/build-bootstraps.sh -a nodejs,openjdk-17 --architectures aarch64
  4. See a configure error for apt.

Edit: the specific error is thrown by /usr/bin/as: unrecognised option: -EL. Why would it use the system's own assembler when it must use the one from AOSP?

What is the expected behavior?

Should build apt and other packages.

System information

Shouldn't be related, but anyways...

termux-info:

Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=GITHUB
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=24638
TERMUX_IS_DEBUGGABLE_BUILD=1
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
Packages CPU architecture:
arm
Subscribed repositories:
# sources.list
deb https://packages.termux.dev/apt/termux-main stable main
Updatable packages:
android-tools/stable 31.0.3p1-5 arm [upgradable from: 31.0.3p1-4]
apt/stable 2.5.2-2 arm [upgradable from: 2.5.1]
aria2/stable 1.36.0-5 arm [upgradable from: 1.36.0-4]
binutils/stable 2.38-1 arm [upgradable from: 2.38]
command-not-found/stable 2.1.0 arm [upgradable from: 2.0-1]
cups/stable 2.3.3-10 arm [upgradable from: 2.3.3-9]
ffmpeg/stable 5.1 arm [upgradable from: 5.0.1-2]
game-music-emu/stable 0.6.3-1 arm [upgradable from: 0.6.3]
gh/stable 2.14.6 arm [upgradable from: 2.14.3]
googletest/stable 1.12.1-2 arm [upgradable from: 1.12.1-1]
harfbuzz/stable 5.1.0-1 arm [upgradable from: 5.1.0]
libaom/stable 3.4.0-1 arm [upgradable from: 3.4.0]
libc++/stable 25-2 arm [upgradable from: 23c]
libdb/stable 18.1.40-4 arm [upgradable from: 18.1.40-3]
libgmp/stable 6.2.1-2 arm [upgradable from: 6.2.1-1]
libgraphite/stable 1.3.14-2 arm [upgradable from: 1.3.14-1]
libicu/stable 71.1-1 arm [upgradable from: 71.1]
liblz4/stable 1.9.4 arm [upgradable from: 1.9.3-1]
libnghttp2/stable 1.49.0 arm [upgradable from: 1.48.0]
libprotobuf/stable 2:3.19.3-1 arm [upgradable from: 2:3.19.3]
libresolv-wrapper/stable 1.1.7-3 arm [upgradable from: 1.1.7-2]
libtiff/stable 4.3.0-3 arm [upgradable from: 4.3.0-2]
libvpx/stable 1:1.12.0-1 arm [upgradable from: 1:1.12.0]
libwebp/stable 1.2.4 arm [upgradable from: 1.2.3]
libx11/stable 1.7.2-2 arm [upgradable from: 1.7.2-1]
libx265/stable 3.5-4 arm [upgradable from: 3.5-3]
lz4/stable 1.9.4 arm [upgradable from: 1.9.3-1]
nodejs/stable 18.7.0-1 arm [upgradable from: 18.4.0]
psmisc/stable 23.5-1 arm [upgradable from: 23.4]
python/stable 3.10.6 arm [upgradable from: 3.10.5]
starship/stable 1.10.1-1 arm [upgradable from: 1.9.1]
strace/stable 5.19 arm [upgradable from: 5.18]
termux-keyring/stable 3.9 all [upgradable from: 3.8]
termux-tools/stable 1.28.0 all [upgradable from: 1.24]
unzip/stable 6.0-9 arm [upgradable from: 6.0-8]
zstd/stable 1.5.2-2 arm [upgradable from: 1.5.2-1]
termux-tools version:
1.24
Android version:
11
Kernel build information:
Linux localhost 3.10.108-SandwichKernel-v3.0+ #1 SMP PREEMPT Mon Jun 20 01:18:48 IST 2022 armv8l Android
Device manufacturer:
samsung
Device model:
SM-J700F
@shrihankp shrihankp added the bug report Something is not working properly label Aug 24, 2022
@truboxl
Copy link
Contributor

truboxl commented Aug 24, 2022

From the logs:

configure:3882: aarch64-linux-android-clang -fstack-protector-strong -Oz -no-integrated-as -I/data/data/com.reisxd.rvba/files/usr/include -L/data/data/com.reisxd.rvba/files/usr/lib -Wl,-rpath=/data/data/com.reisxd.rvba/files/usr/lib -fopenmp -static-openmp -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,relro,-z,now conftest.c >&5
/usr/bin/as: unrecognized option '-EL'
clang-14: error: assembler command failed with exit code 1 (use -v to see invocation)
configure:3886: $? = 1
configure:3924: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libgcrypt"

Should be fixed by #11615

Run `scripts/run-docker.sh ./scripts/build-bootstraps.sh -a nodejs,openjdk-17 --architectures aarch64

build-bootstraps.sh is actually not working at the moment. See #10462

@truboxl truboxl added the packaging Issue related to building packages, not affecting end users directly label Aug 24, 2022
@shrihankp
Copy link
Author

@truboxl Thanks for informing! Is there any other way I could build using a custom package name for now?

@truboxl
Copy link
Contributor

truboxl commented Aug 27, 2022

You can try replace build-bootstraps.sh step with

#10540 per #10462 (comment) suggestion

or

./scripts/run-docker.sh ./build-package.sh -a aarch64 apt bash command-not-found dash debianutils dos2unix ed inetutils lsof nano net-tools patch proot termux-keyring unzip nodejs openjdk-17
and then with #11491
./scripts/run-docker.sh ./scripts/generate-bootstraps.sh -c --architectures aarch64 -a nodejs openjdk-17

Not sure about the last one though, you may want to check TERMUX_PKG_DEPENDS packages for those last 2 and add them since generate-bootstraps.sh is dumber

As always these are provided with no guarantees. Either might have hidden issues down the road.
I hope this helps, will close this issue for now.

@truboxl truboxl closed this as completed Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something is not working properly packaging Issue related to building packages, not affecting end users directly
Projects
None yet
Development

No branches or pull requests

2 participants