Unable to build WebAssembly compiler
Summary
Running instructions to compile a WebAssembly compiler does not produce a valid result.
System Information
- Operating system: Ubuntu 20 (via WSL2 with Windows as host)
- Processor architecture: x86
- Compiler version: 49af134b
- Device: Computer
Steps to reproduce
- Install LLVM 11
- Link
llvm-mcandwasm-ldwithwasm32-wasi-andwasm32-embedded-prefixes in/usr/local/binto the installed ones - Clone FPC into
fpc-wasm - Run
make all OS_TARGET=wasi CPU_TARGET=wasm32 BINUTILSPREFIX= OPT="-O-" PP=fpcin thefpc-wasmdirectory
What is the current bug behavior?
Compilation completes but no valid result is to be seen. An example of what might be printed before process exits:
[ 81%] Compiled package tplylib
make[2]: Leaving directory '/home/stas/fpc-wasm/packages'
make[1]: Leaving directory '/home/stas/fpc-wasm'
/usr/bin/echo Build > build-stamp.wasm32-wasi
/usr/bin/echo Build > base.build-stamp.wasm32-wasi
The contents of both wasm32-wasi files only contains Build text.
What is the expected (correct) behavior?
A compiler executable should be located somewhere in the fpc-wasm folder
Edited by Stanislav Lashmanov