Re: Missing macOS libiconv.dylib Breaks ghc Bootstrap

2022-09-01 Thread Steven Smith
Thanks for the pointers. I now have this working with MacPorts libiconv.dylib libraries, and have bootrapped ghc and cabal binaries that are independent of /usr/lib/libiconv.dylib. Relevant PR’s and issues: https://github.com/macports/macports-ports/pull/15770

Re: Missing macOS libiconv.dylib Breaks ghc Bootstrap

2022-08-30 Thread Steven Smith
I see that my build environment does not include some of these variables (CC, CFLAGS, LDFLAGS, etc.). It sets: > :debug:build Environment: > :debug:build CC_PRINT_OPTIONS='YES' > :debug:build >

Re: Missing macOS libiconv.dylib Breaks ghc Bootstrap

2022-08-30 Thread Steven Smith
I have successfully self-bootstrapped ghc 9.4.2 by hand. I now believe that the build failures are caused by some default MacPorts setting. Is someone able to suggest a Portfile setting that can recreate this successful build? I set (by hand) these basic MacPorts environment variables: >

Re: Missing macOS libiconv.dylib Breaks ghc Bootstrap

2022-08-30 Thread Ken Cunningham
Steve, some thoughts, as I helped you fix issue this last time. > Also, I’m perplexed with this doesn’t just work with the default MacPorts > compiler.cpath and compiler.library_path settings. It seems this prebuilt bootstrap library you are using: >

Re: Missing macOS libiconv.dylib Breaks ghc Bootstrap

2022-08-28 Thread Steven Smith
Also, I’m perplexed with this doesn’t just work with the default MacPorts compiler.cpath and compiler.library_path settings. The file iconv.c has a straightforward #include from https://github.com/ghc/ghc/blob/161a6f1fd62e797e978e7808a5f567fefa123f16/libraries/base/cbits/iconv.c#L4

Re: Missing macOS libiconv.dylib Breaks ghc Bootstrap

2022-08-28 Thread Joshua Root
On 2022-8-29 05:01 , Steven Smith wrote: Thanks. you probably want to be using the libiconv port anyway? Unfortunately, that won’t work without some hackery. Note the different symbol names in MacPorts: nm -gC

Re: Missing macOS libiconv.dylib Breaks ghc Bootstrap

2022-08-28 Thread Steven Smith
Thanks. > you probably want to be using the libiconv port anyway? Unfortunately, that won’t work without some hackery. Note the different symbol names in MacPorts: > nm -gC >

Re: Missing macOS libiconv.dylib Breaks ghc Bootstrap

2022-08-28 Thread Joshua Root
On 2022-8-29 04:42 , Steven Smith wrote: Re: https://gitlab.haskell.org/ghc/ghc/-/issues/22118 I'm self-bootstrapping ghc 9.4.2 using hadrian for deployment on MacPorts. Running hadrian -f binary-dist throws this error: :info:build

Re: Missing macOS libiconv.dylib Breaks ghc Bootstrap

2022-08-28 Thread Steven Smith
P.S. CLT provides the file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libiconv.tbd But is points to the nonexistent file: > install-name:'/usr/lib/libiconv.2.dylib' > On Aug 28, 2022, at 2:42 PM, Steven Smith wrote: > > Re:

Missing macOS libiconv.dylib Breaks ghc Bootstrap

2022-08-28 Thread Steven Smith
Re: https://gitlab.haskell.org/ghc/ghc/-/issues/22118 I'm self-bootstrapping ghc 9.4.2 using hadrian for deployment on MacPorts. Running hadrian -f binary-dist throws this error: > :info:build "_iconv_close", referenced from: > :info:build