Skip to contentSkip to conversation

libbsd: Fix conflict error when enable multlib.

PATCH Superseded [email protected] 2 participants 6 messages Mar 19, 2024 – Mar 21, 2024

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libbsd: Fix conflict error when enable multlib.

From: Lei Maohui <[email protected]>

Error: Transaction test error:
file /usr/include/bsd/sys/cdefs.h conflicts between attempted installs
of libbsd-dev-0.12.1-r0.core2_64 and lib32-libbsd-dev-0.12.1-r0.core2_32

The difference of bsd/sys/cdefs.h between libbsd-dev and lib32-libbsd-dev is as following:

/* Define the ABI for the current system. */
-#define LIBBSD_SYS_TIME_BITS 64
+#define LIBBSD_SYS_TIME_BITS 32
#define LIBBSD_SYS_HAS_TIME64 1

---
 meta/recipes-support/libbsd/libbsd_0.12.1.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
meta/recipes-support/libbsd/libbsd_0.12.1.bb +5 -1
index 161dc6df43..84edd9bafa 100644
@@ -40,8 +40,12 @@ SRC_URI = "https://libbsd.freedesktop.org/releases/${BPN}-${PV}.tar.xz"
 
 SRC_URI[sha256sum] = "d7747f8ec1baa6ff5c096a9dd587c061233dec90da0f1aedd66d830f6db6996a"
 
-inherit autotools pkgconfig
+inherit autotools pkgconfig multilib_header
 
 DEPENDS += "libmd"
 
+do_install:append () {
+       oe_multilib_header bsd/sys/cdefs.h
+}
+
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1
#1 lore raw

This causes mg build failures see
https://errors.yoctoproject.org/Errors/Details/759473/

Quoted 50 lines · leimaohui via lists.openembedded.org

From: Lei Maohui <[email protected]>

Error: Transaction test error:
file /usr/include/bsd/sys/cdefs.h conflicts between attempted installs
of libbsd-dev-0.12.1-r0.core2_64 and lib32-libbsd-dev-0.12.1-r0.core2_32

The difference of bsd/sys/cdefs.h between libbsd-dev and lib32-libbsd-dev is as following:

/* Define the ABI for the current system. */
-#define LIBBSD_SYS_TIME_BITS 64
+#define LIBBSD_SYS_TIME_BITS 32
#define LIBBSD_SYS_HAS_TIME64 1

---
 meta/recipes-support/libbsd/libbsd_0.12.1.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
meta/recipes-support/libbsd/libbsd_0.12.1.bb +5 -2
index 161dc6df43..84edd9bafa 100644
@@ -40,8 +40,12 @@ SRC_URI = "https://libbsd.freedesktop.org/releases/${BPN}-${PV}.tar.xz"
 
 SRC_URI[sha256sum] = "d7747f8ec1baa6ff5c096a9dd587c061233dec90da0f1aedd66d830f6db6996a"
 
-inherit autotools pkgconfig
+inherit autotools pkgconfig multilib_header
 
 DEPENDS += "libmd"
 
+do_install:append () {
+       oe_multilib_header bsd/sys/cdefs.h
+}
+
 BBCLASSEXTEND = "native nativesdk"
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#197315): https://lists.openembedded.org/g/openembedded-core/message/197315
Mute This Topic: https://lists.openembedded.org/mt/105016171/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

Hi.

Quoted 2 lines

This causes mg build failures see
https://errors.yoctoproject.org/Errors/Details/759473/

I'm sorry that I can't reproduce this error. I used the default qemux86.conf, and bitbake libbsd. There is no error. So, can you show me your config of i686-yoe-linux?

Best regards
Lei

Quoted 66 lines

-----Original Message-----
From: Khem Raj <[email protected]>
Sent: Wednesday, March 20, 2024 1:22 PM
To: Lei, Maohui <[email protected]>
Cc: [email protected]
Subject: Re: [OE-core] [PATCH] libbsd: Fix conflict error when enable multlib.

This causes mg build failures see
https://errors.yoctoproject.org/Errors/Details/759473/

meta/recipes-support/libbsd/libbsd_0.12.1.bb SRC_URI =

Quoted 26 lines · leimaohui via lists.openembedded.org

From: Lei Maohui <[email protected]>

Error: Transaction test error:
file /usr/include/bsd/sys/cdefs.h conflicts between attempted
installs of libbsd-dev-0.12.1-r0.core2_64 and lib32-libbsd-dev-0.12.1-r0.core2_32

The difference of bsd/sys/cdefs.h between libbsd-dev and lib32-libbsd-dev is as following:

/* Define the ABI for the current system. */ -#define
LIBBSD_SYS_TIME_BITS 64 +#define LIBBSD_SYS_TIME_BITS 32 #define LIBBSD_SYS_HAS_TIME64 1

---
 meta/recipes-support/libbsd/libbsd_0.12.1.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
meta/recipes-support/libbsd/libbsd_0.12.1.bb +0 -0
index 161dc6df43..84edd9bafa 100644
@@ -40,8 +40,12 @@ SRC_URI =

"https://libbsd.freedesktop.org/releases/${BPN}-${PV}.tar.xz"

meta/recipes-support/libbsd/libbsd_0.12.1.bb SRC_URI = · line 40

Quoted 2 lines
meta/recipes-support/libbsd/libbsd_0.12.1.bb +0 -0
 SRC_URI[sha256sum] =

"d7747f8ec1baa6ff5c096a9dd587c061233dec90da0f1aedd66d830f6db6996a"

Quoted 24 lines
meta/recipes-support/libbsd/libbsd_0.12.1.bb +4 -2
-inherit autotools pkgconfig
+inherit autotools pkgconfig multilib_header
 
 DEPENDS += "libmd"
 
+do_install:append () {
+       oe_multilib_header bsd/sys/cdefs.h }
+
 BBCLASSEXTEND = "native nativesdk"
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#197315):
https://lists.openembedded.org/g/openembedded-core/message/197315
Mute This Topic: https://lists.openembedded.org/mt/105016171/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
Quoted 8 lines · Maohui Lei (Fujitsu)

Hi.

Quoted 2 lines

This causes mg build failures see
https://errors.yoctoproject.org/Errors/Details/759473/

I'm sorry that I can't reproduce this error. I used the default qemux86.conf, and bitbake libbsd. There is no error. So, can you show me your config of i686-yoe-linux?

I guess you might need to throw in meta-clang into layers and use TOOLCHAIN = "clang" perhaps.

Quoted 73 lines

Best regards
Lei

Quoted 66 lines

-----Original Message-----
From: Khem Raj <[email protected]>
Sent: Wednesday, March 20, 2024 1:22 PM
To: Lei, Maohui <[email protected]>
Cc: [email protected]
Subject: Re: [OE-core] [PATCH] libbsd: Fix conflict error when enable multlib.

This causes mg build failures see
https://errors.yoctoproject.org/Errors/Details/759473/

meta/recipes-support/libbsd/libbsd_0.12.1.bb SRC_URI =

Quoted 26 lines · leimaohui via lists.openembedded.org

From: Lei Maohui <[email protected]>

Error: Transaction test error:
file /usr/include/bsd/sys/cdefs.h conflicts between attempted
installs of libbsd-dev-0.12.1-r0.core2_64 and lib32-libbsd-dev-0.12.1-r0.core2_32

The difference of bsd/sys/cdefs.h between libbsd-dev and lib32-libbsd-dev is as following:

/* Define the ABI for the current system. */ -#define
LIBBSD_SYS_TIME_BITS 64 +#define LIBBSD_SYS_TIME_BITS 32 #define LIBBSD_SYS_HAS_TIME64 1

---
 meta/recipes-support/libbsd/libbsd_0.12.1.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
meta/recipes-support/libbsd/libbsd_0.12.1.bb +0 -0
index 161dc6df43..84edd9bafa 100644
@@ -40,8 +40,12 @@ SRC_URI =

"https://libbsd.freedesktop.org/releases/${BPN}-${PV}.tar.xz"

meta/recipes-support/libbsd/libbsd_0.12.1.bb SRC_URI = · line 40

Quoted 2 lines
meta/recipes-support/libbsd/libbsd_0.12.1.bb +0 -0
 SRC_URI[sha256sum] =

"d7747f8ec1baa6ff5c096a9dd587c061233dec90da0f1aedd66d830f6db6996a"

Quoted 24 lines
meta/recipes-support/libbsd/libbsd_0.12.1.bb +4 -2
-inherit autotools pkgconfig
+inherit autotools pkgconfig multilib_header
 
 DEPENDS += "libmd"
 
+do_install:append () {
+       oe_multilib_header bsd/sys/cdefs.h }
+
 BBCLASSEXTEND = "native nativesdk"
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#197315):
https://lists.openembedded.org/g/openembedded-core/message/197315
Mute This Topic: https://lists.openembedded.org/mt/105016171/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw

Hi,

Quoted 2 lines

I guess you might need to throw in meta-clang into layers and use TOOLCHAIN = "clang" perhaps.

I tried again with the following steps. Bit I still didn't reproduced the error. Is there anything I missed?

$ grep clang conf/local.conf
TOOLCHAIN = "clang"
$ grep clang conf/bblayers.conf
  /dev/common/home/leimh/community/meta-clang \
$ bitbake libbsd
Build Configuration:
BB_VERSION           = "2.7.3"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "i686-poky-linux"
MACHINE              = "qemux86"
DISTRO               = "poky"
DISTRO_VERSION       = "4.3+snapshot-08d0544be3e1881b623f18931631e412a9a0158d"
TUNE_FEATURES        = "m32 core2"
TARGET_FPU           = ""
meta
meta-poky
meta-yocto-bsp       = "master:08d0544be3e1881b623f18931631e412a9a0158d"
meta-clang           = "master:81e5f4eef93b5e1d6507daaf74fce28a2ccd7cf7"
......
$

Best regards
Lei

Quoted 90 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Khem Raj
Sent: Thursday, March 21, 2024 10:20 AM
To: Lei, Maohui <[email protected]>
Cc: [email protected]
Subject: Re: [OE-core] [PATCH] libbsd: Fix conflict error when enable multlib.

Quoted 7 lines · Maohui Lei (Fujitsu)

Hi.

Quoted 2 lines

This causes mg build failures see
https://errors.yoctoproject.org/Errors/Details/759473/

I'm sorry that I can't reproduce this error. I used the default qemux86.conf,

and bitbake libbsd. There is no error.

Quoted 1 line

So, can you show me your config of i686-yoe-linux?

I guess you might need to throw in meta-clang into layers and use TOOLCHAIN = "clang" perhaps.

Quoted 32 lines

Best regards
Lei

Quoted 25 lines

-----Original Message-----
From: Khem Raj <[email protected]>
Sent: Wednesday, March 20, 2024 1:22 PM
To: Lei, Maohui <[email protected]>
Cc: [email protected]
Subject: Re: [OE-core] [PATCH] libbsd: Fix conflict error when enable multlib.

This causes mg build failures see
https://errors.yoctoproject.org/Errors/Details/759473/

Quoted 13 lines · leimaohui via lists.openembedded.org

From: Lei Maohui <[email protected]>

Error: Transaction test error:
file /usr/include/bsd/sys/cdefs.h conflicts between attempted
installs of libbsd-dev-0.12.1-r0.core2_64 and lib32-libbsd-dev-0.12.1-r0.core2_32

The difference of bsd/sys/cdefs.h between libbsd-dev and lib32-libbsd-dev is as following:

/* Define the ABI for the current system. */ -#define
LIBBSD_SYS_TIME_BITS 64 +#define LIBBSD_SYS_TIME_BITS 32

#define

Quoted 15 lines
Quoted 15 lines

meta/recipes-support/libbsd/libbsd_0.12.1.bb SRC_URI =

Quoted 13 lines

LIBBSD_SYS_HAS_TIME64 1

---
 meta/recipes-support/libbsd/libbsd_0.12.1.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
meta/recipes-support/libbsd/libbsd_0.12.1.bb +0 -0
index 161dc6df43..84edd9bafa 100644
@@ -40,8 +40,12 @@ SRC_URI =

"https://libbsd.freedesktop.org/releases/${BPN}-${PV}.tar.xz"

Quoted 1 line
Quoted 2 lines
Quoted 2 lines
Quoted 1 line

SRC_URI[sha256sum] =

"d7747f8ec1baa6ff5c096a9dd587c061233dec90da0f1aedd66d830f6db6996a"

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
meta/recipes-support/libbsd/libbsd_0.12.1.bb +4 -2
-inherit autotools pkgconfig
+inherit autotools pkgconfig multilib_header
 
 DEPENDS += "libmd"
 
+do_install:append () {
+       oe_multilib_header bsd/sys/cdefs.h }
+
 BBCLASSEXTEND = "native nativesdk"
--

2.34.1

#5 lore raw
Quoted 21 lines · Maohui Lei (Fujitsu)

Hi,

Quoted 2 lines

I guess you might need to throw in meta-clang into layers and use TOOLCHAIN = "clang" perhaps.

I tried again with the following steps. Bit I still didn't reproduced the error. Is there anything I missed?

$ grep clang conf/local.conf
TOOLCHAIN = "clang"
$ grep clang conf/bblayers.conf
  /dev/common/home/leimh/community/meta-clang \
$ bitbake libbsd
Build Configuration:
BB_VERSION           = "2.7.3"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "i686-poky-linux"
MACHINE              = "qemux86"
DISTRO               = "poky"
DISTRO_VERSION       = "4.3+snapshot-08d0544be3e1881b623f18931631e412a9a0158d"
Quoted 9 lines
TUNE_FEATURES        = "m32 core2"
TARGET_FPU           = ""
meta
meta-poky
meta-yocto-bsp       = "master:08d0544be3e1881b623f18931631e412a9a0158d"
meta-clang           = "master:81e5f4eef93b5e1d6507daaf74fce28a2ccd7cf7"
......
$

That may not be sufficient. You need to run
bitbake mg

secondly, Set TOOLCHAIN = "clang" perhaps first try setting it just for mg and then for mg and libbsd
if it still does not reproduce then set it in local.conf

Quoted 94 lines

Best regards
Lei

Quoted 90 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Khem Raj
Sent: Thursday, March 21, 2024 10:20 AM
To: Lei, Maohui <[email protected]>
Cc: [email protected]
Subject: Re: [OE-core] [PATCH] libbsd: Fix conflict error when enable multlib.

Quoted 7 lines · Maohui Lei (Fujitsu)

Hi.

Quoted 2 lines

This causes mg build failures see
https://errors.yoctoproject.org/Errors/Details/759473/

I'm sorry that I can't reproduce this error. I used the default qemux86.conf,

and bitbake libbsd. There is no error.

Quoted 1 line

So, can you show me your config of i686-yoe-linux?

I guess you might need to throw in meta-clang into layers and use TOOLCHAIN = "clang" perhaps.

Quoted 32 lines

Best regards
Lei

Quoted 25 lines

-----Original Message-----
From: Khem Raj <[email protected]>
Sent: Wednesday, March 20, 2024 1:22 PM
To: Lei, Maohui <[email protected]>
Cc: [email protected]
Subject: Re: [OE-core] [PATCH] libbsd: Fix conflict error when enable multlib.

This causes mg build failures see
https://errors.yoctoproject.org/Errors/Details/759473/

Quoted 13 lines · leimaohui via lists.openembedded.org

From: Lei Maohui <[email protected]>

Error: Transaction test error:
file /usr/include/bsd/sys/cdefs.h conflicts between attempted
installs of libbsd-dev-0.12.1-r0.core2_64 and lib32-libbsd-dev-0.12.1-r0.core2_32

The difference of bsd/sys/cdefs.h between libbsd-dev and lib32-libbsd-dev is as following:

/* Define the ABI for the current system. */ -#define
LIBBSD_SYS_TIME_BITS 64 +#define LIBBSD_SYS_TIME_BITS 32

#define

Quoted 15 lines
Quoted 15 lines

meta/recipes-support/libbsd/libbsd_0.12.1.bb SRC_URI =

Quoted 13 lines

LIBBSD_SYS_HAS_TIME64 1

---
 meta/recipes-support/libbsd/libbsd_0.12.1.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
meta/recipes-support/libbsd/libbsd_0.12.1.bb +0 -0
index 161dc6df43..84edd9bafa 100644
@@ -40,8 +40,12 @@ SRC_URI =

"https://libbsd.freedesktop.org/releases/${BPN}-${PV}.tar.xz"

Quoted 1 line
Quoted 2 lines
Quoted 2 lines
Quoted 1 line

SRC_URI[sha256sum] =

"d7747f8ec1baa6ff5c096a9dd587c061233dec90da0f1aedd66d830f6db6996a"

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
meta/recipes-support/libbsd/libbsd_0.12.1.bb +4 -2
-inherit autotools pkgconfig
+inherit autotools pkgconfig multilib_header
 
 DEPENDS += "libmd"
 
+do_install:append () {
+       oe_multilib_header bsd/sys/cdefs.h }
+
 BBCLASSEXTEND = "native nativesdk"
--

2.34.1