[Webkit-unassigned] [Bug 213713] New: Build error in JavaScriptCore due to invalid use of incomplete type 'struct JSC::JSGeneratorTraits'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 29 01:21:11 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=213713

            Bug ID: 213713
           Summary: Build error in JavaScriptCore due to invalid use of
                    incomplete type 'struct JSC::JSGeneratorTraits'
           Product: WebKit
           Version: Other
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: Blocker
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: magnabosco.luca at gmail.com

Created attachment 403034

  --> https://bugs.webkit.org/attachment.cgi?id=403034&action=review

Compilation error logs

Hi,

cross-compiling wpewebkit using Yocto for a Beaglebone board (SoC ARM TI3358) the compilation stops due to a build error in JavaScriptCore.

See the related issue on https://github.com/Igalia/meta-webkit/issues/191.

The log basically says:

```
...
/home/qem/Yocto/bbg/build/tmp/work/armv7at2hf-neon-poky-linux-gnueabi/wpewebkit/2.28.2-r0/wpewebkit-2.28.2/Source/JavaScriptCore/bytecompiler/BytecodeGeneratorBase.h: In instantiation of 'class JSC::BytecodeGeneratorBase<JSC::JSGeneratorTraits>':
/home/qem/Yocto/bbg/build/tmp/work/armv7at2hf-neon-poky-linux-gnueabi/wpewebkit/2.28.2-r0/wpewebkit-2.28.2/Source/JavaScriptCore/bytecompiler/Label.h:79:48:   required from 'int JSC::GenericBoundLabel<BytecodeGenerator>::target() [with Traits = JSC::JSGeneratorTraits]'
/home/qem/Yocto/bbg/build/tmp/work/armv7at2hf-neon-poky-linux-gnueabi/wpewebkit/2.28.2-r0/wpewebkit-2.28.2/Source/JavaScriptCore/bytecompiler/Label.h:108:33:   required from 'JSC::GenericBoundLabel<BytecodeGenerator>::operator int() [with Traits = JSC::JSGeneratorTraits]'
/home/qem/Yocto/bbg/build/tmp/work/armv7at2hf-neon-poky-linux-gnueabi/wpewebkit/2.28.2-r0/wpewebkit-2.28.2/Source/JavaScriptCore/jit/JITOpcodes32_64.cpp:77:76:   required from here
/home/qem/Yocto/bbg/build/tmp/work/armv7at2hf-neon-poky-linux-gnueabi/wpewebkit/2.28.2-r0/wpewebkit-2.28.2/Source/JavaScriptCore/bytecompiler/BytecodeGeneratorBase.h:50:5: error: invalid use of incomplete type 'struct JSC::JSGeneratorTraits'
   50 |     BytecodeGeneratorBase(typename Traits::CodeBlock, uint32_t virtualRegisterCountForCalleeSaves);
      |     ^~~~~~~~~~~~~~~~~~~~~
...
/home/qem/Yocto/bbg/build/tmp/work/armv7at2hf-neon-poky-linux-gnueabi/wpewebkit/2.28.2-r0/wpewebkit-2.28.2/Source/JavaScriptCore/jit/JITPropertyAccess.cpp:1571:69: error: explicit instantiation of 'void JSC::JIT::emit_op_put_by_val(const JSC::Instruction*) [with Op = JSC::OpPutByVal]' but no definition available [-fpermissive]
...
```

I see the error compiling both:
- https://wpewebkit.org/releases/wpewebkit-2.28.1.tar.xz
- https://wpewebkit.org/releases/wpewebkit-2.28.2.tar.xz

Compiler version: GCC 9.2

Some basics Yocto configuration options

```
Build Configuration:
BB_VERSION           = "1.44.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "beaglebone"
...
TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200629/216d32d9/attachment.htm>


More information about the webkit-unassigned mailing list