libdrm 2.4.107 needed because amdgpu has the highest requirement
- 1.问题
- 分析
- 解决
1.问题
Message: libdrm 2.4.107 needed because amdgpu has the highest requirement
Run-time dependency libdrm_intel found: YES 2.4.107
Run-time dependency libdrm_amdgpu found: YES 2.4.107
Run-time dependency libdrm_radeon found: YES 2.4.107
Run-time dependency libdrm_nouveau found: YES 2.4.107
Run-time dependency libdrm found: YES 2.4.107
llvm-config found: YES (/usr/bin/llvm-config) 12.0.0
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/mesonbuild/mesonmain.py”, line 129, in run
return options.run_func(options)
File “/usr/lib/python3/dist-packages/mesonbuild/msetup.py”, line 245, in run
app.generate()
File “/usr/lib/python3/dist-packages/mesonbuild/msetup.py”, line 159, in generate
self._generate(env)
File “/usr/lib/python3/dist-packages/mesonbuild/msetup.py”, line 192, in _generate
intr.run()
File “/usr/lib/python3/dist-packages/mesonbuild/interpreter.py”, line 4167, in run
super().run()
File “/usr/lib/python3/dist-packages/mesonbuild/interpreterbase.py”, line 412, in run
self.evaluate_codeblock(self.ast, start=1)
File “/usr/lib/python3/dist-packages/mesonbuild/interpreterbase.py”, line 436, in evaluate_codeblock
raise e
File “/usr/lib/python3/dist-packages/mesonbuild/interpreterbase.py”, line 430, in evaluate_codeblock
self.evaluate_statement(cur)
File “/usr/lib/python3/dist-packages/mesonbuild/interpreterbase.py”, line 451, in evaluate_statement
return self.evaluate_if(cur)
File “/usr/lib/python3/dist-packages/mesonbuild/interpreterbase.py”, line 530, in evaluate_if
self.evaluate_codeblock(i.block)
File “/usr/lib/python3/dist-packages/mesonbuild/interpreterbase.py”, line 436, in evaluate_codeblock
raise e
File “/usr/lib/python3/dist-packages/mesonbuild/interpreterbase.py”, line 430, in evaluate_codeblock
self.evaluate_statement(cur)
File “/usr/lib/python3/dist-packages/mesonbuild/interpreterbase.py”, line 443, in evaluate_statement
return self.assignment(cur)
File “/usr/lib/python3/dist-packages/mesonbuild/interpreterbase.py”, line 1064, in assignment
value = self.evaluate_statement(node.value)
File “/usr/lib/python3/dist-packages/mesonbuild/interpreterbase.py”, line 441, in evaluate_statement
return self.function_call(cur)
File “/usr/lib/python3/dist-packages/mesonbuild/interpreterbase.py”, line 788, in function_call
return func(node, posargs, kwargs)
File “/usr/lib/python3/dist-packages/mesonbuild/interpreterbase.py”, line 285, in wrapped
return f(*wrapped_args, **wrapped_kwargs)
File “/usr/lib/python3/dist-packages/mesonbuild/interpreterbase.py”, line 285, in wrapped
return f(*wrapped_args, **wrapped_kwargs)
File “/usr/lib/python3/dist-packages/mesonbuild/interpreterbase.py”, line 285, in wrapped
return f(*wrapped_args, **wrapped_kwargs)
[Previous line repeated 2 more times]
File “/usr/lib/python3/dist-packages/mesonbuild/interpreterbase.py”, line 155, in wrapped
ret = f(*wrapped_args, **wrapped_kwargs)
File “/usr/lib/python3/dist-packages/mesonbuild/interpreterbase.py”, line 174, in wrapped
return f(*wrapped_args, **wrapped_kwargs)
File “/usr/lib/python3/dist-packages/mesonbuild/interpreter.py”, line 3236, in func_dependency
d = self.dependency_impl(name, display_name, kwargs)
File “/usr/lib/python3/dist-packages/mesonbuild/interpreter.py”, line 3283, in dependency_impl
dep = dependencies.find_external_dependency(name, self.environment, kwargs)
File “/usr/lib/python3/dist-packages/mesonbuild/dependencies/base.py”, line 2234, in find_external_dependency
d = c()
File “/usr/lib/python3/dist-packages/mesonbuild/dependencies/dev.py”, line 239, in init
self._set_new_link_args(environment)
File “/usr/lib/python3/dist-packages/mesonbuild/dependencies/dev.py”, line 287, in _set_new_link_args
mode = self.get_config_value([‘–shared-mode’], ‘link_args’)[0]
IndexError: list index out of range
分析
打开"/usr/lib/python3/dist-packages/mesonbuild/dependencies/dev.py的前面备注的是LLVM的环境库的查找
原因是前面解决llvm-config版本不对时,把/usr/bin/llvm-config删掉了,直接用cp /usr/bin/llvm-config-12 /usr/bin/llvm-config
解决
改用ln -s /usr/bin/llvm-config-12 /usr/bin/llvm-config