Opened 6 years ago

Last modified 2 years ago

#56792 assigned defect

webkit2-gtk can't build +universal: due to errors in the javascript interpreter error: use of undeclared identifiers 'TagBitsWasm' 'TagWasmMask' 'offsetExtractorTable'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: cooljeanius (Eric Gallager)
Port: webkit2-gtk webkit2-gtk-devel

Description

Building webkit2-gtk with the +universal variant fails:

Source/JavaScriptCore/interpreter/CalleeBits.h:54:81: error: use of undeclared identifier 'TagBitsWasm'
        CalleeBits result(bitwise_cast<void*>(bitwise_cast<uintptr_t>(callee) | TagBitsWasm));
                                                                                ^
Source/JavaScriptCore/interpreter/CalleeBits.h:63:50: error: use of undeclared identifier 'TagWasmMask'
        return (bitwise_cast<uintptr_t>(m_ptr) & TagWasmMask) == TagBitsWasm;
                                                 ^
Source/JavaScriptCore/interpreter/CalleeBits.h:63:66: error: use of undeclared identifier 'TagBitsWasm'
        return (bitwise_cast<uintptr_t>(m_ptr) & TagWasmMask) == TagBitsWasm;
                                                                 ^
Source/JavaScriptCore/interpreter/CalleeBits.h:80:78: error: use of undeclared identifier 'TagBitsWasm'
        return bitwise_cast<Wasm::Callee*>(bitwise_cast<uintptr_t>(m_ptr) & ~TagBitsWasm);
                                                                             ^
4 errors generated.

Some possibly relevant suggestions at https://bugs.webkit.org/show_bug.cgi?id=172799

Attachments (2)

main.log.bz2 (16.8 KB) - added by ryandesign (Ryan Carsten Schmidt) 6 years ago.
main.log.2.bz2 (57.7 KB) - added by ryandesign (Ryan Carsten Schmidt) 5 years ago.

Download all attachments as: .zip

Change History (11)

Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log.bz2 added

comment:1 Changed 6 years ago by kencu (Ken)

I will admit being moderately surprised that the i386 version built at all, much less +universal !

comment:2 Changed 6 years ago by mf2k (Frank Schima)

Cc: dbevans removed
Owner: changed from jeremyhu to dbevans

comment:3 Changed 5 years ago by kencu (Ken)

There have been many changes to webkit2-gtk since this ticket came forth, so if anyone uses it +universal please report back whether it is fixed or not. I'm just not going to build webkit2-gtk +universal myself -- no reason to do so at present, and there are too many deps.

comment:4 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: webkit2-gtk @2.20.3 +universal: error: use of undeclared identifiers 'TagBitsWasm' 'TagWasmMask'webkit2-gtk @2.26.1 +universal: error: use of undeclared identifiers 'TagBitsWasm' 'TagWasmMask' 'offsetExtractorTable'

Problem still exists with 2.26.1:

Source/JavaScriptCore/interpreter/CalleeBits.h:54:89: error: use of undeclared identifier 'TagBitsWasm'
        CalleeBits result(reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(callee) | TagBitsWasm));
                                                                                        ^
Source/JavaScriptCore/interpreter/CalleeBits.h:63:54: error: use of undeclared identifier 'TagWasmMask'
        return (reinterpret_cast<uintptr_t>(m_ptr) & TagWasmMask) == TagBitsWasm;
                                                     ^
Source/JavaScriptCore/interpreter/CalleeBits.h:63:70: error: use of undeclared identifier 'TagBitsWasm'
        return (reinterpret_cast<uintptr_t>(m_ptr) & TagWasmMask) == TagBitsWasm;
                                                                     ^
Source/JavaScriptCore/interpreter/CalleeBits.h:80:86: error: use of undeclared identifier 'TagBitsWasm'
        return reinterpret_cast<Wasm::Callee*>(reinterpret_cast<uintptr_t>(m_ptr) & ~TagBitsWasm);
                                                                                     ^
Source/JavaScriptCore/llint/LLIntOffsetsExtractor.cpp:94:12: error: use of undeclared identifier 'offsetExtractorTable'
    return offsetExtractorTable;
           ^
5 errors generated.

Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log.2.bz2 added

comment:5 Changed 5 years ago by kencu (Ken)

It looks like the definitions for the undefined bits are guarded here here by a 64 bit guard. Perhaps this code is unable to build +universal for that reason (and might have to use the universal PortGroup, oh gosh, can you imagine?). Alternatively, turning of webassembly is a possibility that might eliminate the use of this code.

comment:6 Changed 4 years ago by kencu (Ken)

In 99071bbea2e17d92cabeeae19a0d112b53c5c1ef/macports-ports (master):

webkit2-gtk* : disable universal variant

unable to make this build universal after considerable
attempts. muniversal PG does not fix it. Disabling JIT
does not fix it. Help wanted, if motivated.

see #56792

comment:7 Changed 4 years ago by kencu (Ken)

Summary: webkit2-gtk @2.26.1 +universal: error: use of undeclared identifiers 'TagBitsWasm' 'TagWasmMask' 'offsetExtractorTable'webkit2-gtk can't build +universal: due to errors in the javascript interpreter error: use of undeclared identifiers 'TagBitsWasm' 'TagWasmMask' 'offsetExtractorTable'

comment:8 Changed 4 years ago by kencu (Ken)

Port: webkit2-gtk-devel added

comment:9 Changed 2 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.