[Solved]Compiler error during the compiling of LIGGGHTS

Submitted by chenxi on Sun, 02/23/2014 - 02:02

Hi guys.

I met a problem when I was compiling LIGGGHTS on my PC(i5-3470, memory 4G ). After checking the settings with "cfdemSysTest", I began "cfdemCompLIG", it went smoothly at first, but when compiling certain **.cpp file, the screen was frozen. After long time(about 20 minutes), this situation stopped and the compling process went on, but there was no lmp_fedora_fpic in the src directory after the compiling process finished. Does anyone meet the same problem? Is that because the hardware of my PC too low?

I have been trying to solve the problem for a while now. Any help would be more than welcome!

Best,

-Chen

chenxi | Sun, 02/23/2014 - 04:20

It takes about 3 hours to compile on my laptop, and thr results turn out to be the same. I got errors like g++: internal compiler error killed.

I searched on stackflow and some one said It seems that the compiling process requires an unreasonable amount of memory (perhaps because of too many template expansions).

Maybe is that the reason why I cannot compile it?

chenxi | Mon, 02/24/2014 - 20:34

I try to compile LIGGGHTS on another computer with 16G memory,but it still halted for several minutes and got nothing at all, just "error: virtual memory exhausted ". Please ! Some one help me! it is driving me mad.

Misterblobby | Wed, 02/26/2014 - 15:35

I had trouble getting it to compile in Ubuntu 12.04 with an i7 processor and 8gb memory, but it worked fine once I had all the components for openmpi installed properly.

Not sure how i got open mpi running, but i tried several installation scripts from different places, and finally using a get command found on a tutorial for compiling a 'hello world' with openmpi.

Try following rahulsoni's ubuntu installation tutorial to the letter, including installing openfoam, and don't move to the next step until each finishes successfully.

If all else fails, Visual Studio compiles it with minimal effort, but liggghts runs very slow under windows.

chenxi | Thu, 02/27/2014 - 16:09

The problem was solved yesterday. I quit the xwindow and reboot into command line console. Then I compile the LIGGGHTS with command "cfdemCompLIG", the process went smoothly and successfully. Thank you all the same!