recipes icon indicating copy to clipboard operation
recipes copied to clipboard

Emscripten Package Issue

Open zachcp opened this issue 1 year ago • 10 comments

I was following the instructions' on @wolfv 's great post and hit the following issue:

pixi run build-emscripten-wasm32-pkg  ./recipes/recipes_emscripten/qhull
# Cannot solve the request because of: No candidates were found for emscripten_emscripten-wasm32 3.1.45.*.

image

image

zachcp avatar Jul 30 '24 19:07 zachcp

Looks like theres a pixi init that is needed.

zachcp avatar Jul 30 '24 19:07 zachcp

Confirming that once pixi init is done, I can build ( or at least the build is in progress )

zachcp avatar Jul 30 '24 19:07 zachcp

  • Same error.
  • Also cannot build the example package, regex
# https://emscripten-forge.org/development/local_builds/
# this only needs to be done once
pixi run setup

# this builds the package
pixi run build-emscripten-wasm32-pkg recipes/recipes_emscripten/regex

zachcp avatar Jul 30 '24 19:07 zachcp

looks like the emscripten version is newer than the output. Seems that updating this version in the conda_build_config.yaml yields progress. Updating that allows the builds to proceed.

c_compiler_version:
  - if: emscripten
    then:
      - 3.1.58    // <---- was 3.1.45

zachcp avatar Jul 30 '24 19:07 zachcp

Aaaaand built! Great!

zachcp avatar Jul 30 '24 19:07 zachcp

Looks like emscripten is in the processs of being upgraded. Just bad timing on my part.

zachcp avatar Jul 30 '24 20:07 zachcp

@zachcp actually the update to emscripten 3.1.58 should not yet be visible to users. There was a tiny problem that the local builds of the compiler package where already using 3.1.58 (the version in the recipe was already the new one, I change the version in the recipe back to 3.1.45, now local builds should work as expected)

DerThorsten avatar Jul 31 '24 05:07 DerThorsten

@wolfv we could prevent these issues by also uploading the compiler packages for osx-arm64.

DerThorsten avatar Jul 31 '24 06:07 DerThorsten

Yes, it should be quite straightforward to build them in CI (especially since Github actions has the osx-arm64 runners these days).

wolfv avatar Jul 31 '24 06:07 wolfv

Yes, it should be quite straightforward to build them in CI (especially since Github actions has the osx-arm64 runners these days)

we should run this workflow also for mac https://github.com/emscripten-forge/recipes/blob/main/.github/workflows/build_recipes.yaml but only build the packages from the 'recipes/recipes' dir (and not 'recipes/recipes_emscrtipten' dir) and then only upload the packages if they are for osx-arm64 (there are also noarch pkgs in recipes/recipess)

DerThorsten avatar Jul 31 '24 07:07 DerThorsten