Library`Coroutines'在llvm库列表中找不到(Library `Coroutines' not found in list of llvm libraries)

编程入门 行业动态 更新时间:2024-10-25 11:23:17
Library`Coroutines'在llvm库列表中找不到(Library `Coroutines' not found in list of llvm libraries)

我试图在我的ubuntu 16.04 LTS 64位机器上安装LLVM release version 3.5 ,并且一直面临与CMake相关的错误。

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

我遵循这里给出的指示,给T.

我在执行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.co'的配方失败make 1 :*** [CMakeFiles / cmTC_23510.dir / CheckIncludeFile.co]错误1

...

/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:18:致命错误:ndir.h:没有这样的文件或目录编译终止。 CMakeFiles / cmTC_a8c89.dir / build.make:65:目标'CMakeFiles / cmTC_a8c89.dir / CheckIncludeFile.co'的配方失败make 1 :*** [CMakeFiles / cmTC_a8c89.dir / CheckIncludeFile.co]错误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.co'的配方失败make 1 :*** [CMakeFiles / cmTC_9297d.dir / CheckIncludeFile.co]错误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.co'的配方失败make 1 :*** [CMakeFiles / cmTC_14b5f.dir / CheckIncludeFile.co]错误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.co'的配方失败make 1 :*** [CMakeFiles / cmTC_a4254.dir / CheckIncludeFile.co]错误1

...

/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:23:致命错误:mach / mach.h:没有这样的文件或目录编译终止。 CMakeFiles / cmTC_43c90.dir / build.make:65:目标'CMakeFiles / cmTC_43c90.dir / CheckIncludeFile.co'的配方失败make 1 :*** [CMakeFiles / cmTC_43c90.dir / CheckIncludeFile.co]错误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.co'的配方失败make 1 :*** [CMakeFiles / cmTC_92df8.dir / CheckIncludeFile.co]错误1

...

/ usr / bin / cc -DCHECK_FUNCTION_EXISTS = compress2 CMakeFiles / cmTC_45dee.dir / CheckFunctionExists.co -o cmTC_45dee -rdynamic -lz -lm / usr / bin / ld:找不到-lz collect2:error: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.co -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.co -o cmTC_adafa -rdynamic -lcurses -lm / usr / bin / ld:找不到-lcurses collect2:error: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.co -o cmTC_e466b -rdynamic -lncurses -lm / usr / bin / ld:找不到-lncurses collect2:error:ld返回1退出状态CMakeFiles / cmTC_e466b.dir / build.make:97:目标'cmTC_e466b'的配方失败make 1 :*** [cmTC_e466b]错误1

...

/ usr / bin / ld:无法找到-lncursesw collect2:error: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:error:'arc4random'undeclared(在此函数中首次使用)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.co'失败make 1 :*** [CMakeFiles / cmTC_75c3b.dir / CheckSymbolExists.co]错误1

...

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

...

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

...

/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19:error:'exp10'undeclared(first use in this function)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.co'失败make 1 :*** [CMakeFiles / cmTC_392cf.dir / CheckSymbolExists.co]错误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.co'的配方失败make 1 :*** [CMakeFiles / cmTC_ff0fe.dir / CheckSymbolExists.co]错误1

...

/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19:error:'strerror_s'undeclared(first use in this function)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.co'失败make 1 :*** [CMakeFiles / cmTC_97097.dir / CheckSymbolExists.co]错误1

...

类似的错误之前曾经面临过,并发布在这里 。 但是由于我的Python版本是2.7x系列,这没有帮助。

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

看看它是否解决了错误:自从我收到了Library Coroutines错误,我就陷入了困境。

你可以帮我吗?

I'm trying to setup LLVM release version 3.5 on my ubuntu 16.04 LTS 64-bit machine, and have been facing errors related to CMake.

How to solve: Library `Coroutines' not found in list of llvm libraries ?

I followed instructions given here, to the T.

I got the following error log on executing cmake -G "Unix Makefiles" ../llvm

/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:27: fatal error: malloc/malloc.h: No such file or directory compilation terminated. CMakeFiles/cmTC_23510.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_23510.dir/CheckIncludeFile.c.o' failed make1: *** [CMakeFiles/cmTC_23510.dir/CheckIncludeFile.c.o] Error 1

...

/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:18: fatal error: ndir.h: No such file or directory compilation terminated. CMakeFiles/cmTC_a8c89.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_a8c89.dir/CheckIncludeFile.c.o' failed make1: *** [CMakeFiles/cmTC_a8c89.dir/CheckIncludeFile.c.o] Error 1

...

/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:22: fatal error: sys/ndir.h: No such file or directory compilation terminated. CMakeFiles/cmTC_9297d.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_9297d.dir/CheckIncludeFile.c.o' failed make1: *** [CMakeFiles/cmTC_9297d.dir/CheckIncludeFile.c.o] Error 1

...

/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:31: fatal error: valgrind/valgrind.h: No such file or directory compilation terminated. CMakeFiles/cmTC_14b5f.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_14b5f.dir/CheckIncludeFile.c.o' failed make1: *** [CMakeFiles/cmTC_14b5f.dir/CheckIncludeFile.c.o] Error 1

...

/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:18: fatal error: zlib.h: No such file or directory compilation terminated. CMakeFiles/cmTC_a4254.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_a4254.dir/CheckIncludeFile.c.o' failed make1: *** [CMakeFiles/cmTC_a4254.dir/CheckIncludeFile.c.o] Error 1

...

/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:23: fatal error: mach/mach.h: No such file or directory compilation terminated. CMakeFiles/cmTC_43c90.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_43c90.dir/CheckIncludeFile.c.o' failed make1: *** [CMakeFiles/cmTC_43c90.dir/CheckIncludeFile.c.o] Error 1

...

/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:25: fatal error: mach-o/dyld.h: No such file or directory compilation terminated. CMakeFiles/cmTC_92df8.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_92df8.dir/CheckIncludeFile.c.o' failed make1: *** [CMakeFiles/cmTC_92df8.dir/CheckIncludeFile.c.o] Error 1

...

/usr/bin/cc -DCHECK_FUNCTION_EXISTS=compress2 CMakeFiles/cmTC_45dee.dir/CheckFunctionExists.c.o -o cmTC_45dee -rdynamic -lz -lm /usr/bin/ld: cannot find -lz collect2: error: ld returned 1 exit status CMakeFiles/cmTC_45dee.dir/build.make:97: recipe for target 'cmTC_45dee' failed make1: *** [cmTC_45dee] Error 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: cannot find -ledit collect2: error: ld returned 1 exit status CMakeFiles/cmTC_678de.dir/build.make:97: recipe for target 'cmTC_678de' failed make1: *** [cmTC_678de] Error 1

...

/usr/bin/ld: cannot find -ltinfo collect2: error: ld returned 1 exit status CMakeFiles/cmTC_b7cfe.dir/build.make:97: recipe for target 'cmTC_b7cfe' failed make1: *** [cmTC_b7cfe] Error 1

...

/usr/bin/ld: cannot find -lterminfo collect2: error: ld returned 1 exit status CMakeFiles/cmTC_58a1c.dir/build.make:97: recipe for target 'cmTC_58a1c' failed make1: *** [cmTC_58a1c] Error 1

...

/usr/bin/cc -DCHECK_FUNCTION_EXISTS=setupterm CMakeFiles/cmTC_adafa.dir/CheckFunctionExists.c.o -o cmTC_adafa -rdynamic -lcurses -lm /usr/bin/ld: cannot find -lcurses collect2: error: ld returned 1 exit status CMakeFiles/cmTC_adafa.dir/build.make:97: recipe for target 'cmTC_adafa' failed make1: *** [cmTC_adafa] Error 1

...

/usr/bin/cc -DCHECK_FUNCTION_EXISTS=setupterm CMakeFiles/cmTC_e466b.dir/CheckFunctionExists.c.o -o cmTC_e466b -rdynamic -lncurses -lm /usr/bin/ld: cannot find -lncurses collect2: error: ld returned 1 exit status CMakeFiles/cmTC_e466b.dir/build.make:97: recipe for target 'cmTC_e466b' failed make1: *** [cmTC_e466b] Error 1

...

/usr/bin/ld: cannot find -lncursesw collect2: error: ld returned 1 exit status CMakeFiles/cmTC_8dc06.dir/build.make:97: recipe for target 'cmTC_8dc06' failed make1: *** [cmTC_8dc06] Error 1

...

/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ‘arc4random’ undeclared (first use in this function) return ((int*)(&arc4random))[argc]; ^ /home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in CMakeFiles/cmTC_75c3b.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_75c3b.dir/CheckSymbolExists.c.o' failed make1: *** [CMakeFiles/cmTC_75c3b.dir/CheckSymbolExists.c.o] Error 1

...

/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:17: fatal error: cmath: No such file or directory compilation terminated. CMakeFiles/cmTC_53670.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_53670.dir/CheckSymbolExists.c.o' failed make1: *** [CMakeFiles/cmTC_53670.dir/CheckSymbolExists.c.o] Error 1

...

/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:20: fatal error: ieeefp.h: No such file or directory compilation terminated. CMakeFiles/cmTC_e4e6e.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_e4e6e.dir/CheckSymbolExists.c.o' failed make1: *** [CMakeFiles/cmTC_e4e6e.dir/CheckSymbolExists.c.o] Error 1

...

/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:17: fatal error: cmath: No such file or directory compilation terminated. CMakeFiles/cmTC_b8170.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_b8170.dir/CheckSymbolExists.c.o' failed make1: *** [CMakeFiles/cmTC_b8170.dir/CheckSymbolExists.c.o] Error 1

...

/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ‘exp10’ undeclared (first use in this function) return ((int*)(&exp10))[argc]; ^ /home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in CMakeFiles/cmTC_392cf.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_392cf.dir/CheckSymbolExists.c.o' failed make1: *** [CMakeFiles/cmTC_392cf.dir/CheckSymbolExists.c.o] Error 1

...

/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:27: fatal error: malloc/malloc.h: No such file or directory compilation terminated. CMakeFiles/cmTC_ff0fe.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_ff0fe.dir/CheckSymbolExists.c.o' failed make1: *** [CMakeFiles/cmTC_ff0fe.dir/CheckSymbolExists.c.o] Error 1

...

/home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ‘strerror_s’ undeclared (first use in this function) return ((int*)(&strerror_s))[argc]; ^ /home/.../llvm_dir/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in CMakeFiles/cmTC_97097.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_97097.dir/CheckSymbolExists.c.o' failed make1: *** [CMakeFiles/cmTC_97097.dir/CheckSymbolExists.c.o] Error 1

...

A similar error was faced before and posted here. But since my Python version was of 2.7x series, this didn't help.

So going by the log above, I started with the simpler one, installing Valgrind. After re-trying the command cmake -G "Unix Makefiles" ../llvm

to see if it's solving errors: I've been getting the Library Coroutines error ever since, and I am stuck.

Can you help me?

最满意答案

用解决方法解决。 使用sudo apt install方法安装了clang-3.5和llvm-3.5 。

Solved with a workaround. Installed clang-3.5 and llvm-3.5 using the sudo apt install method.

更多推荐

本文发布于:2023-08-01 10:04:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1356747.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:找不到   列表中   Coroutines   Library   llvm

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!