图书馆`Coroutines'在llvm库列表中找不到

时间:2017-01-15 18:56:29

标签: cmake llvm ubuntu-16.04 coroutine llvm-clang

我尝试在LLVM release version 3.5 LTS 64位计算机上设置ubuntu 16.04,并且遇到与CMake相关的错误。

如何解决:Library `Coroutines' not found in list of llvm libraries

  1. 我按照here给出了T的指示。
  2. 执行cmake -G "Unix Makefiles" ../llvm

    时出现以下错误日志

    / home /.../ llvm_dir / build / CMakeFiles / CMakeTmp / CheckIncludeFile.c:1:27:致命错误:malloc / malloc.h:没有这样的文件或目录 编译终止。 CMakeFiles / cmTC_23510.dir / build.make:65:目标的配方' CMakeFiles / cmTC_23510.dir / CheckIncludeFile.c.o'失败 make 1:*** [CMakeFiles / cmTC_23510.dir / CheckIncludeFile.c.o]错误1

    ...

    / home /.../ llvm_dir / build / CMakeFiles / CMakeTmp / CheckIncludeFile.c:1:18:致命错误:ndir.h:没有这样的文件或目录 编译终止。 CMakeFiles / cmTC_a8c89.dir / build.make:65:目标配方&CMAKFiles / cmTC_a8c89.dir / CheckIncludeFile.c.o'失败 make 1:*** [CMakeFiles / cmTC_a8c89.dir / CheckIncludeFile.c.o]错误1

    ...

    / home /.../ llvm_dir / build / CMakeFiles / CMakeTmp / CheckIncludeFile.c:1:22:致命错误:sys / ndir.h:没有这样的文件或目录 编译终止。 CMakeFiles / cmTC_9297d.dir / build.make:65:目标配方' CMakeFiles / cmTC_9297d.dir / CheckIncludeFile.c.o'失败 make 1:*** [CMakeFiles / cmTC_9297d.dir / CheckIncludeFile.c.o]错误1

    ...

    / home /.../ llvm_dir / build / CMakeFiles / CMakeTmp / CheckIncludeFile.c:1:31:致命错误:valgrind / valgrind.h:没有这样的文件或目录 编译终止。 CMakeFiles / cmTC_14b5f.dir / build.make:65:目标的配方' CMakeFiles / cmTC_14b5f.dir / CheckIncludeFile.c.o'失败 make 1:*** [CMakeFiles / cmTC_14b5f.dir / CheckIncludeFile.c.o]错误1

    ...

    / home /.../ llvm_dir / build / CMakeFiles / CMakeTmp / CheckIncludeFile.c:1:18:致命错误:zlib.h:没有这样的文件或目录 编译终止。 CMakeFiles / cmTC_a4254.dir / build.make:65:目标配方' CMakeFiles / cmTC_a4254.dir / CheckIncludeFile.c.o'失败 make 1:*** [CMakeFiles / cmTC_a4254.dir / CheckIncludeFile.c.o]错误1

    ...

    / home /.../ llvm_dir / build / CMakeFiles / CMakeTmp / CheckIncludeFile.c:1:23:致命错误:mach / mach.h:没有这样的文件或目录 编译终止。 CMakeFiles / cmTC_43c90.dir / build.make:65:目标配方&CMAHFIL / cmTC_43c90.dir / CheckIncludeFile.c.o'失败 make 1:*** [CMakeFiles / cmTC_43c90.dir / CheckIncludeFile.c.o]错误1

    ...

    / home /.../ llvm_dir / build / CMakeFiles / CMakeTmp / CheckIncludeFile.c:1:25:致命错误:mach -o / dyld.h:没有这样的文件或目录 编译终止。 CMakeFiles / cmTC_92df8.dir / build.make:65:目标的配方' CMakeFiles / cmTC_92df8.dir / CheckIncludeFile.c.o'失败 make 1:*** [CMakeFiles / cmTC_92df8.dir / CheckIncludeFile.c.o]错误1

    ...

    / usr / bin / cc -DCHECK_FUNCTION_EXISTS = compress2 CMakeFiles / cmTC_45dee.dir / CheckFunctionExists.c.o -o cmTC_45dee -rdynamic -lz -lm / usr / bin / ld:找不到-lz collect2:错误:ld返回1退出状态 CMakeFiles / cmTC_45dee.dir / build.make:97:目标的配方' cmTC_45dee'失败 make 1:*** [cmTC_45dee]错误1

    ...

    / usr / bin / cc -DCHECK_FUNCTION_EXISTS = el_init CMakeFiles / cmTC_678de.dir / CheckFunctionExists.c.o -o cmTC_678de -rdynamic -ledit -lm / usr / bin / ld:找不到-ledit collect2:错误:ld返回1退出状态 CMakeFiles / cmTC_678de.dir / build.make:97:目标的配方' cmTC_678de'失败 make 1:*** [cmTC_678de]错误1

    ...

    / usr / bin / ld:找不到-ltinfo collect2:错误:ld返回1退出状态 CMakeFiles / cmTC_b7cfe.dir / build.make:97:目标' cmTC_b7cfe的配方'失败 make 1:*** [cmTC_b7cfe]错误1

    ...

    / usr / bin / ld:找不到-lterminfo collect2:错误:ld返回1退出状态 CMakeFiles / cmTC_58a1c.dir / build.make:97:目标的配方' cmTC_58a1c'失败 make 1:*** [cmTC_58a1c]错误1

    ...

    / usr / bin / cc -DCHECK_FUNCTION_EXISTS = setupterm CMakeFiles / cmTC_adafa.dir / CheckFunctionExists.c.o -o cmTC_adafa -rdynamic -lcurses -lm / usr / bin / ld:找不到-lcurses collect2:错误:ld返回1退出状态 CMakeFiles / cmTC_adafa.dir / build.make:97:目标' cmTC_adafa'的配方失败 make 1:*** [cmTC_adafa]错误1

    ...

    / usr / bin / cc -DCHECK_FUNCTION_EXISTS = setupterm CMakeFiles / cmTC_e466b.dir / CheckFunctionExists.c.o -o cmTC_e466b -rdynamic -lncurses -lm / usr / bin / ld:找不到-lncurses collect2:错误:ld返回1退出状态 CMakeFiles / cmTC_e466b.dir / build.make:97:目标的配方' cmTC_e466b'失败 make 1:*** [cmTC_e466b]错误1

    ...

    / usr / bin / ld:找不到-lncursesw collect2:错误:ld返回1退出状态 CMakeFiles / cmTC_8dc06.dir / build.make:97:目标的配方' cmTC_8dc06'失败 make 1:*** [cmTC_8dc06]错误1

    ...

    / home /.../ llvm_dir / build / CMakeFiles / CMakeTmp / CheckSymbolExists.c:8:19:错误:'arc4random'未声明(首次在此函数中使用)    return((int *)(& arc4random))[argc];                    ^ /home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19:注意:每个未声明的标识符仅针对它出现的每个函数报告一次 CMakeFiles / cmTC_75c3b.dir / build.make:65:目标的配方' CMakeFiles / cmTC_75c3b.dir / CheckSymbolExists.c.o'失败 make 1:*** [CMakeFiles / cmTC_75c3b.dir / CheckSymbolExists.c.o]错误1

    ...

    / home /.../ llvm_dir / build / CMakeFiles / CMakeTmp / CheckSymbolExists.c:2:17:致命错误:cmath:没有这样的文件或目录 编译终止。 CMakeFiles / cmTC_53670.dir / build.make:65:目标配方' CMakeFiles / cmTC_53670.dir / CheckSymbolExists.c.o'失败 make 1:*** [CMakeFiles / cmTC_53670.dir / CheckSymbolExists.c.o]错误1

    ...

    / home /.../ llvm_dir / build / CMakeFiles / CMakeTmp / CheckSymbolExists.c:2:20:致命错误:ieeefp.h:没有这样的文件或目录 编译终止。 CMakeFiles / cmTC_e4e6e.dir / build.make:65:目标的配方' CMakeFiles / cmTC_e4e6e.dir / CheckSymbolExists.c.o'失败 make 1:*** [CMakeFiles / cmTC_e4e6e.dir / CheckSymbolExists.c.o]错误1

    ...

    / home /.../ llvm_dir / build / CMakeFiles / CMakeTmp / CheckSymbolExists.c:2:17:致命错误:cmath:没有这样的文件或目录 编译终止。 CMakeFiles / cmTC_b8170.dir / build.make:65:目标的配方' CMakeFiles / cmTC_b8170.dir / CheckSymbolExists.c.o'失败 make 1:*** [CMakeFiles / cmTC_b8170.dir / CheckSymbolExists.c.o]错误1

    ...

    / home /.../ llvm_dir / build / CMakeFiles / CMakeTmp / CheckSymbolExists.c:8:19:错误:'exp10'未声明(首次使用此功能)    return((int *)(& exp10))[argc];                    ^ /home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19:注意:每个未声明的标识符仅针对它出现的每个函数报告一次 CMakeFiles / cmTC_392cf.dir / build.make:65:目标的配方' CMakeFiles / cmTC_392cf.dir / CheckSymbolExists.c.o'失败 make 1:*** [CMakeFiles / cmTC_392cf.dir / CheckSymbolExists.c.o]错误1

    ...

    / home /.../ llvm_dir / build / CMakeFiles / CMakeTmp / CheckSymbolExists.c:2:27:致命错误:malloc / malloc.h:没有这样的文件或目录 编译终止。 CMakeFiles / cmTC_ff0fe.dir / build.make:65:目标的配方' CMakeFiles / cmTC_ff0fe.dir / CheckSymbolExists.c.o'失败 make 1:*** [CMakeFiles / cmTC_ff0fe.dir / CheckSymbolExists.c.o]错误1

    ...

    / home /.../ llvm_dir / build / CMakeFiles / CMakeTmp / CheckSymbolExists.c:8:19:错误:'strerror_s'未声明(首次使用此功能)    return((int *)(& strerror_s))[argc];                    ^ /home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19:注意:每个未声明的标识符仅针对它出现的每个函数报告一次 CMakeFiles / cmTC_97097.dir / build.make:65:目标的配方' CMakeFiles / cmTC_97097.dir / CheckSymbolExists.c.o'失败 make 1:*** [CMakeFiles / cmTC_97097.dir / CheckSymbolExists.c.o]错误1

    ...

  3. 之前遇到过类似的错误并发布了here。但由于我的Python版本是2.7x系列,这没有用。

  4. 因此,按照上面的日志,我开始使用更简单的一个,安装Valgrind
  5. 重新尝试cmake -G "Unix Makefiles" ../llvm
  6. 命令后

    看看它是否解决了错误:从那时起我就一直收到Library Coroutines错误,而且我被卡住了。

    你能帮助我吗?

1 个答案:

答案 0 :(得分:0)

解决了一个变通方法。 使用clang-3.5方法安装llvm-3.5sudo apt install