Skip to content

[Bug]: NDK r29: hangs forever when compiling file with -O3 on arm #2215

Closed

Description

@licy183

Description

Compiling the following file with the following command will make clang hang forever.

~/lib/android-ndk-r29/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang -DMLIB_HAVE_STRINGS_H -DMLIB_USER -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mthumb -fstack-protector-strong -O3 -DNDEBUG -std=gnu99 -fPIE -Werror=implicit -Werror=return-type -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=ignored-qualifiers -Werror=uninitialized -o path.test.c.o -c path.test.c

path.test.c.zip

Upstream bug

No response

Commit to cherry-pick

No response

I am using a supported NDK

  • I have checked and the NDK I'm using is currently supported

Affected versions

r29

Host OS

Linux

Host OS version

Ubuntu 24.04.3

Affected ABIs

armeabi-v7a

Activity

  1. moved this to Awaiting triage in LLVMon Dec 1, 2025
  2. Sharjeel-Khan commented on Apr 8, 2026

    @Sharjeel-Khan
    Collaborator

    I cherrypicked the fix into r30 so it should be in beta 2

  3. moved this from Unconfirmed to Needs prebuilt update in NDK r30on May 29, 2026
  4. moved this from Unconfirmed to Needs prebuilt update in NDK r31on May 29, 2026
  5. Sharjeel-Khan commented on Jul 8, 2026

    @Sharjeel-Khan
    Collaborator

    NDK r30 Beta 2 has released and has this commit cherrypicked in it so I am closing the bug.

  6. moved this from Needs prebuilt update to Merged in NDK r30on Jul 8, 2026
  7. moved this from Needs prebuilt update to Merged in NDK r31on Jul 8, 2026
  8. moved this from Unconfirmed to Merged in NDK r29bon Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

  • Status
    Awaiting triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions