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

make build error #159

Closed
shtiyu opened this issue Jun 27, 2018 · 1 comment

Comments

@shtiyu
Copy link

commented Jun 27, 2018

按照步骤执行,最后make build出现以下错误:

cd cmd/neb; go build -ldflags "-X main.version=1.0.1 -X main.commit=7470724e2ed1f2f1e54af19e3ead477d324d542e -X main.branch=master -X main.compileAt=`date +%s`" -o ../../neb-7470724e2ed1f2f1e54af19e3ead477d324d542e
# github.com/nebulasio/go-nebulas/nf/nvm
/usr/local/lib/libv8.so: undefined reference to `icu_59::Formattable::Formattable()'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeSet::UnicodeSet(int, int)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::DecimalFormat::setMinimumSignificantDigits(int)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::DecimalFormat::getMaximumSignificantDigits() const'
/usr/local/lib/libv8.so: undefined reference to `icu_59::NumberFormat::isGroupingUsed() const'
/usr/local/lib/libv8.so: undefined reference to `u_isalpha_59'
/usr/local/lib/libv8.so: undefined reference to `icu_59::FieldPosition::~FieldPosition()'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeString::append(int)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::FieldPositionIterator::next(icu_59::FieldPosition&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeString::doEquals(icu_59::UnicodeString const&, int) const'
/usr/local/lib/libv8.so: undefined reference to `icu_59::BreakIterator::createSentenceInstance(icu_59::Locale const&, UErrorCode&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::GregorianCalendar::getStaticClassID()'
/usr/local/lib/libv8.so: undefined reference to `icu_59::DateTimePatternGenerator::createInstance(icu_59::Locale const&, UErrorCode&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::NumberFormat::format(double, icu_59::UnicodeString&) const'
/usr/local/lib/libv8.so: undefined reference to `icu_59::Collator::getAvailableLocales(int&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeString::toUTF8(icu_59::ByteSink&) const'
/usr/local/lib/libv8.so: undefined reference to `icu_59::BreakIterator::createWordInstance(icu_59::Locale const&, UErrorCode&)'
/usr/local/lib/libv8.so: undefined reference to `ucurr_getDefaultFractionDigits_59'
/usr/local/lib/libv8.so: undefined reference to `u_foldCase_59'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeSet::UnicodeSet()'
/usr/local/lib/libv8.so: undefined reference to `u_strToLower_59'
/usr/local/lib/libv8.so: undefined reference to `u_charType_59'
/usr/local/lib/libv8.so: undefined reference to `icu_59::NumberingSystem::getName() const'
/usr/local/lib/libv8.so: undefined reference to `vtable for icu_59::FieldPosition'
/usr/local/lib/libv8.so: undefined reference to `icu_59::Locale::Locale()'
/usr/local/lib/libv8.so: undefined reference to `icu_59::PluralRules::getKeywords(UErrorCode&) const'
/usr/local/lib/libv8.so: undefined reference to `icu_59::DateTimePatternGenerator::getBestPattern(icu_59::UnicodeString const&, UErrorCode&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeString::tempSubString(int, int) const'
/usr/local/lib/libv8.so: undefined reference to `icu_59::TimeZone::getCanonicalID(icu_59::UnicodeString const&, icu_59::UnicodeString&, UErrorCode&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::StringPiece::StringPiece(char const*)'
/usr/local/lib/libv8.so: undefined reference to `u_isupper_59'
../../nf/nvm/native-lib/libnebulasv8.so: undefined reference to `memcpy@GLIBC_2.14'
/usr/local/lib/libv8.so: undefined reference to `icu_59::Calendar::getNow()'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeSet::closeOver(int)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::Locale::getAvailableLocales(int&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::BreakIterator::createCharacterInstance(icu_59::Locale const&, UErrorCode&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::ByteSink::Flush()'
/usr/local/lib/libv8.so: undefined reference to `icu_59::CheckedArrayByteSink::CheckedArrayByteSink(char*, int)'
/usr/local/lib/libv8.so: undefined reference to `uloc_toLanguageTag_59'
/usr/local/lib/libv8.so: undefined reference to `icu_59::Formattable::~Formattable()'
/usr/local/lib/libv8.so: undefined reference to `icu_59::FieldPositionIterator::FieldPositionIterator()'
/usr/local/lib/libv8.so: undefined reference to `icu_59::Collator::createInstance(icu_59::Locale const&, UErrorCode&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UMemory::operator delete(void*)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeString::~UnicodeString()'
/usr/local/lib/libv8.so: undefined reference to `u_getPropertyValueName_59'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeString::getTerminatedBuffer()'
/usr/local/lib/libv8.so: undefined reference to `icu_59::NumberFormat::getAvailableLocales(int&)'
/usr/local/lib/libv8.so: undefined reference to `u_getPropertyValueEnum_59'
/usr/local/lib/libv8.so: undefined reference to `uloc_forLanguageTag_59'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeString::fromUTF8(icu_59::StringPiece)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeSet::~UnicodeSet()'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeSet::applyIntPropertyValue(UProperty, int, UErrorCode&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeSet::removeAllStrings()'
/usr/local/lib/libv8.so: undefined reference to `icu_59::BreakIterator::createLineInstance(icu_59::Locale const&, UErrorCode&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::Calendar::getTimeZone() const'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeString::UnicodeString(char16_t const*)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::Locale::~Locale()'
/usr/local/lib/libv8.so: undefined reference to `icu_59::TimeZone::getDisplayName(signed char, icu_59::TimeZone::EDisplayType, icu_59::UnicodeString&) const'
/usr/local/lib/libv8.so: undefined reference to `icu_59::DateFormat::getAvailableLocales(int&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::SimpleDateFormat::SimpleDateFormat(icu_59::UnicodeString const&, icu_59::Locale const&, UErrorCode&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::PluralRules::forLocale(icu_59::Locale const&, UPluralType, UErrorCode&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UMemory::operator new(unsigned long)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::TimeZone::createTimeZone(icu_59::UnicodeString const&)'
/usr/local/lib/libv8.so: undefined reference to `u_getPropertyEnum_59'
/usr/local/lib/libv8.so: undefined reference to `icu_59::NumberFormat::getMinimumFractionDigits() const'
/usr/local/lib/libv8.so: undefined reference to `u_hasBinaryProperty_59'
/usr/local/lib/libv8.so: undefined reference to `icu_59::Locale::operator=(icu_59::Locale const&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeSet::size() const'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeSet::getRangeCount() const'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeSet::add(int, int)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::NumberFormat::getCurrency() const'
/usr/local/lib/libv8.so: undefined reference to `icu_59::DecimalFormat::setSignificantDigitsUsed(signed char)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::FieldPositionIterator::~FieldPositionIterator()'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeSet::getRangeEnd(int) const'
/usr/local/lib/libv8.so: undefined reference to `icu_59::Calendar::createInstance(icu_59::TimeZone*, icu_59::Locale const&, UErrorCode&)'
/usr/local/lib/libv8.so: undefined reference to `udata_setCommonData_59'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeString::moveFrom(icu_59::UnicodeString&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::NumberFormat::getMinimumIntegerDigits() const'
/usr/local/lib/libv8.so: undefined reference to `icu_59::BreakIterator::getAvailableLocales(int&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::NumberFormat::createInstance(icu_59::Locale const&, UErrorCode&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::Locale::getBaseName() const'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeString::UnicodeString(char16_t const*, int)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::ByteSink::~ByteSink()'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeSet::getRangeStart(int) const'
/usr/local/lib/libv8.so: undefined reference to `u_getPropertyName_59'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeString::operator=(icu_59::UnicodeString const&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::ByteSink::GetAppendBuffer(int, int, char*, int, int*)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::DecimalFormat::setMaximumSignificantDigits(int)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::CheckedArrayByteSink::~CheckedArrayByteSink()'
/usr/local/lib/libv8.so: undefined reference to `icu_59::GregorianCalendar::setGregorianChange(double, UErrorCode&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::NumberFormat::getMaximumFractionDigits() const'
/usr/local/lib/libv8.so: undefined reference to `vtable for icu_59::UnicodeString'
/usr/local/lib/libv8.so: undefined reference to `icu_59::DecimalFormat::getMinimumSignificantDigits() const'
/usr/local/lib/libv8.so: undefined reference to `icu_59::DateFormat::format(double, icu_59::UnicodeString&, icu_59::FieldPositionIterator*, UErrorCode&) const'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeString::UnicodeString(signed char, icu_59::ConstChar16Ptr, int)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::NumberingSystem::createInstance(icu_59::Locale const&, UErrorCode&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::Formattable::getDouble(UErrorCode&) const'
/usr/local/lib/libv8.so: undefined reference to `icu_59::NumberFormat::createInstance(icu_59::Locale const&, UNumberFormatStyle, UErrorCode&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::DateFormat::format(double, icu_59::UnicodeString&) const'
/usr/local/lib/libv8.so: undefined reference to `icu_59::Locale::Locale(char const*, char const*, char const*, char const*)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeString::UnicodeString(char const*)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeString::setTo(signed char, icu_59::ConstChar16Ptr, int)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::PluralRules::select(double) const'
/usr/local/lib/libv8.so: undefined reference to `u_strToUpper_59'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeSet::complement()'
/usr/local/lib/libv8.so: undefined reference to `icu_59::Normalizer2::getInstance(char const*, char const*, UNormalization2Mode, UErrorCode&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::NumberFormat::createPercentInstance(icu_59::Locale const&, UErrorCode&)'
/usr/local/lib/libv8.so: undefined reference to `icu_59::UnicodeSet::isEmpty() const'
collect2: error: ld returned 1 exit status
make: *** [build] Error 2

已经按#128 方法处理,还是无法解决问题。
平台:CentOS6.5
Go : go version go1.10.1 linux/amd64

@yupnano

This comment has been minimized.

Copy link
Contributor

commented Jun 29, 2018

请试一下这个 issue #154
可能会有效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.