# Raspberry pi compiling

**URL:** https://discourse.cataclysmdda.org/t/raspberry-pi-compiling/7064
**Category:** The Garage
**Created:** [August 11, 2014, 7:55pm UTC](https://discourse.cataclysmdda.org/t/raspberry-pi-compiling/7064 "2014-08-11T19:55:27Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Jack\_Slinger](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@Jack\_Slinger](https://discourse.cataclysmdda.org/u/Jack_Slinger)
#### Post date: [August 11, 2014, 7:55pm UTC](https://discourse.cataclysmdda.org/t/raspberry-pi-compiling/7064/1 "2014-08-11T19:55:27Z")

</div>

Im trying to compile on my raspberry pi, ive allready updated g++ so i can start compiling. I type make and after a few hours it ends with signal 9 and error 1. From going over the output it looks like It’s compiled all the files individually and then failed to combine them.

Im a beginner with linux but have some software engineering knowledge. Any one got any ideas?

---

<div class="post-metadata">

### Author: ![ffcc](https://avatars.discourse-cdn.com/v4/letter/f/cdc98d/32.png) [@ffcc](https://discourse.cataclysmdda.org/u/ffcc)
#### Post date: [August 11, 2014, 8:14pm UTC](https://discourse.cataclysmdda.org/t/raspberry-pi-compiling/7064/2 "2014-08-11T20:14:13Z")

</div>

Im no expert all right, but AFAIK cataclysm is not compilable in ARM. From the makefile:

# Platforms:

# Linux native

# (don’t need to do anything)

# Linux 64-bit

# make NATIVE=linux64

# Linux 32-bit

# make NATIVE=linux32

# Linux cross-compile to Win32

# make CROSS=i686-pc-mingw32-

# or make CROSS=i586-mingw32msvc-

# or whichever prefix your crosscompiler uses

# as long as its name contains mingw32

# Win32

# Run: make NATIVE=win32

# OS X

# Run: make NATIVE=osx

No ARM support intended for now, apparently. Let’s wait for the devs word; i’m also interested in a pi vers of cataclysm.

---

<div class="post-metadata">

### Author: ![pingpong](https://avatars.discourse-cdn.com/v4/letter/p/4bbf92/32.png) [@pingpong](https://discourse.cataclysmdda.org/u/pingpong)
#### Post date: [August 11, 2014, 10:31pm UTC](https://discourse.cataclysmdda.org/t/raspberry-pi-compiling/7064/3 "2014-08-11T22:31:00Z")

</div>

I believe I compiled mine a long time ago. It was probably just ./configure, ./make. Actually it may have been a Linaro/Debian type build on an mk802 1GB, but still should work on Pi.

Copy/paste your output logs after ./configure and ./making

Are you compiling term or SDL? Term should work easily, SDL probably wouldn’t.

---

<div class="post-metadata">

### Author: ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)
#### Post date: [August 12, 2014, 1:22am UTC](https://discourse.cataclysmdda.org/t/raspberry-pi-compiling/7064/4 "2014-08-12T01:22:12Z")

</div>

DDA is a pretty beefy codebase, it’s possible you just ran out of ram, can you run top or similar when linking?

---

<div class="post-metadata">

### Author: ![Jack\_Slinger](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@Jack\_Slinger](https://discourse.cataclysmdda.org/u/Jack_Slinger)
#### Post date: [August 12, 2014, 9:41am UTC](https://discourse.cataclysmdda.org/t/raspberry-pi-compiling/7064/5 "2014-08-12T09:41:05Z")

</div>

I’m compiling on the model b and I set all the ram away from the graphics. I am trying to compile for terminal.

Thanks for your help guys, im away on holiday so i cant post the log till Saturday.

---

<div class="post-metadata">

### Author: ![Jack\_Slinger](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@Jack\_Slinger](https://discourse.cataclysmdda.org/u/Jack_Slinger)
#### Post date: [August 12, 2014, 3:13pm UTC](https://discourse.cataclysmdda.org/t/raspberry-pi-compiling/7064/6 "2014-08-12T15:13:25Z")

</div>

Sorry for double post. Kevin could you explain what top is and how to run it please. I’m a bit of a linux noob.

If i can get it working with you guys help do you think its worth me adding to the compiling article on the wiki?

---

<div class="post-metadata">

### Author: ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)
#### Post date: [August 12, 2014, 3:55pm UTC](https://discourse.cataclysmdda.org/t/raspberry-pi-compiling/7064/7 "2014-08-12T15:55:11Z")

</div>

Top is a terminal application that shows the state of all your processes, think a terminal version of the windows process manager.  
You just run it from the terminal with ‘top’, reading the output may be a different matter, the column you’re interested in is ‘RSS’, which stands for resident set size, and in English means the amount of ram the process is using. It’s in KB by default.

---

<div class="post-metadata">

### Author: ![Jack\_Slinger](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@Jack\_Slinger](https://discourse.cataclysmdda.org/u/Jack_Slinger)
#### Post date: [August 12, 2014, 5:57pm UTC](https://discourse.cataclysmdda.org/t/raspberry-pi-compiling/7064/8 "2014-08-12T17:57:09Z")

</div>

I’m not that much of a terminal wizard but I could run make through xterminal and check how much memory it is using via system tools. Is there a way of just running the linking phase because I don’t want to wait 3 hours while it makes all the object files again.

---

<div class="post-metadata">

### Author: ![pingpong](https://avatars.discourse-cdn.com/v4/letter/p/4bbf92/32.png) [@pingpong](https://discourse.cataclysmdda.org/u/pingpong)
#### Post date: [August 12, 2014, 8:53pm UTC](https://discourse.cataclysmdda.org/t/raspberry-pi-compiling/7064/9 "2014-08-12T20:53:40Z")

</div>

It could easily be a ram issue. Is there a Linux system you have to try and cross-compile for Arm v6?

---

<div class="post-metadata">

### Author: ![Jack\_Slinger](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@Jack\_Slinger](https://discourse.cataclysmdda.org/u/Jack_Slinger)
#### Post date: [August 12, 2014, 9:21pm UTC](https://discourse.cataclysmdda.org/t/raspberry-pi-compiling/7064/10 "2014-08-12T21:21:15Z")

</div>

Cross compling sounds like the best bet. I’ll try it this weeked when I have access to a linux tower. Thanks for your help guys ill let you know how it goes.

---

<div class="post-metadata">

### Author: ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)
#### Post date: [August 13, 2014, 1:29am UTC](https://discourse.cataclysmdda.org/t/raspberry-pi-compiling/7064/11 "2014-08-13T01:29:57Z")

</div>

If the build directory is still there, make should just verify that the .o files are newer than their .cpp files and skip recompiling them.

---

<div class="post-metadata">

### Author: ![Jack\_Slinger](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@Jack\_Slinger](https://discourse.cataclysmdda.org/u/Jack_Slinger)
#### Post date: [August 13, 2014, 2:21pm UTC](https://discourse.cataclysmdda.org/t/raspberry-pi-compiling/7064/12 "2014-08-13T14:21:01Z")

</div>

I ran make again with task manager on and can confirm that the problem is a lack of memory. I’ll have to see how well cross compiling works on saterday.
