wasm32-wasi: compiler crash when attemp to compile variants.pp

Summary

wasm32-wasi: compiler crash when attemp to compile variants.cpp with error: Fatal: Internal error 2021102007

System Information

  • Operating system: Linux, Ubuntu 21.10
  • Processor architecture: x86-64
  • Compiler version: 3.3.1-9580-g7fcbd1d7e0
  • Device: Computer

Steps to reproduce

Compile a project for wasm32-wasi target that use variants unit

Relevant logs and/or screenshots

Compiling /home/rg/fpcupdeluxe/fpcsrc/packages/rtl-objpas/src/inc/variants.pp
variants.pp(598,6) Note: Call to subroutine "function VarType(const V:Variant):Word;" marked as inline is not inlined
variants.pp(609,6) Note: Call to subroutine "function VarType(const V:Variant):Word;" marked as inline is not inlined
variants.pp(621,6) Note: Call to subroutine "function VarType(const V:Variant):Word;" marked as inline is not inlined
variants.pp(633,6) Note: Call to subroutine "function VarType(const V:Variant):Word;" marked as inline is not inlined
variants.pp(648,6) Note: Call to subroutine "function VarType(const V:Variant):Word;" marked as inline is not inlined
variants.pp(668,6) Note: Call to subroutine "function VarType(const V:Variant):Word;" marked as inline is not inlined
variants.pp(695,6) Note: Call to subroutine "function VarType(const V:Variant):Word;" marked as inline is not inlined
variants.pp(721,12) Warning: Implicit string type conversion from "AnsiString" to "WideString"
variants.pp(717,6) Note: Call to subroutine "function VarType(const V:Variant):Word;" marked as inline is not inlined
variants.pp(789,6) Note: Call to subroutine "function VarType(const V:Variant):Word;" marked as inline is not inlined
variants.pp(836,3) Note: Call to subroutine "procedure DoVarClearIfComplex(var v:tvardata);" marked as inline is not inlined
variants.pp(850,3) Note: Call to subroutine "procedure DoVarClearIfComplex(var v:tvardata);" marked as inline is not inlined
variants.pp(890,3) Note: Call to subroutine "procedure DoVarClearIfComplex(var v:tvardata);" marked as inline is not inlined
variants.pp(899,3) Note: Call to subroutine "procedure DoVarClearIfComplex(var v:tvardata);" marked as inline is not inlined
variants.pp(909,3) Note: Call to subroutine "procedure DoVarClearIfComplex(var v:tvardata);" marked as inline is not inlined
variants.pp(918,3) Note: Call to subroutine "procedure DoVarClearIfComplex(var v:tvardata);" marked as inline is not inlined
variants.pp(927,3) Note: Call to subroutine "procedure DoVarClearIfComplex(var v:tvardata);" marked as inline is not inlined
variants.pp(937,3) Note: Call to subroutine "procedure DoVarClearIfComplex(var v:tvardata);" marked as inline is not inlined
variants.pp(948,3) Note: Call to subroutine "procedure DoVarClearIfComplex(var v:tvardata);" marked as inline is not inlined
variants.pp(959,3) Note: Call to subroutine "procedure DoVarClearIfComplex(var v:tvardata);" marked as inline is not inlined
variants.pp(969,3) Note: Call to subroutine "procedure DoVarClearIfComplex(var v:tvardata);" marked as inline is not inlined
variants.pp(980,3) Note: Call to subroutine "procedure DoVarClearIfComplex(var v:tvardata);" marked as inline is not inlined
variants.pp(990,3) Note: Call to subroutine "procedure DoVarClearIfComplex(var v:tvardata);" marked as inline is not inlined
variants.pp(1001,3) Note: Call to subroutine "procedure DoVarClearIfComplex(var v:tvardata);" marked as inline is not inlined
variants.pp(1196,13) Note: Call to subroutine "function DoVarCmpWStrDirect(const Left:Pointer;const Right:Pointer;const OpCode:tvarop):ShortInt;" marked as inline is not inlined
variants.pp(1217,13) Note: Call to subroutine "function DoVarCmpLStrDirect(const Left:Pointer;const Right:Pointer;const OpCode:tvarop):ShortInt;" marked as inline is not inlined
variants.pp(1255,5) Warning: Case statement does not handle all possible cases
variants.pp(1290,42) Note: Call to subroutine "function VarTypeDeRef(const V:tvardata):Word;" marked as inline is not inlined
variants.pp(1291,42) Note: Call to subroutine "function VarTypeDeRef(const V:tvardata):Word;" marked as inline is not inlined
variants.pp(1442,7) Warning: Case statement does not handle all possible cases

variants.pp(1474,1) Fatal: Internal error 2021102007
Fatal: Compilation aborted
Error: /home/rg/fpcupdeluxe/fpc/bin/x86_64-linux/ppcrosswasm32 returned an error exitcode
Edited by Michael Van Canneyt
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information