imx6ull pro buildroot make all编译错误

系统是deepin 社区办20.9, 一直出现这个错误:
‘cmake_root’: temp_parser.get_cmake_var(‘MESON_CMAKE_ROOT’)[0],
IndexError: list index out of range
不知怎么解决


Program env found: YES (/usr/bin/env)
Configuring glibconfig.h using configuration
Configuring gtester-report using configuration
Configuring libglib-2.0.so.0.6200.5-gdb.py using configuration
Configuring glib-genmarshal using configuration
Program /home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/build/host-libglib2-2.62.5/build/gobject/glib-genmarshal found: YES (/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/build/host-libglib2-2.62.5/build/gobject/glib-genmarshal)
Configuring glib-mkenums using configuration
Program /home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/build/host-libglib2-2.62.5/build/gobject/glib-mkenums found: YES (/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/build/host-libglib2-2.62.5/build/gobject/glib-mkenums)
Configuring libgobject-2.0.so.0.6200.5-gdb.py using configuration
Checking if “dlsym() preceding underscores” with dependency -ldl runs: NO (1)
Checking for function “dlerror” with dependency -ldl: YES
Configuring gmoduleconf.h using configuration
Checking if “C_IN in public headers (no arpa/nameser_compat.h needed)” compiles: YES
Checking if “res_query()” links: NO
Checking if “res_query() in -lresolv” links: YES
Library resolv found: YES
Checking if “socket()” links: YES
Checking if “res_init()” links: YES
Checking if “res_nclose()” links: YES
Checking if “res_ndestroy()” links: NO
Checking if “res_ninit()” links: YES
Checking if “res_nquery()” links: YES
Checking for type “struct ip_mreqn” : YES
Checking if “ioctl with request SIOCGIFADDR” compiles: YES
Configuring gnetworking.h using configuration
Configuring gdbus-codegen using configuration
Program /home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/build/host-libglib2-2.62.5/build/gio/gdbus-2.0/codegen/gdbus-codegen found: YES (/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/build/host-libglib2-2.62.5/build/gio/gdbus-2.0/codegen/gdbus-codegen)
Configuring config.py using configuration
Found CMake: /usr/bin/cmake (3.22.1)
Appending CXXFLAGS from environment: ‘-O2 -I/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/include’
Appending LDFLAGS from environment: [‘-L/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib’, ‘-Wl,-rpath,/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib’]
Appending CPPFLAGS from environment: ‘-I/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/include’
Traceback (most recent call last):
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/mesonmain.py”, line 129, in run
return options.run_func(options)
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/msetup.py”, line 245, in run
app.generate()
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/msetup.py”, line 159, in generate
self._generate(env)
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/msetup.py”, line 192, in _generate
intr.run()
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/interpreter.py”, line 4165, in run
super().run()
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/interpreterbase.py”, line 412, in run
self.evaluate_codeblock(self.ast, start=1)
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/interpreterbase.py”, line 436, in evaluate_codeblock
raise e
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/interpreterbase.py”, line 430, in evaluate_codeblock
self.evaluate_statement(cur)
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/interpreterbase.py”, line 441, in evaluate_statement
return self.function_call(cur)
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/interpreterbase.py”, line 788, in function_call
return func(node, posargs, kwargs)
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/interpreterbase.py”, line 285, in wrapped
return f(*wrapped_args, **wrapped_kwargs)
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/interpreterbase.py”, line 174, in wrapped
return f(*wrapped_args, **wrapped_kwargs)
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/interpreter.py”, line 3687, in func_subdir
self.evaluate_codeblock(codeblock)
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/interpreterbase.py”, line 436, in evaluate_codeblock
raise e
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/interpreterbase.py”, line 430, in evaluate_codeblock
self.evaluate_statement(cur)
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/interpreterbase.py”, line 443, in evaluate_statement
return self.assignment(cur)
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/interpreterbase.py”, line 1064, in assignment
value = self.evaluate_statement(node.value)
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/interpreterbase.py”, line 441, in evaluate_statement
return self.function_call(cur)
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/interpreterbase.py”, line 788, in function_call
return func(node, posargs, kwargs)
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/interpreterbase.py”, line 285, in wrapped
return f(*wrapped_args, **wrapped_kwargs)
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/interpreterbase.py”, line 285, in wrapped
return f(*wrapped_args, **wrapped_kwargs)
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/interpreterbase.py”, line 285, in wrapped
return f(*wrapped_args, **wrapped_kwargs)
[Previous line repeated 2 more times]
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/interpreterbase.py”, line 155, in wrapped
ret = f(*wrapped_args, **wrapped_kwargs)
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/interpreterbase.py”, line 174, in wrapped
return f(*wrapped_args, **wrapped_kwargs)
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/interpreter.py”, line 3234, in func_dependency
d = self.dependency_impl(name, display_name, kwargs)
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/interpreter.py”, line 3281, in dependency_impl
dep = dependencies.find_external_dependency(name, self.environment, kwargs)
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/dependencies/base.py”, line 2237, in find_external_dependency
d = c()
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/dependencies/base.py”, line 1111, in init
CMakeDependency.class_cmakeinfo[self.for_machine] = self._get_cmake_info()
File “/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/python3.8/site-packages/mesonbuild/dependencies/base.py”, line 1204, in _get_cmake_info
‘cmake_root’: temp_parser.get_cmake_var(‘MESON_CMAKE_ROOT’)[0],
IndexError: list index out of range
make: *** [package/pkg-generic.mk:259:/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/build/host-libglib2-2.62.5/.stamp_configured] 错误 2

看日志是编译glibc时出现的错误:
glib-2.62.5.tar.xz: OK (sha256: b8d1cdafa46658b63d7512efbe2cd21bd36cd7be83140e44930c47b79f82452e)

host-libglib2 2.62.5 Extracting
xzcat /home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/dl/libglib2/glib-2.62.5.tar.xz | /home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/bin/tar --strip-components=1 -C /home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/build/host-libglib2-2.62.5 -xf -
host-libglib2 2.62.5 Patching

Applying 0001-fix-compile-time-atomic-detection.patch using patch:
patching file glib/gthread-posix.c

Applying 0002-allow-explicit-disabling-of-tests.patch using patch:
patching file meson.build
Hunk #1 succeeded at 84 (offset 7 lines).

Applying 0003-remove-cpp-requirement.patch using patch:
patching file glib/glibconfig.h.in
patching file meson.build
Hunk #3 succeeded at 1490 (offset 7 lines).
Hunk #4 succeeded at 2087 (offset 7 lines).
patching file tests/meson.build

Applying 0004-Add-Wno-format-nonliteral-to-compiler-arguments.patch using patch:
patching file meson.build
Hunk #1 succeeded at 373 (offset 7 lines).

host-libglib2 2.62.5 Configuring
rm -rf /home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/build/host-libglib2-2.62.5//build
mkdir -p /home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/build/host-libglib2-2.62.5//build
PATH=“/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/bin:/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin:/usr/local/arm/4.3.2/bin:/home/shell/workspace/2440/source/u-boot/u-boot-1.1.6/tools:/home/shell/workspace/2440/001_tools/tools:/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/bin” PKG_CONFIG=“/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/bin/pkg-config” PKG_CONFIG_SYSROOT_DIR=“/” PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR=“/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib/pkgconfig:/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/share/pkgconfig” AR=“/usr/bin/ar” AS=“/usr/bin/as” LD=“/usr/bin/ld” NM=“/usr/bin/nm” CC=“/usr/bin/gcc” GCC=“/usr/bin/gcc” CXX=“/usr/bin/g++” CPP=“/usr/bin/cpp” OBJCOPY=“/usr/bin/objcopy” RANLIB=“/usr/bin/ranlib” CPPFLAGS=“-I/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/include” CFLAGS=“-O2 -I/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/include” CXXFLAGS=“-O2 -I/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/include” LDFLAGS=“-L/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib -Wl,-rpath,/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/lib” INTLTOOL_PERL=/usr/bin/perl PYTHONNOUSERSITE=y /home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/bin/meson --prefix=/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host --libdir=lib --sysconfdir=/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/etc --localstatedir=/home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/var --default-library=shared --buildtype=release -Ddtrace=false -Dfam=false -Dselinux=disabled -Dsystemtap=false -Dxattr=false -Dinternal_pcre=false -Dinstalled_tests=false -Doss_fuzz=disabled /home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/build/host-libglib2-2.62.5/ /home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/build/host-libglib2-2.62.5//build
The Meson build system
Version: 0.53.1
Source dir: /home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/build/host-libglib2-2.62.5
Build dir: /home/shell/workspace/imx6ull/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/build/host-libglib2-2.62.5/build
Build type: native build
Project name: glib
Project version: 2.62.5

已解决,是因为系统已经按装有cmake了,把系统以前装的cmake删除,该问题就解决了。