ompiling Snap.Internal.Http.Server.Config [ 7 of 20] Compiling Snap.Http.Server.Config [ 8 of 20] Compiling Snap.Internal.Http.Server.Date [ 9 of 20] Compiling Snap.Internal.Http.Server.Parser [10 of 20] Compiling Snap.Internal.Http.Server.Thread [11 of 20] Compiling Snap.Internal.Http.Server.TimeoutManager [12 of 20] Compiling Snap.Internal.Http.Server.Types [13 of 20] Compiling Snap.Internal.Http.Server.TLS [14 of 20] Compiling Snap.Internal.Http.Server.Session src/Snap/Internal/Http/Server/Session.hs:38:1: warning: [-Wunused-imports] The import of ‘Data.Monoid’ is redundant except perhaps to import instances from ‘Data.Monoid’ To import instances alone, use: import Data.Monoid() | 38 | import Data.Monoid ((<>)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [15 of 20] Compiling Snap.Http.Server.Types [16 of 20] Compiling System.FastLogger [17 of 20] Compiling System.SendFile.Linux [18 of 20] Compiling System.SendFile [19 of 20] Compiling Snap.Internal.Http.Server.Socket src/Snap/Internal/Http/Server/Socket.hs:178:40: warning: [-Wdeprecations] In the use of ‘fdSocket’ (imported from Network.Socket, but defined in network-3.1.2.7-18AvxGLVZvWJNGR6boJDQO:Network.Socket.Types): Deprecated: "Use withFdSocket or unsafeFdSocket instead" | 178 | go fileFd = do sockFd <- Fd `fmap` fdSocket sock | ^^^^^^^^ [20 of 20] Compiling Snap.Http.Server double free or corruption (out) PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace. Stack dump: 0. Program arguments: opt-13 -O1 -globalopt -enable-tbaa -tbaa -relocation-model=static /tmp/ghc20310_0/ghc_243.ll -o /tmp/ghc20310_0/ghc_248.bc Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it): /usr/lib64/llvm13/lib/libLLVM-13.so(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamEi+0x42)[0x3f88901724] /usr/lib64/llvm13/lib/libLLVM-13.so(_ZN4llvm3sys17RunSignalHandlersEv+0x62)[0x3f888ffa7c] /usr/lib64/llvm13/lib/libLLVM-13.so(+0xb01bc4)[0x3f88901bc4] linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3f8d01a800] /lib64/lp64d/libc.so.6(+0x74cbe)[0x3f8cf10cbe] /lib64/lp64d/libc.so.6(gsignal+0x16)[0x3f8ced79c8] /lib64/lp64d/libc.so.6(abort+0xba)[0x3f8cec61f6] /lib64/lp64d/libc.so.6(+0x6b3ae)[0x3f8cf073ae] /lib64/lp64d/libc.so.6(+0x7d41c)[0x3f8cf1941c] /lib64/lp64d/libc.so.6(+0x7f0de)[0x3f8cf1b0de] /lib64/lp64d/libc.so.6(__libc_free+0x64)[0x3f8cf1d170] /usr/lib64/llvm13/lib/libLLVM-13.so(_ZN4llvm15ScalarEvolutionD1Ev+0x2f8)[0x3f8978d518] /usr/lib64/llvm13/lib/libLLVM-13.so(+0x2a6639e)[0x3f8a86639e] /usr/lib64/llvm13/lib/libLLVM-13.so(+0xc24ebe)[0x3f88a24ebe] /usr/lib64/llvm13/lib/libLLVM-13.so(+0x169db3c)[0x3f8949db3c] opt-13[0x33614] opt-13(_ZN4llvm15runPassPipelineENS_9StringRefERNS_6ModuleEPNS_13TargetMachineEPNS_21TargetLibraryInfoImplEPNS_14ToolOutputFileES8_S8_S0_NS_8ArrayRefIS0_EENS_8opt_tool10OutputKindENSB_12VerifierKindEbbbbb+0x2ade)[0x32514] opt-13(main+0x20ca)[0x3ea5c] /lib64/lp64d/libc.so.6(+0x2a3c8)[0x3f8cec63c8] /lib64/lp64d/libc.so.6(__libc_start_main+0x78)[0x3f8cec6474] opt-13(_start+0x20)[0x2e8ec] `opt-13' failed in phase `LLVM Optimiser'. (Exit code: -6) error: Bad exit status from /var/tmp/rpm-tmp.ixj9Kt (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.ixj9Kt (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ghc-snap-server.spec