Unknow error in OS X



  • Guys, does anyone of you has see this error before??

    Undefined symbols for architecture x86_64:
    "__Unwind_Resume", referenced from:
    Amarre::value(int) in Amarre.o
    Amarre::stringToDocType(QString) in Amarre.o
    Amarre::toJson() in Amarre.o
    Amarre::Amarre(Amarre*) in Amarre.o
    QHash<int, Operation*>::keys() const in Amarre.o
    QList<int>::append(int const&) in Amarre.o
    QList<int>::detach_helper(int) in Amarre.o
    ...
    "___cxa_atexit", referenced from:
    ___cxx_global_var_init in AccountSelectHandler.o
    ___cxx_global_var_init.1 in AccountSelectHandler.o
    ___cxx_global_var_init.3 in AccountSelectHandler.o
    ___cxx_global_var_init.5 in AccountSelectHandler.o
    ___cxx_global_var_init.7 in AccountSelectHandler.o
    ___cxx_global_var_init.9 in AccountSelectHandler.o
    ___cxx_global_var_init.11 in AccountSelectHandler.o
    ...
    "___stack_chk_fail", referenced from:
    BGTree::clearInScope() in System.o
    BGTree::clearTree() in System.o
    NotificationObserver::newNotification(QString const&) in moc_notificationmanager.o
    NotificationObserver::notifIdChanged(NotificationObserver::NotificationType) in moc_notificationmanager.o
    QueryHandlerResponse::response(QJsonObject const&, unsigned long long, QString const&) in moc_QueryHandlerResponse.o
    System::userChanged(QString const&) in moc_System.o
    System::currentPerspectiveChanged(QString const&, long long) in moc_System.o
    ...
    "___stack_chk_guard", referenced from:
    BGTree::clearInScope() in System.o
    BGTree::clearTree() in System.o
    NotificationObserver::newNotification(QString const&) in moc_notificationmanager.o
    NotificationObserver::notifIdChanged(NotificationObserver::NotificationType) in moc_notificationmanager.o
    QueryHandlerResponse::response(QJsonObject const&, unsigned long long, QString const&) in moc_QueryHandlerResponse.o
    System::userChanged(QString const&) in moc_System.o
    System::currentPerspectiveChanged(QString const&, long long) in moc_System.o
    ...
    "_memcmp", referenced from:
    operator==(QByteArray const&, QByteArray const&) in moc_System.o
    "_memcpy", referenced from:
    QList<int>::node_copy(QList<int>::Node*, QList<int>::Node*, QList<int>::Node*) in Amarre.o
    QListPMP::Internal::Period*::node_copy(QListPMP::Internal::Period*::Node*, QListPMP::Internal::Period*::Node*, QListPMP::Internal::Period*::Node*) in QueryExecutor.o
    QList<CompositePerspective*>::node_copy(QList<CompositePerspective*>::Node*, QList<CompositePerspective*>::Node*, QList<CompositePerspective*>::Node*) in System.o
    QList<QStandardItemModel*>::node_copy(QList<QStandardItemModel*>::Node*, QList<QStandardItemModel*>::Node*, QList<QStandardItemModel*>::Node*) in System.o
    QList<BG*>::node_copy(QList<BG*>::Node*, QList<BG*>::Node*, QList<BG*>::Node*) in System.o
    QList<QStandardItem*>::node_copy(QList<QStandardItem*>::Node*, QList<QStandardItem*>::Node*, QList<QStandardItem*>::Node*) in System.o
    "_memset", referenced from:
    NotificationManager::NotificationManager(QObject*) in notificationmanager.o
    NotificationManager::instance()::$_0::operator()() const in notificationmanager.o
    QueryHandlerResponse::QueryHandlerResponse(QObject*) in QueryHandlerResponse.o
    std::__1::function<void (std::__1::shared_ptr<node_t>&)>::operator()(std::__1::shared_ptr<node_t>&) const in System.o
    "_strcmp", referenced from:
    NotificationObserver::qt_metacast(char const*) in moc_notificationmanager.o
    NotificationManager::qt_metacast(char const*) in moc_notificationmanager.o
    QueryHandlerResponse::qt_metacast(char const*) in moc_QueryHandlerResponse.o
    System::qt_metacast(char const*) in moc_System.o
    ExecuteReportTimer::qt_metacast(char const*) in moc_System.o
    "_strlen", referenced from:
    QString::QString(char const*) in AccountSelectHandler.o
    QString::QString(char const*) in Amarre.o
    QString::QString(char const*) in clientconfiguration.o
    QString::fromUtf8(char const*, int) in clientconfiguration.o
    QString::fromUtf8(char const*, int) in notificationmanager.o
    QString::QString(char const*) in Operation.o
    QString::QString(char const*) in QueryExecutor.o
    ...
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[2]: *** [../../../Nautam/client/lib/libsystem.1.0.0.dylib] Error 1
    make[1]: *** [sub-system-make_first-ordered] Error 2
    make: *** [sub-src-make_first-ordered] Error 2
    03:07:21: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project nautam-client (kit: Desktop Qt 5.7.0 clang 64bit)
    When executing step "Make"

    Any Idea?

    regards


  • Qt Champions 2016

    Hi,
    If I'm not mistaken ___stack_chk_guard and ___stack_chk_fail are the functions used to detect the corruption of the stack smashing dummies the compiler usually inserts; and ___cxa_atexit is the global shutdown handler. It appears you haven't linked against the standard c++ library (or you linked a wrong one).

    Please provide the link line you've used (the one that generates the above errors).

    Kind regards.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.