Skip to content

emscripten: 3.1.73 -> 4.0.8 - #380263

Merged
willcohen merged 2 commits into
NixOS:masterfrom
willcohen:emscripten-4.0.2
May 7, 2025
Merged

willcohen merged 2 commits into
NixOS:masterfrom
willcohen:emscripten-4.0.2

Conversation

@willcohen

@willcohen willcohen commented Feb 8, 2025 •

Copy link
Copy Markdown
Contributor

Upgraded to emscripten 4.0.8 and binaryen 123, now that #378713 has landed. @RossComputerGuy

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@nix-owners
nix-owners Bot requested a review from RaitoBezarius February 8, 2025 01:57
@github-actions github-actions Bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Feb 8, 2025
@nix-owners
nix-owners Bot requested review from matthewbauer and qknight February 8, 2025 02:04
@github-actions github-actions Bot added 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. and removed 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. labels Feb 8, 2025
@nix-owners
nix-owners Bot requested a review from asppsa February 8, 2025 02:08
@RossComputerGuy

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 380263


aarch64-linux

⏩ 2 packages marked as broken and skipped:
  • magnetophonDSP.ConstantDetuneChorus
  • magnetophonDSP.VoiceOfFaust
❌ 44 packages failed to build:
  • binaryen
  • emscripten
  • faust (faust2)
  • faust2alqt
  • faust2alsa
  • faust2csound
  • faust2firefox
  • faust2jack
  • faust2jackrust
  • faust2jaqt
  • faust2ladspa
  • faust2lv2
  • faust2sc
  • faustPhysicalModeling
  • faustlive
  • guitarix
  • kapitonov-plugins-pack
  • lldap
  • lldap-cli
  • magnetophonDSP.CharacterCompressor
  • magnetophonDSP.CompBus
  • magnetophonDSP.LazyLimiter
  • magnetophonDSP.MBdistortion
  • magnetophonDSP.RhythmDelay
  • magnetophonDSP.faustCompressors
  • magnetophonDSP.pluginUtils
  • magnetophonDSP.shelfMultiBand
  • mooSpace
  • open-music-kontrollers.mephisto
  • pagefind
  • python312Packages.rerun-sdk
  • python312Packages.rerun-sdk.dist
  • python313Packages.rerun-sdk
  • python313Packages.rerun-sdk.dist
  • rerun
  • tambura
  • teleport (teleport_16)
  • teleport.client (teleport_16.client)
  • teleport_15
  • teleport_15.client
  • tetrio-plus
  • tinygo
  • tpsecore
  • vlang

@RossComputerGuy

Copy link
Copy Markdown
Member
binaryen> ======================================================================
binaryen> ERROR: setUpClass (test.unit.test_cluster_fuzz.ClusterFuzz)
binaryen> ----------------------------------------------------------------------
binaryen> Traceback (most recent call last):
binaryen>   File "/build/source/test/unit/test_cluster_fuzz.py", line 41, in setUpClass
binaryen>     shared.run_process(cmd)
binaryen>   File "/build/source/scripts/test/shared.py", line 323, in run_process
binaryen>     ret = subprocess.run(cmd, check=check, input=input, *args, **kw)
binaryen>           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
binaryen>   File "/nix/store/rfm2viz8cpyahnmraaayhmki7v9767gg-python3-3.12.8/lib/python3.12/subprocess.py", line 548, in run
binaryen>     with Popen(*popenargs, **kwargs) as process:
binaryen>          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
binaryen>   File "/nix/store/rfm2viz8cpyahnmraaayhmki7v9767gg-python3-3.12.8/lib/python3.12/subprocess.py", line 1026, in __init__
binaryen>     self._execute_child(args, executable, preexec_fn, close_fds,
binaryen>   File "/nix/store/rfm2viz8cpyahnmraaayhmki7v9767gg-python3-3.12.8/lib/python3.12/subprocess.py", line 1955, in _execute_child
binaryen>     raise child_exception_type(errno_num, err_msg, err_filename)
binaryen> FileNotFoundError: [Errno 2] No such file or directory: '/build/source/scripts/bundle_clusterfuzz.py'
binaryen>
binaryen> ----------------------------------------------------------------------
binaryen> Ran 7 tests in 1.501s
binaryen>
binaryen> FAILED (errors=1)
binaryen> Traceback (most recent call last):
binaryen>   File "/build/source/build/../check.py", line 408, in <module>
binaryen>     sys.exit(main())
binaryen>              ^^^^^^
binaryen>   File "/build/source/build/../check.py", line 391, in main
binaryen>     TEST_SUITES[test]()
binaryen>   File "/build/source/build/../check.py", line 317, in run_unittest
binaryen>     raise Exception("unittest failed")
binaryen> Exception: unittest failed

@willcohen

Copy link
Copy Markdown
Contributor Author

Thanks -- will take a look.

@willcohen

Copy link
Copy Markdown
Contributor Author

Forgot to update the test suite revision -- also bumping binaryen to the next point release.

@willcohen

Copy link
Copy Markdown
Contributor Author

nixpkgs-review is showing nothing to be built on my mac, but it does work via nix-build.

@antonmosich

Copy link
Copy Markdown
Contributor

Still can't build binaryen

Build log tail
cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LOCALEDIR=/nix/store/dyq0qsyhzk5f19>
-- The C compiler identification is GNU 14.2.1
-- The CXX compiler identification is GNU 14.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /nix/store/4ijy8jbsiqmj37avrk83gn2m903486mr-gcc-wrapper-14-20241116/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /nix/store/4ijy8jbsiqmj37avrk83gn2m903486mr-gcc-wrapper-14-20241116/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Building with -fno-omit-frame-pointer
-- Building with -fno-rtti
-- Building with -fPIC
-- Building with -UNDEBUG
CMake Error at third_party/CMakeLists.txt:5 (target_compile_options):
  Cannot specify compile options for target "gtest" which is not built by
  this project.


CMake Error at third_party/CMakeLists.txt:6 (target_compile_options):
  Cannot specify compile options for target "gtest_main" which is not built
  by this project.


-- Building with -DBUILD_LLVM_DWARF
-- Building with -Wall
-- Building with -Werror
-- Building with -Wextra
-- Building with -Wno-unused-parameter
-- Building with -Wno-dangling-pointer
-- Building with -Wno-implicit-int-float-conversion
-- Building with -Wno-unknown-warning-option
-- Building with -Wswitch
-- Building with -Wimplicit-fallthrough
-- Building with -Wnon-virtual-dtor
-- Building libbinaryen as shared library.
-- Configuring incomplete, errors occurred!

@willcohen
willcohen marked this pull request as draft February 8, 2025 15:16
@willcohen

Copy link
Copy Markdown
Contributor Author

Thanks — I’ll probably need till after the weekend to dig in more on this. Moving to draft for now.

@willcohen

Copy link
Copy Markdown
Contributor Author

@uncenter @wirew0rm
Do either of you with access to a linux box have any suggestions for what's causing binaryen to stick here?

@uncenter

uncenter commented Mar 2, 2025

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 380263


aarch64-darwin

❌ 7 packages failed to build:
  • emscripten
  • faust (faust2)
  • faust2csound
  • faust2firefox
  • faust2jackrust
  • faust2ladspa
  • faust2lv2
✅ 13 packages built:
  • binaryen
  • pagefind
  • python312Packages.rerun-sdk
  • python312Packages.rerun-sdk.dist
  • python313Packages.rerun-sdk
  • python313Packages.rerun-sdk.dist
  • rerun
  • teleport (teleport_16)
  • teleport.client (teleport_16.client)
  • teleport_15
  • teleport_15.client
  • tinygo
  • vlang

emscripten failing to build via nixpkgs-review on aarch64 darwin for me (and on x86_64 linux, going to work with the darwin logs for now), but I could build emscripten successfully after checking out this branch and running nix-build -A emscripten.

For some reason the logs are always unavailable after each run for the failed packages?

error: build log of '/nix/store/pw7g3yksw044kvmn9wc19g0yr43yk09m-emscripten-4.0.2.drv^*' is not available
error: build log of '/nix/store/h8zzinnhssbapk86mmjfdm0bc53m7qlb-emscripten-4.0.2' is not available
error: build log of '/nix/store/b40k9dr3abrq1pjiivgv1fnrvm8jc4h6-faust-2.77.3.drv^*' is not available
error: build log of '/nix/store/fsmw1l9rwbql4fhmd2h3554i4gcdl242-faust-2.77.3' is not available
error: build log of '/nix/store/xa38zgbl3kp8f1hw4vh77sznw8qmjclc-faust2csound-2.77.3.drv^*' is not available
error: build log of '/nix/store/lix98blnxdm2rndc439l2pa8amf8mrk8-faust2csound-2.77.3' is not available
error: build log of '/nix/store/4xz5l0gkm782vkj8pv3j62wsdkdc4chn-faust2firefox-2.77.3.drv^*' is not available
error: build log of '/nix/store/7ymjh08mm7xv4hhvy9dhzvgcsjvjaqb4-faust2firefox-2.77.3' is not available
error: build log of '/nix/store/b88cm6my4q28fgbr8ahdkic90vg1g0i2-faust2jackrust-2.77.3.drv^*' is not available
error: build log of '/nix/store/vxkp32b52p5rr9bsvxgw4f936f6bzv2g-faust2jackrust-2.77.3' is not available
error: build log of '/nix/store/k7zfvkn3bf0ahk3bq0hcswgxz2rzq8wf-faust2ladspa-2.77.3.drv^*' is not available
error: build log of '/nix/store/gx2hqhp41kkyvqi6whfgj8mxb8kzhynh-faust2ladspa-2.77.3' is not available
error: build log of '/nix/store/8jc1vlrqjyxih38bxzz4503i7khx2q58-faust2lv2-2.77.3.drv^*' is not available
error: build log of '/nix/store/g09d6mbz4z83gzjlq1g3ypc5sl40wppd-faust2lv2-2.77.3' is not available

@willcohen
willcohen force-pushed the emscripten-4.0.2 branch 4 times, most recently from b6229b3 to d7ca2f0 Compare April 6, 2025 15:38
@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Apr 7, 2025
@willcohen

Copy link
Copy Markdown
Contributor Author

binaryen is now finally failing for me on Mac, so I'll see if I can get the build working again, and hopefully it mirrors what's happening on aarch64 linux. Once I solve that this may be ready to go eventually.

@arximboldi

Copy link
Copy Markdown
Contributor

I'm trying this branch as I'm very interested in the emscripten update. I'm having the same binaryen build issues on x86 Linux.

@willcohen

Copy link
Copy Markdown
Contributor Author

Attempting reverting the gtest change from 789c30f to see if this fixes the build.

@ofborg ofborg Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label May 6, 2025
@willcohen

Copy link
Copy Markdown
Contributor Author

I think I got it -- running local builds to confirm before pushing to this branch.

It appears to be that googletest just needs to change to gtest in https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/binaryen/default.nix#L41. The only reason it fails on linux is because tests are only currently run on linux: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/binaryen/default.nix#L80.

@willcohen
willcohen force-pushed the emscripten-4.0.2 branch from ec82cdb to 09c2e6d Compare May 6, 2025 17:29
@willcohen willcohen changed the title emscripten: 3.1.73 -> 4.0.2 emscripten: 3.1.73 -> 4.0.8 May 6, 2025
@willcohen

Copy link
Copy Markdown
Contributor Author

The previous problem is unblocked but the tests are now failing. I can likely resolve this with an update to the test suite, which I forgot to do, but will not be able to get to this until tomorrow. That said, I think this is close!

@willcohen
willcohen force-pushed the emscripten-4.0.2 branch 3 times, most recently from c32f7d3 to 4ead616 Compare May 7, 2025 01:50
@RossComputerGuy

Copy link
Copy Markdown
Member

Can't spin up a nixpkgs-review without getting this error:

review-shell> building '/nix/store/iy5j9psjmjpsmyvbb6m20cccd5v17744-review-shell.drv'
review-shell> /nix/store/pgvapr3hh6908py104v21zci7dfjvhbh-stdenv-linux/setup: line 857: source: /nix/store/knq3kzjdqhb19adgd8rga3sy4khj2zw7-tetrio-plus-0.27.7: cannot execute binary file
error: builder for '/nix/store/iy5j9psjmjpsmyvbb6m20cccd5v17744-review-shell.drv' failed with exit code 126;
       last 1 log lines:
       > /nix/store/pgvapr3hh6908py104v21zci7dfjvhbh-stdenv-linux/setup: line 857: source: /nix/store/knq3kzjdqhb19adgd8rga3sy4khj2zw7-tetrio-plus-0.27.7: cannot execute binary file
       For full logs, run:
         nix log /nix/store/iy5j9psjmjpsmyvbb6m20cccd5v17744-review-shell.drv
┏━ 1 Errors:
┃ error: builder for '/nix/store/iy5j9psjmjpsmyvbb6m20cccd5v17744-review-shell.drv' failed with exit code 126;
┃        last 1 log lines:
┃        > /nix/store/pgvapr3hh6908py104v21zci7dfjvhbh-stdenv-linux/setup: line 857: source: /nix/store/knq3kzjdqhb19adgd8rga3sy4khj2zw7-tetrio-plus-0.27.7: cannot execute binary file
┃        For full logs, run:
┃          nix log /nix/store/iy5j9psjmjpsmyvbb6m20cccd5v17744-review-shell.drv

@willcohen
willcohen force-pushed the emscripten-4.0.2 branch from 4ead616 to 650eb0e Compare May 7, 2025 14:11
@willcohen
willcohen marked this pull request as ready for review May 7, 2025 14:11
@willcohen

Copy link
Copy Markdown
Contributor Author

Thanks @RossComputerGuy. I assume that's gotta be something else on master breaking nixpkgs-review. I think I've got all the darwin test suite failures removed with this latest force push (can try to add some back in later, but the fact that this re-enables most tests at all on darwin is already a pretty good improvement over the status quo). This is building locally, and I'll try out nixpkgs-review again, having rebased on the latest nixpkgs head.

@willcohen
willcohen force-pushed the emscripten-4.0.2 branch from 650eb0e to 0f70563 Compare May 7, 2025 14:18
@willcohen

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 380263


aarch64-darwin

❌ 7 packages failed to build:
  • faust (faust2)
  • faust2csound
  • faust2firefox
  • faust2jackrust
  • faust2ladspa
  • faust2lv2
  • tinygo
✅ 14 packages built:
  • binaryen
  • emscripten
  • pagefind
  • python312Packages.rerun-sdk
  • python312Packages.rerun-sdk.dist
  • python313Packages.rerun-sdk
  • python313Packages.rerun-sdk.dist
  • rerun
  • stalwart-mail-webadmin
  • teleport (teleport_17)
  • teleport.client (teleport_17.client)
  • teleport_16
  • teleport_16.client
  • vlang

@willcohen

Copy link
Copy Markdown
Contributor Author

Thanks for everyone's patience. I think we're now good to go. All breakages observed as I ran nixpkgs-review seemed like it was external to any actual changes in binaryen/emscripten itself. Will merge!

@willcohen
willcohen merged commit 8e7d13e into NixOS:master May 7, 2025
@willcohen
willcohen deleted the emscripten-4.0.2 branch May 7, 2025 16:42
@nixos-discourse

Copy link
Copy Markdown

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/emscripten-doesnt-see-node-modules/64001/4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants