perf-llvm build fails with "Too many sections: 123418 (>= 65280)"
Building current git head in the "BuildFlavour = perf-llvm", the build fails with:
"inplace/bin/ghc-stage1" -o iserv/stage2_p/build/tmp/ghc-iserv-prof -hisuf \
p_hi -osuf p_o -hcsuf p_hc -static -prof -eventlog -O -H64m -fllvm -Wall \
-Werror -hide-all-packages -i -iiserv/src -iiserv/stage2_p/build \
-Iiserv/stage2_p/build -iiserv/stage2_p/build/iserv/autogen \
-Iiserv/stage2_p/build/iserv/autogen \
-optP-include -optPiserv/stage2_p/build/iserv/autogen/cabal_macros.h \
-package-id array-0.5.1.2 -package-id base-4.10.0.0 \
-package-id binary-0.8.4.1 -package-id bytestring-0.10.8.2 \
-package-id containers-0.5.7.1 -package-id deepseq-1.4.3.0 \
-package-id ghci-8.1 -package-id unix-2.7.2.1 -XHaskell2010 \
-threaded -optl-Wl,--export-dynamic -no-hs-main -no-user-package-db \
-rtsopts -Wnoncanonical-monad-instances -odir iserv/stage2_p/build \
-hidir iserv/stage2_p/build -stubdir iserv/stage2_p/build \
-static -prof -eventlog -O -H64m -fllvm -Wall -Werror -hide-all-packages \
-i -iiserv/src -iiserv/stage2_p/build \
-Iiserv/stage2_p/build -iiserv/stage2_p/build/iserv/autogen \
-Iiserv/stage2_p/build/iserv/autogen -optP-include \
-optPiserv/stage2_p/build/iserv/autogen/cabal_macros.h -package-id \
array-0.5.1.2 -package-id base-4.10.0.0 -package-id binary-0.8.4.1 \
-package-id bytestring-0.10.8.2 -package-id containers-0.5.7.1 \
-package-id deepseq-1.4.3.0 -package-id ghci-8.1 -package-id unix-2.7.2.1 \
-XHaskell2010 -threaded -optl-Wl,--export-dynamic -no-hs-main \
-no-user-package-db -rtsopts -Wnoncanonical-monad-instances \
iserv/stage2_p/build/Main.p_o iserv/stage2_p/build/GHCi/Utils.p_o \
iserv/stage2_p/build/cbits/iservmain.p_o
Warning: -rtsopts and -with-rtsopts have no effect with -no-hs-main.
Call hs_init_ghc() from your main() function to set these options.
/usr/bin/ld: iserv/stage2_p/build/tmp/ghc-iserv-prof: Too many sections:
123418 (>= 65280)
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
Trac metadata
Trac field | Value |
---|---|
Version | 8.0.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |