-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
ICU 55 and 57 on Gentoo Linux say: 'ucol_setVariableTop' is deprecated #5914
Comments
@jasonwilliams200OK I just looked at the place where we're calling If that symbol does exist and we're still calling |
@adityamandaleeka, seems like that's the case.
I tried using
|
/cc @ellismg |
With this temporary 1-liner patch: --- a/src/corefx/System.Globalization.Native/config.h.in
+++ b/src/corefx/System.Globalization.Native/config.h.in
@@ -1,4 +1,4 @@
#pragma once
#cmakedefine01 HAVE_UDAT_STANDALONE_SHORTER_WEEKDAYS
-#cmakedefine01 HAVE_SET_MAX_VARIABLE
+#define HAVE_SET_MAX_VARIABLE 1 I have successfully built CoreCLR current master (5c00a5f) on Gentoo 4.2.0-27-generic. |
The issue was the symbol is exported by the ICU lib. Including headers was not enough. The linker requires the libraries to succeed. With this fix, CoreCLR successfully builds on Gentoo Linux 100%. Tested with LXC gentoo container on Ubuntu machine. Steps to configure and build: https://gist.github.com/jasonwilliams200OK/1a2e2c0e904ffa95faf6333fcd88d9b8 Fix #5160
Might have been fixed for Gentoo, but FreeBSD 11 has the same problem. Trying to build the latest master branch of CoreCLR with LLVM 3.7. |
@Const-me my guess is that we are probably missing a library in the CMAKE_REQUIRED_LIBRARIES for the HAVE_SET_MAX_VARIABLE detection. Could you please share the whole CMakeError.log? |
Sure. Here's the logs from both 11 and 12. |
@ellismg,
I setup Gentoo LXC container on Ubuntu. The step-by-step guide to setup Gentoo and repro this issue (from scratch to start building CoreCLR) is documented in this gist (updated this guide with additional steps to build CoreFX native).
Failure Message:
Official documentation suggests the same thing:
http://icu-project.org/apiref/icu4c/ucol_8h.html#a0e9c28a8b8b88890722daca111207688
(
ucol_setMaxVariable()
is stable sinceICU 53
)My understand is the decision was made based on this proposal: https://sourceforge.net/p/icu/mailman/message/29538820/.
The text was updated successfully, but these errors were encountered: