嵌入式之家

 找回密码
 现在注册

QQ登录

只需一步,快速开始

搜索
热搜: ARM cortex
查看: 6364|回复: 0

安装libcxx-3.8.1报错:clang: error: linker command failed with exit code 1

[复制链接]
  • TA的每日心情
    开心
    2020-6-18 22:00
  • 签到天数: 1 天

    [LV.1]初来乍到

    101

    主题

    192

    帖子

    1645

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    1645
    发表于 2016-7-26 17:58:33 | 显示全部楼层 |阅读模式
    详细错误信息:

    1. cxa_noexception.o: In function `__cxa_current_primary_exception':
    2. /data/llvm/llvm-3.8.1.src/libcxxabi/lib/../src/cxa_noexception.cpp:42: multiple definition of `__cxa_current_primary_exception'
    3. cxa_exception.o:/data/llvm/llvm-3.8.1.src/libcxxabi/lib/../src/cxa_exception.cpp:632: first defined here
    4. cxa_noexception.o: In function `__cxa_decrement_exception_refcount':
    5. /data/llvm/llvm-3.8.1.src/libcxxabi/lib/../src/cxa_noexception.cpp:37: multiple definition of `__cxa_decrement_exception_refcount'
    6. cxa_exception.o:/data/llvm/llvm-3.8.1.src/libcxxabi/lib/../src/cxa_exception.cpp:607: first defined here
    7. cxa_noexception.o: In function `__cxa_increment_exception_refcount':
    8. /data/llvm/llvm-3.8.1.src/libcxxabi/lib/../src/cxa_noexception.cpp:31: multiple definition of `__cxa_increment_exception_refcount'
    9. cxa_exception.o:/data/llvm/llvm-3.8.1.src/libcxxabi/lib/../src/cxa_exception.cpp:591: first defined here
    10. cxa_noexception.o: In function `__cxa_rethrow_primary_exception':
    11. /data/llvm/llvm-3.8.1.src/libcxxabi/lib/../src/cxa_noexception.cpp:46: multiple definition of `__cxa_rethrow_primary_exception'
    12. cxa_exception.o:/data/llvm/llvm-3.8.1.src/libcxxabi/lib/../src/cxa_exception.cpp:674: first defined here
    13. cxa_noexception.o: In function `__cxa_uncaught_exception':
    14. /data/llvm/llvm-3.8.1.src/libcxxabi/lib/../src/cxa_noexception.cpp:51: multiple definition of `__cxa_uncaught_exception'
    15. cxa_exception.o:/data/llvm/llvm-3.8.1.src/libcxxabi/lib/../src/cxa_exception.cpp:708: first defined here
    16. cxa_noexception.o: In function `__cxa_uncaught_exceptions':
    17. /data/llvm/llvm-3.8.1.src/libcxxabi/lib/../src/cxa_noexception.cpp:54: multiple definition of `__cxa_uncaught_exceptions'
    18. cxa_exception.o:/data/llvm/llvm-3.8.1.src/libcxxabi/lib/../src/cxa_exception.cpp:708: first defined here
    19. clang: error: linker command failed with exit code 1 (use -v to see invocation)
    复制代码
    解决方法请参考:http://www.emhom.com/thread-416-1-1.html



    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 现在注册

    本版积分规则

    QQ|Archiver|手机版|小黑屋|嵌入式之家 ( 京ICP备14038168号-1 )

    GMT+8, 2025-5-1 20:29 , Processed in 0.020871 second(s), 30 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表