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

fix(main/binutils-libs): Downgrade a new llvm error so we can keep building. #18813

Merged
merged 1 commit into from
Dec 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/binutils-libs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ termux_step_pre_configure() {
rm -rf $TERMUX_HOSTBUILD_MARKER

export CPPFLAGS="$CPPFLAGS -Wno-c++11-narrowing"
# llvm upgraded a warning to an error, which caused this build (and some
# others, including the rust toolchain) to fail like so:
#
# ld.lld: error: version script assignment of 'LIBCTF_1.0' to symbol 'ctf_label_set' failed: symbol not defined
# ld.lld: error: version script assignment of 'LIBCTF_1.0' to symbol 'ctf_label_get' failed: symbol not defined
# These flags restore it to a warning.
# https://reviews.llvm.org/D135402
export LDFLAGS="$LDFLAGS -Wl,--undefined-version"

if [ $TERMUX_ARCH_BITS = 32 ]; then
export LIB_PATH="${TERMUX_PREFIX}/lib:/system/lib"
Expand Down