=> Bootstrap dependency digest>=20211023: found digest-20220214 => Checksum BLAKE2s OK for ghc-9.4.7-boot-hadrian-ghc9.8.tar.gz => Checksum SHA512 OK for ghc-9.4.7-boot-hadrian-ghc9.8.tar.gz => Checksum BLAKE2s OK for ghc-9.4.7-boot-x86_64-apple-darwin.tar.xz => Checksum SHA512 OK for ghc-9.4.7-boot-x86_64-apple-darwin.tar.xz => Checksum BLAKE2s OK for ghc-9.8.2-src.tar.xz => Checksum SHA512 OK for ghc-9.8.2-src.tar.xz ===> Installing dependencies for ghc-9.8.2nb1 ========================================================================== The supported build options for ghc are: llvm You can select which build options to use by setting PKG_DEFAULT_OPTIONS or the following variable. Its current value is shown: PKG_OPTIONS.ghc (not defined) ========================================================================== ========================================================================== The following variables will affect the build process of this package, ghc-9.8.2nb1. Their current value is shown below: * CURSES_DEFAULT = ncurses * PYTHON_VERSION_DEFAULT = 311 Based on these variables, the following variables have been set: * CURSES_TYPE = ncurses * PYPACKAGE = python311 You may want to abort the process now with CTRL-C and change the value of variables in the first group before continuing. Be sure to run `/opt/pkg/bin/bmake clean' after the changes. ========================================================================== => Tool dependency python311>=3.11: found python311-3.11.9nb1 => Tool dependency libtool-base>=2.4.2nb9: found libtool-base-2.4.7nb1 => Tool dependency mktools-[0-9]*: found mktools-20220614 => Tool dependency autoconf>=2.50: found autoconf-2.72 => Tool dependency gmake>=3.81: found gmake-4.4.1 => Tool dependency nbpatch-[0-9]*: found nbpatch-20151107 => Tool dependency xz>=4.999.9betanb1: found xz-5.6.2 => Tool dependency cwrappers>=20150314: found cwrappers-20220403 => Tool dependency checkperms>=1.1: found checkperms-1.12 => Full dependency gmp>=5.0.1: found gmp-6.3.0 => Full dependency libffi>=3.4.2nb3: found libffi-3.4.6 => Full dependency ncurses>=6.5: found ncurses-6.5 ===> Overriding tools for ghc-9.8.2nb1 ===> Extracting for ghc-9.8.2nb1 => Substituting "ghc-wrapper-sh" in mk/install_script.sh ===> Patching for ghc-9.8.2nb1 => Applying pkgsrc patches for ghc-9.8.2nb1 => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-compiler_GHC_Driver_Pipeline_Execute.hs => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-compiler_GHC_Driver_Pipeline_Execute.hs Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-compiler_GHC_Driver_Pipeline_Execute.hs,v 1.1 2024/04/28 05:58:57 pho Exp $ | |This is pkgsrc-specific. Do not use -Xpreprocessor to pass options to |CPP. Our tool wrappers may remove some of them, and if that happens an |unpaired -Xpreprocessor will be left behind and confuses CC. | |--- compiler/GHC/Driver/Pipeline/Execute.hs.orig 2022-12-23 16:19:02.000000000 +0000 |+++ compiler/GHC/Driver/Pipeline/Execute.hs -------------------------- Patching file compiler/GHC/Driver/Pipeline/Execute.hs using Plan A... Hunk #1 succeeded at 443 (offset 70 lines). done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-compiler_GHC_SysTools_Process.hs => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-compiler_GHC_SysTools_Process.hs Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-compiler_GHC_SysTools_Process.hs,v 1.1 2024/04/28 05:58:57 pho Exp $ | |This is more like pkgsrc-specific than an upstream issue. Unless we |are on Windows, don't use "response file", the @FILE syntax while |invoking CC or LD. Our tool wrappers don't look into response files, |and therefore can't detect mistakes like depending on Cabal packages |that aren't declared as pkgsrc dependency. | |Note that this patch would break GHC if we didn't have its $ORIGIN use |eliminated because our wrappers hate relative rpaths. | |--- compiler/GHC/SysTools/Process.hs.orig 2022-12-23 16:19:02.000000000 +0000 |+++ compiler/GHC/SysTools/Process.hs -------------------------- Patching file compiler/GHC/SysTools/Process.hs using Plan A... Hunk #1 succeeded at 160. Hunk #2 succeeded at 199. done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-configure.ac => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-configure.ac Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-configure.ac,v 1.1 2024/04/28 05:58:57 pho Exp $ | |Hunk #0: | Disable DTrace support on solaris2. | XXX: But why? | |--- configure.ac.orig 2022-12-23 16:19:02.000000000 +0000 |+++ configure.ac -------------------------- Patching file configure.ac using Plan A... Hunk #1 succeeded at 788 (offset -12 lines). done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-hadrian_bindist_Makefile => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-hadrian_bindist_Makefile Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-hadrian_bindist_Makefile,v 1.1 2024/04/28 05:58:57 pho Exp $ | |Don't run `ghc-pkg recache' while installing a binary distribution. See |also "do-install" in Makefile. This is pkgsrc-specific. | |--- hadrian/bindist/Makefile.orig 2024-02-22 20:59:45.000000000 +0000 |+++ hadrian/bindist/Makefile -------------------------- Patching file hadrian/bindist/Makefile using Plan A... Hunk #1 succeeded at 242. done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-hadrian_bootstrap_bootstrap.py => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-hadrian_bootstrap_bootstrap.py Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-hadrian_bootstrap_bootstrap.py,v 1.3 2024/05/11 14:55:51 pho Exp $ | |Hunk #0, #1: | bootstrap.py assumes that GHC always has a threaded RTS but our | bootkits don't. It is debatable at least as to whether this should be | upstreamed. | | We also need to patch some packages to bootstrap hadrian. Those patch | files are in ${FILESDIR}. | |Hunk #1-#7: | Support --jobs=N for parallel compilation. This makes bootstrapping | hadrian a lot faster. | https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12610 | |--- hadrian/bootstrap/bootstrap.py.orig 2024-02-22 20:59:45.000000000 +0000 |+++ hadrian/bootstrap/bootstrap.py -------------------------- Patching file hadrian/bootstrap/bootstrap.py using Plan A... Hunk #1 succeeded at 25. Hunk #2 succeeded at 181. Hunk #3 succeeded at 226. Hunk #4 succeeded at 248. Hunk #5 succeeded at 263. Hunk #6 succeeded at 273. Hunk #7 succeeded at 399. Hunk #8 succeeded at 507. done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-hadrian_bootstrap_src_Main.hs => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-hadrian_bootstrap_src_Main.hs Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-hadrian_bootstrap_src_Main.hs,v 1.1 2024/04/28 05:58:57 pho Exp $ | |Fix build with cabal-install-parsers >= 0.6. This doesn't affect normal |builds. It's only for creating Hadrian bootstrap source archives. | |https://gitlab.haskell.org/ghc/ghc/-/merge_requests/11546 | |--- hadrian/bootstrap/src/Main.hs.orig 2023-09-21 11:30:31.000000000 +0000 |+++ hadrian/bootstrap/src/Main.hs -------------------------- Patching file hadrian/bootstrap/src/Main.hs using Plan A... Hunk #1 succeeded at 1. Hunk #2 succeeded at 87. done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-hadrian_src_Builder.hs => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-hadrian_src_Builder.hs Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-hadrian_src_Builder.hs,v 1.1 2024/04/28 05:58:58 pho Exp $ | |This is pkgsrc-specific. We build haddock as a dynamically-linked |executable but it doesn't contain an rpath to our not-yet-installed shared |libraries. This is usually not a problem because Hadrian embeds relative |rpaths (i.e. $ORIGIN) in dynamically-linked objects but we patch Hadrian |not to do that. | |--- hadrian/src/Builder.hs.orig 2024-02-22 20:59:45.000000000 +0000 |+++ hadrian/src/Builder.hs -------------------------- Patching file hadrian/src/Builder.hs using Plan A... Hunk #1 succeeded at 31. Hunk #2 succeeded at 387. Hunk #3 succeeded at 409. done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-hadrian_src_Rules_BinaryDist.hs => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-hadrian_src_Rules_BinaryDist.hs Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-hadrian_src_Rules_BinaryDist.hs,v 1.1 2024/04/28 05:58:58 pho Exp $ | |Hunk #0, #1, #3: | Distinguish bootstrapping bindists from regular ones. This is | pkgsrc-specific. | |Hunk #2: | Do not run `ghc-pkg recache' while creating a binary distribution. We | don't want a package cache to be installed because we do it in our | INSTALL script. Also it's not possible to run ghc-pkg in the first | place without setting LD_LIBRARY_PATH since we don't build relocatable | executables. This is pkgsrc-specific. | |Hunk #4: | We want our bootkits to be as small as possible, even though `xz -9e' | is very slow and consumes about 680 MiB of memory. This is | pkgsrc-specific. | |--- hadrian/src/Rules/BinaryDist.hs.orig 2022-12-23 16:19:02.000000000 +0000 |+++ hadrian/src/Rules/BinaryDist.hs -------------------------- Patching file hadrian/src/Rules/BinaryDist.hs using Plan A... Hunk #1 succeeded at 113. Hunk #2 succeeded at 137 (offset 1 line). Hunk #3 succeeded at 195 (offset 1 line). Hunk #4 succeeded at 280 (offset 11 lines). Hunk #5 succeeded at 323 (offset 1 line). done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-hadrian_src_Settings_Builders_Ghc.hs => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-hadrian_src_Settings_Builders_Ghc.hs Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-hadrian_src_Settings_Builders_Ghc.hs,v 1.1 2024/04/28 05:58:58 pho Exp $ | |Don't use rpaths relative to $ORIGIN. Use the final installation path. This |is pkgsrc-specific. | |--- hadrian/src/Settings/Builders/Ghc.hs.orig 2022-12-23 16:19:02.000000000 +0000 |+++ hadrian/src/Settings/Builders/Ghc.hs -------------------------- Patching file hadrian/src/Settings/Builders/Ghc.hs using Plan A... Hunk #1 succeeded at 5. Hunk #2 succeeded at 97 (offset -8 lines). Hunk #3 succeeded at 114 (offset -8 lines). Hunk #4 succeeded at 128 (offset -8 lines). done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-hadrian_src_Settings_Packages.hs => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-hadrian_src_Settings_Packages.hs Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-hadrian_src_Settings_Packages.hs,v 1.2 2024/05/12 02:52:35 pho Exp $ | |Hunk #0, #1: | Don't assume we always build the threaded RTS. We can't upstream this | until they adopt this change to Haddock: | https://github.com/haskell/haddock/commit/75a94e010fb5b0236c670d22b04f5472397dc15d | |Hunk #2: | Hadrian does something unholy on i386 to gain speed but it seems to be | incompatible with LLD. Disable the speed hack to work around a linkage | failure. Ideally we should do this by detecting the type of linker but | not the OS. (Don't upstream this as-is. Do detect the linker type.) | |--- hadrian/src/Settings/Packages.hs.orig 2024-02-22 20:59:45.000000000 +0000 |+++ hadrian/src/Settings/Packages.hs -------------------------- Patching file hadrian/src/Settings/Packages.hs using Plan A... Hunk #1 succeeded at 29. Hunk #2 succeeded at 167. Hunk #3 succeeded at 452. done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_Cabal_Cabal_src_Distribution_Simple_GHC.hs => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_Cabal_Cabal_src_Distribution_Simple_GHC.hs Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-libraries_Cabal_Cabal_src_Distribution_Simple_GHC.hs,v 1.1 2024/04/28 05:58:58 pho Exp $ | |Hunk #0, #1, #2: | Revert the change introduced in https://github.com/haskell/cabal/issues/1660 | | Do not use @rpath on Darwin, instead use the final destination path as a | library install name. This is pkgsrc-specific. | | See also https://github.com/haskell/cabal/pull/7076 | And https://github.com/haskell/cabal/issues/7339 | |Hunk #2: | Enable Cabal's rpath overriding functionality on all the platforms known | to use ELF. | | When a Cabal package which defines both a library and an executable to be | built, GHC by default embeds an rpath to the *build* directory into the | executable. This may sound like a bug in GHC but is actually not, because | GHC doesn't know the fact that the said library is going to be installed | elsewhere. To overcome this issue, Cabal has a functionality to disable | the default rpath handling of GHC and construct the correct set of | rpaths... but only on certain platforms for some reason. | | Pull request: https://github.com/haskell/cabal/pull/7382 | |--- libraries/Cabal/Cabal/src/Distribution/Simple/GHC.hs.orig 2023-09-21 11:31:40.000000000 +0000 |+++ libraries/Cabal/Cabal/src/Distribution/Simple/GHC.hs -------------------------- Patching file libraries/Cabal/Cabal/src/Distribution/Simple/GHC.hs using Plan A... Hunk #1 succeeded at 849 (offset 13 lines). Hunk #2 succeeded at 913 (offset 13 lines). Hunk #3 succeeded at 1820 (offset 8 lines). done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_Cabal_Cabal_src_Distribution_Simple_Register.hs => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_Cabal_Cabal_src_Distribution_Simple_Register.hs Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-libraries_Cabal_Cabal_src_Distribution_Simple_Register.hs,v 1.2 2024/05/12 05:09:57 pho Exp $ | |Fix a long-standing Cabal bug: when a package to be built contains a |library that has no Haskell modules, "./Setup register" tries to register |the library with fields "haddock-interfaces:" and "haddock-html:" pointing |at non-existent files or directories, and "ghc-pkg register" warns about |them. | |wiz@ asked me three times about these suspicious yet harmless warnings and |I kept telling him to just ignore them. I was lazy (as always) and |repeatedly said something like "oh yeah I'll fix it some time in the |future" but now the future has finally come! (pho@) | |https://github.com/haskell/cabal/pull/9997 | |--- libraries/Cabal/Cabal/src/Distribution/Simple/Register.hs.orig 2024-04-28 14:54:00.713517045 +0000 |+++ libraries/Cabal/Cabal/src/Distribution/Simple/Register.hs -------------------------- Patching file libraries/Cabal/Cabal/src/Distribution/Simple/Register.hs using Plan A... Hunk #1 succeeded at 445. done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_base_GHC_Event_KQueue.hsc => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_base_GHC_Event_KQueue.hsc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-libraries_base_GHC_Event_KQueue.hsc,v 1.1 2024/04/28 05:58:58 pho Exp $ | |Suppress linker warnings about compatibility syscall wrappers by using |"capi" instead of "ccall". | |--- libraries/base/GHC/Event/KQueue.hsc.orig 2019-12-26 18:05:56.276488590 +0000 |+++ libraries/base/GHC/Event/KQueue.hsc -------------------------- Patching file libraries/base/GHC/Event/KQueue.hsc using Plan A... Hunk #1 succeeded at 299 (offset 15 lines). done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_base_System_CPUTime_Posix_Times.hsc => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_base_System_CPUTime_Posix_Times.hsc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-libraries_base_System_CPUTime_Posix_Times.hsc,v 1.1 2024/04/28 05:58:58 pho Exp $ | |Suppress linker warnings about compatibility syscall wrappers by using |"capi" instead of "ccall". | |--- libraries/base/System/CPUTime/Posix/Times.hsc.orig 2020-01-04 12:08:39.515726533 +0000 |+++ libraries/base/System/CPUTime/Posix/Times.hsc -------------------------- Patching file libraries/base/System/CPUTime/Posix/Times.hsc using Plan A... Hunk #1 succeeded at 29 (offset 2 lines). done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_base_System_Environment.hs => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_base_System_Environment.hs Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-libraries_base_System_Environment.hs,v 1.1 2024/04/28 05:58:58 pho Exp $ | |Suppress linker warnings about compatibility syscall wrappers by using |"capi" instead of "ccall". | |--- libraries/base/System/Environment.hs.orig 2018-02-25 20:02:28.000000000 +0000 |+++ libraries/base/System/Environment.hs -------------------------- Patching file libraries/base/System/Environment.hs using Plan A... Hunk #1 succeeded at 1. Hunk #2 succeeded at 248 (offset 1 line). done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_base_configure => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_base_configure Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-libraries_base_configure,v 1.1 2024/04/28 05:58:58 pho Exp $ | |Ensure libiconv can be found at runtime. | |XXX: I don't think this is needed because rpath flags are handled by |Cabal. LDFLAGS is not used anyway. (pho@) | |--- libraries/base/configure.orig 2021-10-28 20:43:03.000000000 +0000 |+++ libraries/base/configure -------------------------- Patching file libraries/base/configure using Plan A... Hunk #1 succeeded at 4308 (offset 99 lines). done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_terminfo_configure.ac => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_terminfo_configure.ac Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-libraries_terminfo_configure.ac,v 1.1 2024/04/28 05:58:58 pho Exp $ | |Don't use "==" as it's a Bash-ism: |https://github.com/judah/terminfo/commit/09fe6ebe02d439c507c0bad6e500c9212f56e8e3 | |--- libraries/terminfo/configure.ac.orig 2023-10-23 02:48:49.253512773 +0000 |+++ libraries/terminfo/configure.ac -------------------------- Patching file libraries/terminfo/configure.ac using Plan A... Hunk #1 succeeded at 18. done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_time_lib_Data_Time_Clock_Internal_CTimespec.hsc => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_time_lib_Data_Time_Clock_Internal_CTimespec.hsc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-libraries_time_lib_Data_Time_Clock_Internal_CTimespec.hsc,v 1.1 2024/04/28 05:58:58 pho Exp $ | |Suppress linker warnings about compatibility symbols. | |--- libraries/time/lib/Data/Time/Clock/Internal/CTimespec.hsc.orig 2020-01-04 02:21:30.506303962 +0000 |+++ libraries/time/lib/Data/Time/Clock/Internal/CTimespec.hsc -------------------------- Patching file libraries/time/lib/Data/Time/Clock/Internal/CTimespec.hsc using Plan A... Hunk #1 succeeded at 3 (offset 2 lines). Hunk #2 succeeded at 26 (offset -4 lines). done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_time_lib_Data_Time_Clock_Internal_CTimeval.hs => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_time_lib_Data_Time_Clock_Internal_CTimeval.hs Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-libraries_time_lib_Data_Time_Clock_Internal_CTimeval.hs,v 1.1 2024/04/28 05:58:58 pho Exp $ | |Suppress linker warnings about compatibility syscall wrappers by using |"capi" instead of "ccall". In Haskell FFI, "ccall" is actually an |interface to C ABI rather than C API. That is, GHC generates direct |references to the symbol even if it's actually defined as a cpp macro |or something like that, because GHC knows nothing about those macros |in foreign headers. Hence the following warnings: | | .../libHStime-1.4.0.1.a(CTimeval.o): In function `s1Kp_info': | (.text+0x2f): warning: warning: reference to compatibility | gettimeofday(); include to generate correct reference | |In other words, you can safely use "ccall" only when you are sure the |symbol you want to import is actually a symbol in the ABI sense, which |is not always the case for the POSIX API. | |--- libraries/time/lib/Data/Time/Clock/Internal/CTimeval.hs.orig 2021-10-28 20:42:10.000000000 +0000 |+++ libraries/time/lib/Data/Time/Clock/Internal/CTimeval.hs -------------------------- Patching file libraries/time/lib/Data/Time/Clock/Internal/CTimeval.hs using Plan A... Hunk #1 succeeded at 2 (offset 1 line). Hunk #2 succeeded at 23 (offset 1 line). done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_unix_System_Posix_Env.hsc => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_unix_System_Posix_Env.hsc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-libraries_unix_System_Posix_Env.hsc,v 1.1 2024/04/28 05:58:58 pho Exp $ | |Suppress linker warnings about compatibility symbols by using "capi" |instead of "ccall". | |--- libraries/unix/System/Posix/Env.hsc.orig 2023-09-21 11:31:41.000000000 +0000 |+++ libraries/unix/System/Posix/Env.hsc -------------------------- Patching file libraries/unix/System/Posix/Env.hsc using Plan A... Hunk #1 succeeded at 120 (offset -21 lines). done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_unix_System_Posix_Env_ByteString.hsc => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_unix_System_Posix_Env_ByteString.hsc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-libraries_unix_System_Posix_Env_ByteString.hsc,v 1.1 2024/04/28 05:58:58 pho Exp $ | |Suppress linker warnings about compatibility symbols by using "capi" |instead of "ccall". | |--- libraries/unix/System/Posix/Env/ByteString.hsc.orig 2022-12-23 16:19:54.000000000 +0000 |+++ libraries/unix/System/Posix/Env/ByteString.hsc -------------------------- Patching file libraries/unix/System/Posix/Env/ByteString.hsc using Plan A... Hunk #1 succeeded at 137 (offset -16 lines). done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_unix_System_Posix_Env_PosixString.hsc => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_unix_System_Posix_Env_PosixString.hsc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-libraries_unix_System_Posix_Env_PosixString.hsc,v 1.1 2024/04/28 05:58:58 pho Exp $ | |Suppress linker warnings about compatibility symbols by using "capi" |instead of "ccall". | |--- libraries/unix/System/Posix/Env/PosixString.hsc.orig 2023-10-23 10:24:23.010158238 +0000 |+++ libraries/unix/System/Posix/Env/PosixString.hsc -------------------------- Patching file libraries/unix/System/Posix/Env/PosixString.hsc using Plan A... Hunk #1 succeeded at 130 (offset -16 lines). done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_unix_System_Posix_Signals.hsc => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_unix_System_Posix_Signals.hsc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-libraries_unix_System_Posix_Signals.hsc,v 1.1 2024/04/28 05:58:58 pho Exp $ | |Suppress linker warnings about compatibility symbols. | |--- libraries/unix/System/Posix/Signals.hsc.orig 2023-09-21 11:31:41.000000000 +0000 |+++ libraries/unix/System/Posix/Signals.hsc -------------------------- Patching file libraries/unix/System/Posix/Signals.hsc using Plan A... Hunk #1 succeeded at 858 (offset 10 lines). Hunk #2 succeeded at 870 (offset 10 lines). done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_unix_System_Posix_User.hsc => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_unix_System_Posix_User.hsc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-libraries_unix_System_Posix_User.hsc,v 1.1 2024/04/28 05:58:58 pho Exp $ | |Suppress linker warnings about compatibility symbols by using "capi" |instead of "ccall". | |--- libraries/unix/System/Posix/User.hsc.orig 2023-10-23 10:26:54.941601450 +0000 |+++ libraries/unix/System/Posix/User.hsc -------------------------- Patching file libraries/unix/System/Posix/User.hsc using Plan A... Hunk #1 succeeded at 605. done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_unix_System_Posix_User_ByteString.hsc => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-libraries_unix_System_Posix_User_ByteString.hsc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-libraries_unix_System_Posix_User_ByteString.hsc,v 1.1 2024/04/28 05:58:58 pho Exp $ | |Suppress linker warnings about compatibility symbols by using "capi" |instead of "ccall". | |--- libraries/unix/System/Posix/User/ByteString.hsc.orig 2023-10-24 03:45:34.747217813 +0000 |+++ libraries/unix/System/Posix/User/ByteString.hsc -------------------------- Patching file libraries/unix/System/Posix/User/ByteString.hsc using Plan A... Hunk #1 succeeded at 522. done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-m4_fp__find__cxx__std__lib.m4 => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-m4_fp__find__cxx__std__lib.m4 Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-m4_fp__find__cxx__std__lib.m4,v 1.2 2024/05/12 02:52:35 pho Exp $ | |$CXX must not be quoted because it may contain flags. The same goes for |$CC. This causes a configuration failure on MacOS X 14 where AC_PROG_CXX |sets $CXX to "clang++ -std=gnu++11". | |https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12612 | |--- m4/fp_find_cxx_std_lib.m4.orig 2024-05-05 18:35:55.965776858 +0000 |+++ m4/fp_find_cxx_std_lib.m4 -------------------------- Patching file m4/fp_find_cxx_std_lib.m4 using Plan A... Hunk #1 succeeded at 26. Hunk #2 succeeded at 54. done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-m4_fptools__set__haskell__platform__vars.m4 => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-m4_fptools__set__haskell__platform__vars.m4 Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-m4_fptools__set__haskell__platform__vars.m4,v 1.1 2024/04/28 05:58:58 pho Exp $ | |Pretend the toolchain doesn't support .note.GNU-stack on NetBSD. This is a |temporary workaround and shouldn't live forever. See: |https://mail-index.netbsd.org/tech-toolchain/2023/01/15/msg004188.html | |--- m4/fptools_set_haskell_platform_vars.m4.orig 2023-01-15 14:19:38.638967614 +0000 |+++ m4/fptools_set_haskell_platform_vars.m4 -------------------------- Patching file m4/fptools_set_haskell_platform_vars.m4 using Plan A... Hunk #1 succeeded at 195 (offset 15 lines). Hunk #2 succeeded at 226 (offset 15 lines). done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-rts_rts.cabal.in => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-rts_rts.cabal.in Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-rts_rts.cabal.in,v 1.2 2024/05/12 03:40:55 pho Exp $ | |Fix build on Illumos where ld(1) dislikes undefined symbols in executables just like MacOS X. | |https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12613 | |--- rts/rts.cabal.in.orig 2024-05-07 09:28:23.509544641 +0000 |+++ rts/rts.cabal.in -------------------------- Patching file rts/rts.cabal.in using Plan A... Hunk #1 succeeded at 501. done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-utils_haddock_driver_Main.hs => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-utils_haddock_driver_Main.hs Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-utils_haddock_driver_Main.hs,v 1.1 2024/04/28 05:58:58 pho Exp $ | |Workaround for haddock dying when the locale isn't "*.UTF-8". Of course |this isn't a real fix. Haddock is very fragile when it comes to locale |setting, and fixing it properly would be seriously a lot of work. | |--- utils/haddock/driver/Main.hs.orig 2020-07-28 17:05:24.000000000 +0000 |+++ utils/haddock/driver/Main.hs -------------------------- Patching file utils/haddock/driver/Main.hs using Plan A... Hunk #1 succeeded at 1. done => Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-utils_haddock_haddock.cabal => Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98/patches/patch-utils_haddock_haddock.cabal Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-utils_haddock_haddock.cabal,v 1.1 2024/04/28 05:58:58 pho Exp $ | |Don't assume we always build the threaded RTS. | |Pull request: |https://github.com/haskell/haddock/pull/1575 | |--- utils/haddock/haddock.cabal.orig 2023-01-11 07:37:47.265320221 +0000 |+++ utils/haddock/haddock.cabal -------------------------- Patching file utils/haddock/haddock.cabal using Plan A... Hunk #1 succeeded at 59. done ===> Regenerating configuration scripts for ghc-9.8.2nb1 configure.ac:90: warning: The macro 'AC_CONFIG_HEADER' is obsolete. configure.ac:90: You should run autoupdate. ./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from... configure.ac:90: the top level configure.ac:92: warning: The macro 'AC_CONFIG_HEADER' is obsolete. configure.ac:92: You should run autoupdate. ./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from... configure.ac:92: the top level configure.ac:473: warning: The macro 'AC_PROG_CC_C99' is obsolete. configure.ac:473: You should run autoupdate. ./lib/autoconf/c.m4:1662: AC_PROG_CC_C99 is expanded from... m4/fp_set_cflags_c99.m4:7: FP_SET_CFLAGS_C99 is expanded from... configure.ac:473: the top level configure.ac:474: warning: The macro 'AC_PROG_CC_C99' is obsolete. configure.ac:474: You should run autoupdate. ./lib/autoconf/c.m4:1662: AC_PROG_CC_C99 is expanded from... m4/fp_set_cflags_c99.m4:7: FP_SET_CFLAGS_C99 is expanded from... configure.ac:474: the top level configure.ac:475: warning: The macro 'AC_PROG_CC_C99' is obsolete. configure.ac:475: You should run autoupdate. ./lib/autoconf/c.m4:1662: AC_PROG_CC_C99 is expanded from... m4/fp_set_cflags_c99.m4:7: FP_SET_CFLAGS_C99 is expanded from... configure.ac:475: the top level configure.ac:476: warning: The macro 'AC_PROG_CC_C99' is obsolete. configure.ac:476: You should run autoupdate. ./lib/autoconf/c.m4:1662: AC_PROG_CC_C99 is expanded from... m4/fp_set_cflags_c99.m4:7: FP_SET_CFLAGS_C99 is expanded from... configure.ac:476: the top level configure.ac:1016: warning: The macro 'AC_TRY_RUN' is obsolete. configure.ac:1016: You should run autoupdate. ./lib/autoconf/general.m4:2995: AC_TRY_RUN is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: 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:1016: the top level 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 ===> Creating toolchain wrappers for ghc-9.8.2nb1 ===> Configuring for ghc-9.8.2nb1 ===> Extracting bootstrapping compiler for ghc-9.8.2nb1 ===> Preparing bootstrapping compiler for ghc-9.8.2nb1 configure: WARNING: unrecognized options: --with-curses-libraries, --with-gmp-includes, --with-gmp-libraries, --with-iconv-includes, --with-iconv-libraries, --with-ffi-includes, --with-ffi-libraries, --with-bindist-prefix, --with-system-libffi checking build system type... x86_64-apple-darwin23.5.0 checking host system type... x86_64-apple-darwin23.5.0 checking target system type... x86_64-apple-darwin23.5.0 build platform inferred as: x86_64-apple-darwin host platform inferred as: x86_64-apple-darwin target platform inferred as: x86_64-apple-darwin configure: GHC build : x86_64-apple-darwin configure: GHC host : x86_64-apple-darwin configure: GHC target : x86_64-apple-darwin checking for path to top of build tree... /Users/pbulk/build-disk/lang/ghc98/work/bootkit-dist/ghc-9.4.7-boot-x86_64-apple-darwin checking for a BSD-compatible install... /Users/pbulk/build-disk/lang/ghc98/work/.tools/bin/install -c checking whether ln -s works... yes checking for gsed... sed checking for python3... /opt/pkg/bin/python3.11 checking for gfind... no checking for find... /Users/pbulk/build-disk/lang/ghc98/work/.tools/bin/find checking Xcode version... 13.4.1 configure: Xcode version component 1: 13 configure: Xcode version component 2: 4 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... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether clang accepts -g... yes checking for clang option to enable C11 features... none needed checking whether the compiler supports GNU C++... yes checking whether clang++ accepts -g... yes checking for clang++ option to enable C++11 features... none needed checking how to run the C preprocessor... clang -E checking for -ld... ld checking for ld.gold object merging bug (binutils 22266)... ld: unknown option: --version checking whether ld is GNU ld... NO checking whether ld understands --build-id... no checking whether ld understands -no_compact_unwind... yes checking whether ld understands -filelist... yes checking for -strip... no checking for strip... strip checking for gawk... /opt/pkg/bin/nawk no configure: We only support llvm 10 to 15 (no version found). no configure: We only support llvm 10 to 15 (no version found). configure: $CC is not gcc; assuming it's a reasonably new C compiler checking whether CC supports -no-pie... yes checking for extra options to pass gcc when compiling via C... checking Setting up CFLAGS, LDFLAGS, IGNORE_LINKER_LD_FLAGS and CPPFLAGS... done checking Setting up CONF_CC_OPTS_STAGE0, CONF_GCC_LINKER_OPTS_STAGE0, CONF_LD_LINKER_OPTS_STAGE0 and CONF_CPP_OPTS_STAGE0... done checking Setting up CONF_CC_OPTS_STAGE1, CONF_GCC_LINKER_OPTS_STAGE1, CONF_LD_LINKER_OPTS_STAGE1 and CONF_CPP_OPTS_STAGE1... done checking Setting up CONF_CC_OPTS_STAGE2, CONF_GCC_LINKER_OPTS_STAGE2, CONF_LD_LINKER_OPTS_STAGE2 and CONF_CPP_OPTS_STAGE2... done checking whether ld64 requires -no_fixup_chains... yes checking whether ld64 requires -no_fixup_chains... yes checking whether ld64 requires -no_fixup_chains... yes checking whether ld64 requires -no_fixup_chains... yes checking C++ standard library flavour... clang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found] actest.cpp:1:10: fatal error: 'iostream' file not found #include ^~~~~~~~~~ 1 error generated. configure: error: Failed to compile test program *** Error code 1 Stop. bmake[1]: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98 *** Error code 1 Stop. bmake: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/lang/ghc98