-
Notifications
You must be signed in to change notification settings - Fork 29.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
node5: unable to build with '--with-intl=system-icu' #3801
Comments
/cc @nodejs/intl |
@jelmd can you tell me more about your environment? I tried both
|
Im Building the stuff on solaris 11. The output is
Not sure, why this is broken - build works with --with-intl=none. I do not know, what "pseudo-intelligence" is going on there. I don't even know, why this strange tool does such strange things. Isn't there a debug switch, where one can see, what strange thing it is trying todo/expects? |
@jelmd what about How is ICU installed on this platform? I notice it says
I don't follow you, sorry. No pseudo-intelligence here, but if there's a human-induced bug let's try to squash it. |
Never tried with small-icu, because IMHO it doesn't make much sense - just implies more maintenance nightmares. The ICU libs and includes are put as needed into DESTDIR=/export/scratch/build/root4build/ . Pseudo-intelligence in the sense of black box, which does something, but no one can tell what, why, how and what the expected results are. E.g. I have no clue, what "hostarch ia32" implies or how this stuff deduces this value. As almost all modern *x, Solaris is able to execute 32 as well as 64bit binaries - nothing special here. Finally it makes me a little bit nervous, that no-one seems to be able to explain "gyp: Dependency '/export/scratch/build/node-v5.0.0/tools/icu/icu-system.gyp:icui18n#host' not found while trying to load target /export/scratch/build/node-v5.0.0/deps/v8/tools/gyp/v8.gyp:v8_base#host". Another incarnation of autotools but this time even without any logs? |
Could you try it for comparison? What is your exact Can you try replacing
As to your answer to how to debug |
Yepp, haven't found any useful stuff wrt. gyp either - everything was superficial stuff, only. Anyway, tried small-icu: beside that it takes "hours" to download it, it finally works. After that I tried with your icu-system.gyp from above as well and heureka: it works like a charm :-) ! Thank you very much!!! |
Shouldn't take hours— it's sourceforge mirrors. Anyway— welcome! I'll open a PR. |
* add toolset stuff to icu-system.gyp * update docs Fixes: nodejs#3801
* add toolset stuff to icu-system.gyp * update docs Fixes: #3801 PR-URL: #3808 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]>
* add toolset stuff to icu-system.gyp * update docs Fixes: #3801 PR-URL: #3808 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]>
* add toolset stuff to icu-system.gyp * update docs Fixes: #3801 PR-URL: #3808 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]>
* add toolset stuff to icu-system.gyp * update docs Fixes: #3801 PR-URL: #3808 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]>
* add toolset stuff to icu-system.gyp * update docs Fixes: #3801 PR-URL: #3808 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]>
I tried to build node v20.10.0 with
|
Do you have the file icu-i18n.pc ? Is it on PKG_CONFIG_PATH ? |
I am using windows, pkg-config and libicu-dev is not available. I found windows 10/11 is bundled with a ms version of icu. But I don't know how to config the path of ic in config script. |
I think you should file a new issue and link it here.
The headers to compile against that ICU must be available. macOS also has an ICU but does not provide headers. system-icu is there for the situation where your system provides an ICU that you can compile against. This is the case with Linux for example, and it is also the case on macos when you install icu via brew.sh. I found this but I have not used it: It looks like the files have different names. node.js will expect the header files to be named the same way as with usual ICU. perhaps if you create a custom .pc file you can make the build happen this way. |
When I try to build node5 '--with-intl=system-icu' it fails with an obscure message shown below - any hints how to fix it?
The text was updated successfully, but these errors were encountered: