android / ndk

The Android Native Development Kit
2k stars 257 forks source link

[Bug]: Failure building [Actor-Framework](https://github.com/actor-framework/actor-framework) #2089

Closed sheldonrobinson closed 3 weeks ago

sheldonrobinson commented 3 weeks ago

Description

spsc_buffer-3ebb04.zip

Stack dump:
0.      Program arguments: C:\\Applications\\android-ndk-r27b\\toolchains\\llvm\\prebuilt\\windows-x86_64\\bin\\clang++.exe --target=aarch64-none-linux-android35 -DCAF_TEST_DATA_DIR=\"H:/Repositories/actor-framework/actor-framework/libcaf_core/tests/data\" -DCAF_TEST_SUITE_NAME=caf.async.spsc_buffer -IH:/Repositories/actor-framework/actor-framework/libcaf_test -IH:/Repositories/actor-framework/actor-framework/android-arm64/libcaf_test -IH:/Repositories/actor-framework/actor-framework/libcaf_core -IH:/Repositories/actor-framework/actor-framework/android-arm64/libcaf_core -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fexceptions -frtti -stdlib=libc++ -O3 -DNDEBUG -pthread -Wall -Wextra -pedantic -ftemplate-depth=512 -ftemplate-backtrace-limit=0 -Wdocumentation -Wno-deprecated-declarations -MD -MT libcaf_core/CMakeFiles/caf-core-test.dir/caf/async/spsc_buffer.test.cpp.o -MF libcaf_core\\CMakeFiles\\caf-core-test.dir\\caf\\async\\spsc_buffer.test.cpp.o.d -o libcaf_core/CMakeFiles/caf-core-test.dir/caf/async/spsc_buffer.test.cpp.o -c H:/Repositories/actor-framework/actor-framework/libcaf_core/caf/async/spsc_buffer.test.cpp
1.      <eof> parser at end of file
2.      H:/Repositories/actor-framework/actor-framework/libcaf_core/caf/flow/observable.hpp:658:55: instantiating function definition 'caf::flow::observable<int>::do_finally<(lambda at H:/Repositories/actor-framework/actor-framework/libcaf_core/caf/async/spsc_buffer.test.cpp:265:27)>'
Exception Code: 0xC0000005
 #0 0x00007ff7da260376 (C:\Applications\android-ndk-r27b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1560376)
 #1 0x00007ff7da261210 (C:\Applications\android-ndk-r27b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1561210)
 #2 0x00007ff7dbdc5981 (C:\Applications\android-ndk-r27b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x30c5981)
 #3 0x00007ff7dc0a0e79 (C:\Applications\android-ndk-r27b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x33a0e79)
 #4 0x00007ff7dc0a4e9e (C:\Applications\android-ndk-r27b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x33a4e9e)
 #5 0x00007ff7da63b252 (C:\Applications\android-ndk-r27b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x193b252)
 #6 0x00007ff7da63ba26 (C:\Applications\android-ndk-r27b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x193ba26)
 #7 0x00007ff7dda7d824 (C:\Applications\android-ndk-r27b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x4d7d824)
 #8 0x00007ff7dc4f36de (C:\Applications\android-ndk-r27b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x37f36de)
 #9 0x00007ff7da65916e (C:\Applications\android-ndk-r27b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x195916e)
#10 0x00007ff7d941d000 (C:\Applications\android-ndk-r27b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x71d000)
#11 0x00007ff7d94b3c05 (C:\Applications\android-ndk-r27b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x7b3c05)
#12 0x00007ff7d8e3e070 (C:\Applications\android-ndk-r27b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x13e070)
#13 0x00007ff7d8e3b180 (C:\Applications\android-ndk-r27b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x13b180)
#14 0x00007ff7da3da27d (C:\Applications\android-ndk-r27b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x16da27d)
#15 0x00007ff7d92faffd (C:\Applications\android-ndk-r27b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x5faffd)
#16 0x00007ff7da3d9ca5 (C:\Applications\android-ndk-r27b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x16d9ca5)
#17 0x00007ff7d93cc463 (C:\Applications\android-ndk-r27b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x6cc463)
#18 0x00007ff7d93ef96d (C:\Applications\android-ndk-r27b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x6ef96d)
#19 0x00007ff7d8e3a2e2 (C:\Applications\android-ndk-r27b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x13a2e2)
#20 0x00007ff7d8e4b027 (C:\Applications\android-ndk-r27b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x14b027)
#21 0x00007ff7d8d01395 (C:\Applications\android-ndk-r27b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1395)
#22 0x00007ff7d8d014c8 (C:\Applications\android-ndk-r27b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x14c8)
#23 0x00007fff450f257d (C:\WINDOWS\System32\KERNEL32.DLL+0x1257d)
#24 0x00007fff455aaf08 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x5af08)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
Android (12285214, based on r522817b) clang version 18.0.2 (https://android.googlesource.com/toolchain/llvm-project d8003a456d14a3deb8054cdaa529ffbf02d9b262)
Target: aarch64-none-linux-android35
Thread model: posix
InstalledDir: C:/Applications/android-ndk-r27b/toolchains/llvm/prebuilt/windows-x86_64/bin
clang++: note: diagnostic msg:
********************

Upstream bug

No response

Commit to cherry-pick

No response

Affected versions

r27

Canary version

No response

Host OS

Windows

Host OS version

Windows 11 Pro, build 22631.4249

Affected ABIs

arm64-v8a

DanAlbert commented 3 weeks ago

Did you accidentally file this twice, or am I overlooking some difference here? https://github.com/android/ndk/issues/2090

pirama-arumuga-nainar commented 3 weeks ago

I am not able to reproduce this (with the linux NDK or the windows NDK on linux over wine). The file compiles fine with 4607 warnings generated..

Any chance your machine is running out of memory when building this file? Closing assuming this is an issue with your workstation - please re-open if it reproduces more widely.