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

icu4c: add support for cross-compilation #6505

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from
Open

Conversation

Doekin
Copy link
Contributor

@Doekin Doekin commented Mar 3, 2025

No description provided.

@Doekin
Copy link
Contributor Author

Doekin commented Mar 3, 2025

I’m having trouble figuring out why icu4c fails to build for the following targets. Any help or suggestions would be greatly appreciated:

  • Android on Ubuntu with NDK r27 (fine with NDK r22)
  • MinGW on macOS

@Doekin
Copy link
Contributor Author

Doekin commented Mar 4, 2025

It seems that the Android CI with NDK r27 is missing the CXX environment variable, which is causing the C++ compiler to be unavailable. Here’s the relevant error message produced by the configure script:

checking if we have a C++ compiler... no
configure: error: C++ compiler c++ does not work or no compiler found

When using NDK r22, the environment variables are properly set:

{ 
  CXX = "/home/runner/work/xmake-repo/xmake-repo/android-ndk-r22/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++",
  ...
}

However, with NDK r27, the CXX variable appears to be missing from the environment:

{ 
  ASFLAGS = "--target=aarch64-none-linux-android30 ...",
  CC = "/home/runner/work/xmake-repo/xmake-repo/android-ndk-r27/toolchains/llvm/prebuilt/linux-x86_64/bin/clang",
  ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants