ICU Problems

1,403 views
Skip to first unread message

Jason Josephy

unread,
May 16, 2015, 12:31:56 AM5/16/15
to v8-u...@googlegroups.com
Hi - I am trying to build a V8 c++ app in eclipse and i am unable to link to ICU. I get hundred of unresolved errors all relating to ICU. Im pretty sure that this is a problem with Eclipse more than anything but i was curious if anyone had run into this and if they had a solution. 


Jason Josephy

unread,
May 16, 2015, 12:46:41 AM5/16/15
to v8-u...@googlegroups.com
So it turns out this is not just eclipse related. i cannot build at all due to unresolved externals in ICU. Seems like something simple is broken. Any advice on how to enable ICU? 

Jason Josephy

unread,
May 16, 2015, 12:50:06 AM5/16/15
to v8-u...@googlegroups.com
Here is the build cmds and output - a;; related to ICU. seems like something simple is broken.

g++ -I /usr/local/include/node tibcoasync.cpp -o ticbo -Wl,--start-group /home/jjosephy/Source/v8/out/x64.debug/obj.target/tools/gyp/libv8_base.a /home/jjosephy/Source/v8/out/x64.debug/obj.target/tools/gyp/libv8_libbase.a  /home/jjosephy/Source/v8/out/x64.debug/obj.target/tools/gyp/libv8_snapshot.a /home/jjosephy/Source/v8/out/x64.debug/obj.target/tools/gyp/libv8_libplatform.a -Wl,--end-group -lrt -pthread 

/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/char-predicates.o: In function `v8::internal::SupplementaryPlanes::IsIDStart(int)':
/home/jjosephy/Source/v8/out/../src/char-predicates.cc:21: undefined reference to `u_isIDStart_54'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/char-predicates.o: In function `v8::internal::SupplementaryPlanes::IsIDPart(int)':
/home/jjosephy/Source/v8/out/../src/char-predicates.cc:35: undefined reference to `u_isIDPart_54'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/runtime/runtime-i18n.o: In function `v8::internal::__RT_impl_Runtime_CanonicalizeLanguageTag(v8::internal::Arguments, v8::internal::Isolate*)':
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:57: undefined reference to `uloc_forLanguageTag_54'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:66: undefined reference to `uloc_toLanguageTag_54'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/runtime/runtime-i18n.o: In function `v8::internal::__RT_impl_Runtime_AvailableLocalesOf(v8::internal::Arguments, v8::internal::Isolate*)':
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:87: undefined reference to `icu_54::Collator::getAvailableLocales(int&)'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:89: undefined reference to `icu_54::NumberFormat::getAvailableLocales(int&)'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:91: undefined reference to `icu_54::DateFormat::getAvailableLocales(int&)'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:93: undefined reference to `icu_54::BreakIterator::getAvailableLocales(int&)'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:105: undefined reference to `uloc_toLanguageTag_54'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/runtime/runtime-i18n.o: In function `v8::internal::__RT_impl_Runtime_GetDefaultICULocale(v8::internal::Arguments, v8::internal::Isolate*)':
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:127: undefined reference to `icu_54::Locale::Locale()'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:132: undefined reference to `uloc_toLanguageTag_54'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:139: undefined reference to `icu_54::Locale::~Locale()'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/runtime/runtime-i18n.o: In function `v8::internal::__RT_impl_Runtime_GetLanguageTagVariants(v8::internal::Arguments, v8::internal::Isolate*)':
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:174: undefined reference to `uloc_forLanguageTag_54'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:183: undefined reference to `uloc_addLikelySubtags_54'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:189: undefined reference to `uloc_getBaseName_54'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:195: undefined reference to `uloc_getBaseName_54'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:201: undefined reference to `uloc_toLanguageTag_54'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:206: undefined reference to `uloc_toLanguageTag_54'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/runtime/runtime-i18n.o: In function `v8::internal::__RT_impl_Runtime_InternalDateFormat(v8::internal::Arguments, v8::internal::Isolate*)':
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:361: undefined reference to `icu_54::DateFormat::format(double, icu_54::UnicodeString&) const'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:370: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/runtime/runtime-i18n.o: In function `v8::internal::__RT_impl_Runtime_InternalDateParse(v8::internal::Arguments, v8::internal::Isolate*)':
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:382: undefined reference to `icu_54::StringPiece::StringPiece(char const*)'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:382: undefined reference to `icu_54::UnicodeString::fromUTF8(icu_54::StringPiece const&)'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:396: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/runtime/runtime-i18n.o: In function `v8::internal::__RT_impl_Runtime_InternalNumberFormat(v8::internal::Arguments, v8::internal::Isolate*)':
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:455: undefined reference to `icu_54::NumberFormat::format(double, icu_54::UnicodeString&) const'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:464: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/runtime/runtime-i18n.o: In function `v8::internal::__RT_impl_Runtime_InternalNumberParse(v8::internal::Arguments, v8::internal::Isolate*)':
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:476: undefined reference to `icu_54::StringPiece::StringPiece(char const*)'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:476: undefined reference to `icu_54::UnicodeString::fromUTF8(icu_54::StringPiece const&)'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:482: undefined reference to `icu_54::Formattable::Formattable()'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:492: undefined reference to `icu_54::Formattable::getType() const'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:503: undefined reference to `icu_54::Formattable::~Formattable()'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:503: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/runtime/runtime-i18n.o: In function `v8::internal::__RT_impl_Runtime_StringNormalize(v8::internal::Arguments, v8::internal::Isolate*)':
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:587: undefined reference to `icu_54::UnicodeString::UnicodeString(unsigned short const*)'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:587: undefined reference to `icu_54::Normalizer::normalize(icu_54::UnicodeString const&, UNormalizationMode, int, icu_54::UnicodeString&, UErrorCode&)'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:587: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:600: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/runtime/runtime-i18n.o: In function `v8::internal::__RT_impl_Runtime_BreakIteratorAdoptText(v8::internal::Arguments, v8::internal::Isolate*)':
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:663: undefined reference to `icu_54::UMemory::operator new(unsigned long)'
/home/jjosephy/Source/v8/out/../src/runtime/runtime-i18n.cc:663: undefined reference to `icu_54::UnicodeString::UnicodeString(unsigned short const*, int)'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/runtime/runtime-i18n.o: In function `UnicodeString':
/home/jjosephy/Source/v8/out/../third_party/icu/source/common/unicode/unistr.h:3611: undefined reference to `vtable for icu_54::UnicodeString'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/runtime/runtime-i18n.o: In function `Replaceable':
/home/jjosephy/Source/v8/out/../third_party/icu/source/common/unicode/rep.h:240: undefined reference to `vtable for icu_54::Replaceable'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/runtime/runtime-i18n.o: In function `UObject':
/home/jjosephy/Source/v8/out/../third_party/icu/source/common/unicode/uobject.h:221: undefined reference to `vtable for icu_54::UObject'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/i18n.o: In function `v8::internal::DateFormat::InitializeDateTimeFormat(v8::internal::Isolate*, v8::internal::Handle<v8::internal::String>, v8::internal::Handle<v8::internal::JSObject>, v8::internal::Handle<v8::internal::JSObject>)':
/home/jjosephy/Source/v8/out/../src/i18n.cc:687: undefined reference to `icu_54::Locale::Locale()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:692: undefined reference to `uloc_forLanguageTag_54'
/home/jjosephy/Source/v8/out/../src/i18n.cc:697: undefined reference to `icu_54::Locale::Locale(char const*, char const*, char const*, char const*)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:697: undefined reference to `icu_54::Locale::operator=(icu_54::Locale const&)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:697: undefined reference to `icu_54::Locale::~Locale()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:704: undefined reference to `icu_54::Locale::getBaseName() const'
/home/jjosephy/Source/v8/out/../src/i18n.cc:704: undefined reference to `icu_54::Locale::Locale(char const*, char const*, char const*, char const*)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:714: undefined reference to `icu_54::Locale::~Locale()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:719: undefined reference to `icu_54::Locale::~Locale()'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/i18n.o: In function `v8::internal::(anonymous namespace)::CreateICUDateFormat(v8::internal::Isolate*, icu_54::Locale const&, v8::internal::Handle<v8::internal::JSObject>)':
/home/jjosephy/Source/v8/out/../src/i18n.cc:86: undefined reference to `icu_54::TimeZone::createTimeZone(icu_54::UnicodeString const&)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:88: undefined reference to `icu_54::TimeZone::createDefault()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:94: undefined reference to `icu_54::Calendar::createInstance(icu_54::TimeZone*, icu_54::Locale const&, UErrorCode&)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:102: undefined reference to `icu_54::DateTimePatternGenerator::createInstance(icu_54::Locale const&, UErrorCode&)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:105: undefined reference to `icu_54::DateTimePatternGenerator::getBestPattern(icu_54::UnicodeString const&, UErrorCode&)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:105: undefined reference to `icu_54::UnicodeString::operator=(icu_54::UnicodeString const&)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:105: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:109: undefined reference to `icu_54::UMemory::operator new(unsigned long)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:109: undefined reference to `icu_54::SimpleDateFormat::SimpleDateFormat(icu_54::UnicodeString const&, icu_54::Locale const&, UErrorCode&)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:113: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:122: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:122: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/i18n.o: In function `v8::internal::(anonymous namespace)::SetResolvedDateSettings(v8::internal::Isolate*, icu_54::Locale const&, icu_54::SimpleDateFormat*, v8::internal::Handle<v8::internal::JSObject>)':
/home/jjosephy/Source/v8/out/../src/i18n.cc:148: undefined reference to `icu_54::Calendar::getTimeZone() const'
/home/jjosephy/Source/v8/out/../src/i18n.cc:153: undefined reference to `icu_54::TimeZone::getCanonicalID(icu_54::UnicodeString const&, icu_54::UnicodeString&, UErrorCode&)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:155: undefined reference to `icu_54::UnicodeString::UnicodeString(signed char, unsigned short const*, int)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:155: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:176: undefined reference to `icu_54::NumberingSystem::createInstance(icu_54::Locale const&, UErrorCode&)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:178: undefined reference to `icu_54::NumberingSystem::getName() const'
/home/jjosephy/Source/v8/out/../src/i18n.cc:192: undefined reference to `uloc_toLanguageTag_54'
/home/jjosephy/Source/v8/out/../src/i18n.cc:204: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:204: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:204: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/i18n.o: In function `v8::internal::NumberFormat::InitializeNumberFormat(v8::internal::Isolate*, v8::internal::Handle<v8::internal::String>, v8::internal::Handle<v8::internal::JSObject>, v8::internal::Handle<v8::internal::JSObject>)':
/home/jjosephy/Source/v8/out/../src/i18n.cc:766: undefined reference to `icu_54::Locale::Locale()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:771: undefined reference to `uloc_forLanguageTag_54'
/home/jjosephy/Source/v8/out/../src/i18n.cc:776: undefined reference to `icu_54::Locale::Locale(char const*, char const*, char const*, char const*)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:776: undefined reference to `icu_54::Locale::operator=(icu_54::Locale const&)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:776: undefined reference to `icu_54::Locale::~Locale()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:783: undefined reference to `icu_54::Locale::getBaseName() const'
/home/jjosephy/Source/v8/out/../src/i18n.cc:783: undefined reference to `icu_54::Locale::Locale(char const*, char const*, char const*, char const*)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:794: undefined reference to `icu_54::Locale::~Locale()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:799: undefined reference to `icu_54::Locale::~Locale()'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/i18n.o: In function `v8::internal::(anonymous namespace)::CreateICUNumberFormat(v8::internal::Isolate*, icu_54::Locale const&, v8::internal::Handle<v8::internal::JSObject>)':
/home/jjosephy/Source/v8/out/../src/i18n.cc:235: undefined reference to `icu_54::UnicodeString::UnicodeString(signed char, unsigned short const*, int)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:235: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:251: undefined reference to `icu_54::UnicodeString::UnicodeString(signed char, unsigned short const*, int)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:251: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:253: undefined reference to `icu_54::UnicodeString::UnicodeString(signed char, unsigned short const*, int)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:253: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:261: undefined reference to `icu_54::NumberFormat::createInstance(icu_54::Locale const&, UNumberFormatStyle, UErrorCode&)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:262: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:262: undefined reference to `icu_54::UnicodeString::UnicodeString(signed char, unsigned short const*, int)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:262: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:264: undefined reference to `icu_54::NumberFormat::createPercentInstance(icu_54::Locale const&, UErrorCode&)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:274: undefined reference to `icu_54::NumberFormat::createInstance(icu_54::Locale const&, UErrorCode&)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:307: undefined reference to `icu_54::DecimalFormat::setMinimumSignificantDigits(int)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:313: undefined reference to `icu_54::DecimalFormat::setMaximumSignificantDigits(int)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:317: undefined reference to `icu_54::DecimalFormat::setSignificantDigitsUsed(signed char)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:328: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:328: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/i18n.o: In function `v8::internal::(anonymous namespace)::SetResolvedNumberSettings(v8::internal::Isolate*, icu_54::Locale const&, icu_54::DecimalFormat*, v8::internal::Handle<v8::internal::JSObject>)':
/home/jjosephy/Source/v8/out/../src/i18n.cc:347: undefined reference to `icu_54::NumberFormat::getCurrency() const'
/home/jjosephy/Source/v8/out/../src/i18n.cc:347: undefined reference to `icu_54::UnicodeString::UnicodeString(unsigned short const*)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:363: undefined reference to `icu_54::NumberingSystem::createInstance(icu_54::Locale const&, UErrorCode&)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:365: undefined reference to `icu_54::NumberingSystem::getName() const'
/home/jjosephy/Source/v8/out/../src/i18n.cc:378: undefined reference to `icu_54::NumberFormat::isGroupingUsed() const'
/home/jjosephy/Source/v8/out/../src/i18n.cc:382: undefined reference to `icu_54::NumberFormat::getMinimumIntegerDigits() const'
/home/jjosephy/Source/v8/out/../src/i18n.cc:387: undefined reference to `icu_54::NumberFormat::getMinimumFractionDigits() const'
/home/jjosephy/Source/v8/out/../src/i18n.cc:392: undefined reference to `icu_54::NumberFormat::getMaximumFractionDigits() const'
/home/jjosephy/Source/v8/out/../src/i18n.cc:402: undefined reference to `icu_54::DecimalFormat::getMinimumSignificantDigits() const'
/home/jjosephy/Source/v8/out/../src/i18n.cc:412: undefined reference to `icu_54::DecimalFormat::getMaximumSignificantDigits() const'
/home/jjosephy/Source/v8/out/../src/i18n.cc:419: undefined reference to `uloc_toLanguageTag_54'
/home/jjosephy/Source/v8/out/../src/i18n.cc:431: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:431: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/i18n.o: In function `v8::internal::Collator::InitializeCollator(v8::internal::Isolate*, v8::internal::Handle<v8::internal::String>, v8::internal::Handle<v8::internal::JSObject>, v8::internal::Handle<v8::internal::JSObject>)':
/home/jjosephy/Source/v8/out/../src/i18n.cc:831: undefined reference to `icu_54::Locale::Locale()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:836: undefined reference to `uloc_forLanguageTag_54'
/home/jjosephy/Source/v8/out/../src/i18n.cc:841: undefined reference to `icu_54::Locale::Locale(char const*, char const*, char const*, char const*)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:841: undefined reference to `icu_54::Locale::operator=(icu_54::Locale const&)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:841: undefined reference to `icu_54::Locale::~Locale()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:847: undefined reference to `icu_54::Locale::getBaseName() const'
/home/jjosephy/Source/v8/out/../src/i18n.cc:847: undefined reference to `icu_54::Locale::Locale(char const*, char const*, char const*, char const*)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:857: undefined reference to `icu_54::Locale::~Locale()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:862: undefined reference to `icu_54::Locale::~Locale()'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/i18n.o: In function `v8::internal::(anonymous namespace)::CreateICUCollator(v8::internal::Isolate*, icu_54::Locale const&, v8::internal::Handle<v8::internal::JSObject>)':
/home/jjosephy/Source/v8/out/../src/i18n.cc:441: undefined reference to `icu_54::Collator::createInstance(icu_54::Locale const&, UErrorCode&)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:462: undefined reference to `icu_54::UnicodeString::UnicodeString(signed char, unsigned short const*, int)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:462: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:464: undefined reference to `icu_54::UnicodeString::UnicodeString(signed char, unsigned short const*, int)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:464: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:474: undefined reference to `icu_54::UnicodeString::UnicodeString(signed char, unsigned short const*, int)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:474: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:476: undefined reference to `icu_54::UnicodeString::UnicodeString(signed char, unsigned short const*, int)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:476: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:478: undefined reference to `icu_54::UnicodeString::UnicodeString(signed char, unsigned short const*, int)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:478: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:495: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:495: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/i18n.o: In function `v8::internal::(anonymous namespace)::SetResolvedCollatorSettings(v8::internal::Isolate*, icu_54::Locale const&, icu_54::Collator*, v8::internal::Handle<v8::internal::JSObject>)':
/home/jjosephy/Source/v8/out/../src/i18n.cc:590: undefined reference to `uloc_toLanguageTag_54'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/i18n.o: In function `v8::internal::BreakIterator::InitializeBreakIterator(v8::internal::Isolate*, v8::internal::Handle<v8::internal::String>, v8::internal::Handle<v8::internal::JSObject>, v8::internal::Handle<v8::internal::JSObject>)':
/home/jjosephy/Source/v8/out/../src/i18n.cc:892: undefined reference to `icu_54::Locale::Locale()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:897: undefined reference to `uloc_forLanguageTag_54'
/home/jjosephy/Source/v8/out/../src/i18n.cc:902: undefined reference to `icu_54::Locale::Locale(char const*, char const*, char const*, char const*)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:902: undefined reference to `icu_54::Locale::operator=(icu_54::Locale const&)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:902: undefined reference to `icu_54::Locale::~Locale()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:909: undefined reference to `icu_54::Locale::getBaseName() const'
/home/jjosephy/Source/v8/out/../src/i18n.cc:909: undefined reference to `icu_54::Locale::Locale(char const*, char const*, char const*, char const*)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:920: undefined reference to `icu_54::Locale::~Locale()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:926: undefined reference to `icu_54::Locale::~Locale()'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/i18n.o: In function `v8::internal::(anonymous namespace)::CreateICUBreakIterator(v8::internal::Isolate*, icu_54::Locale const&, v8::internal::Handle<v8::internal::JSObject>)':
/home/jjosephy/Source/v8/out/../src/i18n.cc:614: undefined reference to `icu_54::UnicodeString::UnicodeString(signed char, unsigned short const*, int)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:614: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:616: undefined reference to `icu_54::BreakIterator::createCharacterInstance(icu_54::Locale const&, UErrorCode&)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:617: undefined reference to `icu_54::UnicodeString::UnicodeString(signed char, unsigned short const*, int)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:617: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:619: undefined reference to `icu_54::BreakIterator::createSentenceInstance(icu_54::Locale const&, UErrorCode&)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:620: undefined reference to `icu_54::UnicodeString::UnicodeString(signed char, unsigned short const*, int)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:620: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/../src/i18n.cc:622: undefined reference to `icu_54::BreakIterator::createLineInstance(icu_54::Locale const&, UErrorCode&)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:626: undefined reference to `icu_54::BreakIterator::createWordInstance(icu_54::Locale const&, UErrorCode&)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:637: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/i18n.o: In function `v8::internal::(anonymous namespace)::SetResolvedBreakIteratorSettings(v8::internal::Isolate*, icu_54::Locale const&, icu_54::BreakIterator*, v8::internal::Handle<v8::internal::JSObject>)':
/home/jjosephy/Source/v8/out/../src/i18n.cc:650: undefined reference to `uloc_toLanguageTag_54'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/i18n.o: In function `v8::internal::(anonymous namespace)::ExtractStringSetting(v8::internal::Isolate*, v8::internal::Handle<v8::internal::JSObject>, char const*, icu_54::UnicodeString*)':
/home/jjosephy/Source/v8/out/../src/i18n.cc:42: undefined reference to `icu_54::StringPiece::StringPiece(char const*)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:42: undefined reference to `icu_54::UnicodeString::fromUTF8(icu_54::StringPiece const&)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:42: undefined reference to `icu_54::UnicodeString::operator=(icu_54::UnicodeString const&)'
/home/jjosephy/Source/v8/out/../src/i18n.cc:42: undefined reference to `icu_54::UnicodeString::~UnicodeString()'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/i18n.o: In function `icu_54::TimeZone::getID(icu_54::UnicodeString&) const':
/home/jjosephy/Source/v8/out/../third_party/icu/source/i18n/unicode/timezone.h:949: undefined reference to `icu_54::UnicodeString::operator=(icu_54::UnicodeString const&)'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_base/src/i18n.o: In function `icu_54::UnicodeString::operator==(icu_54::UnicodeString const&) const':
/home/jjosephy/Source/v8/out/../third_party/icu/source/common/unicode/unistr.h:3683: undefined reference to `icu_54::UnicodeString::doEquals(icu_54::UnicodeString const&, int) const'
/home/jjosephy/Source/v8/out/x64.debug/obj.target/v8_libbase/src/base/logging.o: In function `v8::base::DumpBacktrace()':
/home/jjosephy/Source/v8/out/../src/base/logging.cc:66: undefined reference to `dladdr'


On Friday, May 15, 2015 at 9:31:56 PM UTC-7, Jason Josephy wrote:

Louis Santillan

unread,
May 16, 2015, 5:27:22 AM5/16/15
to v8-u...@googlegroups.com
So you followed my previous instructions only partly and probably
didn't read any of the documentation I linked to [0].

If you built V8 with i18n (aka ICU) on, then you need to link it as well.

g++ -I /usr/local/include/node tibcoasync.cpp -o ticbo
-Wl,--start-group
out/x64.release/obj.target/{tools/gyp/libv8_{base,libbase,snapshot,libplatform},third_party/icu/libicu{uc,i18n,data}}.a
-Wl,--end-group -lrt -pthread

However, it appears you're looking to write a node addon/extension, so
you ought to be following their docs [1].

[0] https://developers.google.com/v8/get_started#hello
[1] https://nodejs.org/api/addons.html

On Fri, May 15, 2015 at 9:50 PM, Jason Josephy <jjos...@gmail.com> wrote:
> Here is the build cmds and output - a;; related to ICU. seems like something
> simple is broken.
>
> g++ -I /usr/local/include/node tibcoasync.cpp -o ticbo -Wl,--start-group
> /home/jjosephy/Source/v8/out/x64.debug/obj.target/tools/gyp/libv8_base.a
> /home/jjosephy/Source/v8/out/x64.debug/obj.target/tools/gyp/libv8_libbase.a
> /home/jjosephy/Source/v8/out/x64.debug/obj.target/tools/gyp/libv8_snapshot.a
> /home/jjosephy/Source/v8/out/x64.debug/obj.target/tools/gyp/libv8_libplatform.a
> -Wl,--end-group -lrt -pthread
>
[SNIP]

Jason Josephy

unread,
May 16, 2015, 10:44:08 PM5/16/15
to v8-u...@googlegroups.com
yes i did miss the note about turning off i18n support so went back and redid everything and followed all the docs so now i get past the link problem but the samples wont build: 

In file included from hello_world.cpp:1:0:
include/v8.h:336:1: error: expected unqualified-id before ‘using’
 using Handle = Local<T>;
 ^
include/v8.h: In constructor ‘v8::MaybeLocal<T>::MaybeLocal()’:
include/v8.h:352:33: error: ‘nullptr’ was not declared in this scope
   V8_INLINE MaybeLocal() : val_(nullptr) {}
                                 ^
include/v8.h: In member function ‘bool v8::MaybeLocal<T>::IsEmpty() const’:
include/v8.h:359:51: error: ‘nullptr’ was not declared in this scope
   V8_INLINE bool IsEmpty() const { return val_ == nullptr; }
                                                   ^
include/v8.h: In member function ‘bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const’:
include/v8.h:363:29: error: ‘nullptr’ was not declared in this scope
     out->val_ = IsEmpty() ? nullptr : this->val_;
                             ^
include/v8.h: In member function ‘bool v8::WeakCallbackInfo<T>::IsFirstPass() const’:
include/v8.h:429:50: error: ‘nullptr’ was not declared in this scope
   bool IsFirstPass() const { return callback_ != nullptr; }
                                                  ^
include/v8.h: At global scope:
include/v8.h:468:1: error: expected unqualified-id before ‘using’
 using PhantomCallbackData = WeakCallbackInfo<T>;
 ^
include/v8.h:471:1: warning: scoped enums only available with -std=c++11 or -std=gnu++11 [enabled by default]
 enum class WeakCallbackType { kParameter, kInternalFields };
 ^
include/v8.h:499:48: error: ‘Handle’ does not name a type
   V8_INLINE void Reset(Isolate* isolate, const Handle<S>& other);
                                                ^
include/v8.h:499:48: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
include/v8.h:499:54: error: expected ‘,’ or ‘...’ before ‘<’ token
   V8_INLINE void Reset(Isolate* isolate, const Handle<S>& other);
                                                      ^
include/v8.h:520:54: error: ‘Handle’ does not name a type
   template <class S> V8_INLINE bool operator==(const Handle<S>& that) const {
                                                      ^
include/v8.h:520:54: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
include/v8.h:520:60: error: expected ‘,’ or ‘...’ before ‘<’ token
   template <class S> V8_INLINE bool operator==(const Handle<S>& that) const {
                                                            ^
include/v8.h:533:54: error: ‘Handle’ does not name a type
   template <class S> V8_INLINE bool operator!=(const Handle<S>& that) const {
                                                      ^
include/v8.h:533:54: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
include/v8.h:533:60: error: expected ‘,’ or ‘...’ before ‘<’ token
   template <class S> V8_INLINE bool operator!=(const Handle<S>& that) const {
                                                            ^
include/v8.h:634:43: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 [enabled by default]
   PersistentBase(PersistentBase& other) = delete;  // NOLINT
                                           ^

<clipped for brevity>

Thaks for the help

On Friday, May 15, 2015 at 9:31:56 PM UTC-7, Jason Josephy wrote:

Louis Santillan

unread,
May 16, 2015, 10:59:28 PM5/16/15
to v8-u...@googlegroups.com
I had that issue as well. I resolved it by using the suggestion from
gcc in your error log. I added
-std=gnu++11
to my CFLAGS.
> --
> --
> v8-users mailing list
> v8-u...@googlegroups.com
> http://groups.google.com/group/v8-users
> ---
> You received this message because you are subscribed to the Google Groups
> "v8-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to v8-users+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Jason Josephy

unread,
May 16, 2015, 11:47:59 PM5/16/15
to v8-u...@googlegroups.com
That does seem to help, thank you ! now i have this ?

../src/base/logging.cc:(.text._ZN2v84base13DumpBacktraceEv+0x67): undefined reference to `dladdr'


On Friday, May 15, 2015 at 9:31:56 PM UTC-7, Jason Josephy wrote:

Louis Santillan

unread,
May 17, 2015, 2:27:57 AM5/17/15
to v8-u...@googlegroups.com
Since you're building a node addon, I believe you also need to add
-ldl
to your LDFLAGS because your module will get dynamically loaded.

Jason Josephy

unread,
May 17, 2015, 11:52:27 PM5/17/15
to v8-u...@googlegroups.com
yes that works ! 

thanks for the help things are building and running now !


On Friday, May 15, 2015 at 9:31:56 PM UTC-7, Jason Josephy wrote:
Reply all
Reply to author
Forward
0 new messages