Hi All,
I am trying to build a virtual switch (vs) image of sonic. I am getting build failure. Is anyone facing the same problem?
I am using the following command to clone the code and build.
make configure PLATFORM=vs
make SONIC_BUILD_JOBS=2 target/docker-sonic-vs.gz
Note: Building only for Buster.
Any pointers to resolve this would be helpful.
Thanks,
Chidanand
BUILD Error:
--------------------
Step 41/86 : RUN pip3 install python-wheels/sonic_host_services-1.0-py3-none-any.whl
---> Running in 7515d96d4d2a
Processing /python-wheels/sonic_host_services-1.0-py3-none-any.whl
Collecting systemd-python
Downloading systemd-python-234.tar.gz (53 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.6/53.6 kB 2.2 MB/s eta 0:00:00
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting dbus-python
Downloading dbus-python-1.3.2.tar.gz (605 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 605.5/605.5 kB 1.3 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
^[[91m error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [131 lines of output]
The Meson build system
Version: 0.63.2
Source dir: /tmp/pip-install-naqz1y35/dbus-python_ea845406d3964472a56ab5ae686a4081
Build dir: /tmp/pip-install-naqz1y35/dbus-python_ea845406d3964472a56ab5ae686a4081/.mesonpy-v4h2ypxq/build
Build type: native build
Project name: dbus-python
Project version: 1.3.2
C compiler for the host machine: cc (gcc 8.3.0 "cc (Debian 8.3.0-6) 8.3.0")
C linker for the host machine: cc ld.bfd 2.31.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -fno-common: YES
Compiler for C supports arguments -Wno-missing-field-initializers: YES
Compiler for C supports arguments -Wno-declaration-after-statement: YES
Compiler for C supports arguments -Wno-inline: YES
Compiler for C supports arguments -Wno-redundant-decls: YES
Compiler for C supports arguments -Wno-switch-default: YES
Compiler for C supports arguments -Wno-write-strings: YES
Compiler for C supports arguments -Wcast-align: YES
Compiler for C supports arguments -Wdouble-promotion: YES
Compiler for C supports arguments -Wduplicated-cond: YES
Compiler for C supports arguments -Wfloat-equal: YES
Compiler for C supports arguments -Wformat-nonliteral: YES
Compiler for C supports arguments -Wformat-security: YES
Compiler for C supports arguments -Wformat=2: YES
Compiler for C supports arguments -Winit-self: YES
Compiler for C supports arguments -Wlogical-op: YES
Compiler for C supports arguments -Wmissing-declarations: YES
Compiler for C supports arguments -Wmissing-format-attribute: YES
Compiler for C supports arguments -Wmissing-include-dirs: YES
Compiler for C supports arguments -Wmissing-noreturn: YES
Compiler for C supports arguments -Wnull-dereference: YES
Compiler for C supports arguments -Wpacked: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Wshadow: YES
Compiler for C supports arguments -Wswitch-enum: YES
Compiler for C supports arguments -Wundef: YES
Compiler for C supports arguments -Wunused-but-set-variable: YES
Compiler for C supports arguments -Wjump-misses-init: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Wnested-externs: YES
Compiler for C supports arguments -Wold-style-definition: YES
Compiler for C supports arguments -Wpointer-sign: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Configuring _dbus-python-config.h using configuration
Executing subproject dbus-gmain
dbus-gmain| Project name: dbus-gmain
dbus-gmain| Project version: undefined
dbus-gmain| C compiler for the host machine: cc (gcc 8.3.0 "cc (Debian 8.3.0-6) 8.3.0")
dbus-gmain| C linker for the host machine: cc ld.bfd 2.31.1
dbus-gmain| Compiler for C supports arguments -fno-common: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wno-missing-field-initializers: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wcast-align: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wdouble-promotion: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wduplicated-branches: YES
dbus-gmain| Compiler for C supports arguments -Wduplicated-cond: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wfloat-equal: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wformat-nonliteral: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wformat-security: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wformat=2: YES (cached)
dbus-gmain| Compiler for C supports arguments -Winit-self: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wlogical-op: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wmissing-declarations: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wmissing-format-attribute: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wmissing-include-dirs: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wmissing-noreturn: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wnull-dereference: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wpacked: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wpointer-arith: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wredundant-decls: YES
dbus-gmain| Compiler for C supports arguments -Wshadow: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wswitch-default: YES
dbus-gmain| Compiler for C supports arguments -Wswitch-enum: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wundef: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wunused-but-set-variable: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wwrite-strings: YES
dbus-gmain| Compiler for C supports arguments -Wdeclaration-after-statement: YES
dbus-gmain| Compiler for C supports arguments -Wjump-misses-init: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wmissing-prototypes: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wnested-externs: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wold-style-definition: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wpointer-sign: YES (cached)
dbus-gmain| Compiler for C supports arguments -Wstrict-prototypes: YES (cached)
dbus-gmain| Found pkg-config: /usr/bin/pkg-config (0.29)
dbus-gmain| Run-time dependency dbus-1 found: YES 1.12.20
dbus-gmain| Run-time dependency glib-2.0 found: YES 2.58.3
dbus-gmain| Run-time dependency gthread-2.0 found: YES 2.58.3
dbus-gmain| Program dbus-run-session found: NO
dbus-gmain| Build targets in project: 1
dbus-gmain| Subproject dbus-gmain finished.
Program python3 found: YES (/usr/bin/python3)
Dependency dbus-1 found: YES 1.12.20 (cached)
Configuring TestSuitePythonService.service using configuration
Configuring tmp-session-bus.conf using configuration
Program dbus-run-session found: NO
../../test/meson.build:72:0: ERROR: Program 'dbus-run-session' not found or not executable
A full log can be found at /tmp/pip-install-naqz1y35/dbus-python_ea845406d3964472a56ab5ae686a4081/.mesonpy-v4h2ypxq/build/meson-logs/meson-log.txt
+ meson setup --native-file=/tmp/pip-install-naqz1y35/dbus-python_ea845406d3964472a56ab5ae686a4081/.mesonpy-native-file.ini -Ddebug=false -Doptimization=2 --prefix=/usr /tmp/pip-install-naqz1y35/dbus-python_ea845406d3964472a56ab5ae686a4081 /tmp/pip-install-naqz1y35/dbus-python_ea845406d3964472a56ab5ae686a4081/.mesonpy-v4h2ypxq/build
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
main()
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-xlkdbpuu/overlay/lib/python3.7/site-packages/mesonpy/__init__.py", line 923, in get_requires_for_build_wheel
with _project(config_settings) as project:
File "/usr/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/tmp/pip-build-env-xlkdbpuu/overlay/lib/python3.7/site-packages/mesonpy/__init__.py", line 903, in _project
build_dir=config_settings.get('builddir'),
File "/usr/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/tmp/pip-build-env-xlkdbpuu/overlay/lib/python3.7/site-packages/mesonpy/__init__.py", line 547, in with_temp_working_dir
yield cls(source_dir, tmpdir, build_dir)
File "/tmp/pip-build-env-xlkdbpuu/overlay/lib/python3.7/site-packages/mesonpy/__init__.py", line 463, in __init__
self._configure(reconfigure=bool(build_dir) and not native_file_mismatch)
File "/tmp/pip-build-env-xlkdbpuu/overlay/lib/python3.7/site-packages/mesonpy/__init__.py", line 500, in _configure
*setup_args,
File "/tmp/pip-build-env-xlkdbpuu/overlay/lib/python3.7/site-packages/mesonpy/__init__.py", line 477, in _meson
return self._proc('meson', *args)
File "/tmp/pip-build-env-xlkdbpuu/overlay/lib/python3.7/site-packages/mesonpy/__init__.py", line 472, in _proc
subprocess.check_call(list(args))
File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['meson', 'setup', '--native-file=/tmp/pip-install-naqz1y35/dbus-python_ea845406d3964472a56ab5ae686a4081/.mesonpy-native-file.ini', '-Ddebug=false', '-Doptimization=2', '--prefix=/usr', '/tmp/pip-install-naqz1y35/dbus-python_ea845406d3964472a56ab5ae686a4081', '/tmp/pip-install-naqz1y35/dbus-python_ea845406d3964472a56ab5ae686a4081/.mesonpy-v4h2ypxq/build']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
^[[0m^[[91merror: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
^[[0mThe command '/bin/sh -c pip3 install python-wheels/sonic_host_services-1.0-py3-none-any.whl' returned a non-zero code: 1