Opened 6 months ago

Closed 6 months ago

Last modified 6 months ago

#68715 closed defect (fixed)

stack @2.13.1: build fails on 10.[13-15]: error: ld: unknown option: -no_fixup_chains

Reported by: kencu (Ken) Owned by: essandess (Steve Smith)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: stack

Description

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

Change History (3)

comment:1 Changed 6 months ago by kencu (Ken)

patching stack component builds on-the-fly in macports is nearly impossible.

All I can think of here is to

  1. use some other linker (which one?) and configure stack to build against it
  2. use the prebuilt binary on this os version

being lazy, I would use the prebuilt binary

comment:2 Changed 6 months ago by kencu (Ken)

Summary: stack @2.13.1: build fails on 10.15: error: ld: unknown option: -no_fixup_chainsstack @2.13.1: build fails on 10.[13-15]: error: ld: unknown option: -no_fixup_chains

same issue on 10.13 and 10.14 , so that makes it easier to know where to draw the 'prebuilt' line

Last edited 6 months ago by kencu (Ken) (previous) (diff)

comment:3 Changed 6 months ago by Ken <21211439+kencu@…>

Resolution: fixed
Status: assignedclosed

In 97ce9387e49a403969870d97c902c4d74f8d8538/macports-ports (master):

stack: use prebuilt on 10.15 and less

closes: #68715

Note: See TracTickets for help on using tickets.