<div dir="ltr">I verified that<div>1) 8.2.2 is affected</div><div>2) special options are needed to trigger the errors.</div><div><br></div><div><div><div>instance-1:~/foo$ cat /etc/issue</div><div><b>Ubuntu 18.04</b> LTS \n \l</div></div></div><div><div>instance-1:~/foo$ stack ghci</div><div>Building all executables for `foo' once. After a successful build of all of them, only specified executables will be rebui</div><div>lt.</div><div>foo-0.1.0.0: configure (lib + exe)</div><div>Configuring foo-0.1.0.0...</div><div>foo-0.1.0.0: initial-build-steps (lib + exe)</div><div>The following GHC options are incompatible with GHCi and have not been passed to it: -threaded</div><div>Configuring GHCi with the following packages: foo</div><div>Using main module: 1. Package `foo' component exe:foo-exe with main-is file: /home/blackgnezdo/foo/app/Main.hs</div><div><b>GHCi, version 8.2.2</b>: <a href="http://www.haskell.org/ghc/">http://www.haskell.org/ghc/</a>  :? for help</div><div>[1 of 2] Compiling Lib              ( /home/blackgnezdo/foo/src/Lib.hs, interpreted )</div><div>[2 of 2] Compiling Main             ( /home/blackgnezdo/foo/app/Main.hs, interpreted )</div><div>Ok, two modules loaded.</div><div>Loaded GHCi configuration from /tmp/haskell-stack-ghci/cde1d400/ghci-script</div><div>*Main Lib> </div><div>Leaving GHCi.</div><div><br></div><div>instance-1:~/foo$ stack build --no-library-stripping --no-executable-stripping</div><div>Building all executables for `foo' once. After a successful build of all of them, only specified executables will be rebuilt.</div><div>foo-0.1.0.0: configure (lib + exe)</div><div>Configuring foo-0.1.0.0...</div><div>foo-0.1.0.0: build (lib + exe)</div><div>Preprocessing library for foo-0.1.0.0..</div><div>Building library for foo-0.1.0.0..</div><div>[1 of 2] Compiling Lib              ( src/Lib.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Lib.o )</div><div>/tmp/ghc8799_0/ghc_4.s: Assembler messages:</div><div>/home/blackgnezdo/foo//tmp/ghc8799_0/ghc_4.s:415:0: error:</div><div>     Error: invalid operands (.debug_frame and .note.GNU-stack sections) for `-'</div><div>    |</div><div>415 |         .uleb128 1f-.-1</div><div>    | ^</div><div>`gcc' failed in phase `Assembler'. (Exit code: 1)</div><div>    Process exited with code: ExitFailure 1</div></div></div>