Skip to content

Error when running swift-algorithmsPackageTests.xctest: "unknown reloc type 16" #175

@marcprux

Description

@marcprux

When building and running tests against swift-algorithms on an x86 host+emulator with the Swift 6.0 Android toolchain, I'm seeing the following warning and error:

WARNING: linker: /data/local/tmp/swift-android/swift-algorithms/swift-algorithmsPackageTests.xctest: unsupported flags DT_FLAGS_1=0x8000001
CANNOT LINK EXECUTABLE "/data/local/tmp/swift-android/swift-algorithms/swift-algorithmsPackageTests.xctest": unknown reloc type 16 @ 0x7e9b7e351e48 (16114)
Error: Error terminated(code: 134) running command: /Users/runner/Library/Android/sdk/platform-tools/adb shell /data/local/tmp/swift-android/swift-algorithms/swift-algorithmsPackageTests.xctest

This doesn't occur when running on an arm host+emulator (the tests all run and pass on my machine).

It's especially odd, since this package is passing tests on CI.

Is this something that termux-elf-cleaner might help with? I notice that we are using it in CI, but only for the swift-argument-parser tests and not any other packages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions