Skip to content
Snippets Groups Projects
  1. Feb 08, 2023
    • Tamar Christina's avatar
      linker: Fix BFD import libraries · 81873448
      Tamar Christina authored and Ben Gamari's avatar Ben Gamari committed
      This commit fixes the BFD style import library support in the runtime
      linker.  This was accidentally broken during the refactoring to clang
      and went unnoticed because clang itself is unable to generate the BFD
      style import libraries.
      
      With this change we can not link against both GCC or Clang produced
      libraries again and intermix code produced by both compilers.
      
      (cherry picked from commit 48e39195)
      81873448
    • Ryan Scott's avatar
      Windows: Remove mingwex dependency · 2c7f85fe
      Ryan Scott authored
      The clang based toolchain uses ucrt as its math library
      and so mingwex is no longer needed.  In fact using mingwex
      will cause incompatibilities as the default routines in both
      have differing ULPs and string formatting modifiers.
      
      ```
      $ LIBRARY_PATH=/mingw64/lib ghc/_build/stage1/bin/ghc Bug.hs -fforce-recomp && ./Bug.exe
      [1 of 2] Compiling Main             ( Bug.hs, Bug.o )
      ghc.exe:  | C:\Users\winferno\Software\ghc\_build\stage1\lib\x86_64-windows-ghc-9.5.20220908\base-4.17.0.0\libHSbase-4.17.0.0.a: unknown symbol `__imp___p__environ'
      ghc.exe:  | C:\Users\winferno\Software\ghc\_build\stage1\lib\x86_64-windows-ghc-9.5.20220908\base-4.17.0.0\libHSbase-4.17.0.0.a: unknown symbol `__hscore_get_errno'
      ghc.exe:  | C:\Users\winferno\Software\ghc\_build\stage1\lib\x86_64-windows-ghc-9.5.20220908\base-4.17.0.0\libHSbase-4.17.0.0.a: unknown symbol `base_ForeignziCziError_errnoToIOError_info'
      ghc.exe:  | C:\Users\winferno\Software\ghc\_build\stage1\lib\x86_64-windows-ghc-9.5.20220908\base-4.17.0.0\libHSbase-4.17.0.0.a: unknown symbol `base_GHCziWindows_failIf2_closure'
      ghc.exe:  | C:\Users\winferno\Software\ghc\_build\stage1\lib\x86_64-windows-ghc-9.5.20220908\base-4.17.0.0\libHSbase-4.17.0.0.a: unknown symbol `base_GHCziIOziEncodingziCodePageziAPI_mkCodePageEncoding_info'
      ghc.exe:  | C:\Users\winferno\Software\ghc\_build\stage1\lib\x86_64-windows-ghc-9.5.20220908\base-4.17.0.0\libHSbase-4.17.0.0.a: unknown symbol `base_GHCziIOziEncodingziCodePage_currentCodePage_closure'
      ghc.exe:  | C:\Users\winferno\Software\ghc\_build\stage1\lib\x86_64-windows-ghc-9.5.20220908\base-4.17.0.0\libHSbase-4.17.0.0.a: unknown symbol `base_GHCziIOziEncoding_getForeignEncoding_closure'
      ghc.exe:  | C:\Users\winferno\Software\ghc\_build\stage1\lib\x86_64-windows-ghc-9.5.20220908\base-4.17.0.0\libHSbase-4.17.0.0.a: unknown symbol `base_ForeignziCziString_withCStringLen1_info'
      ghc.exe:  | C:\Users\winferno\Software\ghc\_build\stage1\lib\x86_64-windows-ghc-9.5.20220908\base-4.17.0.0\libHSbase-4.17.0.0.a: unknown symbol `base_GHCziIOziHandleziInternals_zdwflushCharReadBuffer_info'
      ghc.exe:  | C:\Users\winferno\Software\ghc\_build\stage1\lib\x86_64-windows-ghc-9.5.20220908\base-4.17.0.0\libHSbase-4.17.0.0.a: unknown symbol `base_GHCziIOziHandleziText_hGetBuf1_info'
      ghc.exe:  | C:\Users\winferno\Software\ghc\_build\stage1\lib\x86_64-windows-ghc-9.5.20220908\base-4.17.0.0\libHSbase-4.17.0.0.a: unknown symbol `base_GHCziFingerprint_fingerprintString_closure'
      ghc.exe:  | C:\Users\winferno\Software\ghc\_build\stage1\lib\x86_64-windows-ghc-9.5.20220908\base-4.17.0.0\libHSbase-4.17.0.0.a: unknown symbol `base_DataziTypeableziInternal_mkTrCon_closure'
      ghc.exe:  | C:\Users\winferno\Software\ghc\_build\stage1\lib\x86_64-windows-ghc-9.5.20220908\base-4.17.0.0\libHSbase-4.17.0.0.a: unknown symbol `base_GHCziException_errorCallWithCallStackException_closure'
      ghc.exe:  | C:\Users\winferno\Software\ghc\_build\stage1\lib\x86_64-windows-ghc-9.5.20220908\base-4.17.0.0\libHSbase-4.17.0.0.a: unknown symbol `base_GHCziErr_error_info'
      ghc.exe:  | C:\Users\winferno\Software\ghc\_build\stage1\lib\x86_64-windows-ghc-9.5.20220908\template-haskell-2.19.0.0\libHStemplate-haskell-2.19.0.0.a: unknown symbol `base_DataziMaybe_fromJust1_info'
      ghc.exe:  | C:\Users\winferno\Software\ghc\_build\stage1\lib\x86_64-windows-ghc-9.5.20220908\template-haskell-2.19.0.0\libHStemplate-haskell-2.19.0.0.a: unknown symbol `templatezmhaskell_LanguageziHaskellziTHziSyntax_IntPrimL_con_info'
      ghc.exe: ^^ Could not load 'templatezmhaskell_LanguageziHaskellziTHziLibziInternal_stringL_closure', dependency unresolved. See top entry above.
      
      <no location info>: error:
      
      GHC.ByteCode.Linker.lookupCE
      During interactive linking, GHCi couldn't find the following symbol:
        templatezmhaskell_LanguageziHaskellziTHziLibziInternal_stringL_closure
      This may be due to you not asking GHCi to load extra object files,
      archives or DLLs needed by your current session.  Restart GHCi, specifying
      the missing library using the -L/path/to/object/dir and -lmissinglibname
      flags, or simply by naming the relevant files on the GHCi command line.
      Alternatively, this link failure might indicate a bug in GHCi.
      If you suspect the latter, please report this as a GHC bug:
        https://www.haskell.org/ghc/reportabug
      ```
      
      (cherry picked from commit de1d1512)
      2c7f85fe
    • Bodigrim's avatar
      Fix colors in emacs terminal · 51397a53
      Bodigrim authored
      (cherry picked from commit 5a54ac0b)
      51397a53
    • Ben Gamari's avatar
      Revert "Use fix-sized bit-fiddling primops for fixed size boxed types" · c6c96a3a
      Ben Gamari authored
      This reverts commit 4512ad2d.
      
      This was never applied to master/9.6 originally.
      
      (cherry picked from commit a44bdc27)
      (cherry picked from commit 25537dfd)
      c6c96a3a
    • Andreas Klebinger's avatar
      Fix CallerCC potentially shadowing other cost centres. · 86698692
      Andreas Klebinger authored
      Add a CallerCC cost centre flavour for cost centres added by the
      CallerCC pass. This avoids potential accidental shadowing between
      CCs added by user annotations and ones added by CallerCC.
      
      (cherry picked from commit bf3f88a1)
      86698692
    • Bodigrim's avatar
      Bump submodule containers to 0.6.7 · 18942043
      Bodigrim authored
      Metric Decrease:
          ManyConstructors
          T10421
          T12425
          T12707
          T13035
          T13379
          T15164
          T1969
          T783
          T9198
          T9961
          WWRec
      
      (cherry picked from commit 31358198)
      18942043
    • Matthew Pickering's avatar
      Disable unfolding sharing for interface files with core definitions · cbd60c81
      Matthew Pickering authored and Ben Gamari's avatar Ben Gamari committed
      Ticket #22807 pointed out that the RHS sharing was not compatible with
      -fignore-interface-pragmas because the flag would remove unfoldings from
      identifiers before the `extra-decls` field was populated.
      
      For the 9.6 timescale the only solution is to disable this sharing,
      which will make interface files bigger but this is acceptable for the
      first release of `-fwrite-if-simplified-core`.
      
      For 9.8 it would be good to fix this by implementing #20056 due to the
      large number of other bugs that would fix.
      
      I also improved the error message in tc_iface_binding to avoid the "no match
      in record selector" error but it should never happen now as the entire
      sharing logic is disabled.
      
      Also added the currently broken test for #22807 which could be fixed by
      !6080
      
      Fixes #22807
      
      (cherry picked from commit 0ada4547)
      cbd60c81
  2. Feb 01, 2023
Loading