-
Notifications
You must be signed in to change notification settings - Fork 37
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
[arm32][5.x] The Swift toolchain does not contain clang/libicu #60
Comments
Skipping SPM and specifying a "minimal" set of build options similar to
|
Note to self: Even the silly workaround of building without SPM using the command above, over an
because:
How come it links to But at least it's there:
All the variables related to libicu location seem to be in |
You probably already know this, but I believe the issue with libicudata is in the icu side, not swift. If I build just the icu project and then try
However, when libcuuc.so is built, icu's libicudata stub is already built and present in
|
I think I got it to build with --libicu. First, I modified Then I tried building without the --libicu modifier and I got the I tried again with --libicu, got the same error, copied libicuswift* to /usr/lib and:
This however did not solve the issues with Strings manipulation being really time expensive on 32bit as I hope it would (issue #63), so I guess it's a different issue altogether. |
If the library needs to be moved to /usr/lib to work, then something related to the RUNPATH is likely not correct somewhere. Because really all that moving files there does is put it in the LDPATH, but Swift is designed to rely on RUNPATH to make a self-contained tarball. I'd be very curious what you get from Because right now it looks the only paths for
So if libicudata is under some other path instead, it should be clearer what's going on at that point. |
The chrpath command returns:
|
The usual preset
buildbot_linux,no_test
does not work for arm32 right now, near the end of the process SPM complains that it can't find libicu (correct, it's not being copied over) when building the bootstrap SPM.The result of this is that Swift 5.x on armv6/armv7 still requires the clang and libicu dependencies, but depending on an old system version of clang or an obsolete release of libicu (e.g. on distributions derived from Stretch/Buster) leads to issues like #148.
The text was updated successfully, but these errors were encountered: