Skip to contentSkip to conversation

mozjs: fix powerpc compile failure

PATCH In review [email protected] 2 participants 5 messages Nov 2, 2021 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mozjs: fix powerpc compile failure

From: Changqing Li <[email protected]>

powerpc disable jit by default and also have compile failure:
WasmFrame.cpp:57:76: error: static assertion failed: Aligned after pushing DebugFrame

---
 .../recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch +1 -1
index f308b4863..cc2673e74 100644
@@ -15,7 +15,7 @@ Signed-off-by: Khem Raj <[email protected]>
   protected:
  #if defined(JS_CODEGEN_MIPS32) || defined(JS_CODEGEN_ARM) || \
 +    (defined(JS_CODEGEN_NONE) && \
-+     (defined(__riscv) && __riscv_xlen == 32) || defined(__mips__)) || \
++     (defined(__riscv) && __riscv_xlen == 32) || defined(__mips__) || defined(__powerpc__)) || \
      defined(JS_CODEGEN_X86) || defined(__wasi__)
    // See alignmentStaticAsserts().  For MIPS32, ARM32 and X86 DebugFrame is only
    // 4-byte aligned, so we add another word to get up to 8-byte
Signature · 1 line
2.17.1
#1 lore raw

Can you rebase it on top of master-next and resend please

Quoted 45 lines · Changqing Li

From: Changqing Li <[email protected]>

powerpc disable jit by default and also have compile failure:
WasmFrame.cpp:57:76: error: static assertion failed: Aligned after pushing DebugFrame

---
 .../recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch b/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch index f308b4863..cc2673e74 100644
---
a/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch
+++
b/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch

meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch +1 -1
@@ -15,7 +15,7 @@ Signed-off-by: Khem Raj <[email protected]>
   protected:
  #if defined(JS_CODEGEN_MIPS32) || defined(JS_CODEGEN_ARM) || \
 +    (defined(JS_CODEGEN_NONE) && \
-+     (defined(__riscv) && __riscv_xlen == 32) || defined(__mips__)) || \
++     (defined(__riscv) && __riscv_xlen == 32) || defined(__mips__) ||
 defined(__powerpc__)) || \
      defined(JS_CODEGEN_X86) || defined(__wasi__)
    // See alignmentStaticAsserts().  For MIPS32, ARM32 and X86 DebugFrame

is only

    // 4-byte aligned, so we add another word to get up to 8-byte

--
2.17.1

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

#2 lore raw
Quoted 4 lines · Khem Raj

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

Can you rebase it on top of master-next and resend please

OK

Quoted 58 lines · On Mon, Nov 1, 2021 at 5:54 PM Changqing Li <[email protected]…
    From: Changqing Li <[email protected]
    <mailto:[email protected]>>

    powerpc disable jit by default and also have compile failure:
    WasmFrame.cpp:57:76: error: static assertion failed: Aligned after
    pushing DebugFrame

    Signed-off-by: Changqing Li <[email protected]
    <mailto:[email protected]>>
    ---
     .../recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch     |
    2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git
    a/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch
    b/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch
    index f308b4863..cc2673e74 100644
    ---
    a/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch
    +++
    b/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch
    @@ -15,7 +15,7 @@ Signed-off-by: Khem Raj <[email protected]
    <mailto:[email protected]>>
       protected:
      #if defined(JS_CODEGEN_MIPS32) || defined(JS_CODEGEN_ARM) || \
     +    (defined(JS_CODEGEN_NONE) && \
    -+     (defined(__riscv) && __riscv_xlen == 32) ||
    defined(__mips__)) || \
    ++     (defined(__riscv) && __riscv_xlen == 32) ||
    defined(__mips__) || defined(__powerpc__)) || \
          defined(JS_CODEGEN_X86) || defined(__wasi__)
        // See alignmentStaticAsserts().  For MIPS32, ARM32 and X86
    DebugFrame is only
        // 4-byte aligned, so we add another word to get up to 8-byte
    -- 
    2.17.1


    -=-=-=-=-=-=-=-=-=-=-=-
    Links: You receive all messages sent to this group.
    View/Reply Online (#93761):
    https://lists.openembedded.org/g/openembedded-devel/message/93761
    <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-devel/message/93761__;!!AjveYdw8EvQ!NiRsOPLw04xoyb1GnwAGI71nxf0BouxYWeC06ggHQqeyQ9484jDSMX9G6aIO9WN7gSIkyA$>
    Mute This Topic:
    https://lists.openembedded.org/mt/86756698/1997914
    <https://urldefense.com/v3/__https://lists.openembedded.org/mt/86756698/1997914__;!!AjveYdw8EvQ!NiRsOPLw04xoyb1GnwAGI71nxf0BouxYWeC06ggHQqeyQ9484jDSMX9G6aIO9WNP7I312g$>
    Group Owner: [email protected]
    <mailto:openembedded-devel%[email protected]>
    Unsubscribe:
    https://lists.openembedded.org/g/openembedded-devel/unsub
    <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-devel/unsub__;!!AjveYdw8EvQ!NiRsOPLw04xoyb1GnwAGI71nxf0BouxYWeC06ggHQqeyQ9484jDSMX9G6aIO9WP2-2Nt_A$>
    [[email protected] <mailto:[email protected]>]
    -=-=-=-=-=-=-=-=-=-=-=-

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 6 lines · Changqing Li
Quoted 4 lines · Khem Raj

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

Can you rebase it on top of master-next and resend please

OK

Sorry,  just find that master-next already have a patch for ppc build failure and can cover this condition.

so this patch is not needed any more.

Thanks

Changqing

Quoted 53 lines
Quoted 32 lines · On Mon, Nov 1, 2021 at 5:54 PM Changqing Li <[email protected]…
    From: Changqing Li <[email protected]
    <mailto:[email protected]>>

    powerpc disable jit by default and also have compile failure:
    WasmFrame.cpp:57:76: error: static assertion failed: Aligned
    after pushing DebugFrame

    Signed-off-by: Changqing Li <[email protected]
    <mailto:[email protected]>>
    ---
     .../recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch   
     | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git
    a/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch
    b/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch
    index f308b4863..cc2673e74 100644
    ---
    a/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch
    +++
    b/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch
    @@ -15,7 +15,7 @@ Signed-off-by: Khem Raj <[email protected]
    <mailto:[email protected]>>
       protected:
      #if defined(JS_CODEGEN_MIPS32) || defined(JS_CODEGEN_ARM) || \
     +    (defined(JS_CODEGEN_NONE) && \
    -+     (defined(__riscv) && __riscv_xlen == 32) ||
    defined(__mips__)) || \
Quoted 12 lines
    ++     (defined(__riscv) && __riscv_xlen == 32) ||
    defined(__mips__) || defined(__powerpc__)) || \
          defined(JS_CODEGEN_X86) || defined(__wasi__)
        // See alignmentStaticAsserts().  For MIPS32, ARM32 and X86
    DebugFrame is only
        // 4-byte aligned, so we add another word to get up to 8-byte
    -- 
    2.17.1

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

#5 lore raw
Quoted 8 lines · Changqing Li

On 11/2/21 9:30 AM, Changqing Li wrote:

On 11/2/21 9:01 AM, Khem Raj wrote:

[Please note: This e-mail is from an EXTERNAL e-mail address] Can you rebase it on top of master-next and resend please

Quoted 8 lines

OK

Sorry, just find that master-next already have a patch for ppc build failure and can cover this condition.

so this patch is not needed any more.

Right thanks

Quoted 55 lines

Thanks

Changqing

Quoted 29 lines · Changqing Li

From: Changqing Li <[email protected]>

powerpc disable jit by default and also have compile failure:
WasmFrame.cpp:57:76: error: static assertion failed: Aligned after pushing DebugFrame

---
 .../recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch b/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch index f308b4863..cc2673e74 100644
---
a/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch
+++
b/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch

meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs/nojit-32bit-arch-fix.patch +1 -1
@@ -15,7 +15,7 @@ Signed-off-by: Khem Raj <[email protected]>
   protected:
  #if defined(JS_CODEGEN_MIPS32) || defined(JS_CODEGEN_ARM) || \
 +    (defined(JS_CODEGEN_NONE) && \
-+     (defined(__riscv) && __riscv_xlen == 32) || defined(__mips__)) || \
++     (defined(__riscv) && __riscv_xlen == 32) || defined(__mips__) ||
 defined(__powerpc__)) || \
      defined(JS_CODEGEN_X86) || defined(__wasi__)
    // See alignmentStaticAsserts().  For MIPS32, ARM32 and X86

DebugFrame is only

Quoted 8 lines
    // 4-byte aligned, so we add another word to get up to 8-byte

--
2.17.1

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