Build Error: ERROR: systemd-1_237-r0 do_configure: meson failed

cancel
Showing results for 
Search instead for 
Did you mean: 

Build Error: ERROR: systemd-1_237-r0 do_configure: meson failed

Jump to solution
189 Views
Contributor III

Hi,

We are working with custom board based on i.MX8M Mini SoC and yocto distribution.

we are facing the build error: please find the complete details.

Host Machine details (uname -a) : 4.4.0-178-generic #208-Ubuntu SMP Sun Apr 5 23:45:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Build Configuration:
BB_VERSION = "1.38.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "custom-pf"
DISTRO = "cust-pf-distro"
DISTRO_VERSION = "4.14-sumo"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""
meta
meta-poky = "pf/work_branch:64a257fa22126c4a40ff7e03424a404e360ebe1e"
meta-oe
meta-multimedia = "pf/work_branch:2bb21ef27c4b0c9d52d30b3b2c5a0160fd02b966"
meta-freescale = "pf/work_branch:407c6cf408969445031a492e2d25e0e2749582ea"
meta-freescale-3rdparty = "pf/work_branch:88a29631809d1af0df618245430db29f2a7012b5"
meta-freescale-distro = "pf/work_branch:f7e2216e93aff14ac32728a13637a48df436b7f4"
meta-bsp
meta-sdk = "pf/work_branch:9867dae67c158e0820bf226bd18b792623e99b25"
meta-browser = "pf/work_branch:75640e14e325479c076b6272b646be7a239c18aa"
meta-gnome
meta-networking
meta-python
meta-filesystems = "pf/work_branch:2bb21ef27c4b0c9d52d30b3b2c5a0160fd02b966"
meta-qt5 = "pf/work_branch:d4e7f73d04e8448d326b6f89908701e304e37d65"
meta-nxp-gva = "pf/work_branch:e8982ae739eab55d8bdfa446630e0896af0e7ec0"
meta-hotfix
meta-common
meta-bsp
meta-distro
meta-hooks
meta-microsoft = "pf/work_branch:24ae5a4f10ba5db8a9fff34ed4841d1163caf4f8"

Initialising tasks...done.
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Running task 1068 of 6947 (/home/ubuntu/sources/poky/meta/recipes-core/systemd/systemd_237.bb:do_configure)
NOTE: Running task 1082 of 6947 (/home/ubuntu/sources/poky/meta/recipes-core/glib-2.0/glib-2.0_2.54.3.bb:do_patch)
NOTE: recipe glib-2.0-1_2.54.3-r0: task do_patch: Started
NOTE: recipe systemd-1_237-r0: task do_configure: Started
ERROR: systemd-1_237-r0 do_configure: meson failed
ERROR: systemd-1_237-r0 do_configure: Function failed: do_configure (log file is located at /home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/temp/log.do_configure.23628)
ERROR: Logfile of failure stored in: /home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/temp/log.do_configure.23628
Log data follows:
| DEBUG: Executing shell function do_configure
| Traceback (most recent call last):
| File "/home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages/mesonbuild/mesonmain.py", line 366, in run
| app.generate()
| File "/home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages/mesonbuild/mesonmain.py", line 151, in generate
| self._generate(env)
| File "/home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages/mesonbuild/mesonmain.py", line 192, in _generate
| intr = interpreter.Interpreter(b, g)
| File "/home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages/mesonbuild/interpreter.py", line 1424, in __init__
| self.parse_project()
| File "/home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages/mesonbuild/interpreterbase.py", line 157, in parse_project
| self.evaluate_codeblock(self.ast, end=1)
| File "/home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages/mesonbuild/interpreterbase.py", line 193, in evaluate_codeblock
| raise e
| File "/home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages/mesonbuild/interpreterbase.py", line 187, in evaluate_codeblock
| self.evaluate_statement(cur)
| File "/home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages/mesonbuild/interpreterbase.py", line 198, in evaluate_statement
| return self.function_call(cur)
| File "/home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages/mesonbuild/interpreterbase.py", line 441, in function_call
| return self.funcs[func_name](node, self.flatten(posargs), kwargs)
| File "/home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages/mesonbuild/interpreterbase.py", line 55, in wrapped
| return f(self, node, args, kwargs)
| File "/home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages/mesonbuild/interpreterbase.py", line 77, in wrapped
| return f(s, node_or_state, args, kwargs)
| File "/home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages/mesonbuild/interpreter.py", line 1919, in func_project
| self.add_languages(proj_langs, True)
| File "/home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages/mesonbuild/interpreter.py", line 2045, in add_languages
| (comp, cross_comp) = self.detect_compilers(lang, need_cross_compiler)
| File "/home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages/mesonbuild/interpreter.py", line 2014, in detect_compilers
| comp.sanity_check(self.environment.get_scratch_dir(), self.environment)
| File "/home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages/mesonbuild/compilers/c.py", line 244, in sanity_check
| return self.sanity_check_impl(work_dir, environment, 'sanitycheckc.c', code)
| File "/home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/recipe-sysroot-native/usr/lib/python3.5/site-packages/mesonbuild/compilers/c.py", line 237, in sanity_check_impl
| pe = subprocess.Popen(cmdlist)
| File "/home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/recipe-sysroot-native/usr/lib/python3.5/subprocess.py", line 676, in __init__
| restore_signals, start_new_session)
| File "/home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/recipe-sysroot-native/usr/lib/python3.5/subprocess.py", line 1289, in _execute_child
| raise child_exception_type(errno_num, err_msg)
| PermissionError: [Errno 1] Operation not permitted
| The Meson build system
| Version: 0.44.1
| Source dir: /home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/git
| Build dir: /home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/build
| Build type: cross build
| Project name: systemd
| Build started at 2020-05-04T15:19:56.241523
| Main binary: /home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/recipe-sysroot-native/usr/bin/python3-native/python3
| Python system: Linux
| The Meson build system
| Version: 0.44.1
| Source dir: /home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/git
| Build dir: /home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/build
| Build type: cross build
| Project name: systemd
| Sanity testing C compiler: gcc
| Is cross compiler: False.
| Sanity check compiler command line: gcc /home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/build/meson-private/sanitycheckc.c -o /home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/build/meson-private/sanitycheckc.exe
| Sanity check compile stdout:
|
| -----
| Sanity check compile stderr:
|
| -----
| Running test binary command: /home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/build/meson-private/sanitycheckc.exe
| ERROR: meson failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /home/ubuntu/out/tmp/work/aarch64-poky-linux/systemd/1_237-r0/temp/log.do_configure.23628)
NOTE: recipe systemd-1_237-r0: task do_configure: Failed
ERROR: Task (/home/ubuntu/sources/poky/meta/recipes-core/systemd/systemd_237.bb:do_configure) failed with exit code '1'
NOTE: recipe glib-2.0-1_2.54.3-r0: task do_patch: Succeeded
NOTE: Tasks Summary: Attempted 1083 tasks of which 1081 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/ubuntu/sources/poky/meta/recipes-core/systemd/systemd_237.bb:do_configure
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

Could you please let us know, what is causing the error.

I tried installing the meson : sudo apt-get install meson

but still no luck.

Is Linux Host PC kernel version is 4.4 and distribution_version is 4.14-sumo  will this also cause any problem. please let me know your comments.

Thank you, Sreedhar

0 Kudos
1 Solution
20 Views
NXP TechSupport
NXP TechSupport

Hi  Sreedhar A

  See below, please!

1. test result.

#DISTRO=fsl-imx-wayland MACHINE=imx8mmevk source fsl-setup-release.sh -b build-wayland
#bitbake systemd -c compile

pastedImage_1.png

pastedImage_2.png

So no probem.

2. About your issues.

It seems that systemd package or dependencies is not complete. so configure failed.

you can clean its packages or states, then recompile it.

# bitbake systemd -c cleanall

# bitbake systemd -c compile

Have a nice day!

B.R,

Weidong

View solution in original post

0 Kudos
5 Replies
20 Views
Contributor III

Hi Weidong,

There was a problem in the ubuntu OS in our working Linux PC,

earlier builded codes also not building, so we re-installed again the ubuntu OS and now the build is success.

Many thanks for the support

Sreedhar

0 Kudos
20 Views
NXP TechSupport
NXP TechSupport

OK, got it.

good job!

I will close the ticket now.

If you have other questions, please re-create a new ticket !

Have a great day!

B.R,

Weidong

0 Kudos
21 Views
NXP TechSupport
NXP TechSupport

Hi  Sreedhar A

  See below, please!

1. test result.

#DISTRO=fsl-imx-wayland MACHINE=imx8mmevk source fsl-setup-release.sh -b build-wayland
#bitbake systemd -c compile

pastedImage_1.png

pastedImage_2.png

So no probem.

2. About your issues.

It seems that systemd package or dependencies is not complete. so configure failed.

you can clean its packages or states, then recompile it.

# bitbake systemd -c cleanall

# bitbake systemd -c compile

Have a nice day!

B.R,

Weidong

View solution in original post

0 Kudos
20 Views
Contributor III

Hi Weidong,

Thank you for the suggestion.

In iMX8M Mini EVK hw and with yocto distribution it is working fine. no such errors seen.

we are facing the problem for the custom board and distribution is customized to suit to this custom hw (based on iMX8MM)

Do you have any suggestion for the same.

Thank you, Sreedhar

0 Kudos
20 Views
NXP TechSupport
NXP TechSupport

Hello Sreedhar,

    Your question is related to porting linux bsp to customized board. so would you please re-create a new ticket for me?

Have a nice day!

B.R,

Weidong

0 Kudos