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

[SR-3488] C/C++ packages can't be built for Android #5144

Closed
swift-ci opened this issue Dec 26, 2016 · 2 comments
Closed

[SR-3488] C/C++ packages can't be built for Android #5144

swift-ci opened this issue Dec 26, 2016 · 2 comments
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-3488
Radar None
Original Reporter s1ddok (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate
Additional Detail from JIRA
Votes 0
Component/s Compiler, Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 7047b75edb200c5fe3d98beb79cdfad6

duplicates:

Issue Description:

While experimenting with Android and Swift, it appears that C/C++ packages can't be built for Android.

Crash log looks like this:

/usr/bin/ld: skipping incompatible 3rdparty/bgfx/.build/android-arm/bin/libbgfxDebug.a when searching for -lbgfxDebug
/usr/bin/ld: cannot find -lbgfxDebug
/usr/bin/ld: cannot find -lc++
/usr/bin/ld: skipping incompatible /usr/local/lib/swift/android//libdispatch.so when searching for -ldispatch
/usr/bin/ld: cannot find -ldispatch
/usr/bin/ld: skipping incompatible /home/s1ddok/Documents/swift/build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation//libFoundation.so when searching for -lFoundation
/usr/bin/ld: cannot find -lFoundation
/usr/bin/ld: cannot find -lc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)/usr/bin/ld: skipping incompatible 3rdparty/bgfx/.build/android-arm/bin/libbgfxDebug.a when searching for -lbgfxDebug
/usr/bin/ld: cannot find -lbgfxDebug
/usr/bin/ld: cannot find -lc++
/usr/bin/ld: skipping incompatible /usr/local/lib/swift/android//libdispatch.so when searching for -ldispatch
/usr/bin/ld: cannot find -ldispatch
/usr/bin/ld: skipping incompatible /home/s1ddok/Documents/swift/build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation//libFoundation.so when searching for -lFoundation
/usr/bin/ld: cannot find -lFoundation
/usr/bin/ld: cannot find -lc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)

So it appears like C/C++ packages are built for different architecture and linked with the wrong linker.

@belkadan
Copy link

belkadan commented Jan 6, 2017

You're going to need to show more about your setup to do anything with this, but Android is not currently a supported platform. Cross-compiling isn't even officially supported (outside of the Apple platforms).

@ankitspd
Copy link
Member

Duping to build settings.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants