stack @2.13.1: build fails on 10.[13-15]: error: ld: unknown option: -no_fixup_chains
https://build.macports.org/builders/ports-10.15_x86_64-builder/builds/162420/steps/install-port/logs/stdio
basement > command was: /usr/bin/clang .stack-work/dist/x86_64-osx/ghc-9.4.7/build/Basement/Terminal/Size_hsc_make.o .stack-work/dist/x86_64-osx/ghc-9.4.7/build/Basement/Terminal/Size_hsc_utils.o -o .stack-work/dist/x86_64-osx/ghc-9.4.7/build/Basement/Terminal/Size_hsc_make --target=x86_64-apple-darwin -Wl,-no_fixup_chains --target=x86_64-apple-darwin -L/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_stack/stack/work/.home/.stack/programs/x86_64-osx/ghc-9.4.7/lib/ghc-9.4.7/lib/../lib/x86_64-osx-ghc-9.4.7/base-4.17.2.0 -liconv -L/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_stack/stack/work/.home/.stack/programs/x86_64-osx/ghc-9.4.7/lib/ghc-9.4.7/lib/../lib/x86_64-osx-ghc-9.4.7/ghc-bignum-1.3 -L/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_stack/stack/work/.home/.stack/programs/x86_64-osx/ghc-9.4.7/lib/ghc-9.4.7/lib/../lib/x86_64-osx-ghc-9.4.7/ghc-prim-0.9.1 -L/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_stack/stack/work/.home/.stack/programs/x86_64-osx/ghc-9.4.7/lib/ghc-9.4.7/lib/../lib/x86_64-osx-ghc-9.4.7/rts-1.0.2 -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -lm -ldl -lffi
basement > error: ld: unknown option: -no_fixup_chains
basement > clang: error: linker command failed with exit code 1 (use -v to see invocation)
basement >
Getting the project-level configuration file from the STACK_YAML environment variable.
Error: [S-7282]
Stack failed to execute the build plan.
While executing the build plan, Stack encountered the error:
[S-7011]
While building package basement-0.0.16 (scroll up to its section to see the error) using:
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_stack/stack/work/.home/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_6HauvNHV_3.8.1.0_ghc-9.4.7 --verbose=1 --builddir=.stack-work/dist/x86_64-osx/ghc-9.4.7 build --ghc-options ""
Process exited with code: ExitFailure 1
Command failed: cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_stack/stack/work/stack-2.13.1" && /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_stack/stack/work/bin/stack build --with-gcc /usr/bin/clang --allow-different-user
Exit code: 1
patching stack component builds on-the-fly in macports is nearly impossible.
All I can think of here is to
being lazy, I would use the prebuilt binary