[Haskell] trouble building ghc-8.10.2 from source

Scott N. Walck walck at lvc.edu
Sun Nov 1 20:51:29 UTC 2020


Hi folks,

I'm trying to build ghc-8.10.2 from source.

The configure step seemed to go well, as shown below.

The error during the build is shown after that.  I'm afraid I don't know
how to make heads or tails of the error, so any help would be
appreciated.

Thanks,

Scott


----------------------------------------------------------------------
Configure completed successfully.

   Building GHC version  : 8.10.2
          Git commit id  : 29204b1c4f52ea34d84da33593052ee839293bf2

   Build platform        : x86_64-unknown-linux
   Host platform         : x86_64-unknown-linux
   Target platform       : x86_64-unknown-linux

   Bootstrapping using   : /usr/local/bin/ghc
      which is version   : 8.8.1
      with threaded RTS? : YES

   Using (for bootstrapping) : gcc
   Using gcc                 : cc
      which is version       : 
   Building a cross compiler : NO
   Unregisterised            : NO
   TablesNextToCode          : YES
   hs-cpp       : cc
   hs-cpp-flags : -E -undef -traditional
   ar           : ar
   ld           : ld.gold
   nm           : nm
   libtool      : 
   objdump      : objdump
   ranlib       : ranlib
   windres      : 
   dllwrap      : 
   genlib       : 
   Happy        : /usr/local/walck/cabal/bin/happy (1.20.0)
   Alex         : /usr/local/walck/cabal/bin/alex (3.2.5)
   sphinx-build : /home/walck/.local/bin/sphinx-build
   xelatex      : /usr/bin/xelatex
   makeinfo     : /usr/bin/makeinfo

   Using LLVM tools
      clang : 
      llc   : 
      opt   : 
   HsColour : /usr/local/walck/cabal/bin/HsColour

   Tools to build Sphinx HTML documentation available: YES
   Tools to build Sphinx PDF documentation available: YES
   Tools to build Sphinx INFO documentation available: YES
----------------------------------------------------------------------



"inplace/bin/ghc-stage1" -o utils/iserv/stage2/build/tmp/ghc-iserv -hisuf hi -osuf  o -hcsuf hc -static  -H32m -O -Wall     -hide-all-packages -i -iutils/iserv/src -iutils/iserv/stage2/build -Iutils/iserv/stage2/build -iutils/iserv/stage2/build/iserv/autogen -Iutils/iserv/stage2/build/iserv/autogen -Iutils/iserv/. -Iutils/iserv/stage2/build/.    -optP-include -optPutils/iserv/stage2/build/iserv/autogen/cabal_macros.h -package-id array-0.5.4.0 -package-id base-4.14.1.0 -package-id binary-0.8.8.0 -package-id bytestring-0.10.10.0 -package-id containers-0.6.2.1 -package-id deepseq-1.4.4.0 -package-id ghci-8.10.2 -package-id libiserv-8.10.2 -package-id unix-2.7.2.2 -no-hs-main -XHaskell2010  -threaded -optl-Wl,--export-dynamic -no-hs-main -no-user-package-db -rtsopts      -Wnoncanonical-monad-instances  -outputdir utils/iserv/stage2/build -split-sections   -static  -H32m -O -Wall     -hide-all-packages -i -iutils/iserv/src -iutils/iserv/stage2/build -Iutils/iserv/stage2/build -iutils/iserv/stage2/build/iserv/autogen -Iutils/iserv/stage2/build/iserv/autogen -Iutils/iserv/. -Iutils/iserv/stage2/build/.    -optP-include -optPutils/iserv/stage2/build/iserv/autogen/cabal_macros.h -package-id array-0.5.4.0 -package-id base-4.14.1.0 -package-id binary-0.8.8.0 -package-id bytestring-0.10.10.0 -package-id containers-0.6.2.1 -package-id deepseq-1.4.4.0 -package-id ghci-8.10.2 -package-id libiserv-8.10.2 -package-id unix-2.7.2.2 -no-hs-main -XHaskell2010  -threaded -optl-Wl,--export-dynamic -no-hs-main -no-user-package-db -rtsopts      -Wnoncanonical-monad-instances  utils/iserv/stage2/build/Main.o utils/iserv/stage2/build/cbits/iservmain.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/local/walck/install/ghc-8.10.2/rts/dist/build/libHSrts_thr.a(RtsSymbols.thr_o):RtsSymbols.c:rtsSyms: error: undefined reference to '__stack_chk_guard'
collect2: error: ld returned 1 exit status
`cc' failed in phase `Linker'. (Exit code: 1)
make[1]: *** [utils/iserv/ghc.mk:100: utils/iserv/stage2/build/tmp/ghc-iserv] Error 1
make: *** [Makefile:128: all] Error 2



-- 
Scott N. Walck
Professor of Physics
Lebanon Valley College
Annville, PA 17003
phone: 717-867-6153
fax:   717-867-6075
email: walck at lvc.edu
http://quantum.lvc.edu/walck/


More information about the Haskell mailing list