Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emscripten: 3.1.47 -> 3.1.50 #269904

Merged
merged 3 commits into from
Dec 13, 2023
Merged

Conversation

willcohen
Copy link
Contributor

@willcohen willcohen commented Nov 25, 2023

Description of changes

Bump from 3.1.47 to 3.1.50.

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/)
  • 23.11 Release Notes (or backporting 23.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.

Priorities

Add a 👍 reaction to pull requests you find important.

@willcohen willcohen changed the title Emscripten 3.1.48 emscripten: 3.1.47 -> 3.1.48 Nov 25, 2023
@willcohen
Copy link
Contributor Author

Result of nixpkgs-review pr 269904 run on aarch64-darwin 1

6 packages failed to build:
  • emscriptenPackages.libxml2
  • emscriptenPackages.libxml2.bin
  • emscriptenPackages.libxml2.dev
  • emscriptenPackages.libxml2.doc
  • emscriptenPackages.xmlmirror
  • emscriptenPackages.xmlmirror.doc
10 packages built:
  • emscripten
  • emscriptenPackages.json_c
  • emscriptenPackages.json_c.dev
  • emscriptenPackages.zlib
  • faust
  • faust2csound
  • faust2firefox
  • faust2jackrust
  • faust2ladspa
  • faust2lv2

@willcohen
Copy link
Contributor Author

libxml2 is failing for me, but it looks like a mac-specific issue related to the .dylib vs .o, so I don't think it should be a blocker.

++ emcc -O2 -s EMULATE_FUNCTION_POINTER_CASTS=1 xmllint.o ./.libs/libxml2.dylib -I/nix/store/5hs5bhvmrp6z4kvfqjhf64l80fszf97g-emscripten-zlib-1.3/include -L/nix/store/5hs5bhvmrp6z4kvfqjhf64l80fszf97g-emscripten-zlib-1.3/lib -lz -o ./xmllint.test.js --embed-file ./test/xmlid/id_err1.xml
emcc: error: xmllint.o: No such file or directory ("xmllint.o" was expected to be an input file, based on the commandline arguments provided)
+ exitHandler
+ exitCode=1
+ set +e
+ '[' -n '' ']'
+ ((  1 != 0  ))
+ runHook failureHook
+ local hookName=failureHook
+ shift
+ local 'hooksSlice=failureHooks[@]'
+ local hook
+ for hook in "_callImplicitHook 0 $hookName" ${!hooksSlice+"${!hooksSlice}"}
+ _eval '_callImplicitHook 0 failureHook'
+ declare -F '_callImplicitHook 0 failureHook'
+ eval '_callImplicitHook 0 failureHook'
++ _callImplicitHook 0 failureHook
++ local def=0
++ local hookName=failureHook
++ declare -F failureHook
++ type -p failureHook
++ '[' -n '' ']'
++ return 0
+ return 0
+ '[' -n '' ']'
+ return 1

@willcohen willcohen changed the title emscripten: 3.1.47 -> 3.1.48 emscripten: 3.1.47 -> 3.1.49 Dec 8, 2023
@willcohen
Copy link
Contributor Author

Bumped to 3.1.49. 3.1.50 will require bumping LLVM too, so I'll leave that till LLVM 17 stabilizes a little.
@RaitoBezarius

@RaitoBezarius
Copy link
Member

Bumped to 3.1.49. 3.1.50 will require bumping LLVM too, so I'll leave that till LLVM 17 stabilizes a little. @RaitoBezarius

Sounds good to me, thank you for taking care of that.

@willcohen willcohen changed the title emscripten: 3.1.47 -> 3.1.49 emscripten: 3.1.47 -> 3.1.50 Dec 11, 2023
@willcohen
Copy link
Contributor Author

Smaller than I thought. Bumped to 3.1.50 -- required updating the patch file to deal with upstream changes, and carrying the table-base patch from LLVM 16 to LLVM 17.

@willcohen
Copy link
Contributor Author

Result of nixpkgs-review pr 269904 run on aarch64-darwin 1

9 packages failed to build:
  • emscriptenPackages.json_c
  • emscriptenPackages.json_c.dev
  • emscriptenPackages.libxml2
  • emscriptenPackages.libxml2.bin
  • emscriptenPackages.libxml2.dev
  • emscriptenPackages.libxml2.doc
  • emscriptenPackages.xmlmirror
  • emscriptenPackages.xmlmirror.doc
  • emscriptenPackages.zlib
12 packages built:
  • emscripten
  • faust
  • faust2csound
  • faust2firefox
  • faust2jackrust
  • faust2ladspa
  • faust2lv2
  • lld_17
  • lld_17.dev
  • lld_17.lib
  • llvmPackages_17.bintools (llvmPackages_17.bintoolsNoLibc)
  • llvmPackages_17.bintools-unwrapped

@willcohen
Copy link
Contributor Author

@RaitoBezarius ofborg looks green except for darwin aarch64, which worked out on my own nixpkgs-review. Let me know if this looks ready!

@nixos-discourse
Copy link

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

https://discourse.nixos.org/t/prs-already-reviewed/2617/1312

@RaitoBezarius RaitoBezarius merged commit b8c3859 into NixOS:master Dec 13, 2023
24 checks passed
@willcohen
Copy link
Contributor Author

Thank you!

@willcohen willcohen deleted the emscripten-3.1.48 branch December 13, 2023 20:14
@sternenseemann
Copy link
Member

This broke the javascript backend of GHC:

Running phase: unpackPhase
unpacking source archive /nix/store/ccfcx83sqkykdylq7qbdxdfli2qkc8z9-ghc-955520c
source root is ghc-955520c
Running phase: patchPhase
applying patch /nix/store/32kfndxy8dbaa47jbpg2fp4lsd4wcxmg-docs-sphinx-7-ghc98.patch
patching file docs/users_guide/rtd-theme/layout.html
patching script interpreter paths in .
./validate: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./utils/verify-release/verify-packages.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./utils/vagrant/bootstrap-rhel.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./utils/vagrant/bootstrap-deb.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./utils/update-autoconf.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./utils/llvm-targets/gen-data-layout.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./utils/haddock/latex-test/run: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./utils/haddock/hypsrc-test/run: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./utils/haddock/html-test/run: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./utils/haddock/hoogle-test/run: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./utils/haddock/haddock-test/Setup.lhs: interpreter directive changed from "#!/usr/bin/env runhaskell" to "/nix/store/sq63pzmkygg0k7asd9hhkwfqkzgcrkfa-ghc-9.6.3/bin/runhaskell"
./utils/haddock/haddock-api/Setup.lhs: interpreter directive changed from "#!/usr/bin/env runhaskell" to "/nix/store/sq63pzmkygg0k7asd9hhkwfqkzgcrkfa-ghc-9.6.3/bin/runhaskell"
./utils/haddock/Setup.lhs: interpreter directive changed from "#!/usr/bin/env runhaskell" to "/nix/store/sq63pzmkygg0k7asd9hhkwfqkzgcrkfa-ghc-9.6.3/bin/runhaskell"
./utils/check-exact/run.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./testsuite/tests/unboxedsums/GenManyUbxSums.hs: interpreter directive changed from "#!/usr/bin/env runghc" to "/nix/store/sq63pzmkygg0k7asd9hhkwfqkzgcrkfa-ghc-9.6.3/bin/runghc"
./testsuite/tests/pmcheck/should_compile/genV.py: interpreter directive changed from "#! /usr/bin/env python3" to "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/bin/python3"
./testsuite/tests/pmcheck/should_compile/genT.py: interpreter directive changed from "#! /usr/bin/env python3" to "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/bin/python3"
./testsuite/tests/pmcheck/should_compile/genS.py: interpreter directive changed from "#! /usr/bin/env python3" to "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/bin/python3"
./testsuite/tests/pmcheck/should_compile/genG: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./testsuite/tests/perf/compiler/genT22744: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./testsuite/tests/perf/compiler/genT14766.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/bin/python3"
./testsuite/tests/perf/compiler/genT14697: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./testsuite/tests/perf/compiler/genT13719: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./testsuite/tests/perf/compiler/genT13701: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./testsuite/tests/perf/compiler/genRecordUpdPerf: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./testsuite/tests/perf/compiler/genMultiLayerModulesTH: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./testsuite/tests/perf/compiler/genMultiLayerModulesNoCode: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./testsuite/tests/perf/compiler/genMultiLayerModulesDefs: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./testsuite/tests/perf/compiler/genMultiLayerModules: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./testsuite/tests/perf/compiler/genMultiComp.py: interpreter directive changed from "#! /usr/bin/env python" to "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/bin/python"
./testsuite/tests/perf/compiler/genMatchingTest: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./testsuite/tests/perf/compiler/T12545.measure.sh: interpreter directive changed from "#!/usr/bin/env sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./testsuite/tests/llvm/should_run/subsections_via_symbols/subsections_via_symbols-libtool-quiet: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./testsuite/tests/linters/regex-linters/check-version-number.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./testsuite/tests/linters/regex-linters/check-rts-includes.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/bin/python3"
./testsuite/tests/linters/regex-linters/check-makefiles.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/bin/python3"
./testsuite/tests/linters/regex-linters/check-changelogs.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./testsuite/tests/linters/checkUniques/check-uniques.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/bin/python3"
./testsuite/tests/driver/j-space/genJspace: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./testsuite/tests/driver/T16521/check.sh: interpreter directive changed from "#! /bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./testsuite/tests/driver/T12983/build.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./rts/gen_event_types.py: interpreter directive changed from "#!/usr/bin/env python" to "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/bin/python"
./nofib/spectral/banner/boot.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./nofib/spectral/awards/boot.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./nofib/shootout/reverse-complement/boot.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./nofib/shootout/k-nucleotide/boot.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./nofib/shootout/fasta/boot.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./nofib/easy.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./mk/relpath.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./mk/install_script.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./mk/get-win32-tarballs.py: interpreter directive changed from "#!/usr/bin/env python" to "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/bin/python"
./mk/detect-cpu-count.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/unix/install-sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/unix/config.sub: interpreter directive changed from "#! /bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/unix/config.guess: interpreter directive changed from "#! /bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/time/fullcheck: interpreter directive changed from "#!/bin/bash -e" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash -e"
./libraries/time/format-all: interpreter directive changed from "#!/bin/bash -e" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash -e"
./libraries/time/build: interpreter directive changed from "#!/bin/bash -e" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash -e"
./libraries/text/tests/literal-rule-test.sh: interpreter directive changed from "#!/bin/bash -e" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash -e"
./libraries/text/scripts/regenerate.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./libraries/stm/tests/runtests.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./libraries/semaphore-compat/.gitlab/ci.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./libraries/ghc-bignum/install-sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/ghc-bignum/gmp/ln: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/ghc-bignum/gmp/gmp-tarballs/build-nodoc-tarball: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/directory/tools/vercmp: interpreter directive changed from "#!/usr/bin/env python" to "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/bin/python"
./libraries/directory/tools/testscript: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/directory/tools/testctl: interpreter directive changed from "#!/usr/bin/env python" to "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/bin/python"
./libraries/directory/tools/retry: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/containers/containers-tests/benchmarks/bench-cmp.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/containers/containers-tests/benchmarks/bench-cmp.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/fx9hkrym88ahxkibcqnkl8907vakbqvg-perl-5.38.2/bin/perl"
./libraries/binary/Setup.lhs: interpreter directive changed from "#!/usr/bin/env runhaskell" to "/nix/store/sq63pzmkygg0k7asd9hhkwfqkzgcrkfa-ghc-9.6.3/bin/runhaskell"
./libraries/base/tools/ucd2haskell/ucd.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/base/tests/enum_processor.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/bin/python3"
./libraries/Cabal/validate.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/Cabal/cabal-testsuite/PackageTests/Regression/T5386/configure: interpreter directive changed from "#! /bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/Cabal/cabal-testsuite/PackageTests/GhcPkgGuess/SymlinkVersion/bin/ghc-pkg-ghc-7.10: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/Cabal/cabal-testsuite/PackageTests/GhcPkgGuess/SymlinkVersion/bin/ghc-7.10: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/Cabal/cabal-testsuite/PackageTests/GhcPkgGuess/SymlinkGhcVersion/bin/ghc-pkg-7.10: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/Cabal/cabal-testsuite/PackageTests/GhcPkgGuess/SymlinkGhcVersion/bin/ghc-7.10: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/Cabal/cabal-testsuite/PackageTests/GhcPkgGuess/Symlink/bin/ghc-pkg: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/Cabal/cabal-testsuite/PackageTests/GhcPkgGuess/Symlink/bin/ghc: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/Cabal/cabal-testsuite/PackageTests/GhcPkgGuess/SameDirectoryVersion/ghc-pkg-7.10: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/Cabal/cabal-testsuite/PackageTests/GhcPkgGuess/SameDirectoryVersion/ghc-7.10: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/Cabal/cabal-testsuite/PackageTests/GhcPkgGuess/SameDirectoryGhcVersion/ghc-pkg-ghc-7.10: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/Cabal/cabal-testsuite/PackageTests/GhcPkgGuess/SameDirectoryGhcVersion/ghc-7.10: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/Cabal/cabal-testsuite/PackageTests/GhcPkgGuess/SameDirectory/ghc-pkg: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/Cabal/cabal-testsuite/PackageTests/GhcPkgGuess/SameDirectory/ghc: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/Cabal/cabal-testsuite/PackageTests/GHCJS/BuildRunner/scripts/ghcjs-pkg: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./libraries/Cabal/cabal-testsuite/PackageTests/GHCJS/BuildRunner/scripts/fake-ghcjs.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./libraries/Cabal/cabal-testsuite/PackageTests/ExtraProgPath/pkg-config: interpreter directive changed from "#!/usr/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/Cabal/cabal-testsuite/PackageTests/CCompilerOverride/custom-cc: interpreter directive changed from "#!/bin/bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./libraries/Cabal/cabal-testsuite/PackageTests/BuildTools/Foreign/my-foreign-preprocessor: interpreter directive changed from "#!/usr/bin/env sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/Cabal/cabal-testsuite/PackageTests/AutoconfBadPaths/configure: interpreter directive changed from "#! /bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/Cabal/bootstrap/bootstrap.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/bin/python3"
./libraries/Cabal/Cabal/misc/travis-diff-files.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/Cabal/Cabal/misc/gen-authors.sh: interpreter directive changed from "#! /bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./libraries/Cabal/.gitlab/ci.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./libraries/Cabal/.githooks/pre-push: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./libffi-tarballs/mk-snapshot.sh: interpreter directive changed from "#!/bin/bash -e" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash -e"
./libffi/ln: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./install-sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./hadrian/lint: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./hadrian/hie-bios: interpreter directive changed from "#! /usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./hadrian/ghci-stack.in: interpreter directive changed from "#!/usr/bin/env sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./hadrian/ghci-multi-cabal.in: interpreter directive changed from "#!/usr/bin/env sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./hadrian/ghci-multi: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./hadrian/ghci-cabal.in: interpreter directive changed from "#!/usr/bin/env sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./hadrian/ghci: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./hadrian/completion.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./hadrian/build-stack-nix: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./hadrian/build-stack: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./hadrian/build-cabal: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./hadrian/build: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./hadrian/bootstrap/bootstrap.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/bin/python3"
./docs/users_guide/compare-flags.py: interpreter directive changed from "#!/usr/bin/env python" to "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/bin/python"
./distrib/mkDocs/mkDocs: interpreter directive changed from "#!/bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./config.sub: interpreter directive changed from "#! /bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./config.guess: interpreter directive changed from "#! /bin/sh" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh"
./boot: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/bin/python3"
./.gitlab/test-metrics.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./.gitlab/rel_eng/upload_ghc_libs.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/bin/python3"
./.gitlab/generate-ci/generate-jobs: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./.gitlab/generate-ci/generate-job-metadata: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
./.gitlab/ci.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash"
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
Booting .
Booting rts
Booting libraries/unix/
Booting libraries/time/
Booting libraries/terminfo/
Booting libraries/process/
Booting libraries/ghc-bignum/
Booting libraries/directory/
Booting libraries/base/
configure.ac:9: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:9: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
./lib/autoconf/general.m4:1553: AC_ARG_WITH is expanded from...
configure.ac:9: the top level
configure.ac:220: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:220: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
../m4/fp_check_timer_create.m4:5: FP_CHECK_TIMER_CREATE is expanded from...
configure.ac:220: the top level
configure.ac:91: warning: The macro `AC_CONFIG_HEADER' is obsolete.
configure.ac:91: You should run autoupdate.
./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from...
configure.ac:91: the top level
configure.ac:93: warning: The macro `AC_CONFIG_HEADER' is obsolete.
configure.ac:93: You should run autoupdate.
./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from...
configure.ac:93: the top level
configure.ac:434: warning: The macro `AC_PROG_CC_C99' is obsolete.
configure.ac:434: You should run autoupdate.
./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
m4/fp_set_cflags_c99.m4:7: FP_SET_CFLAGS_C99 is expanded from...
configure.ac:434: the top level
configure.ac:435: warning: The macro `AC_PROG_CC_C99' is obsolete.
configure.ac:435: You should run autoupdate.
./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
m4/fp_set_cflags_c99.m4:7: FP_SET_CFLAGS_C99 is expanded from...
configure.ac:435: the top level
configure.ac:436: warning: The macro `AC_PROG_CC_C99' is obsolete.
configure.ac:436: You should run autoupdate.
./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
m4/fp_set_cflags_c99.m4:7: FP_SET_CFLAGS_C99 is expanded from...
configure.ac:436: the top level
configure.ac:437: warning: The macro `AC_PROG_CC_C99' is obsolete.
configure.ac:437: You should run autoupdate.
./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
m4/fp_set_cflags_c99.m4:7: FP_SET_CFLAGS_C99 is expanded from...
configure.ac:437: the top level
configure flags: --prefix=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121 --bindir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/bin --sbindir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/sbin --includedir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/include --oldincludedir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/include --mandir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/share/man --infodir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/share/info --docdir=/nix/store/4f44y7awfa55rx2rpkjhrarj6bq3c3cr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121-doc/share/doc/javascript-unknown-ghcjs-ghc-native-bignum --libdir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/lib --libexecdir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/libexec --localedir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/share/locale --datadir=\$doc/share/doc/ghc --with-curses-includes=/nix/store/ifx5q9x3vcck3b01wb9h47x7va00snkd-ncurses-6.4-dev/include --with-curses-libraries=/nix/store/fmkdf1b03w5v9yzk2mm3b4yqg1gwhrf5-ncurses-6.4/lib --enable-bootstrap-with-devel-snapshot --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=javascript-unknown-ghcjs
configure: ./configure --prefix=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121 --bindir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/bin --sbindir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/sbin --includedir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/include --oldincludedir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/include --mandir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/share/man --infodir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/share/info --docdir=/nix/store/4f44y7awfa55rx2rpkjhrarj6bq3c3cr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121-doc/share/doc/javascript-unknown-ghcjs-ghc-native-bignum --libdir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/lib --libexecdir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/libexec --localedir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/share/locale --datadir=$doc/share/doc/ghc --with-curses-includes=/nix/store/ifx5q9x3vcck3b01wb9h47x7va00snkd-ncurses-6.4-dev/include --with-curses-libraries=/nix/store/fmkdf1b03w5v9yzk2mm3b4yqg1gwhrf5-ncurses-6.4/lib --enable-bootstrap-with-devel-snapshot --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=javascript-unknown-ghcjs
checking for gfind... no
checking for find... /nix/store/sq0w0jchkjqbxl47h52kfwa33qp1adfh-findutils-4.9.0/bin/find
checking for sort... /nix/store/zx8aqgdy735qzk81glfwil6mbi6ddqb1-coreutils-9.4/bin/sort
checking for GHC version date... given 9.9.20231121
checking for GHC Git commit id... given 955520c6c4f07187b6d5e4770ecf681cc78374f2
checking for ghc... /nix/store/sq63pzmkygg0k7asd9hhkwfqkzgcrkfa-ghc-9.6.3/bin/ghc
checking version of ghc... 9.6.3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... javascript-unknown-ghcjs
configure: GHC build : x86_64-unknown-linux
configure: GHC host : x86_64-unknown-linux
configure: GHC target : javascript-unknown-ghcjs
checking for sh... /nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh
checking whether target supports a registerised ABI... yes
checking whether target supports tables next to code... yes
checking for path to top of build tree... /build/ghc-955520c
checking for javascript-unknown-ghcjs-gcc... /nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/bin/emcc
checking for javascript-unknown-ghcjs-g++... /nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/bin/em++
checking for javascript-unknown-ghcjs-nm... /nix/store/m95vr0y916p5lxfpzh3nwvkak87whrc6-emscripten-llvm-3.1.50/bin/llvm-nm
checking for javascript-unknown-ghcjs-ar... /nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/bin/emar
checking for javascript-unknown-ghcjs-ranlib... /nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/bin/emranlib
checking for javascript-unknown-ghcjs-objdump... no
checking for objdump... /nix/store/sfgnb6rr428bssyrs54d6d0vv2avi95c-gcc-wrapper-12.3.0/bin/objdump
checking for javascript-unknown-ghcjs-windres... no
checking for windres... no
checking for javascript-unknown-ghcjs-genlib... no
checking for genlib... no
checking for javascript-unknown-ghcjs-cc... /nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/bin/emcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether /nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/bin/emcc accepts -g... yes
checking for /nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/bin/emcc option to enable C11 features... none needed
checking whether the compiler supports GNU C++... yes
checking whether /nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/bin/em++ accepts -g... yes
checking for /nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/bin/em++ option to enable C++11 features... none needed
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking emsdk version... 3.1.50
checking for javascript-unknown-ghcjs-ld... /nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/bin/emcc
checking for javascript-unknown-ghcjs-nm... /nix/store/m95vr0y916p5lxfpzh3nwvkak87whrc6-emscripten-llvm-3.1.50/bin/llvm-nm
configure: Setting cmd
checking for ld.gold object merging bug (binutils 22266)... configure: Checking whether /nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/bin/emcc can merge objects
checking whether ld is GNU ld... NO
checking whether ld understands -no_compact_unwind... no
checking whether ld understands -filelist... no
checking whether ld supports -single_module... no
checking for javascript-unknown-ghcjs-nm... (cached) /nix/store/m95vr0y916p5lxfpzh3nwvkak87whrc6-emscripten-llvm-3.1.50/bin/llvm-nm
checking for javascript-unknown-ghcjs-ranlib... /nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/bin/emranlib
checking for javascript-unknown-ghcjs-strip... /nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/bin/emstrip
checking for javascript-unknown-ghcjs-otool... no
checking for javascript-unknown-ghcjs-install_name_tool... no
checking for gawk... gawk
checking for javascript-unknown-ghcjs-llc-15... no
checking for javascript-unknown-ghcjs-llc-15.0... no
checking for javascript-unknown-ghcjs-llc15... no
checking for javascript-unknown-ghcjs-llc-14... no
checking for javascript-unknown-ghcjs-llc-14.0... no
checking for javascript-unknown-ghcjs-llc14... no
checking for javascript-unknown-ghcjs-llc-13... no
checking for javascript-unknown-ghcjs-llc-13.0... no
checking for javascript-unknown-ghcjs-llc13... no
checking for javascript-unknown-ghcjs-llc... no
checking for llc-15... no
checking for llc-15.0... no
checking for llc15... no
checking for llc-14... no
checking for llc-14.0... no
checking for llc14... no
checking for llc-13... no
checking for llc-13.0... no
checking for llc13... no
checking for llc... no
checking for javascript-unknown-ghcjs-opt-15... no
checking for javascript-unknown-ghcjs-opt-15.0... no
checking for javascript-unknown-ghcjs-opt15... no
checking for javascript-unknown-ghcjs-opt-14... no
checking for javascript-unknown-ghcjs-opt-14.0... no
checking for javascript-unknown-ghcjs-opt14... no
checking for javascript-unknown-ghcjs-opt-13... no
checking for javascript-unknown-ghcjs-opt-13.0... no
checking for javascript-unknown-ghcjs-opt13... no
checking for javascript-unknown-ghcjs-opt... no
checking for opt-15... no
checking for opt-15.0... no
checking for opt15... no
checking for opt-14... no
checking for opt-14.0... no
checking for opt14... no
checking for opt-13... no
checking for opt-13.0... no
checking for opt13... no
checking for opt... no
configure: Creating links for headers shared by the RTS and compiler
configure: done.
configure: Creating links for in-tree file handling routines
configure: Routines in place. Packages can now be build normally.
configure: Creating links for ghci wrapper
configure: done.
checking whether #! works in shell scripts... yes
checking version of gcc... checking version of gcc... 17.0.6
17.0.6
checking whether CC supports flags passed by GHC when compiling via C... yes
checking whether C compiler supports __atomic_ builtins... yes
checking whether -latomic is needed for sub-word-sized atomic operations... failed
configure: error: sub-word-sized atomic operations are not available.
emconfigure: error: './configure --prefix=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121 --bindir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/bin --sbindir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/sbin --includedir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/include --oldincludedir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/include --mandir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/share/man --infodir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/share/info --docdir=/nix/store/4f44y7awfa55rx2rpkjhrarj6bq3c3cr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121-doc/share/doc/javascript-unknown-ghcjs-ghc-native-bignum --libdir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/lib --libexecdir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/libexec --localedir=/nix/store/0xl0fnpbkm0wk0577pnhg9bn85anbngr-javascript-unknown-ghcjs-ghc-native-bignum-9.9.20231121/share/locale --datadir=$doc/share/doc/ghc --with-curses-includes=/nix/store/ifx5q9x3vcck3b01wb9h47x7va00snkd-ncurses-6.4-dev/include --with-curses-libraries=/nix/store/fmkdf1b03w5v9yzk2mm3b4yqg1gwhrf5-ncurses-6.4/lib --enable-bootstrap-with-devel-snapshot --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=javascript-unknown-ghcjs' failed (returned 1)

@sternenseemann
Copy link
Member

This appears to be due to a crash in emscripten. config.log excerpt:

configure:11072: /nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/bin/emcc -o conftest -g -O2    conftest.c  >&5
cache:INFO: generating system asset: symbol_lists/ca268257111341de6e8b70bd0a7346c535bf441b.json... (this will be cached in "/build/ghc-955520c/emcache.UPgniacZMQ/symbol_lists/ca268257111341de6e8b70bd0a7346c535bf441b.json" for subsequent builds)
cache:INFO:  - ok
cache:INFO: generating system library: sysroot/lib/wasm32-emscripten/libstubs.a... (this will be cached in "/build/ghc-955520c/emcache.UPgniacZMQ/sysroot/lib/wasm32-emscripten/libstubs.a" for subsequent builds)
Traceback (most recent call last):
Traceback (most recent call last):
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/emcc.py", line 1609, in <module>
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/emcc.py", line 1609, in <module>
    sys.exit(main(sys.argv))
    sys.exit(main(sys.argv))
             ^^^^^^^^^^^^^^
             ^^^^^^^^^^^^^^
  File "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/contextlib.py", line 81, in inner
  File "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/contextlib.py", line 81, in inner
    return func(*args, **kwds)
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
           ^^^^^^^^^^^^^^^^^^^
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/emcc.py", line 1602, in main
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/emcc.py", line 1602, in main
    ret = run(args)
    ret = run(args)
          ^^^^^^^^^
          ^^^^^^^^^
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/emcc.py", line 638, in run
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/emcc.py", line 638, in run
    linker_inputs = phase_compile_inputs(options, state, newargs, input_files)
    linker_inputs = phase_compile_inputs(options, state, newargs, input_files)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/contextlib.py", line 81, in inner
  File "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/contextlib.py", line 81, in inner
    return func(*args, **kwds)
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
           ^^^^^^^^^^^^^^^^^^^
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/emcc.py", line 974, in phase_compile_inputs
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/emcc.py", line 974, in phase_compile_inputs
    system_libs.ensure_sysroot()
    system_libs.ensure_sysroot()
  File "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/contextlib.py", line 81, in inner
  File "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/contextlib.py", line 81, in inner
    return func(*args, **kwds)
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
           ^^^^^^^^^^^^^^^^^^^
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/tools/system_libs.py", line 2428, in ensure_sysroot
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/tools/system_libs.py", line 2428, in ensure_sysroot
    cache.get('sysroot_install.stamp', install_system_headers, what='system headers')
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/tools/cache.py", line 157, in get
    cache.get('sysroot_install.stamp', install_system_headers, what='system headers')
    with lock(shortname):
  File "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/contextlib.py", line 137, in __enter__
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/tools/cache.py", line 157, in get
    return next(self.gen)
           ^^^^^^^^^^^^^^
    with lock(shortname):
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/tools/cache.py", line 61, in lock
  File "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/contextlib.py", line 137, in __enter__
    acquire_cache_lock(reason)
    return next(self.gen)
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/tools/cache.py", line 35, in acquire_cache_lock
           ^^^^^^^^^^^^^^
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/tools/cache.py", line 61, in lock
    assert 'EM_CACHE_IS_LOCKED' not in os.environ, f'attempt to lock the cache while a parent process is holding the lock ({reason})'
    acquire_cache_lock(reason)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/tools/cache.py", line 35, in acquire_cache_lock
AssertionError: attempt to lock the cache while a parent process is holding the lock (sysroot_install.stamp)
    assert 'EM_CACHE_IS_LOCKED' not in os.environ, f'attempt to lock the cache while a parent process is holding the lock ({reason})'
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: attempt to lock the cache while a parent process is holding the lock (sysroot_install.stamp)
emcc: error: Subprocess 1/2 failed (returned 1)! (cmdline: /nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/bin/emcc -c -O2 -Wall -fno-unroll-loops -g -sSTRICT -Werror -I/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/system/lib/libc/musl/src/include -DNDEBUG ../../../../../nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/system/lib/libc/emscripten_syscall_stubs.c)
configure:11072: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "The Glorious Glasgow Haskell Compilation System"
| #define PACKAGE_TARNAME "ghc-9.9"
| #define PACKAGE_VERSION "9.9"
| #define PACKAGE_STRING "The Glorious Glasgow Haskell Compilation System 9.9"
| #define PACKAGE_BUGREPORT "glasgow-haskell-bugs@haskell.org"
| #define PACKAGE_URL ""
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_WCHAR_H 1
| #define STDC_HEADERS 1
| #define _ALL_SOURCE 1
| #define _DARWIN_C_SOURCE 1
| #define _GNU_SOURCE 1
| #define _HPUX_ALT_XOPEN_SOCKET_API 1
| #define _NETBSD_SOURCE 1
| #define _OPENBSD_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
| #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
| #define __STDC_WANT_IEC_60559_DFP_EXT__ 1
| #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
| #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
| #define __STDC_WANT_LIB_EXT2__ 1
| #define __STDC_WANT_MATH_SPEC_FUNCS__ 1
| #define _TANDEM_SOURCE 1
| #define __EXTENSIONS__ 1
| #define sUPPORTED_LLVM_VERSION_MIN (13)
| #define sUPPORTED_LLVM_VERSION_MAX (16)
| /* end confdefs.h.  */
| unsigned char a;
| int
| main (void)
| {
| __atomic_fetch_or(&a, 1, __ATOMIC_RELAXED);
|   ;
|   return 0;
| }
configure:11093: /nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/bin/emcc -o conftest -g -O2    conftest.c -latomic >&5
cache:INFO: generating system library: sysroot/lib/wasm32-emscripten/libstubs.a... (this will be cached in "/build/ghc-955520c/emcache.UPgniacZMQ/sysroot/lib/wasm32-emscripten/libstubs.a" for subsequent builds)
Traceback (most recent call last):
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/emcc.py", line 1609, in <module>
    sys.exit(main(sys.argv))
             ^^^^^^^^^^^^^^
  File "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/contextlib.py", line 81, in inner
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/emcc.py", line 1602, in main
    ret = run(args)
          ^^^^^^^^^
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/emcc.py", line 638, in run
    linker_inputs = phase_compile_inputs(options, state, newargs, input_files)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/contextlib.py", line 81, in inner
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/emcc.py", line 974, in phase_compile_inputs
    system_libs.ensure_sysroot()
  File "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/contextlib.py", line 81, in inner
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/tools/system_libs.py", line 2428, in ensure_sysroot
    cache.get('sysroot_install.stamp', install_system_headers, what='system headers')
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/tools/cache.py", line 157, in get
    with lock(shortname):
  File "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/contextlib.py", line 137, in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/tools/cache.py", line 61, in lock
    acquire_cache_lock(reason)
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/tools/cache.py", line 35, in acquire_cache_lock
    assert 'EM_CACHE_IS_LOCKED' not in os.environ, f'attempt to lock the cache while a parent process is holding the lock ({reason})'
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: attempt to lock the cache while a parent process is holding the lock (sysroot_install.stamp)
Traceback (most recent call last):
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/emcc.py", line 1609, in <module>
    sys.exit(main(sys.argv))
             ^^^^^^^^^^^^^^
  File "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/contextlib.py", line 81, in inner
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/emcc.py", line 1602, in main
    ret = run(args)
          ^^^^^^^^^
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/emcc.py", line 638, in run
    linker_inputs = phase_compile_inputs(options, state, newargs, input_files)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/contextlib.py", line 81, in inner
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/emcc.py", line 974, in phase_compile_inputs
    system_libs.ensure_sysroot()
  File "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/contextlib.py", line 81, in inner
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/tools/system_libs.py", line 2428, in ensure_sysroot
    cache.get('sysroot_install.stamp', install_system_headers, what='system headers')
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/tools/cache.py", line 157, in get
    with lock(shortname):
  File "/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/contextlib.py", line 137, in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/tools/cache.py", line 61, in lock
    acquire_cache_lock(reason)
  File "/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/tools/cache.py", line 35, in acquire_cache_lock
    assert 'EM_CACHE_IS_LOCKED' not in os.environ, f'attempt to lock the cache while a parent process is holding the lock ({reason})'
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: attempt to lock the cache while a parent process is holding the lock (sysroot_install.stamp)
emcc: error: Subprocess 1/2 failed (returned 1)! (cmdline: /nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/bin/emcc -c -O2 -Wall -fno-unroll-loops -g -sSTRICT -Werror -I/nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/system/lib/libc/musl/src/include -DNDEBUG ../../../../../nix/store/4yx9dfpdx4vkpdj7ss3mnimx9wbfgbha-emscripten-3.1.50/share/emscripten/system/lib/libc/emscripten_syscall_stubs.c)
configure:11093: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "The Glorious Glasgow Haskell Compilation System"
| #define PACKAGE_TARNAME "ghc-9.9"
| #define PACKAGE_VERSION "9.9"
| #define PACKAGE_STRING "The Glorious Glasgow Haskell Compilation System 9.9"
| #define PACKAGE_BUGREPORT "glasgow-haskell-bugs@haskell.org"
| #define PACKAGE_URL ""
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_WCHAR_H 1
| #define STDC_HEADERS 1
| #define _ALL_SOURCE 1
| #define _DARWIN_C_SOURCE 1
| #define _GNU_SOURCE 1
| #define _HPUX_ALT_XOPEN_SOCKET_API 1
| #define _NETBSD_SOURCE 1
| #define _OPENBSD_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
| #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
| #define __STDC_WANT_IEC_60559_DFP_EXT__ 1
| #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
| #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
| #define __STDC_WANT_LIB_EXT2__ 1
| #define __STDC_WANT_MATH_SPEC_FUNCS__ 1
| #define _TANDEM_SOURCE 1
| #define __EXTENSIONS__ 1
| #define sUPPORTED_LLVM_VERSION_MIN (13)
| #define sUPPORTED_LLVM_VERSION_MAX (16)
| /* end confdefs.h.  */
| unsigned char a;
| int
| main (void)
| {
| __atomic_fetch_or(&a, 1, __ATOMIC_RELAXED);
|   ;
|   return 0;
| }
configure:11102: result: failed
configure:11104: error: sub-word-sized atomic operations are not available.

@RaitoBezarius
Copy link
Member

Is it a crash or cache mishandling? I remember another PR we merged for removing cache stuff.

@sternenseemann
Copy link
Member

That is the question… Emscripten has a writeable cache in this case. git bisect claims this update is the culprit, not any other change.

@willcohen
Copy link
Contributor Author

Many apologies for all this. The mention of atomic operations reminds me of #223282, which makes my hunch that this is about the bump to LLVM 17, which the crash also says is unsupported. Emscripten runs on tip of tree LLVM.

If this is agreeable, in a few hours I can add a derivation back for 3.1.47 so GHC can keep depending on that. I’m not sure how else to fix the other caching issue in emscripten. It seems like the various libs just don’t build in all the variants any more, and I assumed the caching was just to speed things up for downstream derivations.

@willcohen willcohen mentioned this pull request Jan 2, 2024
13 tasks
@sternenseemann
Copy link
Member

@willcohen LLVM HEAD not being available doesn't seem to be the problem to me, since 3.1.50 explicitly states it uses 17.0.4? If the LLVM update is the issue, emscripten 3.1.49 should work, right?

@willcohen
Copy link
Contributor Author

willcohen commented Jan 2, 2024

Good point. My hunch about LLVM was a combo of

  1. the ghc log showing
| #define sUPPORTED_LLVM_VERSION_MIN (13)
| #define sUPPORTED_LLVM_VERSION_MAX (16)

and 2) #223282 (comment), which was in the end just a need to change the include directory path names to use only major version numbers.

I'll adjust #278294 to go all the way to 3.1.49.

@willcohen
Copy link
Contributor Author

willcohen commented Jan 2, 2024

@sternenseemann Adjusted with 79c0025

@RaitoBezarius
Copy link
Member

@willcohen I just want to say that I am amazed by your professionalism and your prompt answer in this issue, I am humbled by your skills. Thank you for being part of this community.

@willcohen
Copy link
Contributor Author

Thanks, @RaitoBezarius! I'm much more appreciative of all the collective work you all do to keep this crazy thing working.

@willcohen
Copy link
Contributor Author

@willcohen LLVM HEAD not being available doesn't seem to be the problem to me, since 3.1.50 explicitly states it uses 17.0.4? If the LLVM update is the issue, emscripten 3.1.49 should work, right?

Right @sternenseemann -- this is where we enter a funny territory. Emscripten very explicitly doesn't support any specific release of LLVM, but specifically only whatever is HEAD at the time a version number is cut (emscripten-core/emscripten#11362). I often come up with build failures at whatever time I try to bump the emscripten derivation, since it seems like this rapid cadence means that it's rare for packaging distributions to keep up. If we're early enough in the LLVM cycle to request backports, sometimes whatever new tip of tree stuff emscripten needs can get put into a point release, but more likely (as with #229718), emscripten sometimes needs some patches to stable LLVM (and therefore that runs through stable here), until the next major release gets cut.

For this PR, "support" of LLVM 17.0.4 just meant that when I tried to build it, it worked and passed the tests. Should ofborg have caught this before, or is there another set of tests I should have run through before to make sure GHC was good?

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

Successfully merging this pull request may close these issues.

4 participants