For some reason, you end up in the defined RTS_SSP_SYMBOLS, I believe and then the RTS wants __stack_chk symbols. Which it can’t find when linking. 

Replacing
#if !defined(mingw32_HOST_OS) && !defined(DYNAMIC)
#define RTS_SSP_SYMBOLS                                \
      SymI_NeedsProto(__stack_chk_guard)               \
      SymI_NeedsProto(__stack_chk_fail)
#else
#define RTS_SSP_SYMBOLS
#endif
With just

#define RTS_SSP_SYMBOLS

Should do. I hope. 

Currently only on mobile phone :-/

Cheers,
 Moritz

On Tue, 14 Jul 2020 at 7:06 PM, Simon Peyton Jones <simonpj@microsoft.com> wrote:

thanks.  What specifically do I comment out?

 

From: Moritz Angermann <moritz.angermann@gmail.com>
Sent: 14 July 2020 12:00
To: Simon Peyton Jones <simonpj@microsoft.com>
Cc: ghc-devs@haskell.org
Subject: Re: HEAD doesn't build. Totally stalled.

 

This was my fault. Not sure why this wasn’t caught in CI. 

It’s due to the addition of the symbols here

 

You should be able to just comment them out. I’ll prepare a proper fix. 

 

Cheers,

 Moritz 

 

On Tue, 14 Jul 2020 at 6:41 PM, Simon Peyton Jones via ghc-devs <ghc-devs@haskell.org> wrote:

I’m getting this failure in a clean HEAD build. Any ideas?    I’m totally stalled because I can’t build GHC any more.

I’m using Windows Subsystem for Linux (WSL).

Help help!

Thanks

Simon

/home/simonpj/code/HEAD-9/rts/dist/build/libHSrts_thr_p.a(RtsSymbols.thr_p_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)

utils/iserv/ghc.mk:105: recipe for target 'utils/iserv/stage2_p/build/tmp/ghc-iserv-prof' failed

make[1]: *** [utils/iserv/stage2_p/build/tmp/ghc-iserv-prof] Error 1

make[1]: *** Waiting for unfinished jobs....

_______________________________________________
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs