conda-forge / lfortran-feedstock

A conda-smithy repository for lfortran.
BSD 3-Clause "New" or "Revised" License
6 stars 9 forks source link

WIP: Build with target wasm #82

Closed IsabelParedes closed 5 months ago

IsabelParedes commented 6 months ago

Checklist

conda-forge-webservices[bot] commented 6 months ago

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

I do have some suggestions for making it better though...

For recipe:

conda-forge-webservices[bot] commented 6 months ago

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

IsabelParedes commented 6 months ago

@conda-forge-admin, please rerender

certik commented 6 months ago

Thanks @IsabelParedes for the PR!

Let's document what the blockers are and let's fix them one by one.

Is setting WASI_SDK_PATH one such blocker? Does the suggestion from @Shaikh-Ubaid above help?

Are there other blockers?

conda-forge-webservices[bot] commented 6 months ago

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

I do have some suggestions for making it better though...

For recipe:

IsabelParedes commented 6 months ago
[  4%] Cross compiling lfortran_intrinscs.c to lfortran_runtime_wasm.o
../../../../wasi-sdk-22.0/bin/clang: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by ../../../../wasi-sdk-22.0/bin/clang)
make[2]: *** [src/runtime/legacy/CMakeFiles/lfortran_runtime_wasm.dir/build.make:73: src/runtime/legacy/lfortran_runtime_wasm.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:692: src/runtime/legacy/CMakeFiles/lfortran_runtime_wasm.dir/all] Error 2
IsabelParedes commented 6 months ago

@Shaikh-Ubaid @certik

When building locally from the main branch (commit 0ea994d2c6bf834ca73fd298bd5e4256db4769b4), it is not necessary to have the wasi-sdk installed. So I'm not sure if WASI_SKD_PATH is a problem in general or just an problem for this version.

Shaikh-Ubaid commented 6 months ago

When building locally from the main branch (commit 0ea994d2c6bf834ca73fd298bd5e4256db4769b4), it is not necessary to have the wasi-sdk installed. So I'm not sure if WASI_SKD_PATH is a problem in general or just an problem for this version.

You need atleast WASI_SDK_PATH or EMSDK_PATH to be set. (Having both of them set should be fine, I think.)

Shaikh-Ubaid commented 5 months ago

Looks like both 19 and 21 did not work. I will explore this on coming Saturday/Sunday.

Shaikh-Ubaid commented 5 months ago

We made some progress over here https://github.com/conda-forge/lfortran-feedstock/pull/83. I think we are close. Also some observations:

certik commented 5 months ago

We can make a new release of LFortran any time. Just let me know.

IsabelParedes commented 5 months ago

Thanks for the new release!!!

IsabelParedes commented 5 months ago

Closing this in favor of v0.36.0 https://github.com/conda-forge/lfortran-feedstock/pull/84