Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • lfortran lfortran
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 432
    • Issues 432
    • List
    • Boards
    • Service Desk
    • Milestones
    • Requirements
  • Merge requests 72
    • Merge requests 72
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • lfortranlfortran
  • lfortranlfortran
  • Merge requests
  • !1705

draft: Compiling LFortran to WASM

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Ubaid Shaikh requested to merge shaikhubaid769/lfortran:compiling_fortran_to_wasm into master Apr 18, 2022
  • Overview 2
  • Commits 12
  • Pipelines 2
  • Changes 29

An attempt towards #583

I also tried to replicate/recreate @certik 's steps from !1549 (closed).

I am currently stuck on executing ./build2.sh. The file linklibs.rsp is not being generated.

ubaid@ubaid-Lenovo-ideapad-330-15ARR:~/Desktop/My-Projects/GSoC/lfortran$ ./build2.sh 
+ make -j16 wasm_demo
[  3%] Built target lfortran_runtime_static
[ 66%] Built target asr
[ 96%] Built target lfortran_lib
[100%] Built target wasm_demo
+ cd src/bin
+ em++ -Wall -Wextra -fexceptions @CMakeFiles/wasm_demo.dir/objects1.rsp -o wasm_demo.html @CMakeFiles/wasm_demo.dir/linklibs.rsp -s 'EXPORTED_RUNTIME_METHODS=["ccall", "cwrap"]' --shell-file shell_minimal.html
em++: error: response file not found: CMakeFiles/wasm_demo.dir/linklibs.rsp
Edited Apr 18, 2022 by Ubaid Shaikh
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: compiling_fortran_to_wasm