# Error while compiling on PocketCHIP

**URL:** https://discourse.cataclysmdda.org/t/error-while-compiling-on-pocketchip/12527
**Category:** The Garage
**Created:** [September 14, 2016, 6:28am UTC](https://discourse.cataclysmdda.org/t/error-while-compiling-on-pocketchip/12527 "2016-09-14T06:28:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![p0pv](https://avatars.discourse-cdn.com/v4/letter/p/9dc877/32.png) [@p0pv](https://discourse.cataclysmdda.org/u/p0pv)
#### Post date: [September 14, 2016, 6:28am UTC](https://discourse.cataclysmdda.org/t/error-while-compiling-on-pocketchip/12527/1 "2016-09-14T06:28:52Z")

</div>

I’m trying to compile on a PocketCHIP. It has an ARM Cortex-A7 processor and runs some sort of Debian derivative.

When I run:

```auto

```

The game starts compiling. After ~15 minutes I receive the following error:

`src/player.cpp: In member function 'item::reload_option player::select_ammo(const item&, const std::vector<item::reload_option>&) const':
src/player.cpp:9632:20: error: comparison is always false due to limited range of data type [-Werror=type-limits]
         if( hotkey == -1 && last == ammo.typeId() ) {
                    ^
cc1plus: all warnings being treated as errors
make: *** [obj/tiles/player.o] Error 1
Makefile:638: recipe for target 'obj/tiles/player.o' failed
`

I’ve Googled “comparison is always false due to limited range of data type” which leads me to believe that the hotkey variable is an unsigned int.

Is this a bug in the source preventing me from compiling or does this have something to do with compiling for an ARM processor?

Any help is appreciated.

---

<div class="post-metadata">

### Author: ![yello](https://avatars.discourse-cdn.com/v4/letter/y/ecae2f/32.png) [@yello](https://discourse.cataclysmdda.org/u/yello)
#### Post date: [September 25, 2016, 8:47pm UTC](https://discourse.cataclysmdda.org/t/error-while-compiling-on-pocketchip/12527/2 "2016-09-25T20:47:33Z")

</div>

Check the official pocketchip forum,

I think in the roguelikes thread, there´s links to a build someone has made.  
Have fun!
