summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiu Yiding <liuyd.fnst@fujitsu.com>2025-06-18 18:01:59 +0800
committerKhem Raj <raj.khem@gmail.com>2025-06-20 10:34:13 -0700
commitc7907b986857ead5d9b37e9fe6b02a8e4aee0f8b (patch)
tree25fa08921c1aa16e8a11d933656b5d3aa4208cc0
parent2011f868a3cde1707e494973a9169fa5762c9225 (diff)
downloadmeta-openembedded-c7907b986857ead5d9b37e9fe6b02a8e4aee0f8b.tar.gz
daemontools: fix incompatible-pointer-types issue
According to info from "bitbake -e daemontools", "CC += "-Wno-error=incompatible-pointer-types"" can't solve this issue now since CC will be overide by gcc.bbclass |$ bitbake -e daemontools |------------------------------ | # $CC [3 operations] | # exported ast.py:67 [eval] | # [export] "1" | # append /mnt/test/meta-openembedded/meta-oe/recipes-support/daemontools/daemontools_0.76.bb:58 | # "-Wno-error=incompatible-pointer-types" | # set /mnt/test/poky/meta/classes/toolchain/gcc.bbclass:1 | # "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" | # pre-expansion value: | # "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" | export CC="aarch64-poky-linux-gcc -mcpu=cortex-a57+crc -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/mnt/test/build_auh/tmp/work/cortexa57-poky-linux/daemontools/0.76/recipe-sysroot Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-support/daemontools/daemontools_0.76.bb13
1 files changed, 6 insertions, 7 deletions
diff --git a/meta-oe/recipes-support/daemontools/daemontools_0.76.bb b/meta-oe/recipes-support/daemontools/daemontools_0.76.bb
index 3738b080ff..1ef6a07d0d 100644
--- a/meta-oe/recipes-support/daemontools/daemontools_0.76.bb
+++ b/meta-oe/recipes-support/daemontools/daemontools_0.76.bb
@@ -33,7 +33,13 @@ UPSTREAM_CHECK_URI = "http://cr.yp.to/daemontools/install.html"
33 33
34S = "${WORKDIR}/admin/${BP}" 34S = "${WORKDIR}/admin/${BP}"
35 35
36# http://errors.yoctoproject.org/Errors/Details/766886/
37# pathexec_run.c:19:17: error: passing argument 2 of 'execve' from incompatible pointer type [-Wincompatible-pointer-types]
38# pathexec_run.c:19:22: error: passing argument 3 of 'execve' from incompatible pointer type [-Wincompatible-pointer-types]
39# pathexec_run.c:36:18: error: passing argument 2 of 'execve' from incompatible pointer type [-Wincompatible-pointer-types]
40# pathexec_run.c:36:23: error: passing argument 3 of 'execve' from incompatible pointer type [-Wincompatible-pointer-types]
36do_compile() { 41do_compile() {
42 export CC="$CC -Wno-error=incompatible-pointer-types"
37 ./package/compile 43 ./package/compile
38} 44}
39 45
@@ -48,10 +54,3 @@ do_install:append:class-target() {
48inherit update-alternatives 54inherit update-alternatives
49ALTERNATIVE_PRIORITY = "100" 55ALTERNATIVE_PRIORITY = "100"
50ALTERNATIVE:${PN} = "svc svok" 56ALTERNATIVE:${PN} = "svc svok"
51
52# http://errors.yoctoproject.org/Errors/Details/766886/
53# pathexec_run.c:19:17: error: passing argument 2 of 'execve' from incompatible pointer type [-Wincompatible-pointer-types]
54# pathexec_run.c:19:22: error: passing argument 3 of 'execve' from incompatible pointer type [-Wincompatible-pointer-types]
55# pathexec_run.c:36:18: error: passing argument 2 of 'execve' from incompatible pointer type [-Wincompatible-pointer-types]
56# pathexec_run.c:36:23: error: passing argument 3 of 'execve' from incompatible pointer type [-Wincompatible-pointer-types]
57CC += "-Wno-error=incompatible-pointer-types"