Re: Re: Re: Re: about using smatch in all debian C code
李书畅 <[email protected]> Thu, 7 Mar 2024 11:43:15 +0800 (GMT+08:00)
| Newsgroups | org.kernel.vger.smatch |
|---|---|
| Message-ID | <[email protected]> |
After installing all the dependency, I also tried : ./configure --cc=~/smatch/cgcc --cpu=x86_64
, and it died with:
python determined to be '/usr/bin/python3'
python version: Python 3.8.10
mkvenv: Creating non-isolated virtual environment at 'pyvenv'
mkvenv: checking for tomli>=1.2.0
mkvenv: installing tomli>=1.2.0
mkvenv: checking for meson>=0.63.0
mkvenv: installing meson==1.2.3
mkvenv: checking for sphinx>=1.6
mkvenv: checking for sphinx_rtd_theme>=0.5
The Meson build system
Version: 1.2.3
Source dir: /home/lsc20011130/qemu
Build dir: /home/lsc20011130/qemu/build
Build type: native build
Project name: qemu
Project version: 8.2.50
C compiler for the host machine: /home/lsc20011130/smatch/cgcc -m64 -mcx16 (gcc 9.3.0 "cc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0")
C linker for the host machine: /home/lsc20011130/smatch/cgcc -m64 -mcx16 ld.bfd 2.34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program scripts/symlink-install-tree.py found: YES (/home/lsc20011130/qemu/build/pyvenv/bin/python3 /home/lsc20011130/qemu/scripts/symlink-install-tree.py)
Program sh found: YES (/usr/bin/sh)
Program python3 found: YES (/home/lsc20011130/qemu/build/pyvenv/bin/python3)
Program iasl found: NO
Program bzip2 found: YES (/usr/bin/bzip2)
WARNING: No include directory found parsing "/home/lsc20011130/smatch/cgcc -m64 -mcx16 -xc -E -v -" output
Compiler for C supports link arguments -Wl,-z,relro: YES
Compiler for C supports link arguments -Wl,-z,now: YES
Compiler for C supports link arguments -Wl,--warn-common: YES
Checking if "-fzero-call-used-regs=used-gpr" compiles: NO
Compiler for C supports arguments -ftrivial-auto-var-init=zero: NO
Compiler for C supports arguments -Wempty-body: YES
Compiler for C supports arguments -Wendif-labels: YES
Compiler for C supports arguments -Wexpansion-to-defined: YES
Compiler for C supports arguments -Wformat-security: YES
Compiler for C supports arguments -Wformat-y2k: YES
Compiler for C supports arguments -Wignored-qualifiers: YES
Compiler for C supports arguments -Wimplicit-fallthrough=2: YES
Compiler for C supports arguments -Winit-self: YES
Compiler for C supports arguments -Wmissing-format-attribute: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Wnested-externs: YES
Compiler for C supports arguments -Wold-style-declaration: YES
Compiler for C supports arguments -Wold-style-definition: YES
Compiler for C supports arguments -Wredundant-decls: YES
Compiler for C supports arguments -Wshadow=local: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wtype-limits: YES
Compiler for C supports arguments -Wundef: YES
Compiler for C supports arguments -Wvla: YES
Compiler for C supports arguments -Wwrite-strings: YES
Compiler for C supports arguments -Wno-gnu-variable-sized-type-not-at-end: NO
Compiler for C supports arguments -Wno-initializer-overrides: NO
Compiler for C supports arguments -Wno-missing-include-dirs: YES
Compiler for C supports arguments -Wno-psabi: YES
Compiler for C supports arguments -Wno-shift-negative-value: YES
Compiler for C supports arguments -Wno-string-plus-int: NO
Compiler for C supports arguments -Wno-tautological-type-limit-compare: NO
Compiler for C supports arguments -Wno-typedef-redefinition: NO
Compiler for C supports arguments -Wthread-safety: NO
Program cgcc found: YES (/usr/bin/cgcc)
Program scripts/check_sparse.py found: YES (/home/lsc20011130/qemu/build/pyvenv/bin/python3 /home/lsc20011130/qemu/scripts/check_sparse.py)
Library m found: YES
Run-time dependency threads found: YES
Library util found: YES
Run-time dependency appleframeworks found: NO (tried framework)
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Run-time dependency xencontrol found: NO (tried pkgconfig)
Library xenstore found: NO
Library xenctrl found: NO
Library xendevicemodel found: NO
Library xenforeignmemory found: NO
Library xengnttab found: NO
Library xenevtchn found: NO
Library xentoolcore found: NO
Run-time dependency glib-2.0 found: YES 2.64.6
Run-time dependency gmodule-no-export-2.0 found: YES 2.64.6
Run-time dependency gio-2.0 found: YES 2.64.6
Traceback (most recent call last):
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/mesonmain.py", line 194, in run
return options.run_func(options)
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/msetup.py", line 358, in run
app.generate()
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/msetup.py", line 183, in generate
return self._generate(env, capture, vslite_ctx)
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/msetup.py", line 228, in _generate
intr.run()
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/interpreter/interpreter.py", line 3002, in run
super().run()
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 164, in run
self.evaluate_codeblock(self.ast, start=1)
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 190, in evaluate_codeblock
raise e
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 182, in evaluate_codeblock
self.evaluate_statement(cur)
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 206, in evaluate_statement
return self.evaluate_if(cur)
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 301, in evaluate_if
self.evaluate_codeblock(i.block)
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 190, in evaluate_codeblock
raise e
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 182, in evaluate_codeblock
self.evaluate_statement(cur)
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 206, in evaluate_statement
return self.evaluate_if(cur)
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 286, in evaluate_if
result = self.evaluate_statement(i.condition)
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 218, in evaluate_statement
return self.evaluate_andstatement(cur)
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 359, in evaluate_andstatement
r = self.evaluate_statement(cur.right)
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 222, in evaluate_statement
return self.evaluate_notstatement(cur)
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 273, in evaluate_notstatement
v = self.evaluate_statement(cur.value)
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 200, in evaluate_statement
return self.method_call(cur)
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 550, in method_call
res = obj.method_call(method_name, args, kwargs)
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/interpreterbase/baseobjects.py", line 94, in method_call
return method(args, kwargs)
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/interpreterbase/decorators.py", line 277, in wrapper
return f(*nargs, **wrapped_kwargs)
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/interpreterbase/decorators.py", line 596, in wrapper
return f(*wrapped_args, **wrapped_kwargs)
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/interpreter/compiler.py", line 499, in links_method
result, cached = self.compiler.links(code, self.environment,
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/compilers/compilers.py", line 1322, in links
return self.compiles(code, env, extra_args=extra_args,
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/compilers/compilers.py", line 1307, in compiles
with self._build_wrapper(code, env, extra_args, dependencies, mode, disable_cache=disable_cache) as p:
File "/usr/lib/python3.8/contextlib.py", line 113, in __enter__
return next(self.gen)
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/compilers/compilers.py", line 1299, in _build_wrapper
with self.cached_compile(code, env.coredata, extra_args=args, mode=mode, temp_dir=env.scratch_dir) as r:
File "/usr/lib/python3.8/contextlib.py", line 113, in __enter__
return next(self.gen)
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/compilers/compilers.py", line 896, in cached_compile
with self.compile(code, extra_args=extra_args, mode=mode, want_output=False, temp_dir=temp_dir) as p:
File "/usr/lib/python3.8/contextlib.py", line 113, in __enter__
return next(self.gen)
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/compilers/compilers.py", line 867, in compile
p, stdo, stde = Popen_safe_logged(command_list, msg='Command line', cwd=tmpdirname, env=os_env)
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/utils/universal.py", line 1528, in Popen_safe_logged
p, o, e = Popen_safe(args, **kwargs)
File "/home/lsc20011130/qemu/build/pyvenv/lib/python3.8/site-packages/mesonbuild/utils/universal.py", line 1487, in Popen_safe
o, e = p.communicate(write)
File "/usr/lib/python3.8/subprocess.py", line 1028, in communicate
stdout, stderr = self._communicate(input, endtime, timeout)
File "/usr/lib/python3.8/subprocess.py", line 1910, in _communicate
stderr = self._translate_newlines(stderr,
File "/usr/lib/python3.8/subprocess.py", line 905, in _translate_newlines
data = data.decode(encoding, errors)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x92 in position 4663: invalid start byte
../meson.build:950:28: ERROR: Unhandled python exception
This is a Meson bug and should be reported!
ERROR: meson setup failed
regards,
Lishu Chang
> -----原始邮件-----
> 发件人: "Dan Carpenter" <[email protected]>
> 发送时间: 2024-03-07 03:25:40 (星期四)
> 收件人: "李书畅" <[email protected]>
> 抄送: [email protected]
> 主题: Re: Re: Re: about using smatch in all debian C code
>
> I had hoped that I could make it work using:
>
> ./configure --cc=~/smatch/cgcc --cpu=x86_64
>
> But it dies with:
>
> mkvenv: installing meson==1.2.3
> mkvenv: checking for sphinx>=1.6
> mkvenv: checking for sphinx_rtd_theme>=0.5
>
> *** Ouch! ***
>
> Could not provide build dependency 'sphinx==5.3.0':
> • Python package 'sphinx' was not found nor installed.
> • mkvenv was configured to operate offline and did not check PyPI.
> • 'sphinx-build' was detected on your system at '/usr/bin/sphinx-build', but the build is using an isolated virtual environment.
>
>
> Sphinx not found/usable, disabling docs.
>
> ERROR: Unrecognized host OS (uname -s reports 'Linux')
>
> regards,
> dan carpenter