NetBSD Problem Report #58379
From wiz@exadelic.gatalith.at Sat Jun 29 08:22:14 2024
Return-Path: <wiz@exadelic.gatalith.at>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 325D01A923C
for <gnats-bugs@gnats.NetBSD.org>; Sat, 29 Jun 2024 08:22:14 +0000 (UTC)
Message-Id: <20240629072328.0303D2EBBAAD@exadelic.gatalith.at>
Date: Sat, 29 Jun 2024 09:23:28 +0200 (CEST)
From: Thomas Klausner <wiz@NetBSD.org>
Reply-To: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@NetBSD.org
Subject: ghc98 build failure on 10.99.10 with gcc12
X-Send-Pr-Version: 3.95
>Number: 58379
>Category: pkg
>Synopsis: ghc98 build failure on 10.99.10 with gcc12
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pho
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jun 29 08:25:00 +0000 2024
>Last-Modified: Tue Jul 30 11:40:01 +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.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->pho
Responsible-Changed-By: pho@NetBSD.org
Responsible-Changed-When: Sat, 20 Jul 2024 13:38:19 +0000
Responsible-Changed-Why:
Taking the PR as I'm responsible for GHC stuff
From: PHO <pho@cielonegro.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/58379: ghc98 build failure on 10.99.10 with gcc12
Date: Sat, 20 Jul 2024 22:58:19 +0900
(Re-posting here as I initially sent this to a wrong list.)
wiz, I tried this on both amd64 and aarch64 on the HEAD but I couldn't
reproduce it on neither architectures. GCC I used was definitely 12 but
the build succeeded just fine.
It isn't a good sign ofc but without being able to reproduce it I really
can't do anything :(
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: pkg/58379: ghc98 build failure on 10.99.10 with gcc12
Date: Mon, 29 Jul 2024 00:11:39 +0200
I've now filed
https://gitlab.haskell.org/ghc/ghc/-/issues/25118
for this.
Thomas
From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/58379 CVS commit: pkgsrc/lang/ghc98
Date: Tue, 30 Jul 2024 11:38:42 +0000
Module Name: pkgsrc
Committed By: wiz
Date: Tue Jul 30 11:38:42 UTC 2024
Modified Files:
pkgsrc/lang/ghc98: Makefile
Log Message:
ghc98: fix PR 58379
Add -D__STDC_NO_ATOMICS__ to CFLAGS per upstream recommendation
to disable AVX-512 support.
Fixes build on at least NetBSD systems with AVX-512 CPUs.
Enabled unconditionally since there are reports that this also
causes problems on other operating systems.
Ok pho@
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/lang/ghc98/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.