Skip to contentSkip to conversation

strace: set COMPATIBLE_HOST for riscv32

PATCH In review [email protected] 2 participants 6 messages Jul 5, 2022 – Jul 25, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 strace: set COMPATIBLE_HOST for riscv32

From: Mingli Yu <[email protected]>

Disable the build on riscv32 as it's not supported on riscv32 [1].

[1] https://github.com/strace/strace/commit/69ff62ea5087506ad36a27599db088096db215da

---
 meta/recipes-devtools/strace/strace_5.18.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-devtools/strace/strace_5.18.bb +3 -0
index 08f0f1d27e..75ff58bd50 100644
@@ -18,6 +18,9 @@ SRC_URI[sha256sum] = "60293ea79ac9253d600cdc9be077ad2988ca22284a439c9e66be5150db
 
 inherit autotools ptest
 
+# Not yet ported to rv32
+COMPATIBLE_HOST:riscv32 = "null"
+
 PACKAGECONFIG:class-target ??= "\
     ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \
 "
Signature · 1 line
2.25.1
#1 lore raw
Quoted 16 lines · Mingli

From: Mingli Yu <[email protected]>

Disable the build on riscv32 as it's not supported on riscv32 [1].

[1] https://github.com/strace/strace/commit/69ff62ea5087506ad36a27599db088096db215da

---
  meta/recipes-devtools/strace/strace_5.18.bb | 3 +++
  1 file changed, 3 insertions(+)
meta/recipes-devtools/strace/strace_5.18.bb +0 -0
index 08f0f1d27e..75ff58bd50 100644

meta/recipes-devtools/strace/strace_5.18.bb SRC_URI[sha256sum] = "60293ea79ac9253d600cdc9be077ad2988ca22284a439c9e66be5150db · line 23

Quoted 6 lines
meta/recipes-devtools/strace/strace_5.18.bb +3 -0
@@ -18,6 +18,9 @@ SRC_URI[sha256sum] = "60293ea79ac9253d600cdc9be077ad2988ca22284a439c9e66be5150db
 
  inherit autotools ptest
 
+# Not yet ported to rv32
+COMPATIBLE_HOST:riscv32 = "null"
+

there might be more changes needed especially in package groups perhaps.

Quoted 12 lines
meta/recipes-devtools/strace/strace_5.18.bb +0 -1
  PACKAGECONFIG:class-target ??= "\
      ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \
  "
 
-=-=-=-=-=-=-=-=-=-=-=-

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

author
#2 lore raw

Hi Khem,

Quoted 22 lines · Khem Raj

[Please note: This e-mail is from an EXTERNAL e-mail address]

Quoted 19 lines · Mingli

From: Mingli Yu <[email protected]>

Disable the build on riscv32 as it's not supported on riscv32 [1].

[1] https://github.com/strace/strace/commit/69ff62ea5087506ad36a27599db088096db215da

---
  meta/recipes-devtools/strace/strace_5.18.bb | 3 +++

  1 file changed, 3 insertions(+)
meta/recipes-devtools/strace/strace_5.18.bb +0 -0
index 08f0f1d27e..75ff58bd50 100644
@@ -18,6 +18,9 @@ SRC_URI[sha256sum] = 

"60293ea79ac9253d600cdc9be077ad2988ca22284a439c9e66be5150db

Quoted 7 lines

meta/recipes-devtools/strace/strace_5.18.bb SRC_URI[sha256sum] = "60293ea79ac9253d600cdc9be077ad2988ca22284a439c9e66be5150db · line 23

Quoted 5 lines

  inherit autotools ptest

meta/recipes-devtools/strace/strace_5.18.bb +3 -0
+# Not yet ported to rv32
+COMPATIBLE_HOST:riscv32 = "null"
+

there might be more changes needed especially in package groups perhaps.

What do you mean when you mentioned package groups here?

There comes do_configure error as below:

| checking for supported architecture... NO!
| configure: error: architecture riscv32 is not supported by strace
| NOTE: The following config.log files may provide further information.
| NOTE: /buildarea/build/tmp-glibc/work/riscv32-wrs-linux/strace/5.18-r0/build/config.log
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.

Considering no support for riscv32 until now as https://github.com/strace/strace/commit/69ff62ea5087506ad36a27599db088096db215da, so we set COMPATIBLE_HOST for riscv32.

Thanks,

Quoted 13 lines
Quoted 13 lines

  PACKAGECONFIG:class-target ??= "\
      ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \
  "

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

#3 lore raw
Quoted 48 lines · Mingli

Hi Khem,

Quoted 9 lines · Khem Raj

[Please note: This e-mail is from an EXTERNAL e-mail address]

Quoted 6 lines · Mingli

From: Mingli Yu <[email protected]>

Disable the build on riscv32 as it's not supported on riscv32 [1].

[1]

https://github.com/strace/strace/commit/69ff62ea5087506ad36a27599db088096db215da

Quoted 15 lines
Quoted 15 lines
---
  meta/recipes-devtools/strace/strace_5.18.bb | 3 +++
  1 file changed, 3 insertions(+)
meta/recipes-devtools/strace/strace_5.18.bb +0 -0
index 08f0f1d27e..75ff58bd50 100644
@@ -18,6 +18,9 @@ SRC_URI[sha256sum] =

"60293ea79ac9253d600cdc9be077ad2988ca22284a439c9e66be5150db

Quoted 7 lines

meta/recipes-devtools/strace/strace_5.18.bb SRC_URI[sha256sum] = "60293ea79ac9253d600cdc9be077ad2988ca22284a439c9e66be5150db · line 23

Quoted 5 lines

inherit autotools ptest

meta/recipes-devtools/strace/strace_5.18.bb +3 -0
+# Not yet ported to rv32
+COMPATIBLE_HOST:riscv32 = "null"
+

there might be more changes needed especially in package groups perhaps.

What do you mean when you mentioned package groups here?

There comes do_configure error as below:

| checking for supported architecture... NO!
| configure: error: architecture riscv32 is not supported by strace
| NOTE: The following config.log files may provide further information.
| NOTE:

/buildarea/build/tmp-glibc/work/riscv32-wrs-linux/strace/5.18-r0/build/config.log | ERROR: configure failed
| WARNING: exit code 1 from a shell command.

Quoted 5 lines

Considering no support for riscv32 until now as

https://github.com/strace/strace/commit/69ff62ea5087506ad36a27599db088096db215da,

so we set COMPATIBLE_HOST for riscv32.

That’s fine. I think strace is added in some other places to images and package groups you might have to remove it for rv32 from them

Quoted 21 lines

Thanks,

Quoted 16 lines
Quoted 16 lines
  PACKAGECONFIG:class-target ??= "\
      ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez',

'', d)} \
"

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

author
#4 lore raw

Hi Khem,

Quoted 72 lines · Khem Raj

**[Please note: This e-mail is from an EXTERNAL e-mail address]

On Wed, Jul 20, 2022 at 5:35 AM Yu, Mingli <[email protected] <mailto:[email protected]>> wrote:

    Hi Khem,

    On 7/5/22 21:39, Khem Raj wrote:
     > [Please note: This e-mail is from an EXTERNAL e-mail address]
     >
     > On 7/5/22 3:03 AM, Yu, Mingli wrote:
     >> From: Mingli Yu <[email protected]
    <mailto:[email protected]>>
     >>
     >> Disable the build on riscv32 as it's not supported on riscv32 [1].
     >>
     >> [1]
     >>
    https://github.com/strace/strace/commit/69ff62ea5087506ad36a27599db088096db215da
    <https://urldefense.com/v3/__https://github.com/strace/strace/commit/69ff62ea5087506ad36a27599db088096db215da__;!!AjveYdw8EvQ!d673WVMyl0hCL6dOFMygQ4BahOO10FPcaHhp2S9NPJswj86MPAabH2_xYSt5fUlR_1bzG8tBtYLgvWe7uKs$>

     >>
     >>
     >> Signed-off-by: Mingli Yu <[email protected]
    <mailto:[email protected]>>
     >> ---
     >>   meta/recipes-devtools/strace/strace_5.18.bb
    <https://urldefense.com/v3/__http://strace_5.18.bb__;!!AjveYdw8EvQ!d673WVMyl0hCL6dOFMygQ4BahOO10FPcaHhp2S9NPJswj86MPAabH2_xYSt5fUlR_1bzG8tBtYLg5BtLgGc$>
    | 3 +++
     >>   1 file changed, 3 insertions(+)
     >>
     >> diff --git a/meta/recipes-devtools/strace/strace_5.18.bb
    <https://urldefense.com/v3/__http://strace_5.18.bb__;!!AjveYdw8EvQ!d673WVMyl0hCL6dOFMygQ4BahOO10FPcaHhp2S9NPJswj86MPAabH2_xYSt5fUlR_1bzG8tBtYLg5BtLgGc$>

     >> b/meta/recipes-devtools/strace/strace_5.18.bb
    <https://urldefense.com/v3/__http://strace_5.18.bb__;!!AjveYdw8EvQ!d673WVMyl0hCL6dOFMygQ4BahOO10FPcaHhp2S9NPJswj86MPAabH2_xYSt5fUlR_1bzG8tBtYLg5BtLgGc$>
     >> index 08f0f1d27e..75ff58bd50 100644
     >> --- a/meta/recipes-devtools/strace/strace_5.18.bb
    <https://urldefense.com/v3/__http://strace_5.18.bb__;!!AjveYdw8EvQ!d673WVMyl0hCL6dOFMygQ4BahOO10FPcaHhp2S9NPJswj86MPAabH2_xYSt5fUlR_1bzG8tBtYLg5BtLgGc$>
     >> +++ b/meta/recipes-devtools/strace/strace_5.18.bb
    <https://urldefense.com/v3/__http://strace_5.18.bb__;!!AjveYdw8EvQ!d673WVMyl0hCL6dOFMygQ4BahOO10FPcaHhp2S9NPJswj86MPAabH2_xYSt5fUlR_1bzG8tBtYLg5BtLgGc$>
     >> @@ -18,6 +18,9 @@ SRC_URI[sha256sum] =
     >> "60293ea79ac9253d600cdc9be077ad2988ca22284a439c9e66be5150db
     >>
     >>   inherit autotools ptest
     >>
     >> +# Not yet ported to rv32
     >> +COMPATIBLE_HOST:riscv32 = "null"
     >> +
     >
     > there might be more changes needed especially in package groups
    perhaps.

    What do you mean when you mentioned package groups here?

    There comes do_configure error as below:
    | checking for supported architecture... NO!
    | configure: error: architecture riscv32 is not supported by strace
    | NOTE: The following config.log files may provide further information.
    | NOTE:
    /buildarea/build/tmp-glibc/work/riscv32-wrs-linux/strace/5.18-r0/build/config.log
    | ERROR: configure failed
    | WARNING: exit code 1 from a shell command.

    Considering no support for riscv32 until now as
    https://github.com/strace/strace/commit/69ff62ea5087506ad36a27599db088096db215da
    <https://urldefense.com/v3/__https://github.com/strace/strace/commit/69ff62ea5087506ad36a27599db088096db215da__;!!AjveYdw8EvQ!d673WVMyl0hCL6dOFMygQ4BahOO10FPcaHhp2S9NPJswj86MPAabH2_xYSt5fUlR_1bzG8tBtYLgvWe7uKs$>,

    so we set COMPATIBLE_HOST for riscv32.
Quoted 2 lines

That’s fine. I think strace is added in some other places to images and package groups you might have to remove it for rv32 from them

The strace for rv32 has already excluded in package group as https://git.openembedded.org/openembedded-core/commit/?id=bec777887e7eed9a12b08231a612aaf19b622614.

Thanks,

Quoted 28 lines
    Thanks,

     >
     >>   PACKAGECONFIG:class-target ??= "\
     >>       ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez',
     >> '', d)} \
     >>   "
     >>
     >> -=-=-=-=-=-=-=-=-=-=-=-
     >> Links: You receive all messages sent to this group.
     >> View/Reply Online (#167640):
     >>
    https://lists.openembedded.org/g/openembedded-core/message/167640
    <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-core/message/167640__;!!AjveYdw8EvQ!d673WVMyl0hCL6dOFMygQ4BahOO10FPcaHhp2S9NPJswj86MPAabH2_xYSt5fUlR_1bzG8tBtYLgnVp3icY$>
     >> Mute This Topic:
    https://lists.openembedded.org/mt/92180245/1997914
    <https://urldefense.com/v3/__https://lists.openembedded.org/mt/92180245/1997914__;!!AjveYdw8EvQ!d673WVMyl0hCL6dOFMygQ4BahOO10FPcaHhp2S9NPJswj86MPAabH2_xYSt5fUlR_1bzG8tBtYLgRjA59ns$>
     >> Group Owner: [email protected]
    <mailto:openembedded-core%[email protected]>
     >> Unsubscribe:
    https://lists.openembedded.org/g/openembedded-core/unsub
    <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-core/unsub__;!!AjveYdw8EvQ!d673WVMyl0hCL6dOFMygQ4BahOO10FPcaHhp2S9NPJswj86MPAabH2_xYSt5fUlR_1bzG8tBtYLgVRirgww$>

     >> [[email protected] <mailto:[email protected]>]
     >> -=-=-=-=-=-=-=-=-=-=-=-
     >>
#5 lore raw
Quoted 95 lines · Mingli

Hi Khem,

Quoted 7 lines · Khem Raj

**[Please note: This e-mail is from an EXTERNAL e-mail address]

On Wed, Jul 20, 2022 at 5:35 AM Yu, Mingli <[email protected] <mailto:[email protected]>> wrote:

Quoted 10 lines
    Hi Khem,

    On 7/5/22 21:39, Khem Raj wrote:
     > [Please note: This e-mail is from an EXTERNAL e-mail address]
     >
     > On 7/5/22 3:03 AM, Yu, Mingli wrote:
     >> From: Mingli Yu <[email protected]
    <mailto:[email protected]>>
     >>
     >> Disable the build on riscv32 as it's not supported on riscv32

[1].

Quoted 4 lines
     >>
     >> [1]
     >>

https://github.com/strace/strace/commit/69ff62ea5087506ad36a27599db088096db215da

Quoted 1 line
    <

https://urldefense.com/v3/__https://github.com/strace/strace/commit/69ff62ea5087506ad36a27599db088096db215da__;!!AjveYdw8EvQ!d673WVMyl0hCL6dOFMygQ4BahOO10FPcaHhp2S9NPJswj86MPAabH2_xYSt5fUlR_1bzG8tBtYLgvWe7uKs$

Quoted 9 lines

     >>
     >>
     >> Signed-off-by: Mingli Yu <[email protected]
    <mailto:[email protected]>>
     >> ---
     >>   meta/recipes-devtools/strace/strace_5.18.bb
    <

https://urldefense.com/v3/__http://strace_5.18.bb__;!!AjveYdw8EvQ!d673WVMyl0hCL6dOFMygQ4BahOO10FPcaHhp2S9NPJswj86MPAabH2_xYSt5fUlR_1bzG8tBtYLg5BtLgGc$

Quoted 6 lines
    | 3 +++
     >>   1 file changed, 3 insertions(+)
     >>
     >> diff --git a/meta/recipes-devtools/strace/strace_5.18.bb
    <

https://urldefense.com/v3/__http://strace_5.18.bb__;!!AjveYdw8EvQ!d673WVMyl0hCL6dOFMygQ4BahOO10FPcaHhp2S9NPJswj86MPAabH2_xYSt5fUlR_1bzG8tBtYLg5BtLgGc$

Quoted 4 lines

     >> b/meta/recipes-devtools/strace/strace_5.18.bb
    <

https://urldefense.com/v3/__http://strace_5.18.bb__;!!AjveYdw8EvQ!d673WVMyl0hCL6dOFMygQ4BahOO10FPcaHhp2S9NPJswj86MPAabH2_xYSt5fUlR_1bzG8tBtYLg5BtLgGc$

Quoted 4 lines
     >> index 08f0f1d27e..75ff58bd50 100644
     >> --- a/meta/recipes-devtools/strace/strace_5.18.bb
    <

https://urldefense.com/v3/__http://strace_5.18.bb__;!!AjveYdw8EvQ!d673WVMyl0hCL6dOFMygQ4BahOO10FPcaHhp2S9NPJswj86MPAabH2_xYSt5fUlR_1bzG8tBtYLg5BtLgGc$

Quoted 3 lines
     >> +++ b/meta/recipes-devtools/strace/strace_5.18.bb
    <

https://urldefense.com/v3/__http://strace_5.18.bb__;!!AjveYdw8EvQ!d673WVMyl0hCL6dOFMygQ4BahOO10FPcaHhp2S9NPJswj86MPAabH2_xYSt5fUlR_1bzG8tBtYLg5BtLgGc$

Quoted 13 lines

>> @@ -18,6 +18,9 @@ SRC_URI[sha256sum] =
>> "60293ea79ac9253d600cdc9be077ad2988ca22284a439c9e66be5150db >>
>> inherit autotools ptest
>>
>> +# Not yet ported to rv32
>> +COMPATIBLE_HOST:riscv32 = "null"
>> +
>
> there might be more changes needed especially in package groups
perhaps.

Quoted 6 lines

What do you mean when you mentioned package groups here?

There comes do_configure error as below:
| checking for supported architecture... NO!
| configure: error: architecture riscv32 is not supported by strace | NOTE: The following config.log files may provide further

information.

Quoted 2 lines
    | NOTE:

/buildarea/build/tmp-glibc/work/riscv32-wrs-linux/strace/5.18-r0/build/config.log

Quoted 5 lines

| ERROR: configure failed
| WARNING: exit code 1 from a shell command.

Considering no support for riscv32 until now as

https://github.com/strace/strace/commit/69ff62ea5087506ad36a27599db088096db215da

Quoted 1 line
    <

https://urldefense.com/v3/__https://github.com/strace/strace/commit/69ff62ea5087506ad36a27599db088096db215da__;!!AjveYdw8EvQ!d673WVMyl0hCL6dOFMygQ4BahOO10FPcaHhp2S9NPJswj86MPAabH2_xYSt5fUlR_1bzG8tBtYLgvWe7uKs$

Quoted 5 lines

,

so we set COMPATIBLE_HOST for riscv32.

Quoted 8 lines
Quoted 3 lines

That’s fine. I think strace is added in some other places to images and package groups you might have to remove it for rv32 from them

The strace for rv32 has already excluded in package group as

https://git.openembedded.org/openembedded-core/commit/?id=bec777887e7eed9a12b08231a612aaf19b622614
.

Thanks I am ok with this patch then

Quoted 40 lines

Thanks,

Quoted 6 lines
    Thanks,

     >
     >>   PACKAGECONFIG:class-target ??= "\
     >>       ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth',

'bluez',

Quoted 9 lines
     >> '', d)} \
     >>   "
     >>
     >> -=-=-=-=-=-=-=-=-=-=-=-
     >> Links: You receive all messages sent to this group.
     >> View/Reply Online (#167640):
     >>
    https://lists.openembedded.org/g/openembedded-core/message/167640
    <

https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-core/message/167640__;!!AjveYdw8EvQ!d673WVMyl0hCL6dOFMygQ4BahOO10FPcaHhp2S9NPJswj86MPAabH2_xYSt5fUlR_1bzG8tBtYLgnVp3icY$

Quoted 4 lines
     >> Mute This Topic:
    https://lists.openembedded.org/mt/92180245/1997914
    <

https://urldefense.com/v3/__https://lists.openembedded.org/mt/92180245/1997914__;!!AjveYdw8EvQ!d673WVMyl0hCL6dOFMygQ4BahOO10FPcaHhp2S9NPJswj86MPAabH2_xYSt5fUlR_1bzG8tBtYLgRjA59ns$

Quoted 6 lines

>> Group Owner: [email protected]
<mailto:openembedded-core%[email protected]>
>> Unsubscribe:
https://lists.openembedded.org/g/openembedded-core/unsub
<

https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-core/unsub__;!!AjveYdw8EvQ!d673WVMyl0hCL6dOFMygQ4BahOO10FPcaHhp2S9NPJswj86MPAabH2_xYSt5fUlR_1bzG8tBtYLgVRirgww$

Quoted 6 lines

     >> [[email protected] <mailto:[email protected]>]
     >> -=-=-=-=-=-=-=-=-=-=-=-
     >>