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]: bazel6 fails to build: defining a type within '__builtin_offsetof' is a C23 extension #1582

Open
robertkirkman opened this issue Mar 13, 2025 · 0 comments · May be fixed by #1583
Open
Labels
bug Something isn't working untriaged

Comments

@robertkirkman
Copy link
Contributor

Problem description

bazel6 fails to build because of being too old and not being compatible with newer clang

What steps will reproduce the bug?

git clone https://github.com/termux-user-repository/tur
cd tur/
./setup-environment.sh
scripts/setup-termux.sh
./build-package.sh -I -f bazel6

What is the expected behavior?

bazel6 being buildable

System information

termux-info:

Termux Variables:
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP__APK_FILE=/data/app/~~gVwKanLEt3onhDQBKcUZQA==/com.termux-Jepd-I809CuxEnnuONZ6_Q==/base.apk
TERMUX_APP__APK_RELEASE=F_DROID
TERMUX_APP__APP_VERSION_CODE=1020
TERMUX_APP__APP_VERSION_NAME=0.119.0-beta.1
TERMUX_APP__DATA_DIR=/data/user/0/com.termux
TERMUX_APP__IS_DEBUGGABLE_BUILD=false
TERMUX_APP__IS_INSTALLED_ON_EXTERNAL_STORAGE=false
TERMUX_APP__PACKAGE_NAME=com.termux
TERMUX_APP__PID=4459
TERMUX_APP__TARGET_SDK=28
TERMUX_VERSION=0.119.0-beta.1
TERMUX__SE_FILE_CONTEXT=u:object_r:app_data_file:s0:c237,c256,c512,c768
TERMUX__SE_INFO=default:targetSdkVersion=28:complete
TERMUX__SE_PROCESS_CONTEXT=u:r:untrusted_app_27:s0:c237,c256,c512,c768
TERMUX__UID=10237
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://packages-cf.termux.dev/apt/termux-main stable main
# root-repo (sources.list.d/root.list)
deb https://packages.termux.dev/apt/termux-root root stable
# tur-repo (sources.list.d/tur.list)
deb https://tur.kcubeterm.com tur-packages tur tur-on-device tur-continuous
# glibc-repo (sources.list.d/glibc.list)
deb https://packages-cf.termux.dev/apt/termux-glibc/ glibc stable
# sources.list.d/termux-adb.list
deb https://nohajc.github.io termux extras
# x11-repo (sources.list.d/x11.list)
deb https://packages.termux.dev/apt/termux-x11 x11 main
Updatable packages:
aria2/stable 1.37.0 aarch64 [upgradable from: 1.37.0]
gst-plugins-bad/stable 1.26.0 aarch64 [upgradable from: 1.24.12-1]
gst-plugins-base/stable 1.26.0 aarch64 [upgradable from: 1.24.12]
gst-plugins-good/stable 1.26.0 aarch64 [upgradable from: 1.24.12]
gstreamer/stable 1.26.0 aarch64 [upgradable from: 1.24.12]
libxslt/stable 1.1.43 aarch64 [upgradable from: 1.1.42-1]
mesa/stable 24.3.4-1 aarch64 [upgradable from: 24.3.1-1]
pango/stable 1.56.2 aarch64 [upgradable from: 1.56.1]
xsltproc/stable 1.1.43 aarch64 [upgradable from: 1.1.42-1]
termux-tools version:
1.44.6
Android version:
13
Kernel build information:
Linux localhost 4.14.190-lineage-gef0cb31b13 #4 SMP PREEMPT Fri Jun 23 13:11:47 CEST 2023 aarch64 Android
Device manufacturer:
samsung
Device model:
SM-A705FN
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.api versionCode:51
com.termux.x11 versionCode:15
@robertkirkman robertkirkman added bug Something isn't working untriaged labels Mar 13, 2025
robertkirkman added a commit to robertkirkman/tur that referenced this issue Mar 13, 2025
- Fixes termux-user-repository#1582

- Cherry-pick protocolbuffers/protobuf@21af783

- Add `-Wno-c11-extensions` in the necessary place to be compatible with the cherry-pick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant