host-nodejs build error
Dear All,
i'm trying to build nodejs (with the current Buildroot master), and when icu is enabled, the build of host-nodejs fails with:
Quoted 9 lines
/home/zgyarmati/projects/buildroot-upstream/buildroot/output/build/host-nodejs-6.9.4/out/Release/obj.host/icutools/deps/icu-small/source/i18n/numfmt.o:
In function `icu_58::NumberFormat::format(icu_58::StringPiece const&,
icu_58::UnicodeString&, icu_58::FieldPositionIterator*, UErrorCode&)
const':
numfmt.cpp:(.text+0x14a2): undefined reference to
`icu_58::Formattable::setDecimalNumber(icu_58::StringPiece, UErrorCode&)' /home/zgyarmati/projects/buildroot-upstream/buildroot/output/build/host-nodejs-6.9.4/out/Release/obj.host/icutools/deps/icu-small/source/i18n/decimfmt.o:(.rodata._ZTVN6icu_5813DecimalFormatE[_ZTVN6icu_5813DecimalFormatE]+0x98):
undefined reference to
`icu_58::NumberFormat::format(icu_58::StringPiece,
Quoted 8 lines
icu_58::UnicodeString&, icu_58::FieldPositionIterator*, UErrorCode&)
const' /home/zgyarmati/projects/buildroot-upstream/buildroot/output/build/host-nodejs-6.9.4/out/Release/obj.host/icutools/deps/icu-small/source/i18n/rbnf.o:(.rodata._ZTVN6icu_5821RuleBasedNumberFormatE[_ZTVN6icu_5821RuleBasedNumberFormatE]+0x98):
undefined reference to
`icu_58::NumberFormat::format(icu_58::StringPiece,
icu_58::UnicodeString&, icu_58::FieldPositionIterator*, UErrorCode&)
const'
collect2: error: ld returned 1 exit status
It seems that the compiler picks up the previously built and installed host-icu version (which has the version 58.2 in Buildroot), but thetries to link to the small-icu bundled with nodejs source tree (which ships the icu version 57).
To reproduce the issue, just enable the icu and the nodejs packages and run a build.
Did anybody see this issue before? My guess now is that adding '--with-intl=none' to the host-node config flags would solve this (as according to my current understanding, the i18n support not actually used in the host nodejs), but i still have run a test build...
Thanks, regards
Signature · 11 lines
Zoltan Gyarmati https://zgyarmati.de -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 473 bytes Desc: OpenPGP digital signature URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170114/c9d3a637/attachment.asc>
Hi,
Quoted 26 lines · Zoltan Gyarmati
i'm trying to build nodejs (with the current Buildroot master), and when icu is enabled, the build of host-nodejs fails with:
Quoted 9 lines
/home/zgyarmati/projects/buildroot-upstream/buildroot/output/build/host-nodejs-6.9.4/out/Release/obj.host/icutools/deps/icu-small/source/i18n/numfmt.o:
In function `icu_58::NumberFormat::format(icu_58::StringPiece const&,
icu_58::UnicodeString&, icu_58::FieldPositionIterator*, UErrorCode&)
const':
numfmt.cpp:(.text+0x14a2): undefined reference to
`icu_58::Formattable::setDecimalNumber(icu_58::StringPiece, UErrorCode&)' /home/zgyarmati/projects/buildroot-upstream/buildroot/output/build/host-nodejs-6.9.4/out/Release/obj.host/icutools/deps/icu-small/source/i18n/decimfmt.o:(.rodata._ZTVN6icu_5813DecimalFormatE[_ZTVN6icu_5813DecimalFormatE]+0x98):
undefined reference to
`icu_58::NumberFormat::format(icu_58::StringPiece,Quoted 8 lines
icu_58::UnicodeString&, icu_58::FieldPositionIterator*, UErrorCode&)
const' /home/zgyarmati/projects/buildroot-upstream/buildroot/output/build/host-nodejs-6.9.4/out/Release/obj.host/icutools/deps/icu-small/source/i18n/rbnf.o:(.rodata._ZTVN6icu_5821RuleBasedNumberFormatE[_ZTVN6icu_5821RuleBasedNumberFormatE]+0x98):
undefined reference to
`icu_58::NumberFormat::format(icu_58::StringPiece,
icu_58::UnicodeString&, icu_58::FieldPositionIterator*, UErrorCode&)
const'
collect2: error: ld returned 1 exit statusIt seems that the compiler picks up the previously built and installed host-icu version (which has the version 58.2 in Buildroot), but thetries to link to the small-icu bundled with nodejs source tree (which ships the icu version 57).
Quoted 7 lines
To reproduce the issue, just enable the icu and the nodejs packages and run a build.
Did anybody see this issue before? My guess now is that adding '--with-intl=none' to the host-node config flags would solve this (as according to my current understanding, the i18n support not actually used in the host nodejs), but i still have run a test build...
I have the same issue, and fixed it in my local tree by dropping --shared-zlib from package/nodejs/nodejs.mk. I didn't post a patch yet because I don't really understand the root cause and I had no time yet to investigate.
[My rough guess was that this has to do with cyclic dependencies and the linker picking up the objects in the wrong order. After all, the object it complains about is present in the archive, and the removal of --shared-zlib fixes the issue by accident. But I might be wrong.]
Could you try if that helps your build as well?
Thanks,
Daniel
Dear Daniel & All,
Quoted 40 lines · Daniel Mack
Hi,
Quoted 25 lines · Zoltan Gyarmati
i'm trying to build nodejs (with the current Buildroot master), and when icu is enabled, the build of host-nodejs fails with:
Quoted 9 lines
/home/zgyarmati/projects/buildroot-upstream/buildroot/output/build/host-nodejs-6.9.4/out/Release/obj.host/icutools/deps/icu-small/source/i18n/numfmt.o:
In function `icu_58::NumberFormat::format(icu_58::StringPiece const&,
icu_58::UnicodeString&, icu_58::FieldPositionIterator*, UErrorCode&)
const':
numfmt.cpp:(.text+0x14a2): undefined reference to
`icu_58::Formattable::setDecimalNumber(icu_58::StringPiece, UErrorCode&)' /home/zgyarmati/projects/buildroot-upstream/buildroot/output/build/host-nodejs-6.9.4/out/Release/obj.host/icutools/deps/icu-small/source/i18n/decimfmt.o:(.rodata._ZTVN6icu_5813DecimalFormatE[_ZTVN6icu_5813DecimalFormatE]+0x98):
undefined reference to
`icu_58::NumberFormat::format(icu_58::StringPiece,Quoted 8 lines
icu_58::UnicodeString&, icu_58::FieldPositionIterator*, UErrorCode&)
const' /home/zgyarmati/projects/buildroot-upstream/buildroot/output/build/host-nodejs-6.9.4/out/Release/obj.host/icutools/deps/icu-small/source/i18n/rbnf.o:(.rodata._ZTVN6icu_5821RuleBasedNumberFormatE[_ZTVN6icu_5821RuleBasedNumberFormatE]+0x98):
undefined reference to
`icu_58::NumberFormat::format(icu_58::StringPiece,
icu_58::UnicodeString&, icu_58::FieldPositionIterator*, UErrorCode&)
const'
collect2: error: ld returned 1 exit statusIt seems that the compiler picks up the previously built and installed host-icu version (which has the version 58.2 in Buildroot), but thetries to link to the small-icu bundled with nodejs source tree (which ships the icu version 57).
Quoted 7 lines
To reproduce the issue, just enable the icu and the nodejs packages and run a build.
Did anybody see this issue before? My guess now is that adding '--with-intl=none' to the host-node config flags would solve this (as according to my current understanding, the i18n support not actually used in the host nodejs), but i still have run a test build...
I have the same issue, and fixed it in my local tree by dropping --shared-zlib from
package/nodejs/nodejs.mk. I didn't post a patch yet because I don't really understand the root cause and I had no time yet to investigate.
Quoted 6 lines
[My rough guess was that this has to do with cyclic dependencies and the linker picking up the objects in the wrong order. After all, the object it complains about is present in the archive, and the removal of --shared-zlib fixes the issue by accident. But I might be wrong.]
Could you try if that helps your build as well?
indeed, removing --shared-zlib fixes (or at least works around) the issue, but on the other hand with '--with-intl=none' the host-nodejs also builds properly.
Actually I think adding the '--with-intl=none' is a better solution (as it's explicitly targeting the issue and also saves some build time) unless we find a proof that the host-nodejs needs the i18n support. Could you please also test this on your build config?
Thx,
Zoltan Gyarmati
https://zgyarmati.de
Quoted 5 lines
Thanks,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170114/53e1f306/attachment.asc>
Hi,
Quoted 21 lines · Zoltan Gyarmati
Quoted 13 lines · Daniel Mack
Quoted 7 lines · Zoltan Gyarmati
i'm trying to build nodejs (with the current Buildroot master), and when icu is enabled, the build of host-nodejs fails with:
Did anybody see this issue before? My guess now is that adding '--with-intl=none' to the host-node config flags would solve this (as according to my current understanding, the i18n support not actually used in the host nodejs), but i still have run a test build...
I have the same issue, and fixed it in my local tree by dropping --shared-zlib from
package/nodejs/nodejs.mk. I didn't post a patch yet because I don't really understand the root cause and I had no time yet to investigate.Quoted 6 lines
[My rough guess was that this has to do with cyclic dependencies and the linker picking up the objects in the wrong order. After all, the object it complains about is present in the archive, and the removal of --shared-zlib fixes the issue by accident. But I might be wrong.]
Could you try if that helps your build as well?
Quoted 8 lines
indeed, removing --shared-zlib fixes (or at least works around) the issue, but on the other hand with '--with-intl=none' the host-nodejs also builds properly.
Actually I think adding the '--with-intl=none' is a better solution (as it's explicitly targeting the issue and also saves some build time) unless we find a proof that the host-nodejs needs the i18n support. Could you please also test this on your build config?
Yes, confirmed. This is another way of making the build succeed.
Do you want to provide a patch for that?
Thanks,
Daniel
Dear Daniel,
Quoted 31 lines · Daniel Mack
Hi,
Quoted 20 lines · Zoltan Gyarmati
Quoted 13 lines · Daniel Mack
Quoted 7 lines · Zoltan Gyarmati
i'm trying to build nodejs (with the current Buildroot master), and when icu is enabled, the build of host-nodejs fails with:
Did anybody see this issue before? My guess now is that adding '--with-intl=none' to the host-node config flags would solve this (as according to my current understanding, the i18n support not actually used in the host nodejs), but i still have run a test build...
I have the same issue, and fixed it in my local tree by dropping --shared-zlib from
package/nodejs/nodejs.mk. I didn't post a patch yet because I don't really understand the root cause and I had no time yet to investigate.Quoted 6 lines
[My rough guess was that this has to do with cyclic dependencies and the linker picking up the objects in the wrong order. After all, the object it complains about is present in the archive, and the removal of --shared-zlib fixes the issue by accident. But I might be wrong.]
Could you try if that helps your build as well?
Quoted 8 lines
indeed, removing --shared-zlib fixes (or at least works around) the issue, but on the other hand with '--with-intl=none' the host-nodejs also builds properly.
Actually I think adding the '--with-intl=none' is a better solution (as it's explicitly targeting the issue and also saves some build time) unless we find a proof that the host-nodejs needs the i18n support. Could you please also test this on your build config?
Quoted 9 lines
Yes, confirmed. This is another way of making the build succeed.
Do you want to provide a patch for that?
Thanks,
Daniel
thx for the feedback! Yes, i'm going to send a patch soon.
Regards
Zoltan Gyarmati
https://zgyarmati.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170114/3f79f2d9/attachment.asc>