[SR-1836] Several test/Reflection tests fail on Android due to a linker error #44445
Labels
Android
Platform: Android
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
good first issue
Good for newcomers
Additional Detail from JIRA
md5: 1e33b0f1fb1aa59090ef0955a4dc2c95
Issue Description:
The following reflection tests fail when run against an Android target:
test/Reflection/box_descriptors.sil
test/Reflection/capture_descriptors.sil
test/Reflection/typeref_decoding.swift
test/Reflection/typeref_decoding_imported.swift
test/Reflection/typeref_lowering.swift
All of them use
swift-reflection-dump
, and all of them fail with the following message:I think these tests pass on Linux targets that use the gold linker. Perhaps we need to modify the
%target-swift-reflection-dump
substitution on Android?Prerequisites:
An Ubuntu 15.10 development environment capable of building Swift from source.
A physical Android device.
Helpful skills:
Familiarity with Python and llvm-lit would be helpful, but not strictly necessary.
Starting point:
Follow the instructions in docs/Android.md to build and run the test suite on a physical Android device. Confirm this test still fails.
Take a look at the
%target-swift-reflection-dump
substitution on Android: https://github.com/apple/swift/blob/add621a959f14107338e55d4bf14407d9b7848f4/test/lit.cfg#L952-L953 – maybe these need to be changed for Android? Or perhaps some other substitution in that file is passing bad linker flags?The text was updated successfully, but these errors were encountered: