fusco@ ~/cataclysm-dda $ make
/bin/sh: 1: astyle: not found
g++ -DGIT_VERSION -DLOCALIZE -ffast-math -Og -Wall -Wextra -g -D_GLIBCXX_DEBUG -std=c++11 -MMD -D_GNU_SOURCE -I/usr/include/ncursesw -c src/vehicle_group.cpp -o obj/vehicle_group.o
src/vehicle_group.cpp: In member function ‘size_t weighted_float_list::pick_ent(unsigned int) const [with T = std::shared_ptr; size_t = long unsigned int]’:
src/vehicle_group.cpp:297:2: internal compiler error: Bus error
};
raaaghhhhhhhhh
Im presuming Im missing something that I would know about the files the moment I do my first successful compile.
^^^ that above is completely readable to me; its claiming the src file is buggered. But that doesnt make sense because presumably we’d know that already.
also, I would want to force my own mod into the game to run my own. Is that possible?[/quote]
Just to make sure that you’re not missing any dependencies:
$ sudo apt-get install libncurses5-dev libncursesw5-dev build-essential g++
But honestly, I don’t think that is the problem. It took me awhile to piece together what your error was. I recompiled my game and tracked the messages that it printed. I pieced together that there was some error with ./src/vehicle_group.cpp . In my folder, line 297 is }; the close command. I do not think the problem is with the code.
Your error is the g++ internal compiler error. It is a problem with your computer. A google search tells me that what has happened is that your computer has run out of memory while compiling, killing it. You have a few options here. Do you know what swappiness is? When all of the memory is used, the computer will write some data to the hard drive. This slows the work down, but prevents it from crashing. I had a video editor that would use all of my memory and cause my computer to crash because I didn’t have any swap space. This is a setting that was set when the OS was installed. You might be able to use gparted or some other program to get some swap space, but if you mess with partitions you will want to back up your important data. Also, I think that a drive cannot be altered while it is also mounted (if you are using the drive–such as for the OS–it cannot be altered. You would need a second hard drive with the OS or a live USB/Disc. Altering a partition might format it). I could make the video compile if I used the package that I will post below to slow my computer down, so that I would not run out of memory, causing the memory-hogging program to be killed or crash my computer. Clang is another compiler. You might want to install and try that. I would have no idea how to go about that, but I am sure there are guides.
$ sudo apt-get install indicator-cpufreq
It should be in the system tray, where you can set your power usage to different modes. Also, I just relearned how to install lua.
$ sudo apt-get install liblua5.1-dev
[i]Personally, this is the command that I used below:[/i]
$ sudo apt-get install lua5.1
I have no doubts about it working correctly, but I compiled without lua to simulate how you compiled it. Also, I did a clean install of 16.04 as I had other problems with 14.04
I think that should work. The problem–according to others who have received the same error–is with memory usage.
Edit: Just compiled with LUA=1. Worked perfectly.
About your mods. I have never installed a new mod, but I found mods in the ./Cataclysm-DDA/data/mods/ directory. I would imagine that it is a simple dump. Your PK’s Reimagining is standard. The last few times that I have compiled and created a new world with this mod, I have had errors regarding the DOOM monsters and terrain–though LUA has not been enabled. If you want to change the game more, you know more about it than I do.
Lemme know how it works for you!