The fact that this is DynFlags is suspicious. That module in particular takes quite a bit of memory to compile (especially at the moment, due to a known bug). Moreover, we have seen reports of segfaults on running out of memory. How much memory does your guest have available to it? Is this crash reproducible?
Reply to [[span(style=color: #FF0000, bgamari )]].\\
Is this crash reproducible?\\
Yes the crash is reproducible on my computer every time I run "make" or
"make install"\\\\
How much memory does your guest have available to it?\\
my computer has 4 Go of RAM\\
Windows is 32 bit and use 3 Go of RAM. Linux is 64 bit on virtualBox as
guest.\\
Linux use 1024 Mo of RAM.\\
in Linux, I looked at the task manager.\\
the memory in use does not exceed 83% when the compilation is active\\
When the DynFlags file is compiled I noticed this behavior (of memory) in the task manager of Linux:\\
throughout the process, which takes about 20 minutes, the memory that is used varies between 88% and 93% of the total memory.\\
suddenly the percentage of memory stops at 93% and does not vary thereafter for about 2 minutes.\\
then after this time elapsed the file stops to compile and an error appears.\\
compiler/ghc.mk:588: recipe for target 'compiler/stage2/build/DynFlags.o' failedmake[1]: *** [compiler/stage2/build/DynFlags.o] Erreur de segmentationMakefile:122: recipe for target 'all' failedmake: *** [all] Error 2vanto@debian:~/ghc$
the memory down to 7% after stopping compilation.\\
\\
In Windows, throughout the process in the guest I can read in the task
manager that the memory in use is 2.08 GB of RAM all the time.
I just did another test.\\
I increased the memory of Linux in VirtualBox, 1514 Mo\\
during compilation the percentage of memory usage has reached 95%, and
has never been beyond\\
I noticed a new fact.\\
compiling failed when the swap file has reached 100% with the same error
message.\\
\\
Hope this help
Remember Linux, depending on its VM settings often overcommits itself. Suggest you allow the virtual machine far more memory than currently.
More generally having a 64-bit (virtual or otherwise) machine and not giving it a few gigabytes at least (costing less then the time you're waiting for it) is silly.
It seems pretty clear that the original problem here was the user was running out of memory. I believe I have fixed the segmentation fault on out-of-memory condition, so we should fail more gracefully now.
Hi, I just ran into this issue while building 8.8.4. I could fix it by reducing the number of jobs allowed for make. Over 2.8 GB of memory were used during the compilation of DynFlags.