pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/58379: ghc98 build failure on 10.99.10 with gcc12



>Number:         58379
>Category:       pkg
>Synopsis:       ghc98 build failure on 10.99.10 with gcc12
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 29 08:25:00 +0000 2024
>Originator:     Thomas Klausner
>Release:        NetBSD 10.99.10
>Organization:

>Environment:
	
	
Architecture: x86_64
Machine: amd64
>Description:

After NetBSD-current was switched to use gcc12 by default, lang/ghc98
stopped building with:

| Create directory _build/stage1/haddock-timing-files
| Run Haddock BuildPackage: libraries/ghc-prim/GHC/CString.hs (and 13 more) => _build/doc/html/libraries/ghc-prim-0.11.0-inplace/ghc-prim.haddock
Command line: _build/stage1/bin/haddock --verbosity=0 -B_build/stage1/lib --lib=_build/stage1/lib --odir=_build/doc/html/libraries/ghc-prim-0.11.0-inplace --dump-interface=_build/doc/html/libraries/ghc-prim-0.11.0-inplace/ghc-prim.haddock --html '--title=ghc-prim-0.11.0: GHC primitives' --prologue=_build/doc/html/libraries/ghc-prim-0.11.0-inplace/haddock-prologue.txt --optghc=-D__HADDOCK_VERSION__=2300 --optghc=-hisuf --optghc=dyn_hi --optghc=-osuf --optghc=dyn_o --optghc=-hcsuf --optghc=dyn_hc --optghc=-fPIC --optghc=-dynamic --optghc=-hide-all-packages --optghc=-no-user-package-db '--optghc=-package-env -' '--optghc=-this-unit-id ghc-prim-0.11.0-inplace' '--optghc=-package-id rts-1.0.2' --optghc=-i --optghc=-i/scratch/lang/ghc98/work/ghc-9.8.2/_build/stage1/libraries/ghc-prim/build --optghc=-i/scratch/lang/ghc98/work/ghc-9.8.2/_build/stage1/libraries/ghc-prim/build/autogen --optghc=-i/scratch/lang/ghc98/work/ghc-9.8.2/libraries/ghc-prim --optghc=-Irts/include --optghc=-I_build/stag
 e1/libraries/ghc-prim/build --optghc=-I/usr/pkg/include --optghc=-I/scratch/lang/ghc98/work/ghc-9.8.2/rts/include --optghc=-I/scratch/lang/ghc98/work/ghc-9.8.2/_build/stage1/rts/build/include --optghc=-optP-include --optghc=-optP_build/stage1/libraries/ghc-prim/build/autogen/cabal_macros.h --optghc=-optc-O2 --optghc=-optc-g --optghc=-optc-fstack-clash-protection --optghc=-optc-I/usr/include --optghc=-optc-I/usr/pkg/include --optghc=-optc-fPIC --optghc=-outputdir --optghc=_build/stage1/libraries/ghc-prim/build --optghc=-fdiagnostics-color=always --optghc=-this-unit-id --optghc=ghc-prim --optghc=-XHaskell2010 --optghc=-no-global-package-db --optghc=-package-db=/scratch/lang/ghc98/work/ghc-9.8.2/_build/stage1/inplace/package.conf.d --optghc=-ghcversion-file=rts/include/ghcversion.h --optghc=-ghcversion-file=rts/include/ghcversion.h --optghc=-this-unit-id --optghc=ghc-prim --optghc=-XHaskell2010 --optghc=-no-global-package-db --optghc=-package-db=/scratch/lang/ghc98/work/ghc-9.8.2/_buil
 d/stage1/inplace/package.conf.d --optghc=-ghcversion-file=rts/include/ghcversion.h --optghc=-ghcversion-file=rts/include/ghcversion.h --optghc=-Wno-deprecated-flags --optghc=-Wno-trustworthy-safe +RTS -t_build/stage1/haddock-timing-files/ghc-prim.t --machine-readable -RTS --hyperlinked-source --hoogle --quickjump @/tmp/extra-file-86355190919463-9634-0
===> Command failed with error code: 1
[ 1 of 14] Compiling GHC.Types        ( libraries/ghc-prim/GHC/Types.hs, nothing )
[ 2 of 14] Compiling GHC.Prim.PtrEq   ( libraries/ghc-prim/GHC/Prim/PtrEq.hs, nothing )
[ 3 of 14] Compiling GHC.Prim.Ext     ( libraries/ghc-prim/GHC/Prim/Ext.hs, nothing )
[ 4 of 14] Compiling GHC.Prim.Exception ( libraries/ghc-prim/GHC/Prim/Exception.hs, nothing )
[ 5 of 14] Compiling GHC.Prim         ( _build/stage1/libraries/ghc-prim/build/GHC/Prim.hs, nothing )
[ 6 of 14] Compiling GHC.Magic.Dict   ( libraries/ghc-prim/GHC/Magic/Dict.hs, nothing )
[ 7 of 14] Compiling GHC.Magic        ( libraries/ghc-prim/GHC/Magic.hs, nothing )
[ 8 of 14] Compiling GHC.Prim.Panic   ( libraries/ghc-prim/GHC/Prim/Panic.hs, nothing )
[ 9 of 14] Compiling GHC.CString      ( libraries/ghc-prim/GHC/CString.hs, nothing )
[10 of 14] Compiling GHC.Tuple.Prim   ( libraries/ghc-prim/GHC/Tuple/Prim.hs, nothing )
[11 of 14] Compiling GHC.Tuple        ( libraries/ghc-prim/GHC/Tuple.hs, nothing )
[12 of 14] Compiling GHC.PrimopWrappers ( _build/stage1/libraries/ghc-prim/build/GHC/PrimopWrappers.hs, nothing )
[13 of 14] Compiling GHC.Debug        ( libraries/ghc-prim/GHC/Debug.hs, nothing )
[14 of 14] Compiling GHC.Classes      ( libraries/ghc-prim/GHC/Classes.hs, nothing )
haddock: internal error: Data.Text.Internal.Fusion.Common.index: Index too large
CallStack (from HasCallStack):
  error, called at libraries/text/src/Data/Text/Internal/Fusion/Common.hs:1189:24 in text-2.1.1-inplace:Data.Text.Internal.Fusion.Common
  streamError, called at libraries/text/src/Data/Text/Internal/Fusion/Common.hs:1089:33 in text-2.1.1-inplace:Data.Text.Internal.Fusion.Common
  indexI, called at libraries/text/src/Data/Text/Internal/Fusion.hs:249:9 in text-2.1.1-inplace:Data.Text.Internal.Fusion
  index, called at libraries/text/src/Data/Text.hs:1763:13 in text-2.1.1-inplace:Data.Text
  index, called at utils/haddock/haddock-library/src/Documentation/Haddock/Parser.hs:456:17 in haddock-2.30.0-inplace:Documentation.Haddock.Parser
Error when running Shake build system:
  at want, called at src/Main.hs:124:44 in main:Main
* Depends on: docs
  at need, called at src/Rules/Documentation.hs:129:9 in main:Rules.Documentation
* Depends on: _build/doc/archives/libraries.html.tar.xz
  at need, called at src/Rules/Documentation.hs:377:9 in main:Rules.Documentation
* Depends on: _build/doc/html/libraries/index.html
  at need, called at src/Rules/Documentation.hs:231:9 in main:Rules.Documentation
* Depends on: _build/doc/html/libraries/ghc-prim-0.11.0-inplace/ghc-prim.haddock
  at cmd', called at src/Builder.hs:413:5 in main:Builder
  at cmdArgs, called at src/Builder.hs:566:8 in main:Builder
  at cmdArgs, called at src/Builder.hs:590:18 in main:Builder
  at cmdArgs, called at src/Builder.hs:590:18 in main:Builder
  at cmdArgs, called at src/Builder.hs:590:18 in main:Builder
  at cmdArgs, called at src/Builder.hs:590:18 in main:Builder
  at error, called at src/Builder.hs:635:13 in main:Builder
* Raised the exception:
Command failed

Build failed.
*** Error code 1

Stop.

>How-To-Repeat:
cd /usr/pkgsrc/lang/ghc98
make
>Fix:

Please.

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index